Nailgun agent finds dm multipath disks but then filters them as they've got 'virtual' in DEVPATH.
from agent.log:
DEBUG -- : Device sda udev properties: {"DEVNAME"=>"/dev/sda", "ID_SERIAL_RAW"=>"33000000100000001", "ID_SCSI"=>"1", "MPATH_SBIN_PATH"=>"/sbin", "UDEV_LOG"=>"3", "ID_SCSI_SERI AL"=>"beaf11", "MINOR"=>"0", "MAJOR"=>"8", "ID_PATH"=>"pci-0000:02:01.1-ip-192.168.66.1:3260-iscsi-iqn.2009-02.com.example:for.all-lun-1", "ID_SERIAL_SHORT"=>"3000000100000001", "ID_VENDOR"=>"IET", "SUBSYSTEM"=>"block", "DEVLINKS"=>"/dev/ block/8:0 /dev/disk/by-id/scsi-33000000100000001 /dev/disk/by-path/pci-0000:02:01.1-ip-192.168.66.1:3260-iscsi-iqn.2009-02.com.example:for.all-lun-1 /dev/disk/by-id/wwn-0x3000000100000001", "ID_WWN"=>"0x3000000100000001", "ID_REVISION"=>" 0001", "ID_VENDOR_ENC"=>"IET\\x20\\x20\\x20\\x20\\x20", "DEVPATH"=>"/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:01.1/host0/session1/target0:0:0/0:0:0:1/block/sda", "ID_WWN_WITH_EXTENSION"=>"0x3000000100000001", "ID_SERIAL"=>"330 00000100000001", "DEVTYPE"=>"disk", "ID_BUS"=>"scsi", "ID_TYPE"=>"disk", "ID_MODEL_ENC"=>"VIRTUAL-DISK", "ID_MODEL"=>"VIRTUAL-DISK", "ID_PART_TABLE_TYPE"=>"gpt"}
DEBUG -- : Trying to find out if device sda is removable or not
DEBUG -- : Device sda removable parameter: "0"
DEBUG -- : Device sda seems to be appropriate
DEBUG -- : Getting udev properties for device: sdb
DEBUG -- : Device sdb udev properties: {"DEVNAME"=>"/dev/sdb", "ID_SERIAL_RAW"=>"33000000100000001", "ID_SCSI"=>"1", "MPATH_SBIN_PATH"=>"/sbin", "UDEV_LOG"=>"3", "ID_SCSI_SERI AL"=>"beaf11", "MINOR"=>"16", "MAJOR"=>"8", "ID_PATH"=>"pci-0000:02:01.3-ip-192.168.55.1:3260-iscsi-iqn.2009-02.com.example:for.all-lun-1", "ID_SERIAL_SHORT"=>"3000000100000001", "ID_VENDOR"=>"IET", "SUBSYSTEM"=>"block", "DEVLINKS"=>"/dev /block/8:16 /dev/disk/by-id/scsi-33000000100000001 /dev/disk/by-path/pci-0000:02:01.3-ip-192.168.55.1:3260-iscsi-iqn.2009-02.com.example:for.all-lun-1 /dev/disk/by-id/wwn-0x3000000100000001", "ID_WWN"=>"0x3000000100000001", "ID_REVISION"= >"0001", "ID_VENDOR_ENC"=>"IET\\x20\\x20\\x20\\x20\\x20", "DEVPATH"=>"/devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:01.3/host1/session3/target1:0:0/1:0:0:1/block/sdb", "ID_WWN_WITH_EXTENSION"=>"0x3000000100000001", "ID_SERIAL"=>"3 3000000100000001", "DEVTYPE"=>"disk", "ID_BUS"=>"scsi", "ID_TYPE"=>"disk", "ID_MODEL_ENC"=>"VIRTUAL-DISK", "ID_MODEL"=>"VIRTUAL-DISK", "ID_PART_TABLE_TYPE"=>"gpt"}
DEBUG -- : Trying to find out if device sdb is removable or not
DEBUG -- : Device sdb removable parameter: "0"
DEBUG -- : Device sdb seems to be appropriate
DEBUG -- : Getting udev properties for device: dm-0
DEBUG -- : Device dm-0 udev properties: {"DEVNAME"=>"/dev/dm-0", "MPATH_SBIN_PATH"=>"/sbin", "UDEV_LOG"=>"3", "MINOR"=>"0", "MAJOR"=>"253", "DM_UDEV_RULES_VSN"=>"2", "DM_SBIN_ PATH"=>"/sbin", "DM_SUSPENDED"=>"0", "SUBSYSTEM"=>"block", "DM_NAME"=>"mpatha", "DEVLINKS"=>"/dev/mapper/mpatha /dev/disk/by-id/dm-name-mpatha /dev/disk/by-id/dm-uuid-mpath-33000000100000001 /dev/block/253:0", "DM_UUID"=>"mpath-3300000010 0000001", "DM_UDEV_DISABLE_LIBRARY_FALLBACK_FLAG"=>"1", "DEVPATH"=>"/devices/virtual/block/dm-0", "DM_ACTIVATION"=>"1", "DM_UDEV_PRIMARY_SOURCE_FLAG"=>"1", "DEVTYPE"=>"disk", "ID_PART_TABLE_TYPE"=>"gpt"}
DEBUG -- : Trying to find out if device dm-0 is removable or not
DEBUG -- : Device dm-0 removable parameter: "0"
DEBUG -- : Device dm-0 seems to be appropriate
It is not enough to fix this in nailgun-agent. If we fix this in the context of nailgun-agent, nailgun will think of them as different disks while it is not the case. First, we need to change disk identification process. Currently we do not have any de-duplication mechanism. Let's move it to 8.0.