zed images can't be build (Ubuntu/CentOS).
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla |
Incomplete
|
Undecided
|
Gaël THEROND |
Bug Description
Building ZED release images following the documentation isn't working.
If you try to use fully public and native way to build the images for the zed release, the process fails with the following bug: https:/
** HOW TO REPRODUCE **
1°/ - Generate a default kolla-build.conf configuration file.
2°/ - Use Ubuntu or CentOS as base.
3°/ - Run a build on Windows Docker Desktop as for: https:/
4°/ - kolla-requireme
This run was also tested on a classical jenkins job over a ubuntu 22.04.4 LTS host with the same result.
** WHAT HAPPENS **
It happens because when building the plugins archive, some images miss the whole item.source dict during the make_an_archive() function call on plugin_am assignation for images plugins archive build.
As a result, because make_an_archive() do call for the process_source() function that check for key value without checking if key does itself exist, the function call throw an unhandled error exception over the missing key.
** HOW TO PATCH **
The conditional check of the key within the process_source() function should ensure the key does exist AND ensure the conditional value.
We can achieve both using proper dict key check and retrieval using the .get() notation as it either return the dict key value OR None if the key doesn't exist which itself is interpreted as a bool by the conditional check.
Changed in kolla: | |
assignee: | nobody → Gaël THEROND (gtherond) |
Fix proposed to branch: stable/zed /review. opendev. org/c/openstack /kolla/ +/913786
Review: https:/