Skip to content

Commit

Permalink
Configure Udev rules only if data disks are attached.
Browse files Browse the repository at this point in the history
  • Loading branch information
SRIKKANTH authored and LiliDeng committed Apr 29, 2024
1 parent 0a76ca0 commit 40425aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lisa/sut_orchestrator/azure/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,9 @@ def _get_scsi_data_disks(self) -> List[str]:
files = ls_tools.list("/dev/disk/azure/scsi1", sudo=True)

azure_scsi_disks = []
if len(files) == 0:
assert self._node.capability.disk
assert isinstance(self._node.capability.disk.max_data_disk_count, int)
if len(files) == 0 and self._node.capability.disk.data_disk_count != 0:
os = self._node.os
# https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-device-names-problems#get-the-latest-azure-storage-rules # noqa: E501
# there are known issues on ubuntu 16.04 and rhel 9.0
Expand Down

0 comments on commit 40425aa

Please sign in to comment.