Skip to content

bug/feat: createhdds.py does not support use of -n / --nextrel option #6

@tcooper

Description

@tcooper

Description

Fedora version (and repository and release patterns) of createhdds.py supports use of -n / --nextrel option to control which set of virt-install images are built. While there was only one (major) version of Rocky Linux we avoided fixing this issue be removing the multi-version content from hdds.json.

I think Fedora uses fedfind to determine what the current (ie. CURREL) of Fedora is and then uses decrement specifiers in their hdds.json to determine at run-time which specific repository and kickstart to use when building virt-install images with createhdds.py.

Now that Rocky will (soon) have two major versions it's time to implement how we want to do this in our version of createhdds. Consideration when fixing this bug and adding this feature sure be paid to how we access these assets when running in openQA.

Here are examples of the use of createhdds.py that demonstrate the issue (lack of implementation) as a bug...

[rocky@openqa-dev fixed]$ /home/rocky/createhdds/createhdds.py -t all -n 8
INFO:createhdds:Creating image disk_rocky9_minimal_x86_64.qcow2...[1/7]
libvirt: QEMU Driver error : Domain not found: no domain with matching name 'createhdds'
INFO:createhdds:Install starting...
ERROR    Error validating install location: Could not find an installable distribution at URL 'https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os': The URL could not be accessed, maybe you mistyped?

The location must be the root directory of an install tree.
See virt-install man page for various distro examples.
virt-install command virt-install --disk size=15,path=disk_rocky9_minimal_x86_64.qcow2.tmp --os-variant rocky8-unknown -x inst.ks=file:/minimal.ks --initrd-inject /home/rocky/createhdds/minimal.ks --location https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os --name createhdds --memory 3072 --noreboot --wait -1 --graphics none --extra-args console=ttyS0 --network user failed!
[rocky@openqa-dev fixed]$ /home/rocky/createhdds/createhdds.py -t all -n 9
INFO:createhdds:Creating image disk_rocky9_minimal_x86_64.qcow2...[1/7]
libvirt: QEMU Driver error : Domain not found: no domain with matching name 'createhdds'
INFO:createhdds:Install starting...
ERROR    Error validating install location: Could not find an installable distribution at URL 'https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os': The URL could not be accessed, maybe you mistyped?

The location must be the root directory of an install tree.
See virt-install man page for various distro examples.
virt-install command virt-install --disk size=15,path=disk_rocky9_minimal_x86_64.qcow2.tmp --os-variant rocky8-unknown -x inst.ks=file:/minimal.ks --initrd-inject /home/rocky/createhdds/minimal.ks --location https://download.rockylinux.org/pub/rocky/9/BaseOS/x86_64/os --name createhdds --memory 3072 --noreboot --wait -1 --graphics none --extra-args console=ttyS0 --network user failed!

In these cases we should attempt to both build different named virt-install images and we should access different repository locations to pull the initial ramdisk and kernel for booting, later we should also select the appropriate version specific kickstart file for the virt-install image in question.

Expectation

createhdds.py builds virt-install images for any configured major release, selected with the -n <rel> or --nextrel <rel> command line option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions