[Upgrades] deploy_steps fail with AnsibleUndefinedVariable: \'dict object\' has no attribute \'ansible_hostname\'"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Jose Luis Franco |
Bug Description
Major upgrades from Queens to Master/Rocky fail during "overcloud upgrade run" step when having two or more hosts defined under the "overcloud" ansible group:
u'PLAY [Common roles for TripleO servers] *******
u'',
u'TASK [tripleo-bootstrap : Deploy required packages to bootstrap TripleO] *******',
u'Wednesday 11 July 2018 19:08:49 +0000 (0:00:00.155) 0:00:05.423 ******** ',
u'ok: [overcloud-
u'',
u'TASK [tripleo-bootstrap : Create /var/lib/
u'Wednesday 11 July 2018 19:08:50 +0000 (0:00:01.112) 0:00:06.535 ******** ',
u'ok: [overcloud-
u'',
u'TASK [tripleo-
u'Wednesday 11 July 2018 19:08:50 +0000 (0:00:00.569) 0:00:07.105 ******** ',
u'fatal: [overcloud-
u'',
u'NO MORE HOSTS LEFT *******
u'',
u'PLAY RECAP *******
u'overcloud-
u'',
u'Wednesday 11 July 2018 19:08:51 +0000 (0:00:00.328) 0:00:07.434 ******** ',
The cause of this issue is in the fact that the "overcloud upgrade run" is being run with the option --roles Controller. This option limits the playbooks execution to a single role, in this case the "Controller" one. Therefore, when gathering facts in [0], we are gathering only for the Overcloud's controller, leaving any other host defined as children of the group overcloud without facts gathering. Then, deploy_
[0] - https:/
[1] - https:/
Changed in tripleo: | |
milestone: | rocky-3 → rocky-rc1 |
Fix proposed to branch: master /review. openstack. org/583280
Review: https:/