The job networking-ovn-tripleo-c7-s003-oooq-containers used to gate neutron-ovn changes is failing in the following task:
2019-04-09 13:41:04 | TASK [tripleo-create-admin : append tripleo-admin public key to authorized_keys] ***
2019-04-09 13:41:04 | task path: /usr/share/ansible/roles/tripleo-create-admin/tasks/create_user.yml:25
2019-04-09 13:41:04 | Tuesday 09 April 2019 13:41:03 +0000 (0:00:00.504) 0:05:20.920 *********
2019-04-09 13:41:04 | [WARNING]: Unable to find '/home/tripleo-admin/.ssh/id_rsa.pub' in expected
2019-04-09 13:41:04 | paths (use -vvvvv to see paths)
2019-04-09 13:41:04 | fatal: [centos-7-rax-iad-0004944854]: FAILED! => {}
2019-04-09 13:41:04 |
2019-04-09 13:41:04 | MSG:
2019-04-09 13:41:04 |
2019-04-09 13:41:08 | An unhandled exception occurred while running the lookup plugin 'file'. Error was a <class 'ansible.errors.AnsibleError'>, original messException occured while running the command
2019-04-09 13:41:08 | Traceback (most recent call last):
2019-04-09 13:41:08 | File "/usr/lib/python2.7/site-packages/tripleoclient/command.py", line 30, in run
2019-04-09 13:41:08 | super(Command, self).run(parsed_args)
2019-04-09 13:41:08 | File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
2019-04-09 13:41:08 | return super(Command, self).run(parsed_args)
2019-04-09 13:41:08 | File "/usr/lib/python2.7/site-packages/cliff/command.py", line 184, in run
2019-04-09 13:41:08 | return_code = self.take_action(parsed_args) or 0
2019-04-09 13:41:08 | File "/usr/lib/python2.7/site-packages/tripleoclient/v1/overcloud_deploy.py", line 949, in take_action
2019-04-09 13:41:08 | verbosity=self.app_args.verbose_level)
2019-04-09 13:41:08 | File "/usr/lib/python2.7/site-packages/tripleoclient/workflows/deployment.py", line 327, in config_download
2019-04-09 13:41:08 | raise exceptions.DeploymentError("Overcloud configuration failed.")
2019-04-09 13:41:08 | DeploymentError: Overcloud configuration failed.
2019-04-09 13:41:08 | Overcloud configuration failed.
2019-04-09 13:41:08 | END return value: 1
2019-04-09 13:41:08 | age: could not locate file in lookup: /home/tripleo-admin/.ssh/id_rsa.pub
Log: http://logs.openstack.org/17/651217/1/check/networking-ovn-tripleo-c7-s003-oooq-containers/07b97ae/logs/undercloud/home/zuul/overcloud_deploy.log.txt.gz#_2019-04-09_13_41_04
Job logs: http://logs.openstack.org/17/651217/1/check/networking-ovn-tripleo-c7-s003-oooq-containers/07b97ae/
It looks to me that the issue is that even though the tripleo-admin user exist on the undercloud, it's not created in the mistral_executor container. Therefore, when binding the undercloud's /home/tripleo-admin to /home/tripleo-admin in the container the folder will be owned by the user 1002 group 1003. As the Ansible deployment tasks are executed from mistral_executor as the mistral user and the lookup is done locally, the mistral user can't access to /home/tripleo- admin/. ssh/id_ rsa.pub and the task fails.