Azure / Azure/WALinuxAgent

[BUG] WALinuxAgent is not able to copy ovf-env.xml

Open
#2,864 0 comments 1 reaction 1 assignee Claimed by @anhvoms View on GitHub
provisioning
Dominant language
Python
Stars
581
Forks
397
Avg merge
2d 15h
Merged PRs (30d)
9

Description

waagent reports the failed provision state on VM and therefore I can't backup the VM

```
2023-07-03T15:51:26.042378Z INFO Daemon Using waagent for provisioning
2023-07-03T15:51:26.043253Z INFO Daemon Activate resource disk
2023-07-03T15:51:26.043837Z INFO Daemon Searching gen1 prefix 00000000-0001 or gen2 f8b3781a-1e82-4818-a1c3-63d806ec15bb
2023-07-03T15:51:26.047781Z INFO Daemon Found device: sdb
2023-07-03T15:51:26.053352Z INFO Daemon Resource disk [/dev/sdb1] is already mounted [/mnt/resource]
2023-07-03T15:51:26.054244Z INFO Daemon Clean protocol and wireserver endpoint
2023-07-03T15:51:26.054958Z INFO Daemon Running default provisioning handler
2023-07-03T15:51:26.062176Z INFO Daemon Copying ovf-env.xml
2023-07-03T15:51:26.253925Z WARNING Daemon Mounting dvd failed [retry 1/5, sleeping 5 sec]
2023-07-03T15:51:31.459660Z WARNING Daemon Mounting dvd failed [retry 2/5, sleeping 5 sec]
2023-07-03T15:51:36.645169Z WARNING Daemon Mounting dvd failed [retry 3/5, sleeping 5 sec]
2023-07-03T15:51:41.827221Z WARNING Daemon Mounting dvd failed [retry 4/5, sleeping 5 sec]
2023-07-03T15:51:47.013833Z WARNING Daemon Mounting dvd failed [retry 5/5, sleeping 5 sec]
2023-07-03T15:51:52.020008Z ERROR Daemon Provisioning failed: [ProtocolError] [CopyOvfEnv] Error mounting dvd: [OSUtilError] Failed to mount dvd device
Inner error: [mount -o ro -t udf,iso9660 /dev/sr0 /mnt/cdrom] returned 32: mount: no medium found on /dev/sr0
(1969.19s)
```

**Distro and WALinuxAgent details (please complete the following information):**
- Distro and Version: CentOS Linux release 7.9.2009
- Kernel Version: 6.0.8-1.el7
- WALinuxAgent version: WALinuxAgent-2.2.46

**Additional context**
I am not using cloud-init, I tried to work this around by reading the following issue: https://github.com/Azure/WALinuxAgent/issues/2058
But unfortunately in my case the device isn't mounted at all so the solutions didn't workout for me

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.