Ask Your Question
0

CentOS 7.7 - train - tripleo undercloud deploy error - tripleo-keystone-resources: 'str' object has no attribute 'get'

asked 2020-03-03 11:14:36 -0500

Ricardo Esteves gravatar image

updated 2020-03-03 17:48:00 -0500

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 ...
(more)
edit retag flag offensive close merge delete

Comments

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 ...

JPecar gravatar imageJPecar ( 2020-04-08 15:35:15 -0500 )edit

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.

JPecar gravatar imageJPecar ( 2020-04-11 11:06:02 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-03-04 23:04:56 -0500

Hi

I'm also having the same issue. Have tried to look into heat.log but no error message that can be referred to. This is a deployment for OpenStack Stein.

====

    Wednesday 04 March 2020  15:50:22 +0800 (0:00:00.826)       0:01:39.443 *******
===============================================================================
Run async deployment NetworkDeployment ---------------------------------------------------------------------- 22.99s
tripleo-image-serve : ensure apache is installed ------------------------------------------------------------ 15.81s
Gathering Facts ---------------------------------------------------------------------------------------------- 2.82s
Run deployment UndercloudDeployment -------------------------------------------------------------------------- 2.45s
Run deployment InstanceIdDeployment -------------------------------------------------------------------------- 2.36s
Run deployment UndercloudAllNodesDeployment ------------------------------------------------------------------ 2.31s
Run deployment UndercloudAllNodesValidationDeployment -------------------------------------------------------- 2.02s
Run deployment UndercloudArtifactsDeploy --------------------------------------------------------------------- 1.71s
Run deployment UndercloudHostsDeployment --------------------------------------------------------------------- 1.70s
Run deployment HostsEntryDeployment -------------------------------------------------------------------------- 1.68s
Render deployment file for UndercloudDeployment -------------------------------------------------------------- 1.13s
enable tripleo-iptables service (and do a daemon-reload systemd) --------------------------------------------- 1.02s
tripleo-bootstrap : Deploy required packages to bootstrap TripleO -------------------------------------------- 1.01s
allow logrotate to read inside containers -------------------------------------------------------------------- 0.98s
Set selinux state -------------------------------------------------------------------------------------------- 0.88s
authorize httpd to listen on registry ports ------------------------------------------------------------------ 0.85s
tripleo-image-serve : enable and start httpd ----------------------------------------------------------------- 0.83s
tripleo-ssh-known-hosts : Write temporary file --------------------------------------------------------------- 0.79s
tripleo-bootstrap : Check required packages are installed ---------------------------------------------------- 0.70s
Render deployment file for UndercloudAllNodesDeployment ------------------------------------------------------ 0.70s
Exception: Deployment failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1281, in _standalone_deploy
    raise exceptions.DeploymentError('Deployment failed')
DeploymentError: Deployment failed
None
Install artifact is located at /home/stack/undercloud-install-20200304075022.tar.bzip2

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Deployment Failed!

ERROR: Heat log files: /var/log/heat-launcher/undercloud_deploy-n5c2UI

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

An error has occured while deploying the Undercloud.

See the previous output for details about what went wrong.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Command '['sudo', '--preserve-env', 'openstack', 'tripleo', 'deploy', '--standalone', '--standalone-role', 'Undercloud', '--stack', 'undercloud', '--local-domain=localdomain', '--local-ip=192.168.130.1/24', '--templates=/usr/share/openstack-tripleo-heat-templates/', '--networks-file=network_data_undercloud.yaml', '--heat-native', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/undercloud.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/use-dns-for-vips.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/podman.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/masquerade-networks.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/ironic.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/ironic-inspector.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/mistral.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/zaqar-swift-backend.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/disable-telemetry.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/tripleo-ui.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/tempest.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/ssl/no-tls-endpoints-public-ip.yaml', '--deployment-user', 'stack', '--output-dir=/home/stack', '--cleanup', '-e', '/home/stack/tripleo-config-generated-env-files/undercloud_parameters.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/tripleo-validations.yaml', '--inflight-validations', '--log-file=install-undercloud.log', '-e', '/usr/share/openstack-tripleo-heat-templates/undercloud-stack-vstate-dropin.yaml']' returned non-zero exit status 1
Command '['sudo', '--preserve-env', 'openstack', 'tripleo', 'deploy', '--standalone', '--standalone-role', 'Undercloud', '--stack', 'undercloud', '--local-domain=localdomain', '--local-ip=192.168.130.1/24', '--templates=/usr/share/openstack-tripleo-heat-templates/', '--networks-file=network_data_undercloud.yaml', '--heat-native', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/undercloud.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/use-dns-for-vips.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/podman.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/masquerade-networks.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/ironic.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments/services/ironic-inspector.yaml', '-e', '/usr/share/openstack-tripleo-heat-templates/environments ...
(more)
edit flag offensive delete link more

Comments

For me stein deployed without problem, but train fails.

Ricardo Esteves gravatar imageRicardo Esteves ( 2020-03-05 06:09:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-03-03 11:14:36 -0500

Seen: 421 times

Last updated: Mar 03