Martin Peřina has posted comments on this change.

Change subject: engine: Notify host is Up only when InitVdsOnUp succeeded
......................................................................


Patch Set 1:

(3 comments)

http://gerrit.ovirt.org/#/c/23073/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitVdsOnUpCommand.java
File 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/InitVdsOnUpCommand.java:

Line 133:         setSucceeded(initSucceeded);
Line 134: 
Line 135:         if (getSucceeded()) {
Line 136:             AuditLogableBase logable = new 
AuditLogableBase(getVds().getId());
Line 137:             logable.addCustomValue("VdsStatus", 
getVds().getStatus().toString());
> Since this appears in the audit log messages file , I prefer that you will 
See my comment in VdsUpdateRunTimeInfo
Line 138:             AuditLogDirector.log(logable, AuditLogType.VDS_DETECTED);
Line 139:         }
Line 140:     }
Line 141: 


http://gerrit.ovirt.org/#/c/23073/1/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java:

Line 892:         } else if (isVdsUpOrGoingToMaintenance || _vds.getStatus() == 
VDSStatus.Error) {
Line 893:             return;
Line 894:         }
Line 895:         // show status UP in audit only when InitVdsOnUpCommand 
finished successfully
Line 896:         if (_vds.getStatus() != VDSStatus.Up) {
> What about if Host does not change status , the update does not check for r
Well the log was already there, I only supressed it for Up state (which is 
moved to InitVdsOnUp)
Line 897:             AuditLogableBase logable = new 
AuditLogableBase(_vds.getId());
Line 898:             logable.addCustomValue("VdsStatus", 
_vds.getStatus().toString());
Line 899:             auditLog(logable, AuditLogType.VDS_DETECTED);
Line 900:         }


Line 894:         }
Line 895:         // show status UP in audit only when InitVdsOnUpCommand 
finished successfully
Line 896:         if (_vds.getStatus() != VDSStatus.Up) {
Line 897:             AuditLogableBase logable = new 
AuditLogableBase(_vds.getId());
Line 898:             logable.addCustomValue("VdsStatus", 
_vds.getStatus().toString());
> VdsStatus => HostStatus
'VdsStatus' value was already there, but I can change it to 'HostStatus' and 
also change AuditLogMessage.properties
Line 899:             auditLog(logable, AuditLogType.VDS_DETECTED);
Line 900:         }
Line 901:     }
Line 902: 


-- 
To view, visit http://gerrit.ovirt.org/23073
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: If0fab61b10bea280ca81eca74f2912b61bd58876
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Peřina <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Martin Peřina <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[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

Reply via email to