yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #75839
[Bug 1804420] [NEW] placement unit test placement.tests.unit.cmd.test_manage.TestCommandParsers.test_commands_associated fails on CentOS 7
Public bug reported:
Test
placement.tests.unit.cmd.test_manage.TestCommandParsers.test_commands_associated
fails to run using tox -epy27 on CentOS 7. However, it works fine on
Fedora 28 (with a different Python 2 version).
I get the following:
placement.tests.unit.cmd.test_manage.TestCommandParsers.test_commands_associated
--------------------------------------------------------------------------------
Captured stdout:
~~~~~~~~~~~~~~~~
usage: run db [-h] {sync,version} ...
optional arguments:
-h, --help show this help message and exit
subcommands:
database commands
{sync,version}
sync Sync the datatabse to the current version.
version Report the current database version.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "placement/tests/unit/cmd/test_manage.py", line 55, in test_commands_associated
mock_command.assert_called_once_with()
File "/placement/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected 'db_version' to be called once. Called 0 times.
This started to fail since https://review.openstack.org/600161 was
merged.
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1804420
Title:
placement unit test
placement.tests.unit.cmd.test_manage.TestCommandParsers.test_commands_associated
fails on CentOS 7
Status in OpenStack Compute (nova):
New
Bug description:
Test
placement.tests.unit.cmd.test_manage.TestCommandParsers.test_commands_associated
fails to run using tox -epy27 on CentOS 7. However, it works fine on
Fedora 28 (with a different Python 2 version).
I get the following:
placement.tests.unit.cmd.test_manage.TestCommandParsers.test_commands_associated
--------------------------------------------------------------------------------
Captured stdout:
~~~~~~~~~~~~~~~~
usage: run db [-h] {sync,version} ...
optional arguments:
-h, --help show this help message and exit
subcommands:
database commands
{sync,version}
sync Sync the datatabse to the current version.
version Report the current database version.
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "placement/tests/unit/cmd/test_manage.py", line 55, in test_commands_associated
mock_command.assert_called_once_with()
File "/placement/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 947, in assert_called_once_with
raise AssertionError(msg)
AssertionError: Expected 'db_version' to be called once. Called 0 times.
This started to fail since https://review.openstack.org/600161 was
merged.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1804420/+subscriptions
Follow ups