Kobi Ianko has uploaded a new change for review. Change subject: Fixing vcpuCount periodic error. ......................................................................
Fixing vcpuCount periodic error. When vcpu count is not available via the cpu tune, mom will display an error message every 10 sec. Change-Id: Ie913a68b95f0384dbd573275cd9e70cb6c740ee6 Bug-Url: https://bugzilla.redhat.com/1119775 Signed-off-by: Kobi Ianko <[email protected]> Reviewed-on: http://gerrit.ovirt.org/30181 Reviewed-by: Jiří Moskovčák <[email protected]> Reviewed-by: Martin Sivák <[email protected]> Tested-by: Kobi Ianko <[email protected]> Reviewed-by: Adam Litke <[email protected]> (cherry picked from commit fcedb2ddf2cf0ae41fb71f3898b19a72a957b05f) --- M mom/HypervisorInterfaces/vdsmInterface.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/mom refs/changes/86/30486/1 diff --git a/mom/HypervisorInterfaces/vdsmInterface.py b/mom/HypervisorInterfaces/vdsmInterface.py index cde4744..1193785 100644 --- a/mom/HypervisorInterfaces/vdsmInterface.py +++ b/mom/HypervisorInterfaces/vdsmInterface.py @@ -181,7 +181,7 @@ ret['vcpu_period'] = vcpuPeriod #Get num of vCPUs - vcpuCount = response['statsList'][0]['vcpuCount'] + vcpuCount = response['statsList'][0].get('vcpuCount', None) if vcpuCount == None: return None else: -- To view, visit http://gerrit.ovirt.org/30486 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie913a68b95f0384dbd573275cd9e70cb6c740ee6 Gerrit-PatchSet: 1 Gerrit-Project: mom Gerrit-Branch: mom-0.4.1 Gerrit-Owner: Kobi Ianko <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
