fastpath install duplicates iSCSI initiator names, blocking iSCSI HW
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
High
|
Unassigned | ||
cloud-images |
Fix Released
|
Undecided
|
Unassigned | ||
curtin |
Triaged
|
Medium
|
Nish Aravamudan | ||
maas-images |
Triaged
|
Medium
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* All Xenial cloud images currently share a fixed iSCSI Initiator Name by default when booted.
* The Initiator Name is intended to be a globally unique identifier of a given initiator.
[Test Case]
* Start two instances (LXD, VMs) using cloud images built using the current livecd-rootfs.
- Both instances will have the same InitiatorName in /etc/iscsi/
* Start two instances (LXD, VMs) using cloud images built using an updated livecd-rootfs.
- The two instances should have distinct InitiatorName values in /etc/iscsi/
* Alternatively, the resulting cloud image from using the old and new livecd-rootfs can be compared. In the older case, /etc/iscsi/
[Regression Potential]
* It is currently an error that all cloud images of a given version share the same initiator name. (Even mentioned in the file in question!)
* The likelihood of this regressing any real world iSCSI deployments is very low.
* I imagine the primary source of regressions would be end-users/sysadmins already working around the broken iSCSI behavior in 16.04 by manually rewriting this file. If they rely on detecting the fixed Debian initiatornname to do so, that detection will be broken. However, since in those cases, the initiator name is being generated at boot, that should be sufficient.
* Note that this does not solve the known issue for iSCSI that if a snapshot of a booted image is used to launch more instances, they will share iSCSI initiator names.
---
When using fastpath install, each host is given an identical iSCSI initiator name. This does not happen with Debian install mode. The result is HW SANs that use iSCSI get confused. This is an actual customer/partner issue at present.
It would appear to be fallout of the image based approach to installation.
The /etc/iscsi/
## DO NOT EDIT OR REMOVE THIS FILE!
## If you remove this file, the iSCSI daemon will not start.
## If you change the InitiatorName, existing access control lists
## may reject this initiator. The InitiatorName must be unique
## for each iSCSI initiator. Do NOT duplicate iSCSI InitiatorNames.
InitiatorName=
That is what gets used as the initiator, and is seemingly generated at
package-install time. It needs to be re-created
uniquely per installed host.
Related branches
- Steve Langasek: Pending requested
-
Diff: 30 lines (+18/-0)2 files modifieddebian/changelog (+9/-0)
live-build/ubuntu-cpc/hooks/061-open-iscsi.chroot (+9/-0)
Changed in maas: | |
milestone: | 1.8.0 → 1.9.0 |
Changed in maas: | |
milestone: | 1.9.0 → none |
Changed in curtin: | |
assignee: | nobody → Nish Aravamudan (nacc) |
description: | updated |
This could become a huge issue for certification scenarios.