tripleo scripts should be kept as portable as possible

Bug #1784648 reported by Sorin Sbarnea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Confirmed
Low
Unassigned

Bug Description

Bash scripts used by tripleo like quickstart.sh or reproducer.sh should limit their use of new bash syntax and keep using old but portable ways, which work on most platforms.

Example of less portable code:
* &>> is bash4 only, use old 2>&1 >> instead.
* avoid using `-v VAR` to test if a variable exists, use old [[ -z "${FOO:-}" ]] - see https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash

BSD tools (non GNU) like bash, sed can have a slightly different option across platform. For example MacOS has a bash version 3.4 even on 10.14. Running reproducer from a BSD machine should be possible as long deployment takes place on a remote VIRSHOST or an openstack cloud.

Sorin Sbarnea (ssbarnea)
Changed in tripleo:
assignee: nobody → Sorin Sbarnea (ssbarnea)
status: New → In Progress
Changed in tripleo:
milestone: none → rocky-rc1
importance: Undecided → Medium
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart-extras (master)

Change abandoned by Sorin Sbarnea (<email address hidden>) on branch: master
Review: https://review.openstack.org/581012
Reason: life-too-short to chaise this one

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
Sorin Sbarnea (ssbarnea)
Changed in tripleo:
assignee: Sorin Sbarnea (ssbarnea) → nobody
importance: Medium → Low
status: In Progress → Confirmed
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
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

Remote bug watches

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