Bug 1954707

Summary: Azure VHD fails to install on gen2 NDv2 instances
Product: OpenShift Container Platform Reporter: Jonathan Edwards <joedward>
Component: RHCOSAssignee: Micah Abbott <miabbott>
Status: CLOSED UPSTREAM QA Contact: Michael Nguyen <mnguyen>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.7CC: behoward, bgilbert, dhellard, dornelas, jligon, joedward, miabbott, mrussell, nstielau, openshift-bugs-escalate
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-11 23:12:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jonathan Edwards 2021-04-28 16:11:53 UTC
Instantiating a RHCOS worker node into an existing 4.7 cluster using a Gen 2 Azure NDv2 instance fails complaining that it can't find the ATA virtual CD device:
---
ignition[1120]: failed to open config device: open /dev/disk/by-id/ata-Virtual_CD: no such file or directory
---
it appears that we assume an ATA IDE based CD rom device:
https://github.com/coreos/ignition/blob/master/internal/providers/azure/azure.go#L37-L40

however gen 2 instances on Azure use the virtual scsi devices:
https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/plan/should-i-create-a-generation-1-or-2-virtual-machine-in-hyper-v#what-are-the-advantages-of-using-generation-2-virtual-machines

Comment 4 Benjamin Gilbert 2021-04-29 22:32:35 UTC
Upstream RFE for Ignition support of Gen2 instances: https://github.com/coreos/ignition/issues/1194

Comment 6 Benjamin Gilbert 2021-05-11 23:12:01 UTC
Ignition currently does not support Azure Gen 2 VMs.  An RFE has been filed upstream in https://github.com/coreos/ignition/issues/1194 and we expect to deliver this functionality in a future release.  Thanks for reporting.