cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abhinandanprateek <>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-9323: Fix cancel host maintena...
Date Wed, 30 Mar 2016 04:14:53 GMT
Github user abhinandanprateek commented on a diff in the pull request:
    --- Diff: server/src/com/cloud/resource/ ---
    @@ -2112,11 +2112,13 @@ private boolean doCancelMaintenance(final long hostId) {
             /* TODO: move to listener */
    +        boolean vms_migrating = false;
             final List<VMInstanceVO> vms = _haMgr.findTakenMigrationWork();
             for (final VMInstanceVO vm : vms) {
                 if (vm != null && vm.getHostId() != null && vm.getHostId()
== hostId) {
           "Unable to cancel migration because the vm is being migrated:
" + vm);
    --- End diff --
    The reason for not breaking from the for loop is to log info about vms that are under
migration. Probably the log level should be increased to warn. These log messages would be
valuable for trouble shooting.
    On readability front yes the code will be improved further.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message