Azure/WALinuxAgent

[BUG] DVD resource can't be mounted

cacheguard opened this issue · 3 comments

Hi,

We are trying to certify our Network Virtual Appliance on Azure... It goes without saying that the certification process is archaic and really not friendly... Anyway! We've finally been able to run the Azure Linux Agent on our VM but it's not yet the end of our misery. The ovf-env.xml can't be read by the agent because the DVD can't be mounted. Below errors we got:

2023-06-02T11:39:01.390788Z ERROR Daemon Daemon Failed to mount resource disk [ResourceDiskError] unable to detect disk topology

2023-06-02T11:39:01.390863Z ERROR Daemon Daemon Event: name=WALinuxAgent, op=ActivateResourceDisk, message=[ResourceDiskError] unable to detect disk topology, duration=0

2023-06-02T11:39:01.420147Z ERROR Daemon Daemon Provisioning failed: [ProtocolError] [CopyOvfEnv] Error reading file /mnt/cdrom/secure/ovf-env.xml: [Errno 2] No such file or directory: '/mnt/cdrom/secure/ovf-env.xml' (37.84s)

We confirm that vfat, udf and iso9660 modules are all presents is our OS (which is based on a Linux kernel 4.19). We use the latest Agent version at the time of writing (ie. v2.9.0.4). Did we miss something? Does the UDF filesystem requires some proprietary firmware/code than we need to include in our OS?

Below the output of the command mount -v -o ro -t udf,iso9660,vfat /dev/sr0 /mnt/cdrom/secure/:
mount: /mnt/cdrom/secure: no medium found on /dev/sr0.

The dmesg outtput below:

[ 4686.959129] print_req_error: I/O error, dev sr0, sector 8
[ 4686.959131] Buffer I/O error on dev sr0, logical block 1, async page read

Any idea about what's going on? Maybe this is not a bug as Azure no longer connect a DVD to the VM... Nobody knows as Microsoft documentations are usually outdated and technical support almost inexistent (even for basic questions)...

Best Regards,
The CacheGuard development Team

@anhvoms - could you take a look?

Hi,

We can't reproduce the error... Is there a relation between the "Requires custom ARM template for deployment" and the DVD mounting? The new image has been published (in preview mode) by selecting the option "Requires custom ARM template for deployment" on the Azure partner portal.

Thank you

As we can't reproduce the error, we can close the issue with a BIG "?"... (very strange).