Bug 2203192

Summary: Fedora Images on Azure
Product: [Fedora] Fedora Reporter: Ben Cotton <bcotton>
Component: Changes TrackingAssignee: Major Hayden 🤠 <mhayden>
Status: ASSIGNED --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: amoloney, davdunc, mhayden, thrcka
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2158243    

Description Ben Cotton 2023-05-11 13:35:51 UTC
This is a tracking bug for Change: Fedora Images on Azure
For more details, see: https://fedoraproject.org/wiki/Changes/Fedora_Images_On_Azure

Azure is a massive public cloud and offering an official Fedora Cloud image there would expand Fedora's user base. It also gives Fedora Cloud users more options when selecting public clouds.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Major Hayden 🤠 2023-05-16 14:39:23 UTC
Images are rolling out now: https://koji.fedoraproject.org/koji/buildinfo?buildID=2201154

However, they are dynamic VHDs and not fixed VHDs. I used these commands to fix the image and upload it:

qemu-img convert -f vpc -O raw Fedora-Cloud-Base-Azure-Rawhide-20230516.n.0.x86_64.vhd Fedora-Cloud-Base-Azure-Rawhide-20230516.n.0.x86_64.raw
qemu-img convert -f raw -O vpc -o subformat=fixed,force_size Fedora-Cloud-Base-Azure-Rawhide-20230516.n.0.x86_64.raw Fedora-Cloud-Base-Azure-Rawhide-20230516-fixed.n.0.x86_64.vhd

However, there's a new error about the size:

The VHD for disk 'Fedora-Cloud-Base-Azure-Rawhide-20230516-fixed.n.0.x86_64.vhd' with blob Fedora-Cloud-Base-Azure-Rawhide-20230516-fixed.n.0.x86_64.vhd has an unsupported virtual size of 5120.2265625 MB. The size must be a whole number in (MBs)."

Comment 2 Major Hayden 🤠 2023-05-16 14:50:22 UTC
Ah here's the right path from Azure's docs:

  https://learn.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-generic#resizing-vhds

Comment 3 Major Hayden 🤠 2023-05-16 21:50:43 UTC
Opened an upstream issue with imagefactory to figure out how we can get the code updated:

  https://github.com/redhat-imaging/imagefactory/issues/453

The existing HyperV code seems to do about 1/3 of what we need. I'm not sure if we need a new piece of code for Azure or if we can add to what's already there for HyperV.