openstack tripleo deploy undercloud fails in output there is visible issue with glance db_sync failing on importing json from wsme > "Error running ['podman', 'run', '--name', 'glance_api_db_sync', '--label', 'config_id=tripleo_step3', '--label', 'container_name=glance_api_db_sync', '--label', 'managed_by=paunch', '--label', 'config_data={\"command\": \"/usr/bin/bootstrap_host_exec glance_api su glance -s /bin/bash -c \\'/usr/local/bin/kolla_start\\'\", \"detach\": false, \"environment\": [\"KOLLA_BOOTSTRAP=True\", \"KOLLA_CONFIG_STRATEGY=COPY_ALWAYS\", \"TRIPLEO_CONFIG_HASH=f222fb7b660ade3d3ede6d600aef11f6\"], \"image\": \"192.168.24.1:8787/rhosp15/openstack-glance-api:20190515.2\", \"net\": \"host\", \"privileged\": false, \"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/log/containers/glance:/var/log/glance:z\", \"/var/lib/kolla/config_files/glance_api.json:/var/lib/kolla/config_files/config.json\", \"/var/lib/config-data/puppet-generated/glance_api/:/var/lib/kolla/config_files/src:ro\", \"/etc/ceph:/var/lib/kolla/config_files/src-ceph:ro\", \"/var/lib/glance:/var/lib/glance:slave,z\"]}', '--conmon-pidfile=/var/run/glance_api_db_sync.pid', '--log-driver', 'json-file', '--log-opt', 'path=/var/log/containers/stdouts/glance_api_db_sync.log', '--env=KOLLA_BOOTSTRAP=True', '--env=KOLLA_CONFIG_STRATEGY=COPY_ALWAYS', '--env=TRIPLEO_CONFIG_HASH=f222fb7b660ade3d3ede6d600aef11f6', '--net=host', '--privileged=false', '--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/log/containers/glance:/var/log/glance:z', '--volume=/var/lib/kolla/config_files/glance_api.json:/var/lib/kolla/config_files/config.json', '--volume=/var/lib/config-data/puppet-generated/glance_api/:/var/lib/kolla/config_files/src:ro', '--volume=/etc/ceph:/var/lib/kolla/config_files/src-ceph:ro', '--volume=/var/lib/glance:/var/lib/glance:slave,z', '192.168.24.1:8787/rhosp15/openstack-glance-api:20190515.2', '/usr/bin/bootstrap_host_exec', 'glance_api', 'su', 'glance', '-s', '/bin/bash', '-c', \"'/usr/local/bin/kolla_start'\"]. [1]", > "stdout: ", > "stderr: + sudo -E kolla_set_configs", > "INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json", > "INFO:__main__:Validating config file", > "INFO:__main__:Kolla config strategy set to: COPY_ALWAYS", > "INFO:__main__:Copying service configuration files", > "INFO:__main__:Deleting /etc/glance/glance-api.conf", > "INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/glance/glance-api.conf to /etc/glance/glance-api.conf", > "INFO:__main__:Deleting /etc/glance/glance-cache.conf", > "INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/glance/glance-cache.conf to /etc/glance/glance-cache.conf", > "INFO:__main__:Deleting /etc/glance/glance-image-import.conf", > "INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/glance/glance-image-import.conf to /etc/glance/glance-image-import.conf", > "INFO:__main__:Deleting /etc/glance/glance-swift.conf", > "INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/glance/glance-swift.conf to /etc/glance/glance-swift.conf", > "INFO:__main__:Creating directory /etc/my.cnf.d", > "INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/my.cnf.d/tripleo.cnf to /etc/my.cnf.d/tripleo.cnf", > "INFO:__main__:Writing out command to execute", > "INFO:__main__:Setting permission for /var/lib/glance", > "++ cat /run_command", > "+ CMD='/usr/bin/glance-api --config-file /usr/share/glance/glance-api-dist.conf --config-file /etc/glance/glance-api.conf --config-file /etc/glance/glance-image-import.conf'", > "+ ARGS=", > "+ [[ ! -n '' ]]", > "+ . kolla_extend_start", > "++ [[ ! -d /var/log/kolla/glance ]]", > "++ mkdir -p /var/log/kolla/glance", > "+++ stat -c %a /var/log/kolla/glance", > "++ [[ 2700 != \\7\\5\\5 ]]", > "++ chmod 755 /var/log/kolla/glance", > "++ . /usr/local/bin/kolla_glance_extend_start", > "+++ [[ -n 0 ]]", > "+++ glance-manage db_sync", > "Traceback (most recent call last):", > " File \"/usr/bin/glance-manage\", line 6, in <module>", > " from glance.cmd.manage import main", > " File \"/usr/lib/python3.6/site-packages/glance/cmd/manage.py\", line 53, in <module>", > " from glance.db import migration as db_migration", > " File \"/usr/lib/python3.6/site-packages/glance/db/__init__.py\", line 22, in <module>", > " from wsme.rest import json", > "ImportError: cannot import name 'json'", i found only glance-api container being fetched, not sure of the one for db sync is different: > container rhosp15/openstack-glance-api:20190515.2 on irc lon mentioned wsme renamed json to json_utils
Note that wsme has renamed back json_utils to json https://opendev.org/x/wsme/commit/993d8a06d5c9f6fed13e03c1043c1a9594a88193 This commit has already be included in RDO so it should be fixed in next promotions.
Yes, it's already fixed in downstream builds, too - this is just for tracking.
*** Bug 1710462 has been marked as a duplicate of this bug. ***
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-2019:2811