Pearl1594 commented on code in PR #14803:
URL: https://github.com/apache/cloudstack/pull/14803#discussion_r4672929248
##########
core/src/main/java/com/cloud/agent/api/VlanTrunkMigrationHelper.java:
##########
@@ -143,20 +148,63 @@ public static boolean nicNeedsManualVlanMembership(NicVO
nic, boolean vlanFilter
public static void
sendPostMigrationVlanTrunkMembershipIfNeeded(VirtualMachineTO vmTO, long
dstHostId,
NicDao nicDao, HostDetailsDao hostDetailsDao, CommandSender
commandSender, Logger logger) {
+ sendPostMigrationVlanTrunkMembershipIfNeeded(vmTO, dstHostId, nicDao,
hostDetailsDao, commandSender, logger, POST_MIGRATION_RETRY_DELAY_MS);
+ }
+
+ static void sendPostMigrationVlanTrunkMembershipIfNeeded(VirtualMachineTO
vmTO, long dstHostId,
+ NicDao nicDao, HostDetailsDao hostDetailsDao, CommandSender
commandSender, Logger logger, long retryDelayMs) {
if (!vmNeedsPostMigrationVlanTrunkMembership(vmTO.getId(), dstHostId,
nicDao, hostDetailsDao)) {
return;
}
- final String warningMsg = "Post-migration VLAN trunk membership tasks
did not complete for VM [{}] "
- + "on destination host [{}]: {}. Migration completed but VLAN
membership may need manual correction.";
+ String failure = sendPostMigrationCommandWithRetry(vmTO, dstHostId,
commandSender, logger, retryDelayMs);
+ if (failure != null) {
+ logger.error("Post-migration VLAN trunk membership tasks did not
complete for VM [{}] on destination host [{}]: {}. "
+ + "Migration completed but its tap may still be on the
bridge's default VLAN; correct the VLAN membership or restart the VM.",
+ vmTO, dstHostId, failure);
Review Comment:
fixed - alerts added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]