Martin Peřina has posted comments on this change.
Change subject: core: Move VDS to Maintenance only if StopSPM is successful
......................................................................
Patch Set 8:
(3 comments)
I tried everything that came to my mind to verify this patch without modifying
the code. But even using the original steps from bug (create dc, cluster, host,
vm, run vm, create snapshot) doesn't execute Maintenance command for SPM since
async tasks are checked during can do action.
So as I said before, if you have an idea how to verify this, please tell me.
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/vdscommands/SetVdsStatusVDSCommandParameters.java
Line 28: public VDSStatus getStatus() {
Line 29: return _status;
Line 30: }
Line 31:
Line 32: public SetVdsStatusVDSCommandParameters() {
Added assignment to this ctor (sorry but for me explicit is better the implicit
in this case).
Btw, this ctor is crappy, you cannot set VDS id to parameters by calling it, so
every call to SetVdsStatusCommand will fail, since you cannot obtain VDSManager
instance.
Line 33: _status = VDSStatus.Unassigned;
Line 34: nonOperationalReason = NonOperationalReason.NONE;
Line 35: }
Line 36:
....................................................
File
backend/manager/modules/dal/src/main/resources/bundles/AuditLogMessages.properties
Line 706: DISK_ALIGNMENT_SCAN_START=Starting alignment scan of disk
'${DiskAlias}'.
Line 707: DISK_ALIGNMENT_SCAN_FAILURE=Alignment scan of disk '${DiskAlias}'
failed.
Line 708: DISK_ALIGNMENT_SCAN_SUCCESS=Alignment scan of disk '${DiskAlias}' is
complete.
Line 709: VM_MEMORY_NOT_IN_RECOMMENDED_RANGE=VM ${VmName} was configured with
${VmMemInMb}mb of memory while the recommended value range is ${VmMinMemInMb}mb
- ${VmMaxMemInMb}mb
Line 710: VDS_STATUS_CHANGE_FAILED_DUE_TO_STOP_SPM_FAILURE=Failed to change
status of host '${VdsName}' due to failure to stop the spm.
Done
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/SpmStopVDSCommand.java
Line 42: }
Line 43: } catch (Exception e) {
Line 44: performSpmStop = false;
Line 45: log.infoFormat("SpmStopVDSCommand::Could not get
tasks on vds {0} stopping SPM",
Line 46: getVds().getName());
I remove "stopping SPM" from log message and added exception's message as
reason to it.
Line 47: }
Line 48: if (performSpmStop) {
Line 49: log.infoFormat("SpmStopVDSCommand::Stopping SPM on
vds {0}, pool id {1}", getVds().getName(),
Line 50: getParameters().getStoragePoolId());
--
To view, visit http://gerrit.ovirt.org/21231
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I5c58f9a9629d2e7a496f02c4dececeb842d44543
Gerrit-PatchSet: 8
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Liron Ar <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches