Bug 1738447

Summary: undercloud deploy failed with placement `version` issue
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: openstack-placementAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.0 (Train)CC: lyarwood, mbooth, pkopec
Target Milestone: rcKeywords: Triaged
Target Release: 16.0 (Train on RHEL 8.1)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-placement-1.1.0-0.20190807103427.0386f53.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-02-06 14:41:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Attila Fazekas 2019-08-07 08:10:29 UTC
Description of problem:

Deployment failed .
- Deployment is waiting for the nova-compute to show up
- nova-compute is wating for conductor to response
- nova conductor has issues with placement url/config

undercloud-0/var/log/containers/nova/nova-conductor.log:

2019-08-06 16:11:49.754 8 CRITICAL nova [-] Unhandled error: openstack.exceptions.NotSupported: The placement service for 192.168.24.3:regionOne exists but no version was discoverable.
2019-08-06 16:11:49.754 8 ERROR nova Traceback (most recent call last):
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/bin/nova-conductor", line 10, in <module>
2019-08-06 16:11:49.754 8 ERROR nova     sys.exit(main())
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/cmd/conductor.py", line 44, in main
2019-08-06 16:11:49.754 8 ERROR nova     topic=rpcapi.RPC_TOPIC)
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/service.py", line 257, in create
2019-08-06 16:11:49.754 8 ERROR nova     periodic_interval_max=periodic_interval_max)
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/service.py", line 129, in __init__
2019-08-06 16:11:49.754 8 ERROR nova     self.manager = manager_class(host=self.host, *args, **kwargs)
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/conductor/manager.py", line 117, in __init__
2019-08-06 16:11:49.754 8 ERROR nova     self.compute_task_mgr = ComputeTaskManager()
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/conductor/manager.py", line 243, in __init__
2019-08-06 16:11:49.754 8 ERROR nova     self.report_client = report.SchedulerReportClient()
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/scheduler/client/report.py", line 200, in __init__
2019-08-06 16:11:49.754 8 ERROR nova     self._client = self._create_client()
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/scheduler/client/report.py", line 243, in _create_client
2019-08-06 16:11:49.754 8 ERROR nova     client = self._adapter or utils.get_sdk_adapter('placement')
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/nova/utils.py", line 1253, in get_sdk_adapter
2019-08-06 16:11:49.754 8 ERROR nova     return getattr(conn, service_type)
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/openstack/service_description.py", line 86, in __get__
2019-08-06 16:11:49.754 8 ERROR nova     instance._proxies[self.service_type] = self._make_proxy(instance)
2019-08-06 16:11:49.754 8 ERROR nova   File "/usr/lib/python3.6/site-packages/openstack/service_description.py", line 212, in _make_proxy
2019-08-06 16:11:49.754 8 ERROR nova     region_name=region_name))
2019-08-06 16:11:49.754 8 ERROR nova openstack.exceptions.NotSupported: The placement service for 192.168.24.3:regionOne exists but no version was discoverable.


undercloud-0/home/stack/undercloud_install.log:
        "Error running ['podman', 'run', '--name', 'nova_wait_for_compute_service', '--label', 'config_id=tripleo_step4', '--label', 'container_name=nova_wait_for_compute_service', '--label', 'managed_by=paunch', '--label', 'config_data={\"command\": \"/container-config-scripts/pyshim.sh /container-config-scripts/nova_wait_for_compute_service.py\", \"detach\": false, \"image\": \"192.168.24.1:8787/rhosp16/openstack-nova-compute-ironic:20190806.1\", \"net\": \"host\", \"start_order\": 101, \"user\": \"root\", \"volumes\": [\"/etc/hosts:/etc/hosts:ro\", \"/etc/localtime:/etc/localtime:ro\", \"/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro\", \"/etc/pki/ca-trust/source/anchors:/etc/pki/ca-trust/source/anchors:ro\", \"/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro\", \"/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro\", \"/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro\", \"/dev/log:/dev/log\", \"/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro\", \"/etc/puppet:/etc/puppet:ro\", \"/var/lib/config-data/nova/etc/my.cnf.d/:/etc/my.cnf.d/:ro\", \"/var/lib/config-data/nova/etc/nova/:/etc/nova/:ro\", \"/var/log/containers/nova:/var/log/nova\", \"/var/lib/container-config-scripts/:/container-config-scripts/\"]}', '--conmon-pidfile=/var/run/nova_wait_for_compute_service.pid', '--log-driver', 'k8s-file', '--log-opt', 'path=/var/log/containers/stdouts/nova_wait_for_compute_service.log', '--net=host', '--user=root', '--volume=/etc/hosts:/etc/hosts:ro', '--volume=/etc/localtime:/etc/localtime:ro', '--volume=/etc/pki/ca-trust/extracted:/etc/pki/ca-trust/extracted:ro', '--volume=/etc/pki/ca-trust/source/anchors:/etc/pki/ca-trust/source/anchors:ro', '--volume=/etc/pki/tls/certs/ca-bundle.crt:/etc/pki/tls/certs/ca-bundle.crt:ro', '--volume=/etc/pki/tls/certs/ca-bundle.trust.crt:/etc/pki/tls/certs/ca-bundle.trust.crt:ro', '--volume=/etc/pki/tls/cert.pem:/etc/pki/tls/cert.pem:ro', '--volume=/dev/log:/dev/log', '--volume=/etc/ssh/ssh_known_hosts:/etc/ssh/ssh_known_hosts:ro', '--volume=/etc/puppet:/etc/puppet:ro', '--volume=/var/lib/config-data/nova/etc/my.cnf.d/:/etc/my.cnf.d/:ro', '--volume=/var/lib/config-data/nova/etc/nova/:/etc/nova/:ro', '--volume=/var/log/containers/nova:/var/log/nova', '--volume=/var/lib/container-config-scripts/:/container-config-scripts/', '192.168.24.1:8787/rhosp16/openstack-nova-compute-ironic:20190806.1', '/container-config-scripts/pyshim.sh', '/container-config-scripts/nova_wait_for_compute_service.py']. [1]",
        "stdout: INFO:nova_wait_for_compute_service:Waiting for nova-compute service to register",
        "INFO:nova_wait_for_compute_service:Waiting for nova-compute service to register",
        "stderr: + command -v python3",
        "+ python3 /container-config-scripts/nova_wait_for_compute_service.py"
    ]

(Please move tis bug to another component if it turns out not a config-issue)


Version-Release number of selected component (if applicable):

RHOS_TRUNK-16.0-RHEL-8-20190806.n.1

Comment 1 Attila Fazekas 2019-08-07 09:33:41 UTC
Looks like actually the container build has an older package than expected.

Comment 10 errata-xmlrpc 2020-02-06 14:41:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:0283