StarlingX NFVI Orchestration
Go to file
Al Bailey 94321e9d57 Debian: python3 fix for OpenStackRestAPIExceptions
When the NFV uses tasks and futures and coroutines to
interact with openstack APIs, an OpenStackRestAPIException
can be returned as a task result.

The exception needs to be 'pickled' when sent across the
queue/socket for the 'simulated' asyncio workflow.

However, the pickle code for that exception was broken in
python3. It was relying on a python2 'message' attribute
of the base Exception class to exist, which no longer
exists (in python3)

This was causing the pickle command to quietly fail and
the code waiting for the task result would timeout and
not report back the failure information.

The fix is to ensure that there is a 'message' property
on that exception type.

Unit tests have been added for all the pickleable
exceptions, to ensure their '__reduce__' and other
interactions with 'pickle' are not reporting any failures.

Test Plan:
 PASS: create and apply a kube-upgrade-strategy for an
 older version of kubernetes and observe it reports its
failure error (rather than a timeout)

Closes-Bug: #2007285
Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I3a8776163a78330810ae1097ddd1831b1b26a212
2023-02-14 15:21:13 +00:00
api-ref/source Switch to newer openstackdocstheme and reno versions 2020-06-04 14:34:31 +02:00
devstack Followup opendev cleanup and test jobs 2019-04-21 14:21:35 -05:00
doc Fix tox-docs failing sphinx 2022-06-03 15:20:56 -03:00
mtce-guest Update debian package versions to use git commits 2023-02-09 17:00:49 +00:00
nfv Debian: python3 fix for OpenStackRestAPIExceptions 2023-02-14 15:21:13 +00:00
nova-api-proxy Update debian package versions to use git commits 2023-02-09 17:00:49 +00:00
releasenotes Switch to newer openstackdocstheme and reno versions 2020-06-04 14:34:31 +02:00
.gitignore [Doc] OpenStack API Reference Guide 2018-09-25 14:01:33 -07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:26 +00:00
.yamllint Cleanup tox.ini and zuul files from older releases 2023-01-19 15:42:06 +00:00
.zuul.yaml Convert yaml.load to yaml.safe_load 2023-01-19 19:57:23 +00:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:36:51 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:51 -07:00
README.rst Followup opendev cleanup and test jobs 2019-04-21 14:21:35 -05:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 19:12:57 +08:00
centos_dev_docker_images.inc Create the stable/dev wheel and image build files 2019-03-21 10:09:02 -04:00
centos_dev_wheels.inc Add NFV wheels to tarball 2019-11-14 10:52:14 -05:00
centos_guest_image.inc Remove wrs-guest-heartbeat SDK Module 2019-04-17 16:34:14 -04:00
centos_guest_image_rt.inc Remove wrs-guest-heartbeat SDK Module 2019-04-17 16:34:14 -04:00
centos_iso_image.inc Remove wrs-server-group SDK Module from StarlingX 2019-03-27 14:01:52 -04:00
centos_pkg_dirs Remove wrs-guest-heartbeat SDK Module 2019-04-17 16:34:14 -04:00
centos_stable_docker_images.inc Create the stable/dev wheel and image build files 2019-03-21 10:09:02 -04:00
centos_stable_wheels.inc Add NFV wheels to tarball 2019-11-14 10:52:14 -05:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:10:32 -04:00
debian_iso_image.inc Deactivate guest related services 2023-01-10 17:26:09 -03:00
debian_pkg_dirs Deactivate guest related services 2023-01-10 17:26:09 -03:00
debian_stable_docker_images.inc Port stx-nova-api-proxy image to stx-debian 2023-01-26 07:39:17 -03:00
debian_stable_wheels.inc Port stx-nova-api-proxy image to stx-debian 2023-01-26 07:39:17 -03:00
requirements.txt Adding py27 for nfv 2018-07-10 10:18:28 -05:00
test-requirements.txt Not require recreate of tox env when running tox 2021-04-06 09:48:36 -05:00
tox.ini Convert yaml.load to yaml.safe_load 2023-01-19 19:57:23 +00:00

README.rst

nfv

StarlingX NFVI Orchestration