A workaround to make sure every MAAS node's IQN unique would be using late_commands of curtin:
[/etc/maas/preseeds/curtin_userdata] ... late_commands: iscsi_initiator_name: curtin in-target -- sed -i -e "s|^InitiatorName=.*|InitiatorName=$(iscsi-iname -p iqn.1993-08.org.debian:01)|" /etc/iscsi/initiatorname.iscsi iscsi_update_initramfs: curtin in-target -- update-initramfs -u ...
Now that open-iscsi is in cloud-image as well(LP: #1511008), this issue is not MAAS image specific, and more environments would be affected.
A workaround to make sure every MAAS node's IQN unique would be using late_commands of curtin:
[/etc/maas/ preseeds/ curtin_ userdata] initiator_ name: curtin in-target -- sed -i -e "s|^InitiatorNa me=.*|Initiator Name=$( iscsi-iname -p iqn.1993- 08.org. debian: 01)|" /etc/iscsi/ initiatorname. iscsi update_ initramfs: curtin in-target -- update-initramfs -u
...
late_commands:
iscsi_
iscsi_
...
Now that open-iscsi is in cloud-image as well(LP: #1511008), this issue is not MAAS image specific, and more environments would be affected.