The coroutines in nfv internally raise StopIteration,
however in python 3.7, that exception is converted to
a RuntimeError: https://www.python.org/dev/peps/pep-0479/
The vim code that catches a StopIteration exception has
been updated to catch both types.
The OCF scripts on a Debian system runs python3, and need
explicit /usr/bin/python3 added to them
Test-Plan:
- Verified a Debian environment running python 3.9 is able
to start nfv-vim without the process immediately crashing.
- Verified a Centos environment running the older python2.7
still able to run nfv-vim.
- Verified Centos installation
Reviewed: https:/ /review. opendev. org/c/starlingx /nfv/+/ 831841 /opendev. org/starlingx/ nfv/commit/ 94ce75c0d45589b 197b5481d21f850 35e16291ce
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 94ce75c0d45589b 197b5481d21f850 35e16291ce
Author: albailey <email address hidden>
Date: Thu Mar 3 12:59:28 2022 -0600
Update nfv code to work properly on python3.7+
The coroutines in nfv internally raise StopIteration, /www.python. org/dev/ peps/pep- 0479/
however in python 3.7, that exception is converted to
a RuntimeError: https:/
The vim code that catches a StopIteration exception has
been updated to catch both types.
The OCF scripts on a Debian system runs python3, and need
explicit /usr/bin/python3 added to them
Test-Plan:
- Verified a Debian environment running python 3.9 is able
to start nfv-vim without the process immediately crashing.
- Verified a Centos environment running the older python2.7
still able to run nfv-vim.
- Verified Centos installation
Closes-Bug: 1963277 ee0c90e7a2b5a4a d9556a3d7f1
Closes-Bug: 1962787
Signed-off-by: albailey <email address hidden>
Change-Id: Ib54926738aeafb