Redeployment with same working directory using tripleo-quickstart fails at tripleo-inventory

Bug #1738406 reported by yatin
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Medium
Oliver Walsh

Bug Description

Steps to reproduce
==================
Second deployement fails if using same working directory, Example:-
1) bash quickstart.sh -R master --tags all $VIRTHOST
once it's successful, 2nd run
2) bash quickstart.sh -R master --tags all $VIRTHOST
Above 2nd run of quickstart.sh fails at:-
TASK [tripleo-inventory : create inventory from template] **********************
task path: /home/centos/.quickstart/tripleo-quickstart/roles/tripleo-inventory/tasks/inventory.yml:126
Friday 15 December 2017 13:35:19 +0530 (0:00:00.165) 0:00:42.770 *******
changed: [localhost -> localhost] => {"changed": true, "checksum": "d90112ddb61d7f5a1f3d3ede9dc0d037407b0d0d", "dest": "/home/centos/.quickstart/hosts", "failed": false, "gid": 1002, "group": "centos", "md5sum": "2afb8ae2737ae5d2ef3d6ca25973a0f2", "mode": "0664", "owner": "centos", "secontext": "unconfined_u:object_r:user_home_t:s0", "size": 359, "src": "/home/centos/.ansible/tmp/ansible-tmp-1513325119.82-66400531597808/source", "state": "file", "uid": 1002}

TASK [tripleo-inventory : regenerate ssh config] *******************************
task path: /home/centos/.quickstart/tripleo-quickstart/roles/tripleo-inventory/tasks/inventory.yml:132
Friday 15 December 2017 13:35:20 +0530 (0:00:00.634) 0:00:43.405 *******
fatal: [localhost -> localhost]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: \"hostvars['undercloud']\" is undefined"}

Workaround:-
Either remove default workdir ~/.quickstart or use another working directory by specifying -w <working dir>

This is likely caused by: https://review.openstack.org/#/c/525237/

Expected result
===============
Second run of quickstart should succeed.

Changed in tripleo:
milestone: none → rocky-1
importance: Undecided → Medium
status: New → Triaged
tags: added: quickstart
Lucas hua (lucas.hua)
Changed in tripleo:
assignee: nobody → binhong.hua (binhong.hua)
Lucas hua (lucas.hua)
Changed in tripleo:
status: Triaged → In Progress
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → train-1
Revision history for this message
Laurent Dumont (baconpackets) wrote :

Out of curiosity, what is the status of this? I was hit with https://bugs.launchpad.net/tripleo/+bug/1692976 and had to start from scratch by deleting the .quickstart folder.

Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.opendev.org/680177

Changed in tripleo:
assignee: Lucas hua (lucas.hua) → Oliver Walsh (owalsh)
tags: added: idempotency
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by Oliver Walsh (<email address hidden>) on branch: master
Review: https://review.opendev.org/680177

Changed in tripleo:
milestone: victoria-1 → victoria-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers