Queens CI jobs tripleo-ci-centos-7-scenario001-multinode-oooq-container and tripleo-ci-centos-7-scenario004-multinode-oooq-container are failing during tempest validation steps after the overcloud installation. When checking nova-compute logs in the subnode, we can find the following log in both jobs:
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [req-a0823e4d-c889-422b-bfe8-dad5a1bf34b8 0eeba3bfe4884ed298270ced47f55b2f e2a73114c65e4fc9b62f6446d21ed9e6 - default default] [instance: b899f92a-4d76-42ee-b73b-a4d343489879] Instance failed to spawn: OSError: [Errno 13] Permission denied: '/var/lib/nova/instances/b899f92a-4d76-42ee-b73b-a4d343489879'
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] Traceback (most recent call last):
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2239, in _build_resources
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] yield resources
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2019, in _build_and_run_instance
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] block_device_info=block_device_info)
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3091, in spawn
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] block_device_info=block_device_info)
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 3405, in _create_image
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] fileutils.ensure_tree(libvirt_utils.get_instance_path(instance))
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] File "/usr/lib/python2.7/site-packages/oslo_utils/fileutils.py", line 41, in ensure_tree
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] os.makedirs(path, mode)
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] File "/usr/lib64/python2.7/os.py", line 157, in makedirs
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] mkdir(name, mode)
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879] OSError: [Errno 13] Permission denied: '/var/lib/nova/instances/b899f92a-4d76-42ee-b73b-a4d343489879'
2018-10-24 18:51:34.047 10 ERROR nova.compute.manager [instance: b899f92a-4d76-42ee-b73b-a4d343489879]
http://logs.openstack.org/29/611329/3/check/tripleo-ci-centos-7-scenario001-multinode-oooq-container/71d71be/logs/subnode-2/var/log/containers/nova/nova-compute.log.txt.gz#_2018-10-24_18_51_34_047
http://logs.openstack.org/29/611329/3/check/tripleo-ci-centos-7-scenario004-multinode-oooq-container/38cfc40/logs/subnode-2/var/log/containers/nova/nova-compute.log.txt.gz#_2018-10-24_18_09_10_044
it seems the host_prep_task to create /var/lib/ nova/instances was not run [1] and therefore nova/instances was not there when the nova_statdir script ran to change the owner to the correct nova user inside the container at [2]:
/var/lib/
Oct 24 17:54:53 centos- 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Applying nova statedir ownership 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Target ownership for /var/lib/nova: 42436:42436 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Checking uid: 42436 gid: 42436 path: /var/lib/nova/ 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Ownership of /var/lib/nova already 42436:42436 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Checking uid: 42436 gid: 42436 path: /var/lib/nova/.ssh/ 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Ownership of /var/lib/nova/.ssh already 42436:42436 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Checking uid: 42436 gid: 42436 path: /var/lib/ nova/.ssh/ config 7-inap- mtl01-000338501 7 dockerd- current[ 12459]: INFO:nova_ statedir: Nova statedir ownership complete 7-inap- mtl01-000338501 7 oci-systemd- hook[70456] : systemdhook <debug>: 93a3239cbc44: Skipping as container command is /docker- config- scripts/ nova_statedir_ ownership. py, not init or systemd
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
Oct 24 17:54:53 centos-
[1] https:/ /github. com/openstack/ tripleo- heat-templates/ blob/stable/ queens/ docker/ services/ nova-compute. yaml#L232 logs.openstack. org/29/ 611329/ 3/check/ tripleo- ci-centos- 7-scenario004- multinode- oooq-container/ 38cfc40/ logs/subnode- 2/var/log/ journal. txt.gz# _Oct_24_ 17_54_53
[2] http://