pvsadm image build fails for redhat images with error Error: failed while preparing the image for rhel distro, err: failed to growpart for the device: /dev/loop0 and partition: 2, exitcode: 1, stdout: NOCHANGE: partition 2 is size 2097152. it cannot be grown , err: #613
Labels
kind/bug
Categorizes issue or PR as related to a bug.
What happened: Currently using pvsadm tool to build rhel 9-4 power images and is currently failing as its not able to expand the /dev/loop devices.
cloud-utils-growpart is already installed on the system and and temporary filesystem of 300GB has been atatched.
Command used :
pvsadm image qcow2ova --image-name <image-name> --image-url ./<rhel-9-4-qcow2> --image-dist rhel --image-size 100 --rhn-user <rhel-username> --rhn-password <rhel-password> --os-password <password> --temp-dir /rhel_tmp --prep-template <template-script>
What you expected to happen: Resolve the issue as the /dev/loop devices are getting created automatically on every run and its failing to expand .
How to reproduce it (as minimally and precisely as possible):
Try building a rhel image using pvsadm tool
pvsadm image qcow2ova --image-name <image-name> --image-url ./<rhel-9-4-qcow2> --image-dist rhel --image-size 100 --rhn-user <rhel-username> --rhn-password <rhel-password> --os-password <password> --temp-dir /rhel_tmp --prep-template <template-script>
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: