Roy Golan has posted comments on this change.
Change subject: core: Detect host in idle prep for maintenance and re-migrate
......................................................................
Patch Set 17:
(3 comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VdsEventListener.java
Line 318: }
Line 319: }
Line 320:
Line 321: @Override
Line 322: public void vdsIdlingInPreparingForMaintenance(final VDS vds) {
I want the name to describe the event not the implementation.
the name means VDS Idling in preparing for maintenance
I'm open for shorter suggestions
Line 323: // try to put the host to Maintenance again.
Line 324:
Backend.getInstance().runInternalAction(VdcActionType.MaintenanceNumberOfVdss,
Line 325: new
MaintenanceNumberOfVdssParameters(Arrays.asList(vds.getId()), true));
Line 326: }
....................................................
File
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
Line 1533: GlanceImageTotalListSize,
Line 1534:
Line 1535: @TypeConverterAttribute(Integer.class)
Line 1536: @DefaultValueAttribute("300000")
Line 1537: HostPreparingForMaintenanceIdleTime,
make sense. changing to secs
Line 1538:
Line 1539: Invalid;
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java
Line 1867: _vds.getId(),
Line 1868: _vds.getName());
Line 1869: } else {
Line 1870: if (System.currentTimeMillis() -
_vdsManager.getStatusChangedTime() > Config.<Integer>
GetValue(ConfigValues.HostPreparingForMaintenanceIdleTime)) {
Line 1871:
ResourceManager.getInstance().getEventListener().vdsIdlingInPreparingForMaintenance(_vds);
I'm changing the time keeping variable
instead of VdsManager to keep it, I'll keep it here and mark the time stamp
when it first entered Preparing for maintenance
Line 1872: }
Line 1873: }
Line 1874: }
Line 1875: }
--
To view, visit http://gerrit.ovirt.org/17942
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I0e18bcfbc566b6fd92d276c5c739ba607e2a53f0
Gerrit-PatchSet: 17
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Roy Golan <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[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