Since the platform migration to Debian, it was observed that the
following Nova actions stopped working:
- pause;
- unpause;
- suspend;
- resume;
- live-migration.
The reason behind that is that some packages related to Nova, which have
already been migrated to Debian, still have some incompatibilities with
Python 3. Consequently, whenever these Nova actions were executed, some
exceptions occurred on the nova-api-proxy and NFV side, preventing them
from working.
Therefore, this change aims to improve this compatibility.
Most of the changes were necessary due to the fact that in Python 3
there is more of a distinction between `bytes` and `str`, whereas in
Python 2 `bytes` is just an alias for `str`.
Test Plan (on AIO-DX):
PASS - Successfully perform a VM pause, unpause, suspend, resume.
PASS - Successfully perform a VM live-migration.
Reviewed: https:/ /review. opendev. org/c/starlingx /nfv/+/ 872411 /opendev. org/starlingx/ nfv/commit/ 1e475dca0c38841 99b7345b719dea9 a05601bc36
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 1e475dca0c38841 99b7345b719dea9 a05601bc36
Author: Luan Nunes Utimura <email address hidden>
Date: Wed Feb 1 10:10:03 2023 -0300
Debian: Fix nova actions
Since the platform migration to Debian, it was observed that the
following Nova actions stopped working:
- pause;
- unpause;
- suspend;
- resume;
- live-migration.
The reason behind that is that some packages related to Nova, which have
already been migrated to Debian, still have some incompatibilities with
Python 3. Consequently, whenever these Nova actions were executed, some
exceptions occurred on the nova-api-proxy and NFV side, preventing them
from working.
Therefore, this change aims to improve this compatibility.
Most of the changes were necessary due to the fact that in Python 3
there is more of a distinction between `bytes` and `str`, whereas in
Python 2 `bytes` is just an alias for `str`.
Test Plan (on AIO-DX):
PASS - Successfully perform a VM pause, unpause, suspend, resume.
PASS - Successfully perform a VM live-migration.
Closes-Bug: 2003813
Signed-off-by: Luan Nunes Utimura <email address hidden> 630c79744964901 2e9fbf16fe4
Change-Id: I918fe6e3deaa68