CI: testenv fails to set up extra node

Bug #1745064 reported by Sagi (Sergey) Shnaidman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

When running testenv client with extra-node 1 it fails. Debug from te-broker:

2018-01-24 00:24:15,375 - testenv-worker-9533 - INFO - Starting test-env worker with data ['/opt/stack/tripleo-ci/scripts/te-broker/create-env', '/opt/stack/tripleo-ci/scripts/te-broker/destroy-env']
2018-01-24 00:24:15,376 - testenv-worker-9533 - INFO - running TE worker
2018-01-24 00:24:15,384 - testenv-worker-9533 - INFO - Getting new job...
2018-01-24 00:29:45,276 - testenv-worker-9475 - INFO - Received job : {"callback_name": "callback_0a9b0bdfa32f4f488eef2f85fce510eb", "extra_nodes": "1", "envsize": "4", "timeout": "21000", "create_undercloud": "", "job_identifier": "534435: ovb-3ctlr_1comp_1supp-featureset039", "compute_envsize": "0", "net_iso": "multi-nic", "ssh_key": "", "ucinstance": "e2f57784-66cc-4d01-a2c8-e1469b2cc43e"}

2018-01-24 00:31:33,416 - testenv-worker-9475 - ERROR - + ENVNUM=9475
+ NODECOUNT=4
+ UCINSTANCE=e2f57784-66cc-4d01-a2c8-e1469b2cc43e
+ CREATE_UNDERCLOUD=
+ SSH_KEY=
+ NETISO=multi-nic
+ COMPUTE_NODECOUNT=0
+ EXTRA_NODECOUNT=1
+ PROVISIONNET=provision-9475
+ PUBLICNET=public-9475
+ ENVFILE=env-9475-base.yaml
+ COMPUTE_ENVFILE=env-9475-compute.yaml
+ EXTRA_ENVFILE=env-9475-extra.yaml
+ ROLE_ARGS=
+ source /etc/nodepoolrc
++ export NODEPOOL_PROVIDER=rdo-cloud-tripleo
++ NODEPOOL_PROVIDER=rdo-cloud-tripleo
++ export OS_USERNAME=openstack-nodepool
++ OS_USERNAME=openstack-nodepool
++ export OS_TENANT_NAME=openstack-nodepool
++ OS_TENANT_NAME=openstack-nodepool
++ export OS_AUTH_URL=https://phx2.cloud.rdoproject.org:13000/v2.0
++ OS_AUTH_URL=https://phx2.cloud.rdoproject.org:13000/v2.0
+ '[' '!' -e /opt/stack/openstack-virtual-baremetal ']'
+ cd /opt/stack/openstack-virtual-baremetal/
+ '[' -n '' ']'
+ KEY_NAME=tripleo-cd-admins
+ BUILD_NODES_JSON_EXTRA_ARGS=
+ /bin/cp --remove-destination environments/base.yaml env-9475-base.yaml
+ sed -i -e 's/bmc_image:.*/bmc_image: bmc-template/' env-9475-base.yaml
+ sed -i -e 's/key_name:.*/key_name: tripleo-cd-admins/' env-9475-base.yaml
+ sed -i -e 's/node_count:.*/node_count: 4/' env-9475-base.yaml
+ sed -i -e 's/provision_net_shared:.*/provision_net_shared: true/' env-9475-base.yaml
+ sed -i -e 's/public_net_shared:.*/public_net_shared: true/' env-9475-base.yaml
+ [[ rdo-cloud-tripleo == \r\d\o\-\c\l\o\u\d\-\t\r\i\p\l\e\o ]]
+ sed -i -e 's/provision_net_shared:.*/provision_net_shared: false/' env-9475-base.yaml
+ sed -i -e 's/public_net_shared:.*/public_net_shared: false/' env-9475-base.yaml
+ sed -i -e 's/bmc_flavor:.*/bmc_flavor: ci.m1.small/' env-9475-base.yaml
+ sed -i -e 's/baremetal_flavor:.*/baremetal_flavor: ci.m1.large/' env-9475-base.yaml
+ '[' -n '' ']'
+ ENVIRONMENT_ARGS='-e env-9475-base.yaml -e environments/bmc-use-cache.yaml -e environments/undercloud-floating-none.yaml'
+ '[' 0 -gt 0 ']'

+ '[' -z '' ']'
+ ENVIRONMENT_ARGS='-e env-9475-base.yaml -e environments/bmc-use-cache.yaml -e environments/undercloud-floating-none.yaml -e environments/quintupleo-no-undercloud.yaml'
+ '[' multi-nic == multi-nic ']'
+ ENVIRONMENT_ARGS='-e env-9475-base.yaml -e environments/bmc-use-cache.yaml -e environments/undercloud-floating-none.yaml -e environments/quintupleo-no-undercloud.yaml -e environments/all-networks-port-security.yaml'
+ '[' 0 -gt 0 ']'
+ '[' 1 -gt 0 ']'
+ /bin/cp --remove-destination environments/base-extra-node.yaml env-9475-extra.yaml
+ sed -i -e 's/baremetal_flavor:.*/baremetal_flavor: m1.small/' env-9475-extra.yaml
+ sed -i -e 's/key_name:.*/key_name: tripleo-cd-admins/' env-9475-extra.yaml
+ sed -i -e 's/node_count:.*/node_count: 1/' env-9475-extra.yaml
+ sed -i -e 's|../templates/baremetal-ports-extra-node-port-security.yaml|templates/baremetal-ports-extra-node-port-security.yaml|' env-9475-extra.yaml
+ ROLE_ARGS='--role env-9475-extra.yaml'
+ BUILD_NODES_JSON_EXTRA_ARGS=' --network_details'
+ /opt/stack/openstack-virtual-baremetal/bin/deploy.py --name baremetal_9475 --quintupleo --id 9475 -e env-9475-base.yaml -e environments/bmc-use-cache.yaml -e environments/undercloud-floating-none.yaml -e environments/quintupleo-no-undercloud.yaml -e environments/all-networks-port-security.yaml --role env-9475-extra.yaml
Deployment of stack "baremetal_9475" started.
Waiting for stack to complete . . . . . . . . . Stack baremetal_9475 created successfully
Deployment of stack "baremetal_9475-extra" started.
Waiting for stack to complete . . {u'parent': None, u'disable_rollback': True, u'description': u'Template for deploying OpenStack BMC nodes. Can be wrapped in a ResourceGroup for scaling.', u'parameters': {u'OS::project_id': u'5d8fad99d6e14040b794ea2b0c4d91f5', u'os_user': u'admin', u'provision_net': u'provision-9475', u'provision_net_shared': u'', u'os_password': u'******', u'os_tenant': u'admin', u'bmc_prefix': u'bmc-9475-extra', u'os_project_domain': u'', u'undercloud_image': u'', u'baremetal_image': u'CentOS-7-x86_64-GenericCloud', u'external_net': u'external', u'os_user_domain': u'', u'undercloud_flavor': u'', u'node_count': u'1', u'OS::stack_name': u'baremetal_9475-extra', u'key_name': u'tripleo-cd-admins', u'undercloud_name': u'', u'baremetal_flavor': u'm1.small', u'os_auth_url': u'http://127.0.0.1:5000/v2.0', u'cloud_data': u'{"auth_type": "password", "compute_api_version": "2", "orchestration_api_version": "1", "database_api_version": "1.0", "metering_api_version": "2", "network_api_version": "2", "message": "", "image_format": "qcow2", "networks": [], "image_api_version": "2", "verify": true, "dns_api_version": "2", "object_store_api_version": "1", "status": "active", "container_infra_api_version": "1", "region_name": "", "api_timeout": null, "baremetal_api_version": "1", "auth": , "project_name": "openstack-nodepool", "auth_url": "https://phx2.cloud.rdoproject.org:13000/v2.0"}, "image_api_use_tasks": false, "floating_ip_source": "neutron", "key": null, "cacert": null, "application_catalog_api_version": "1", "key_manager_api_version": "v1", "workflow_api_version": "2", "identity_api_version": "2.0", "volume_api_version": "2", "cert": null, "secgroup_source": "neutron", "container_api_version": "1", "interface": "public", "disable_vendor_agent": {}}', u'public_net_shared': u'', u'bmc_image': u'bmc-template', u'os_project': u'', u'public_net': u'public-9475', u'OS::stack_id': u'390e664f-bab0-4c97-88e4-815cd74618e3', u'bmc_use_cache': u'False', u'private_net': u'private', u'baremetal_prefix': u'baremetal-9475-extra', u'bmc_flavor': u'ci.m1.small'}, u'deletion_time': None, u'stack_name': u'baremetal_9475-extra', u'stack_user_project_id': u'6d7893545c574bb5ae4ae07647d55a6f', u'tags': None, u'creation_time': u'2018-01-24T00:31:21Z', u'links': [{u'href': u'https://phx2.cloud.rdoproject.org:13004/v1/5d8fad99d6e14040b794ea2b0c4d91f5/stacks/baremetal_9475-extra/390e664f-bab0-4c97-88e4-815cd74618e3', u'rel': u'self'}], u'capabilities': [], u'notification_topics': [], u'timeout_mins': None, u'stack_status': u'CREATE_FAILED', u'stack_owner': None, u'updated_time': None, u'id': u'390e664f-bab0-4c97-88e4-815cd74618e3', u'stack_status_reason': u"Resource CREATE failed: resources[0]: resources.openstack_baremetal_servers.Property error: resources.baremetal_server.properties.image: Error validating value 'CentOS-7-x86_64-GenericCloud': No images matching {'name': u'CentOS-7-x86_64-GenericCloud'}.", u'template_description': u'Template for deploying OpenStack BMC nodes. Can be wrapped in a ResourceGroup for scaling.'}
Traceback (most recent call last):
  File "/opt/stack/openstack-virtual-baremetal/bin/deploy.py", line 322, in <module>
    _deploy_roles(stack_name, args, env_paths)
  File "/opt/stack/openstack-virtual-baremetal/bin/deploy.py", line 309, in _deploy_roles
    [role_env], poll=True)
  File "/opt/stack/openstack-virtual-baremetal/bin/deploy.py", line 197, in _deploy
    _poll_stack(stack_name, hclient)
  File "/opt/stack/openstack-virtual-baremetal/bin/deploy.py", line 226, in _poll_stack
    raise RuntimeError('Failed to create stack %s' % stack_name)
RuntimeError: Failed to create stack baremetal_9475-extra

2018-01-24 00:31:33,421 - testenv-worker-9475 - INFO - Returned from Job : []

error message: No images matching {'name': u'CentOS-7-x86_64-GenericCloud'}

available images in RDo cloud are:

CentOS-6-x86_64-GenericCloud-1706
CentOS-7-x86_64-GenericCloud-1701
CentOS-7-x86_64-GenericCloud-1703
CentOS-7-x86_64-GenericCloud-1706
CentOS-7-x86_64-GenericCloud-1708

Tags: ci
Revision history for this message
Sagi (Sergey) Shnaidman (sshnaidm) wrote :

Also added PR to OVB repo to print such messages: https://github.com/cybertron/openstack-virtual-baremetal/pull/38

Changed in tripleo:
milestone: queens-3 → queens-rc1
description: updated
description: updated
Changed in tripleo:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.