Oved Ourfali has posted comments on this change. Change subject: core: adding HA score with proper scheduling policies ......................................................................
Patch Set 4: (2 comments) See my comments about some of your comments. Will address all the rest of your comments. .................................................... File backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java Line 1567: Line 1568: if (StringUtils.equals(HOSTED_ENGINE_VM_NAME, vmNameOnHost)) { Line 1569: vmStatic.setName(vmNameOnHost); Line 1570: vmStatic.setOrigin(OriginType.HOSTED_ENGINE); Line 1571: vmStatic.setMigrationSupport(MigrationSupport.IMPLICITLY_NON_MIGRATABLE); UpdateVmCommand is blocked for non-engine-managed VMs, so we're good here. Line 1572: } else { Line 1573: vmStatic.setName(String.format(EXTERNAL_VM_NAME_FORMAT, vmNameOnHost)); Line 1574: vmStatic.setOrigin(OriginType.EXTERNAL); Line 1575: } .................................................... File packaging/dbscripts/upgrade/03_03_0990_add_ha_policy_units.sql Line 1: The upgrades are in different locations, so prefer to split those. Line 2: INSERT INTO policy_units (id, name, is_internal, custom_properties_regex, type, enabled, description) VALUES ('e659c871-0bf1-4ccc-b748-f28f5d08dffd', 'HA', true, NULL, 0, true, 'Runs the hosted engine VM only on hosts with a positive score'); Line 3: INSERT INTO policy_units (id, name, is_internal, custom_properties_regex, type, enabled, description) VALUES ('98e92667-6161-41fb-b3fa-34f820ccbc4b', 'HA', true, NULL, 1, true, 'Weights hosts according to their HA score'); Line 4: Line 5: INSERT INTO cluster_policy_units (cluster_policy_id, policy_unit_id, filter_sequence, factor) VALUES ('20d25257-b4bd-4589-92a6-c4c5c5d3fd1a', 'e659c871-0bf1-4ccc-b748-f28f5d08dffd', 0, 0); -- To view, visit http://gerrit.ovirt.org/20018 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I24879ed64cab829969556fd71786b32d3aaaf0c7 Gerrit-PatchSet: 4 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Doron Fediuck <dfedi...@redhat.com> Gerrit-Reviewer: Gilad Chaplik <gchap...@redhat.com> Gerrit-Reviewer: Greg Padgett <gpadg...@redhat.com> Gerrit-Reviewer: Martin Sivák <msi...@redhat.com> Gerrit-Reviewer: Omer Frenkel <ofren...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Roy Golan <rgo...@redhat.com> Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches