Reviewed: https://review.opendev.org/c/openstack/nova/+/757618 Committed: https://opendev.org/openstack/nova/commit/06b8f1467dc80203098de983cfc335b898440573 Submitter: "Zuul (22348)" Branch: stable/train
commit 06b8f1467dc80203098de983cfc335b898440573 Author: Stephen Finucane <email address hidden> Date: Mon Sep 21 16:11:38 2020 +0100
libvirt: 'video.vram' property must be an integer
The 'vram' property of the 'video' device must be an integer else libvirt will spit the dummy out, e.g.
libvirt.libvirtError: XML error: cannot parse video vram '8192.0'
The division operator in Python 3 results in a float, not an integer like in Python 2. Use the truncation division operator instead.
Change-Id: Iebf678c229da4f455459d068cafeee5f241aea1f Signed-off-by: Stephen Finucane <email address hidden> Closes-Bug: #1896496 (cherry picked from commit f2ca089bce842127e7d0644b38a11da9278db8ea) (cherry picked from commit fd7c66f61c0b07cff82d93e0f884777949170857) (cherry picked from commit 121e481a880b48ce800aafdeca0b8b086e2cddf3)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /757618 /opendev. org/openstack/ nova/commit/ 06b8f1467dc8020 3098de983cfc335 b898440573
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit 06b8f1467dc8020 3098de983cfc335 b898440573
Author: Stephen Finucane <email address hidden>
Date: Mon Sep 21 16:11:38 2020 +0100
libvirt: 'video.vram' property must be an integer
The 'vram' property of the 'video' device must be an integer else
libvirt will spit the dummy out, e.g.
libvirt. libvirtError: XML error: cannot parse video vram '8192.0'
The division operator in Python 3 results in a float, not an integer
like in Python 2. Use the truncation division operator instead.
Change-Id: Iebf678c229da4f 455459d068cafee e5f241aea1f 7e7d0644b38a11d a9278db8ea) ff82d93e0f88477 7949170857) e800aafdeca0b8b 086e2cddf3)
Signed-off-by: Stephen Finucane <email address hidden>
Closes-Bug: #1896496
(cherry picked from commit f2ca089bce84212
(cherry picked from commit fd7c66f61c0b07c
(cherry picked from commit 121e481a880b48c