Unable to build centos 8.2 qcow2

Clark Boylan cboylan at sapwetik.org
Mon Nov 9 21:38:16 UTC 2020


On Mon, Nov 9, 2020, at 1:06 AM, Akshay 346 wrote:
>  
> Hello All,
> 
>  
> 
> I need to build centos 8.2 image using disk-image-builder.
> 
> But by setting DIB_RELEASE with 8, it by default uses centos8.1 as base 
> cloud image. How can I use centos 8.2 image?
> 
>  
> 
> Also I tried setting DIB_CLOUD_IMAGES having my local path to centos 
> 8.2 qcow2 but it appends centos8.1 name at the defined path. 
> 
> i.e 
> /path/to/my/dir/centos8.2/CentOS-8-GenericCloud-8.1.1911-20200113.3.x86_64.qcow2 
> 
>  
> 
> Please suggest how may I build centos 8.2 qcow2.

Looking at the dib code [0] that does the image selection the other variables at play are $DIB_FLAVOR and $ARCH. If I set DIB_RELEASE=8, DIB_FLAVOR=GenericCloud, and ARCH=x86_64 then running `curl -s https://cloud.centos.org/centos/${DIB_RELEASE}/${ARCH}/images/ | grep -o "CentOS-.[^>]*${DIB_FLAVOR}-.[^>]*.qcow2" | sort -r | head -1` produces "CentOS-8-GenericCloud-8.2.2004-20200611.2.x86_64.qcow2".

I suspect that means if I were to run a build it would be based on that image. Can you double check you aren't setting DIB_FLAVOR to another value that may not support 8.2 yet or perhaps another ARCH? Also, if you can share logs from the build via a paste service that would be helpful in debugging.

One other thing to consider is that you can use the centos-minimal element instead which will build an image from scratch using yum/dnf.

> 
>  
> 
> Be safe
> 
> Akshay

[0] https://opendev.org/openstack/diskimage-builder/src/branch/master/diskimage_builder/elements/centos/root.d/10-centos-cloud-image#L50-L56



More information about the openstack-discuss mailing list