Bug 1859037

Summary: [Azure][WALA]Cannot create /dev/disk/azure/resource softlinks in Gen2 VM
Product: Red Hat Enterprise Linux 8 Reporter: Yuxin Sun <yuxisun>
Component: WALinuxAgentAssignee: Vitaly Kuznetsov <vkuznets>
Status: CLOSED ERRATA QA Contact: Yuxin Sun <yuxisun>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: huzhao, ribarry, vkuznets, xiachen, yacao
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: WALinuxAgent-2.2.46-8.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 02:33:37 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 Yuxin Sun 2020-07-21 07:57:07 UTC
Description of problem:
In Gen2 VM, the 66-azure-storage.rules cannot create /dev/disk/azure/resource and /dev/disk/azure/root softlinks.

Version-Release number of selected components (if applicable):
WALinuxAgent-2.2.46-7.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. Create a Gen2 VM in Azure
2. Run "ll /dev/disk/azure/"

Actual results:
Cannot show "root" "resource" disks

# ll /dev/disk/azure/
total 0
drwxr-xr-x. 2 root root 180 Jul 21 15:30 scsi0

Expected results: 
Can show "root" "resource" disks. Like in Gen1:
# ll /dev/disk/azure/
lrwxrwxrwx. 1 root root  9 Apr 23 18:12 resource -> ../../sdb
lrwxrwxrwx. 1 root root 10 Apr 23 18:12 resource-part1 -> ../../sdb1
lrwxrwxrwx. 1 root root  9 Apr 23 18:12 root -> ../../sda
lrwxrwxrwx. 1 root root 10 Apr 23 18:12 root-part1 -> ../../sda1
lrwxrwxrwx. 1 root root 10 Apr 23 18:12 root-part2 -> ../../sda2
lrwxrwxrwx. 1 root root 10 Apr 23 18:12 root-part3 -> ../../sda3
lrwxrwxrwx. 1 root root 10 Apr 23 18:12 root-part4 -> ../../sda4

Comment 1 Yuxin Sun 2020-07-21 08:02:52 UTC
Upstream fix: https://github.com/Azure/WALinuxAgent/pull/1954

Comment 11 errata-xmlrpc 2020-11-04 02:33:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (WALinuxAgent bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4636