poor use of variable names in tripleo_upgrade role re: triple_ci variable

Bug #1764476 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Expired
Medium
Unassigned

Bug Description

https://github.com/openstack/tripleo-upgrade/blame/master/README.md#L110

    tripleo_ci: false

Set to true when running the role in the TripleO CI jobs. It avoids losing connectivity to the undercloud by skipping reboot and ssh kill tasks.

whayutin•RDO-CI/TRIPLEO-QUICKSTART/tripleo-upgrade ᐅ egrep -rn tripleo_ci *  master✔ thinkdoe ⌚ 13:50:33
defaults/main.yml:40:tripleo_ci: false
README.md:110: tripleo_ci: false
tasks/update/main.yml:50: when: tripleo_ci|default(false)|bool
tasks/upgrade/main.yml:41: when: tripleo_ci|default(false)|bool
tasks/upgrade/kill_ssh.yaml:6: when: not tripleo_ci
tasks/common/undercloud_validate_upgrade.yaml:93: - not tripleo_ci and (undercloud_reboot or (installed_kernel.stdout != loaded_kernel.stdout) or (installed_ovs.stdout != loaded_ovs.stdout))
tasks/fast-forward-upgrade/create-prepare-scripts.yaml:86: - tripleo_ci|bool
tasks/fast-forward-upgrade/main.yml:78: when: tripleo_ci|default(false)|bool

Variable names should be specific to their function. Instead of using tripleo_ci|bool I would suggest..

undercloud_reboot|bool
ssh_kill|bool

Tags: upgrade
Changed in tripleo:
milestone: none → 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
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
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:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
milestone: victoria-3 → wallaby-1
Changed in tripleo:
milestone: wallaby-1 → wallaby-2
Changed in tripleo:
milestone: wallaby-2 → wallaby-3
Revision history for this message
Marios Andreou (marios-b) wrote :

This is an automated action. Bug status has been set to 'Incomplete' and target milestone has been removed due to inactivity. If you disagree please re-set these values and reach out to us on freenode #tripleo

Changed in tripleo:
milestone: wallaby-3 → none
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tripleo because there has been no activity for 60 days.]

Changed in tripleo:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.