copr-builders: exclude jp-tok-2 from s390x locations
That location is broken now (for some unknown reason).
This commit is contained in:
parent
6d17c24731
commit
6e3921826f
2 changed files with 6 additions and 4 deletions
|
@ -263,11 +263,12 @@ def _get_arg_parser():
|
|||
parser_create.add_argument("--playbook", default=DEFAULT_PLAYBOOK)
|
||||
parser_create.add_argument("--image-uuid", default=DEFAULT_IMAGE)
|
||||
parser_create.add_argument("--floating-ip-name", default=None)
|
||||
zones_default=",".join(ZONES.keys())
|
||||
parser_create.add_argument("--zones", help=(
|
||||
"A comma separate list of zone names. Default='{default}'. "
|
||||
"The script starts the VM randomly randomly in one of the "
|
||||
"specified zones.".format(default=",".join(ZONES.keys()))),
|
||||
default=ZONES.keys())
|
||||
"specified zones.".format(default=zones_default)),
|
||||
default=zones_default)
|
||||
parser_delete = subparsers.add_parser(
|
||||
"delete", help="Delete instance by it's name from IBM Cloud")
|
||||
parser_delete.add_argument("name")
|
||||
|
@ -343,7 +344,8 @@ def _main():
|
|||
opts.instance = "production" if "-prod-" in name else "devel"
|
||||
|
||||
if opts.subparser == "create":
|
||||
opts.zone = random.choice(list(opts.zones))
|
||||
allowed_zones = [x.strip() for x in opts.zones.split(",")]
|
||||
opts.zone = random.choice(allowed_zones)
|
||||
# detect_floating_ip_name(opts)
|
||||
create_instance(service, name, opts)
|
||||
elif opts.subparser == "delete":
|
||||
|
|
|
@ -140,7 +140,7 @@ copr_ibm_cloud_s390x_tokyo_{% if devel %}dev{% else %}prod{% endif %}:
|
|||
- arch_s390x_native
|
||||
- ibm_cloud
|
||||
- tokyo
|
||||
cmd_new: '/var/lib/resallocserver/resalloc_provision/ibm-cloud-vm --log-level debug create "$RESALLOC_NAME"'
|
||||
cmd_new: '/var/lib/resallocserver/resalloc_provision/ibm-cloud-vm --zones jp-tok-1,jp-tok-3 --log-level debug create "$RESALLOC_NAME"'
|
||||
cmd_delete: "/var/lib/resallocserver/resalloc_provision/vm-delete"
|
||||
cmd_livecheck: "resalloc-check-vm-ip"
|
||||
cmd_release: "/var/lib/resallocserver/resalloc_provision/vm-release"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue