Comment 4 for bug 1263175

Revision history for this message
Yukihiro KAWADA (warp-kawada) wrote : Re: [Bug 1263175] Re: test_volume unittest failure

Hi Andres,

I'm sorry.
It was RDO codes that I saw.
My patch is not for orignal codes.
And I don't know stevedore module.

I'm sorry that we couldn't be of more help.
But I think taskflow maybe have some issue.

2014-01-25 Andres Buraschi <email address hidden>

> Hi Yukihiro, I have been trying to fix the root cause for this bug
> (without success, yet). Till now, I followed the problem to the
> 'stevedore.driver.DriverManager' initialization
> (taskflow/engines/heplers.py, in .tox folder), where apparently the
> entry points for the taskflow namespace are not correctly resolved.
>
> I tried your suggested patch, but unfortunately it fails anyway.
>
> I'm running the specific test with:
> python -m testtools.run discover --load-list mylist
>
> Where 'mylist' invokes:
>
> Reference for failure:
>
> cinder.tests.test_volume.VolumeTestCase.test_run_api_attach_detach_volume_with_wrong_attach_mode
>
> Reference for success (when running this test first, both work):
>
> cinder.tests.test_gpfs.GPFSDriverTestCase.test_create_delete_volume_full_backing_file
>
>
> Do you have any updates on this? I'll be happy to provide any further
> information that could be helpful.
>
> Regards.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1263175
>
> Title:
> test_volume unittest failure
>
> Status in Cinder:
> Confirmed
>
> Bug description:
> Test cases in test_volume.py failed a lot (46 out of 152) when only
> picking this module to run unit test. (./run_tests.sh
> cinder.tests.test_volume). Looks like taskflow is not properly
> mocked.
>
> ======================================================================
> FAIL:
> cinder.tests.test_volume.VolumeTestCase.test_run_api_attach_detach_volume_with_wrong_attach_mode
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> _StringException: Empty attachments:
> pythonlogging:''-1
> stderr
> stdout
>
> pythonlogging:'': {{{
> Failed to create manager volume flow
> Traceback (most recent call last):
> File "/opt/stack/cinder/cinder/volume/manager.py", line 311, in
> create_volume
> filter_properties=filter_properties)
> File
> "/opt/stack/cinder/cinder/volume/flows/create_volume/__init__.py", line
> 1680, in get_manager_flow
> return taskflow.engines.load(volume_flow, store=create_what)
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/taskflow/engines/helpers.py",
> line 80, in load
> 'backend': backend
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/driver.py",
> line 31, in __init__
> invoke_kwds=invoke_kwds,
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/named.py",
> line 44, in __init__
> self._init_plugins(extensions)
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/driver.py",
> line 66, in _init_plugins
> (self.namespace, name))
> RuntimeError: No 'taskflow.engines' driver found, looking for 'default'
> }}}
>
> Traceback (most recent call last):
> File "/opt/stack/cinder/cinder/tests/test_volume.py", line 1063, in
> test_run_api_attach_detach_volume_with_wrong_attach_mode
> self.volume.create_volume(self.context, volume_id)
> File "/opt/stack/cinder/cinder/utils.py", line 823, in wrapper
> return func(self, *args, **kwargs)
> File "/opt/stack/cinder/cinder/volume/manager.py", line 315, in
> create_volume
> _("Failed to create manager volume flow"))
> CinderException: Failed to create manager volume flow
>
>
> ======================================================================
> FAIL:
> cinder.tests.test_volume.VolumeTestCase.test_run_attach_detach_volume_for_host
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> _StringException: Empty attachments:
> pythonlogging:''-1
> stderr
> stdout
>
> pythonlogging:'': {{{
> Failed to create manager volume flow
> Traceback (most recent call last):
> File "/opt/stack/cinder/cinder/volume/manager.py", line 311, in
> create_volume
> filter_properties=filter_properties)
> File
> "/opt/stack/cinder/cinder/volume/flows/create_volume/__init__.py", line
> 1680, in get_manager_flow
> return taskflow.engines.load(volume_flow, store=create_what)
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/taskflow/engines/helpers.py",
> line 80, in load
> 'backend': backend
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/driver.py",
> line 31, in __init__
> invoke_kwds=invoke_kwds,
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/named.py",
> line 44, in __init__
> self._init_plugins(extensions)
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/driver.py",
> line 66, in _init_plugins
> (self.namespace, name))
> RuntimeError: No 'taskflow.engines' driver found, looking for 'default'
> }}}
>
> Traceback (most recent call last):
> File "/opt/stack/cinder/cinder/tests/test_volume.py", line 894, in
> test_run_attach_detach_volume_for_host
> self.volume.create_volume(self.context, volume_id)
> File "/opt/stack/cinder/cinder/utils.py", line 823, in wrapper
> return func(self, *args, **kwargs)
> File "/opt/stack/cinder/cinder/volume/manager.py", line 315, in
> create_volume
> _("Failed to create manager volume flow"))
> CinderException: Failed to create manager volume flow
>
>
> ======================================================================
> FAIL:
> cinder.tests.test_volume.VolumeTestCase.test_run_attach_detach_volume_for_instance
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> _StringException: Empty attachments:
> pythonlogging:''-1
> stderr
> stdout
>
> pythonlogging:'': {{{
> Failed to create manager volume flow
> Traceback (most recent call last):
> File "/opt/stack/cinder/cinder/volume/manager.py", line 311, in
> create_volume
> filter_properties=filter_properties)
> File
> "/opt/stack/cinder/cinder/volume/flows/create_volume/__init__.py", line
> 1680, in get_manager_flow
> return taskflow.engines.load(volume_flow, store=create_what)
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/taskflow/engines/helpers.py",
> line 80, in load
> 'backend': backend
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/driver.py",
> line 31, in __init__
> invoke_kwds=invoke_kwds,
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/named.py",
> line 44, in __init__
> self._init_plugins(extensions)
> File
> "/opt/stack/cinder/.venv/lib/python2.7/site-packages/stevedore/driver.py",
> line 66, in _init_plugins
> (self.namespace, name))
> RuntimeError: No 'taskflow.engines' driver found, looking for 'default'
> }}}
>
> Traceback (most recent call last):
> File "/opt/stack/cinder/cinder/tests/test_volume.py", line 852, in
> test_run_attach_detach_volume_for_instance
> self.volume.create_volume(self.context, volume_id)
> File "/opt/stack/cinder/cinder/utils.py", line 823, in wrapper
> return func(self, *args, **kwargs)
> File "/opt/stack/cinder/cinder/volume/manager.py", line 315, in
> create_volume
> _("Failed to create manager volume flow"))
> CinderException: Failed to create manager volume flow
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cinder/+bug/1263175/+subscriptions
>

--
===
Yukihiro KAWADA