CentOS 7.7 - train - tripleo undercloud deploy error - tripleo-keystone-resources: 'str' object has no attribute 'get'
Hi,
I was trying to deploy train using tripleo on CentOS 7.7, but i'm having this error:
TASK [tripleo-keystone-resources : Async assignment of Keystone user to roles] ***********************************************************************************************************************************************************************************************
Tuesday 03 March 2020 16:02:54 +0000 (0:00:00.214) 0:17:30.513 *********
changed: [ostack-dir] => (item={u'ironic-inspector': {'project': u'service'}})
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'str' object has no attribute 'get'
fatal: [ostack-dir]: FAILED! => {"msg": "Unexpected failure during module execution.", "stdout": ""}
NO MORE HOSTS LEFT ***********************************************************************************************************************************************************************************************************************************************************
PLAY RECAP *******************************************************************************************************************************************************************************************************************************************************************
ostack-dir : ok=454 changed=278 unreachable=0 failed=1 skipped=109 rescued=0 ignored=1
Tuesday 03 March 2020 16:02:54 +0000 (0:00:00.260) 0:17:30.774 *********
===============================================================================
Wait for container-puppet tasks (generate config) to finish --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 300.00s
Wait for containers to start for step 3 using paunch ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 167.11s
Wait for containers to start for step 2 using paunch ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 60.25s
Run puppet on the host to apply IPtables rules ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 37.36s
Wait for puppet host configuration to finish ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 34.88s
Wait for container-puppet tasks (bootstrap tasks) for step 3 to finish ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 22.41s
Wait for container-puppet tasks (bootstrap tasks) for step 2 to finish ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 22.33s
Write kolla config json files ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 16.69s
Wait for puppet host configuration to finish ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 16.00s
Wait for puppet host configuration to finish ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 15.96s
Creating container startup configs for step_4 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 13.31s
Ensure system is NTP time synced ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 10.25s
tripleo-container-image-prepare : Run tripleo-container-image-prepare logged to: /var/log/tripleo-container-image-prepare.log ---------------------------------------------------------------------------------------------------------------------------------------- 10.03s
Wait for containers to start for step 1 using paunch ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 9.75s
Creating container startup configs for step_3 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8.56s
tripleo-keystone-resources : Check Keystone user status --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7.41s
Run NetworkConfig script ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6.94s
tripleo-bootstrap : Deploy required packages to bootstrap TripleO ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6.28s
tripleo-keystone-resources : Check Keystone role status --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.98s
tripleo-podman : ensure podman and deps are installed ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5.89s
Exception: Deployment failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1323, in _standalone_deploy
raise exceptions.DeploymentError('Deployment failed')
DeploymentError: Deployment failed
None
Preserving deployment artifacts
Install artifact is located at /home/stack/undercloud-install-20200303160254.tar.bzip2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Deployment Failed!
ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-Nwhvz8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
reset failed: reset: standard error: Inappropriate ioctl for device
Unable to reset command line. Try manually running "reset" if the command line is broken.
Deployment failed.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cliff/app.py", line 401, in run_subcommand
result = cmd.run(parsed_args)
File "/usr/lib/python2.7/site-packages/cliff/command.py", line 185, in run
return_code = self.take_action(parsed_args) or 0
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1444, in take_action
if self._standalone_deploy(parsed_args) != 0:
File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1378, in _standalone_deploy
raise exceptions.DeploymentError('Deployment failed.')
DeploymentError: Deployment failed.
clean_up Deploy: Deployment failed.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 136, in run
ret_val = super(OpenStackShell, self).run ...
I'm seeing the same. From the logs I found out that it ends up binding mysql to 192.168.24.1 and clients want to talk on it on 192.168.24.3. Looks like a bug to me ... I worked around this by creating a simple xinetd port forwarding service so step3 can spin up all the containers. Next bug ...
Turns out this is caused by haproxy not being deployed or configured properly. Explore that, get haproxy to run and this error will go away.