NFV VIM fails on StopIterator exceptions in newer python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Al Bailey |
Bug Description
When running the VIM (nfv) on debian bullseye (which uses python 3.9.2) the VIM fails to start.
The exception is a little misleading
Traceback (most recent call last):
File "/usr/lib/
selobj.
File "/usr/lib/
callback.
File "/usr/lib/
task.
File "/usr/lib/
self.
RuntimeError: generator raised StopIteration
_task.py", line 193 target.send is expected to raise a StopIteration
and _task_scheduler.py" line 332 expects to catch it.
However in python 3.7 (and later) a change was introduced (mentioned here)
https:/
and described here:
https:/
which means we need to change the vim code everywhere that does this:
except StopIteration:
to instead be this:
except (StopIteration, RuntimeError):
These are the places in the code that need to be updated:
nfv_common/
nfv_common/
nfv_common/
tags: | added: stx.7.0 stx.debian stx.nfv |
Changed in starlingx: | |
importance: | Undecided → Medium |
assignee: | nobody → Al Bailey (albailey1974) |
Fix proposed to branch: master /review. opendev. org/c/starlingx /nfv/+/ 831841
Review: https:/