test_volume unittest failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Pranali Deore |
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.
=======
FAIL: cinder.
-------
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging
stderr
stdout
pythonlogging:'': {{{
Failed to create manager volume flow
Traceback (most recent call last):
File "/opt/stack/
filter_
File "/opt/stack/
return taskflow.
File "/opt/stack/
'backend': backend
File "/opt/stack/
invoke_
File "/opt/stack/
self.
File "/opt/stack/
(self.
RuntimeError: No 'taskflow.engines' driver found, looking for 'default'
}}}
Traceback (most recent call last):
File "/opt/stack/
self.
File "/opt/stack/
return func(self, *args, **kwargs)
File "/opt/stack/
_("Failed to create manager volume flow"))
CinderException: Failed to create manager volume flow
=======
FAIL: cinder.
-------
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging
stderr
stdout
pythonlogging:'': {{{
Failed to create manager volume flow
Traceback (most recent call last):
File "/opt/stack/
filter_
File "/opt/stack/
return taskflow.
File "/opt/stack/
'backend': backend
File "/opt/stack/
invoke_
File "/opt/stack/
self.
File "/opt/stack/
(self.
RuntimeError: No 'taskflow.engines' driver found, looking for 'default'
}}}
Traceback (most recent call last):
File "/opt/stack/
self.
File "/opt/stack/
return func(self, *args, **kwargs)
File "/opt/stack/
_("Failed to create manager volume flow"))
CinderException: Failed to create manager volume flow
=======
FAIL: cinder.
-------
Traceback (most recent call last):
_StringException: Empty attachments:
pythonlogging
stderr
stdout
pythonlogging:'': {{{
Failed to create manager volume flow
Traceback (most recent call last):
File "/opt/stack/
filter_
File "/opt/stack/
return taskflow.
File "/opt/stack/
'backend': backend
File "/opt/stack/
invoke_
File "/opt/stack/
self.
File "/opt/stack/
(self.
RuntimeError: No 'taskflow.engines' driver found, looking for 'default'
}}}
Traceback (most recent call last):
File "/opt/stack/
self.
File "/opt/stack/
return func(self, *args, **kwargs)
File "/opt/stack/
_("Failed to create manager volume flow"))
CinderException: Failed to create manager volume flow
Changed in cinder: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: taskflow |
Changed in cinder: | |
assignee: | nobody → Andres Buraschi (andres-buraschi) |
Changed in cinder: | |
assignee: | Andres Buraschi (andres-buraschi) → Pranali Deore (pranali-deore) |
Changed in cinder: | |
milestone: | none → icehouse-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-3 → 2014.1 |
I've also found this problem actually.
Havana latest stable release's create volume does not work at all.
I will attach the patch for this issue.
--- a/volume/manager.py manager. SchedulerDepend entManager) :
filter_ properties = {}
flow_ engine = create_ volume. get_manager_ flow(
self. db,
self. driver,
self. scheduler_ rpcapi,
self. host,
volume_ id, spec=request_ spec, properties= filter_ properties, e=allow_ reschedule,
snapshot_ id=snapshot_ id,
image_ id=image_ id,
source_ volid=source_ volid, e=allow_ reschedule, context= context_ saved, spec=request_ spec, properties= filter_ properties) context= context_ saved)
LOG. exception( _("Failed to create manager volume flow")) CinderException ( manager. SchedulerDepend entManager) : run(context) # Y.Kawada
+++ b/volume/manager.py
@@ -293,22 +293,24 @@ class VolumeManager(
context = context.elevated()
if filter_properties is None:
try:
- context,
+# context, Y.Kawada
+ request_
+ filter_
+ allow_reschedul
- allow_reschedul
- reschedule_
- request_
- filter_
+ reschedule_
except Exception:
raise exception.
@@ -328,7 +330,7 @@ class VolumeManager(
# flow reverts all job that was done and reraises an exception.
# Otherwise, all data that was generated by flow becomes available
# in flow engine's storage.
- flow_engine.run()
+ flow_engine.