[2.28.0] crashes with error: environment.d/51-pip-and-virutalenv-default.bash: line 5: GenericCloud: unbound variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
diskimage-builder |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
We are running diskimage-builder on docker container based on CentOS7. However, version 2.28.0 is crashing when ran with parameters seen below. The 2.24.0 version on the same container is working fine.
```
> ELEMENTS_
...
2019-10-14 15:56:52.198 | ++ '[' -z '' ']'
2019-10-14 15:56:52.198 | ++ '[' centos7 == ubuntu ']'
2019-10-14 15:56:52.198 | ++ '[' centos7 == debian ']'
2019-10-14 15:56:52.198 | ++ '[' centos7 == fedora ']'
2019-10-14 15:56:52.198 | ++ '[' centos7 == centos7 ']'
2019-10-14 15:56:52.198 | ++ DIB_PYTHON_
2019-10-14 15:56:52.198 | ++ '[' -z 2 ']'
2019-10-14 15:56:52.198 | ++ export DIB_PYTHON_VERSION
2019-10-14 15:56:52.198 | ++ export DIB_PYTHON=python2
2019-10-14 15:56:52.198 | ++ DIB_PYTHON=python2
2019-10-14 15:56:52.198 | dib-run-parts Sourcing environment file /tmp/dib_
2019-10-14 15:56:52.201 | + source /tmp/dib_
2019-10-14 15:56:52.201 | ++ export DIB_DISABLE_
2019-10-14 15:56:52.201 | ++ DIB_DISABLE_
2019-10-14 15:56:52.201 | dib-run-parts Sourcing environment file /tmp/dib_
2019-10-14 15:56:52.204 | + source /tmp/dib_
2019-10-14 15:56:52.204 | ++ [[ centos7 =~ (centos|rhel) ]]
2019-10-14 15:56:52.204 | ++ [[ GenericCloud -ge 8 ]]
2019-10-14 15:56:52.204 | /tmp/dib_
2019-10-14 15:56:52.513 | INFO diskimage_
```
> rpm -q centos-release
centos-
> pip show diskimage-builder
---
Metadata-Version: 2.1
Name: diskimage-builder
Version: 2.28.0
Summary: Golden Disk Image builder.
Home-page: https:/
Author: OpenStack
Author-email: <email address hidden>
Installer: pip
License: Apache License (2.0)
Location: /usr/lib/
Requires: Babel, PyYAML, networkx, stevedore, six, pbr, hacking
Classifiers:
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Environment :: Console
Entry-points:
[console_scripts]
dib-block-device = diskimage_
disk-image-create = diskimage_
element-info = diskimage_
ramdisk-
[diskimage_
fstab = diskimage_
local_loop = diskimage_
lvm = diskimage_
mkfs = diskimage_
mount = diskimage_
partitioning = diskimage_
[diskimage_
test_a = diskimage_
test_b = diskimage_
This should be fixed with https:/ /review. opendev. org/#/c/ 688321/, which i'll release with 2.28.2