diskimage-builder: fails to build CentOS 7 image

Bug #1892113 reported by Martin Chlumsky
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
diskimage-builder
New
Undecided
Unassigned

Bug Description

This bug was originally filed in the octavia project: https://storyboard.openstack.org/#!/story/2008030

Building CentOS 7 image fails because the image url is incorrect.

2020-08-18 21:43:04.251 | > GET /centos/7/images/CentOS-7-x86_64-7.qcow2.xz HTTP/1.1
2020-08-18 21:43:04.251 | > Host: cloud.centos.org
2020-08-18 21:43:04.251 | > User-Agent: curl/7.69.1
2020-08-18 21:43:04.251 | > Accept: */*
2020-08-18 21:43:04.251 | >
2020-08-18 21:43:04.293 | * Mark bundle as not supporting multiuse
2020-08-18 21:43:04.293 | < HTTP/1.1 404 Not Found

Digging through the debug output (attached) it seems that the variable is set to "7":

2020-08-19 00:41:18.905 | ++ /tmp/dib_build.4ZMxOJGs/hooks/environment.d/09-centos7-distro-name.bash:source:2 : export DIB_FLAVOR=7
2020-08-19 00:41:18.907 | ++ /tmp/dib_build.4ZMxOJGs/hooks/environment.d/09-centos7-distro-name.bash:source:2 : DIB_FLAVOR=7

But it needs to be either not be set or set to "GenericCloud" as per this line:

https://github.com/openstack/diskimage-builder/blob/master/diskimage_builder/elements/centos/root.d/10-centos-cloud-image#L50

The final url should be: https://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz

Revision history for this message
Martin Chlumsky (martin-chlumsky) wrote :
Revision history for this message
Carlos Goncalves (cgoncalves) wrote :

Please note that diskimage-builder is capped to 2.30.0 in stable/stein requirements.

https://github.com/openstack/requirements/blob/8dd9d2c04c9b0f8a9cc0c0baad5112f2180f95b7/upper-constraints.txt#L511-L515

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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