generate_config_file_samples.sh fails with invalid literal for int() with base 10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Invalid
|
Low
|
Unassigned |
Bug Description
Following [1], pyroute2 now include [2], which expects the kernel name to have a specific format, if this format is not followed the package would fail.
Our CIs runs on none inbox kernels which do not follow the inbox naming convention. the neutron ./tools/
exec ./tools/
07:01:54 Traceback (most recent call last):
07:01:54 File "/usr/local/
07:01:54 sys.exit(main())
07:01:54 File "/usr/local/
07:01:54 generate(conf)
07:01:54 File "/usr/local/
07:01:54 groups = _get_groups(
07:01:54 File "/usr/local/
07:01:54 loaders = _get_raw_
07:01:54 File "/usr/local/
07:01:54 mgr = stevedore.
07:01:54 File "/usr/local/
07:01:54 extensions = self._load_
07:01:54 File "/usr/local/
07:01:54 self._on_
07:01:54 File "/usr/local/
07:01:54 ext = self._load_
07:01:54 File "/usr/local/
07:01:54 return super(NamedExte
07:01:54 File "/usr/local/
07:01:54 plugin = ep.load()
07:01:54 File "/usr/lib64/
07:01:54 module = import_
07:01:54 File "/usr/lib64/
07:01:54 return _bootstrap.
07:01:54 File "<frozen importlib.
07:01:54 File "<frozen importlib.
07:01:54 File "<frozen importlib.
07:01:54 File "<frozen importlib.
07:01:54 File "<frozen importlib.
07:01:54 File "<frozen importlib.
07:01:54 File "/opt/stack/
07:01:54 import neutron.
07:01:54 File "/opt/stack/
07:01:54 from neutron.agent.linux import keepalived
07:01:54 File "/opt/stack/
07:01:54 from neutron.agent.linux import external_process
07:01:54 File "/opt/stack/
07:01:54 from neutron.agent.linux import ip_lib
07:01:54 File "/opt/stack/
07:01:54 from pyroute2.netlink import exceptions \
07:01:54 File "/usr/local/
07:01:54 from pr2modules.
07:01:54 File "/usr/local/
07:01:54 kernel = [int(x) for x in uname[2]
07:01:54 File "/usr/local/
07:01:54 kernel = [int(x) for x in uname[2]
07:01:54 ValueError: invalid literal for int() with base 10: '0_for_
Can you guys help us to fix the issue?
Thanks.
[1] https:/
[2] https:/
description: | updated |
Changed in neutron: | |
importance: | Undecided → Low |
status: | New → Invalid |
Thanks for the bug report, good to hear that Openstack is tried on new environments.
As you wrote the relevant code is in pyroute2 which tries to parse kernel version, so from Neutron perspective we can't solve it. /github. com/svinota/ pyroute2/ issues
I would write a new issue for pyroute2: https:/