Nova UTs and functional tests broken due to cinderclient modifying i18n global vars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Critical
|
Sylvain Bauza | ||
python-cinderclient |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Python unittests and functional tests are trampled by our Translation system, and in particular the gettext module.
For example :
2016-05-30 05:45:25.217 | nova.tests.
2016-05-30 05:45:25.218 | -------
2016-05-30 05:45:25.218 |
2016-05-30 05:45:25.218 | Captured traceback:
2016-05-30 05:45:25.218 | ~~~~~~~~~~~~~~~~~~~
2016-05-30 05:45:25.218 | Traceback (most recent call last):
2016-05-30 05:45:25.218 | File "/home/
2016-05-30 05:45:25.218 | return func(*args, **keywargs)
2016-05-30 05:45:25.218 | File "nova/tests/
2016-05-30 05:45:25.218 | conn = libvirt_
2016-05-30 05:45:25.218 | File "nova/virt/
2016-05-30 05:45:25.218 | host=self._host)
2016-05-30 05:45:25.219 | File "nova/virt/
2016-05-30 05:45:25.219 | return fw_class(*args, **kwargs)
2016-05-30 05:45:25.219 | File "nova/virt/
2016-05-30 05:45:25.219 | self.nwfilter = NWFilterFirewal
2016-05-30 05:45:25.219 | File "nova/virt/
2016-05-30 05:45:25.219 | LOG.warning(
2016-05-30 05:45:25.219 | File "/home/
2016-05-30 05:45:25.219 | return _message.
2016-05-30 05:45:25.219 | File "/home/
2016-05-30 05:45:25.219 | msgtext = Message.
2016-05-30 05:45:25.219 | File "/home/
2016-05-30 05:45:25.219 | fallback=True)
2016-05-30 05:45:25.220 | File "/usr/lib/
2016-05-30 05:45:25.220 | with open(mofile, 'rb') as fp:
2016-05-30 05:45:25.220 | IOError: [Errno 2] No such file or directory: '/home/
2016-05-30 05:45:25.220 |
Or :
2016-05-30 05:45:25.210 | nova.tests.
2016-05-30 05:45:25.210 | -------
2016-05-30 05:45:25.210 |
2016-05-30 05:45:25.210 | Captured pythonlogging:
2016-05-30 05:45:25.210 | ~~~~~~~
2016-05-30 05:45:25.210 | 2016-05-30 05:42:04,467 WARNING [nova.virt.
2016-05-30 05:45:25.210 | 2016-05-30 05:42:04,469 INFO [os_brick.
2016-05-30 05:45:25.210 |
2016-05-30 05:45:25.210 |
2016-05-30 05:45:25.210 | Captured traceback:
2016-05-30 05:45:25.210 | ~~~~~~~~~~~~~~~~~~~
2016-05-30 05:45:25.211 | Traceback (most recent call last):
2016-05-30 05:45:25.211 | File "/home/
2016-05-30 05:45:25.211 | return func(*args, **keywargs)
2016-05-30 05:45:25.211 | File "nova/tests/
2016-05-30 05:45:25.211 | result = self.drvr.
2016-05-30 05:45:25.211 | File "nova/virt/
2016-05-30 05:45:25.211 | LOG.info(
2016-05-30 05:45:25.211 | File "/home/
2016-05-30 05:45:25.211 | return _message.
2016-05-30 05:45:25.211 | File "/home/
2016-05-30 05:45:25.212 | msgtext = Message.
2016-05-30 05:45:25.212 | File "/home/
2016-05-30 05:45:25.212 | fallback=True)
2016-05-30 05:45:25.212 | File "/usr/lib/
2016-05-30 05:45:25.212 | mofiles = find(domain, localedir, languages, all=1)
2016-05-30 05:45:25.212 | File "/usr/lib/
2016-05-30 05:45:25.212 | if os.path.
2016-05-30 05:45:25.212 | File "/home/
2016-05-30 05:45:25.212 | return _mock_self.
2016-05-30 05:45:25.212 | File "/home/
2016-05-30 05:45:25.212 | result = next(effect)
2016-05-30 05:45:25.213 | File "/home/
2016-05-30 05:45:25.213 | return _next(obj)
2016-05-30 05:45:25.213 | StopIteration
Occurrences seem to start on May 27th after 00:00UTC :
http://
http://
summary: |
- Translation LW gettext file is removed for US locale + gettext module hitting our UTs and functional tests |
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
summary: |
- gettext module hitting our UTs and functional tests + new oslo.i18n release breaking nova's UTs and functional tests |
summary: |
- new oslo.i18n release breaking nova's UTs and functional tests + oslo.i18n modules breaking nova's UTs and functional tests |
tags: | added: i18n testing |
summary: |
- oslo.i18n modules breaking nova's UTs and functional tests + UTs and functional tests broken related to msgid translations |
summary: |
- UTs and functional tests broken due to cinderclient modifying i18n + Nova UTs and functional tests broken due to cinderclient modifying i18n global vars |
It's possible that this commit caused this: https:/ /github. com/openstack/ nova/commit/ ece7b8f