Skip to content

Commit

Permalink
workaround for mariner 3.0, no /dev/disk/azure/scsi1 created
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Sep 19, 2024
1 parent 81eda2e commit 12bc13f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lisa/sut_orchestrator/azure/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,10 +1649,12 @@ def _get_scsi_data_disks(self) -> List[str]:
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
# there are known issues on ubuntu 16.04, rhel 9.0 and mariner 3.0
# try to workaround it
if (isinstance(os, Ubuntu) and os.information.release <= "16.04") or (
isinstance(os, Redhat) and os.information.release >= "9.0"
if (
(isinstance(os, Ubuntu) and os.information.release <= "16.04")
or (isinstance(os, Redhat) and os.information.release >= "9.0")
or isinstance(os, CBLMariner)
):
self._log.debug(
"download udev rules to construct a set of "
Expand Down

0 comments on commit 12bc13f

Please sign in to comment.