Comment 3 for bug 1963277

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nfv (master)

Reviewed: https://review.opendev.org/c/starlingx/nfv/+/831841
Committed: https://opendev.org/starlingx/nfv/commit/94ce75c0d45589b197b5481d21f85035e16291ce
Submitter: "Zuul (22348)"
Branch: master

commit 94ce75c0d45589b197b5481d21f85035e16291ce
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,
    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

    Closes-Bug: 1963277
    Closes-Bug: 1962787
    Signed-off-by: albailey <email address hidden>
    Change-Id: Ib54926738aeafbee0c90e7a2b5a4ad9556a3d7f1