Nailgun agent unreliably identifies disks, causes inconsistency in volume manager
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Alexander Gordeev |
Bug Description
Nailgun agent uses '/dev/disk/
This issue leads to inconsistent disks configurations on node when it reboots from bootstrap into operating system after deployment. This, in turn, can lead to issues with volumes creation and representation [3 - see related bugs].
On the other hand, there's an 'extra' parameter in the disk configuration reported by nailgun agent, which seems more reliable (it lists '/dev/disk/by-id/' entries for the device).
I propose to refactor volume manager to use the 'extra' field as more reliable identifier for the disk.
[1] https:/
[2] https:/
[3] https:/
description: | updated |
tags: | added: feature |
Changed in fuel: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Fuel Python Team (fuel-python) |
milestone: | none → 7.0 |
tags: | added: blocked-by-bp feature-image-based ibp |
tags: | added: module-nailgun |
Changed in fuel: | |
assignee: | Oleg S. Gelbukh (gelbuhos) → Aleksandr Gordeev (a-gordeev) |
tags: | added: on-verification |
The example of unreliable identification of disk via '/dev/disk/ by-path/ ':
lrwxrwxrwx 1 root root 9 Jul 8 16:35 /dev/disk/ by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0 -> ../../sdb by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0-part1 -> ../../sdb1 by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0-part2 -> ../../sdb2 by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0-part3 -> ../../sda3 by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0-part4 -> ../../sda4 by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Jul 8 16:32 /dev/disk/
lrwxrwxrwx 1 root root 10 Jul 8 16:32 /dev/disk/
lrwxrwxrwx 1 root root 10 Jul 8 16:32 /dev/disk/
lrwxrwxrwx 1 root root 10 Jul 8 16:32 /dev/disk/
lrwxrwxrwx 1 root root 10 Jul 8 16:32 /dev/disk/
In this case, initially /dev/sda/ was identified by /dev/disk/ by-path/ pci-0000: 00:01.1- scsi-0: 0:0:0, but after the reboot that path was taken over by /dev/sdb.