Skip to content

iSCSI paths will be logged out / path detection failure #4216

@svenvogel

Description

@svenvogel
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Managed Storage
CLOUDSTACK VERSION
4.13.1, 4.14
CONFIGURATION
OS / ENVIRONMENT
SUMMARY

We found a Bug into the PR #3819. Sometimes hypervisor (Linux, KVM) detect the partitions on the attached disk. This leads to additional paths. Since we only check the path of the disk in the XML of the virtual machine and compare them with the "/dev/disk/by-path" we find additional paths.

lrwxrwxrwx. 1 root root 10 Jul 17 16:52 /dev/disk/by-path/ip-10.24.50.230:3260-iscsi-iqn.2010-01.com.solidfire:nhjj.root-1540.1750-lun-0 -> ../../sddm
lrwxrwxrwx. 1 root root 11 Jul 17 16:52 /dev/disk/by-path/ip-10.24.50.230:3260-iscsi-iqn.2010-01.com.solidfire:nhjj.root-1540.1750-lun-0-part1 -> ../../sddn1
   <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/disk/by-path/ip-10.24.50.230:3260-iscsi-iqn.2010-01.com.solidfire:nhjj.root-1540.1750-lun-0'/>
      <backingStore/>
      <target dev='vda' bus='virtio'/>
      <serial>154b1f1d2c5d476cae31</serial>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
STEPS TO REPRODUCE
1. use a managed storage like Solidfire
2. use "partprobe" to make partitions visible, look into "/dev/disk/by-path" -> "-lun-0-part1"
3. start a virtual machine, or try to start them
4. wait for the cleanup job which kill the disk of the virtual machine
EXPECTED RESULTS
dont look for other paths than the correct one in the XML, dont logout other paths
ACTUAL RESULTS
logging out the disk from virtual machines they are running

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions