The BuildRequest object code assumed that IncompatibleObjectVersion
exception has a objver field that contains the object version. This
assumption is not true. The unit test made another mistake serializing
the function object obj_to_primitive instead of serializing the result
of the call of obj_to_primitive. This caused a false positive test
covering the error in the implementation as well.
Conflicts: nova/objects/build_request.py
Note(elod.illes): conflict is due to not having patch
Ie3a83fef0dc689b9d37ac43e047ce5d48f567adc on stable/pike.
Closes-Bug: #1812177
Change-Id: I1ef4a23aa2bf5cb46b481045f3d968f62f74606d
(cherry picked from commit 975f0156137e37f7a9139c0268547d79dcc3c43c)
(cherry picked from commit 6061186d2d86eb628dcdc61667c240576fa8f10e)
(cherry picked from commit 7c85ebad0bf13d609b384e7637b0787bf8d484f7)
Reviewed: https:/ /review. openstack. org/647557 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=ebf011f11eb b4d329e90e7ec0e 498a3a6832e154
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit ebf011f11ebb4d3 29e90e7ec0e498a 3a6832e154
Author: Balazs Gibizer <email address hidden>
Date: Wed Jan 16 10:57:07 2019 +0100
Fix incompatible version handling in BuildRequest
The BuildRequest object code assumed that IncompatibleObj ectVersion
exception has a objver field that contains the object version. This
assumption is not true. The unit test made another mistake serializing
the function object obj_to_primitive instead of serializing the result
of the call of obj_to_primitive. This caused a false positive test
covering the error in the implementation as well.
Conflicts:
nova/objects/ build_request. py
Note( elod.illes) : conflict is due to not having patch c689b9d37ac43e0 47ce5d48f567adc on stable/pike.
Ie3a83fef0d
Closes-Bug: #1812177
Change-Id: I1ef4a23aa2bf5c b46b481045f3d96 8f62f74606d 7a9139c0268547d 79dcc3c43c) 28dcdc61667c240 576fa8f10e) 09b384e7637b078 7bf8d484f7)
(cherry picked from commit 975f0156137e37f
(cherry picked from commit 6061186d2d86eb6
(cherry picked from commit 7c85ebad0bf13d6