tripleo scripts should be kept as portable as possible

Bug #1784648 reported by Sorin Sbarnea on 2018-07-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sorin Sbarnea

Bug Description

Bash scripts used by tripleo like or 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

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) on 2018-07-31
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

Change abandoned by Sorin Sbarnea (<email address hidden>) on branch: master
Reason: life-too-short to chaise this one

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

Other bug subscribers