Activity log for bug #1353788

Date Who What changed Old value New value Message
2014-08-07 02:27:41 wanghong bug added bug
2014-08-07 02:27:57 wanghong python-openstackclient: assignee wanghong (w-wanghong)
2014-08-07 03:17:42 wanghong description tox -e py27 openstackclient.tests.volume.test_find_resource ====================================================================== FAIL: openstackclient.tests.volume.test_find_resource.TestFindResourceVolumeSnapshots.test_find tags: worker-3 ---------------------------------------------------------------------- Empty attachments: stderr stdout Traceback (most recent call last): File "openstackclient/tests/volume/test_find_resource.py", line 65, in test_find result = utils.find_resource(self.manager, NAME) File "openstackclient/common/utils.py", line 62, in find_resource raise exceptions.CommandError(msg) CommandError: No snapshot with a name or ID of 'PhilSpector' exists. ====================================================================== FAIL: openstackclient.tests.volume.test_find_resource.TestFindResourceVolumes.test_find tags: worker-3 ---------------------------------------------------------------------- Empty attachments: stderr stdout Traceback (most recent call last): File "openstackclient/tests/volume/test_find_resource.py", line 43, in test_find result = utils.find_resource(self.manager, NAME) File "openstackclient/common/utils.py", line 62, in find_resource raise exceptions.CommandError(msg) CommandError: No volume with a name or ID of 'PhilSpector' exists. ====================================================================== Currently, we set 'NAME_ATTR' attribute for Volume and Snapshot class in https://github.com/openstack/python-openstackclient/blob/master/openstackclient/volume/client.py#L26. So, when we test test_find_resource singly the Volume Snapshot class do not have 'NAME_ATTR' attribute since we will not import volume.client. Then the test fails. If I add 'from openstackclient.volume import client' in test_find_resource.py, it works well! tox -e py27 openstackclient.tests.volume.test_find_resource ====================================================================== FAIL: openstackclient.tests.volume.test_find_resource.TestFindResourceVolumeSnapshots.test_find tags: worker-3 ---------------------------------------------------------------------- Empty attachments:   stderr   stdout Traceback (most recent call last):   File "openstackclient/tests/volume/test_find_resource.py", line 65, in test_find     result = utils.find_resource(self.manager, NAME)   File "openstackclient/common/utils.py", line 62, in find_resource     raise exceptions.CommandError(msg) CommandError: No snapshot with a name or ID of 'PhilSpector' exists. ====================================================================== FAIL: openstackclient.tests.volume.test_find_resource.TestFindResourceVolumes.test_find tags: worker-3 ---------------------------------------------------------------------- Empty attachments:   stderr   stdout Traceback (most recent call last):   File "openstackclient/tests/volume/test_find_resource.py", line 43, in test_find     result = utils.find_resource(self.manager, NAME)   File "openstackclient/common/utils.py", line 62, in find_resource     raise exceptions.CommandError(msg) CommandError: No volume with a name or ID of 'PhilSpector' exists. ====================================================================== Currently, we set 'NAME_ATTR' attribute for Volume and Snapshot class in https://github.com/openstack/python-openstackclient/blob/master/openstackclient/volume/client.py#L26. So, when we test test_find_resource singly the Volume and Snapshot class do not have 'NAME_ATTR' attribute since we will not import volume.client. Then the test fails. If I add 'from openstackclient.volume import client' in test_find_resource.py, it works well!
2014-08-07 03:22:11 OpenStack Infra python-openstackclient: status New In Progress
2014-08-07 22:07:58 OpenStack Infra python-openstackclient: status In Progress Fix Committed
2014-09-06 04:36:10 Dean Troyer python-openstackclient: milestone m5
2014-09-09 05:12:33 Dean Troyer python-openstackclient: status Fix Committed Fix Released