image with rhel element can't be built if DIB_RHSM_* variables aren't set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Released
|
Medium
|
Ivan Berezovskiy |
Bug Description
If you use 'rhel' element for building not-rhel image (CentOS, for example) you shouldn't export parameters like DIB_RHSM_USER, DIB_RHSM_PASSWORD and etc. So, if this parameters are unset, the image build fails with error:
/tmp/in_
Now all scripts have 'set -u', so if any parameter isn't set but it's used in script, then script running fails.
So, I suggest to add line in 'rhel /pre-install.
export DIB_RHSM_
If 'DIB_RHSM_USER' will not set, script will not enter in 'if' section because first condition will be false and another variables will not be checked.
It will help to use rhel element with non-rhel images like CentOS.
Changed in diskimage-builder: | |
importance: | Undecided → Medium |
Changed in diskimage-builder: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/93387
Review: https:/