Azure / Azure/WALinuxAgent

[BUG] udev path mappings for data disks broken in Rocky Linux 9.1 image

Open
#2,987 4 comments 0 reactions 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

**Describe the bug: A clear and concise description of what the bug is.**

Firstly, I'm not sure if this is an image issue, or an issue with WALinuxAgent. Trying here first.

Summary: On image `erockyenterprisesoftwarefoundationinc1653071250513:rockylinux-9:rockylinux-9:9.1.20230215` (from the Azure marketplace), the mapping of data disks to paths under /dev/disk/azure/ is not happening. In the example below, /dev/sda is a 128GiB data disk which is not mapped under /dev/disk/azure/scsi1. Instead, it seems to map the disk directly to /dev/disk/azure. If there are multiple data disks, only one of them gets mapped, the others are not linked at all.

```
[myuser@svr000000 ~]$ ls -l /dev/disk/azure
lrwxrwxrwx. 1 root root 6 Nov 18 05:54 /dev/disk/azure -> ../sdc

[myuser@svr000000 ~]$ sudo lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 48G 0 disk
├─sda1 8:1 0 100M 0 part /boot/efi
├─sda2 8:2 0 1000M 0 part /boot
├─sda3 8:3 0 7.8G 0 part /
├─sda4 8:4 0 4M 0 part
└─sda5 8:5 0 1M 0 part
sdb 8:16 0 150G 0 disk
└─sdb1 8:17 0 150G 0 part /mnt
sdc 8:32 0 128G 0 disk
sr0 11:0 1 634K 0 rom

[myuser@svr000000 ~]$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.1 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.1 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="myuser-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.1"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.1"
```
Comparatively, here's the equivalent setup but with Rocky 8.7 (image urn: `erockyenterprisesoftwarefoundationinc1653071250513:rockylinux:free:8.7.20230215`)
```
[myuser@svr000000 ~]$ sudo ls -l /dev/disk/azure/scsi1/
total 0
lrwxrwxrwx. 1 root root 12 Nov 18 06:10 lun0 -> ../../../sdc

[myuser@svr000000 ~]$ sudo lsblk -a
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 48G 0 disk
├─sda1 8:1 0 100M 0 part /boot/efi
├─sda2 8:2 0 1000M 0 part /boot
├─sda3 8:3 0 1M 0 part
└─sda4 8:4 0 46.9G 0 part /
sdb 8:16 0 150G 0 disk
└─sdb1 8:17 0 150G 0 part /mnt
sdc 8:32 0 128G 0 disk
sr0 11:0 1 628K 0 rom

[myuser@svr000000 ~]$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.7 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.7 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="myuser-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.7"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"
```

**Distro and WALinuxAgent details (please complete the following information):**
- Distro and Version: Rocky Linux 9.1
- WALinuxAgent version:
```
WALinuxAgent-2.7.0.6 running on rocky 9.1
Python: 3.9.14
Goal state agent: 2.9.1.1
```

**Additional context**
Updating to Rocky Linux 9.2 (via. `sudo yum update && sudo yum upgrade`) does not help. Updating the WALinuxAgent to 2.9.1.1 (via. `sudo python setup.py install --force`) also does not help.

**Log file attached**
N/A

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.