[Bug 1806474] Re: [SRU] python-pysnmp4 pkg inconsistent in cosmic
Corey Bryant
corey.bryant at canonical.com
Wed Dec 5 13:03:01 UTC 2018
** Description changed:
+ [Impact]
I hit the following error when running ceilometer unit tests for cosmic:
- =========================
- Failures during discovery
- =========================
- --- import errors ---
+ =========================
+ Failures during discovery
+ =========================
+ --- import errors ---
Failed to import test module: ceilometer.tests.unit.hardware.inspector.test_snmp
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
- module = self._get_module_from_name(name)
- File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
- __import__(name)
- File "ceilometer/tests/unit/hardware/inspector/test_snmp.py", line 23, in <module>
- from ceilometer.hardware.inspector import snmp
- File "ceilometer/hardware/inspector/snmp.py", line 21, in <module>
- from pysnmp.entity.rfc3413.oneliner import cmdgen
- ImportError: No module named oneliner
+ Traceback (most recent call last):
+ File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
+ module = self._get_module_from_name(name)
+ File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
+ __import__(name)
+ File "ceilometer/tests/unit/hardware/inspector/test_snmp.py", line 23, in <module>
+ from ceilometer.hardware.inspector import snmp
+ File "ceilometer/hardware/inspector/snmp.py", line 21, in <module>
+ from pysnmp.entity.rfc3413.oneliner import cmdgen
+ ImportError: No module named oneliner
It turns out the tarball that is pulled from git to build pysnmp4 is
missing files, such as pysnmp.entity.rfc3413.oneliner. The release
artifact from pypi.debian.net is not missing the oneliner directory.
+
+ [Test Case]
+ Building the ceilometer package for rocky should be successful with a good version of pysnmp. I also plan to run tempest regression tests on a full openstack deployment to help ensure there are no regressions.
+
+ [Regression Potential]
+ The current state of pysnmp4 at 4.4.6-1 is incomplete, therefore the diff from 4.4.6-1 to 4.4.6+repack1-1 is not minimal. Most of the diff, however, is added files/directories that were missing in 4.4.6-1. Note that 4.4.6+repack1-1 is already in Debian unstable and the fix for this bug is to sync from unstable. This version has been in unstable for 2 months which should have provided some regression coverage.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ceilometer in Ubuntu.
https://bugs.launchpad.net/bugs/1806474
Title:
[SRU] python-pysnmp4 pkg inconsistent in cosmic
Status in ceilometer package in Ubuntu:
Invalid
Status in python-pysnmp4 package in Ubuntu:
Invalid
Status in ceilometer source package in Cosmic:
Triaged
Status in python-pysnmp4 source package in Cosmic:
Triaged
Bug description:
[Impact]
I hit the following error when running ceilometer unit tests for cosmic:
=========================
Failures during discovery
=========================
--- import errors ---
Failed to import test module: ceilometer.tests.unit.hardware.inspector.test_snmp
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python2.7/dist-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "ceilometer/tests/unit/hardware/inspector/test_snmp.py", line 23, in <module>
from ceilometer.hardware.inspector import snmp
File "ceilometer/hardware/inspector/snmp.py", line 21, in <module>
from pysnmp.entity.rfc3413.oneliner import cmdgen
ImportError: No module named oneliner
It turns out the tarball that is pulled from git to build pysnmp4 is
missing files, such as pysnmp.entity.rfc3413.oneliner. The release
artifact from pypi.debian.net is not missing the oneliner directory.
[Test Case]
Building the ceilometer package for rocky should be successful with a good version of pysnmp. I also plan to run tempest regression tests on a full openstack deployment to help ensure there are no regressions.
[Regression Potential]
The current state of pysnmp4 at 4.4.6-1 is incomplete, therefore the diff from 4.4.6-1 to 4.4.6+repack1-1 is not minimal. Most of the diff, however, is added files/directories that were missing in 4.4.6-1. Note that 4.4.6+repack1-1 is already in Debian unstable and the fix for this bug is to sync from unstable. This version has been in unstable for 2 months which should have provided some regression coverage.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceilometer/+bug/1806474/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list