nova: Ensure each compute uses a unique iSCSI initiator
The current initiator name embedded in our CI images is not unique at present and can often cause failures during live migrations with attached volumes. This change ensures the name is unique by running iscsi-iname again and overwriting the existing name. We could potentially do this during the image build process itself but given that devstack systems are not supposed to be multi-purpose this should be safe to do during the devstack run. NOTE(lyarwood): Conflict due to If2f74f146a166b9721540aaf3f1f9fce3030525c not being present on stable/wallaby. Conflicts: lib/nova Closes-Bug: #1945983 Change-Id: I9ed26a17858df96c04be9ae52bf2e33e023869a5 (cherry picked from commit714826d1a2
) (cherry picked from commitee629cc775
) (cherry picked from commita41fff99b3
) (cherry picked from commit43364b7198
)
This commit is contained in:
parent
8d29ca11f0
commit
c5f7cbfabe
3
lib/nova
3
lib/nova
|
@ -306,6 +306,9 @@ function configure_nova {
|
|||
sudo dnf update -y
|
||||
fi
|
||||
|
||||
# Ensure each compute host uses a unique iSCSI initiator
|
||||
echo InitiatorName=$(iscsi-iname) | sudo tee /etc/iscsi/initiatorname.iscsi
|
||||
|
||||
if [[ ${ISCSID_DEBUG} == "True" ]]; then
|
||||
# Install an override that starts iscsid with debugging
|
||||
# enabled.
|
||||
|
|
Loading…
Reference in New Issue