Attach volume fails with NameError: global name 'vol' is not defined

Bug #816555 reported by Rohit Karajgi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Vish Ishaya

Bug Description

On the latest trunk:
-------------------- >> begin captured logging << --------------------
2011-07-26 07:49:47,488 DEBUG nova.utils [-] backend <module 'nova.db.sqlalchemy.api' from '/home/rohit/nova/diablo/libvirt-negative-tests/nova/db/sqlalchemy/api.pyc'> from (pid=16728) __get_backend /home/rohit/nova/diablo/libvirt-negative-tests/nova/utils.py:417
2011-07-26 07:49:47,627 AUDIT nova.auth.manager [-] Created user fake (admin: True)
2011-07-26 07:49:47,783 AUDIT nova.auth.manager [-] Created project fake with manager fake
2011-07-26 07:49:47,860 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/home/rohit/nova/diablo/libvirt-negative-tests/nova/exception.py", line 97, in wrapped
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/home/rohit/nova/diablo/libvirt-negative-tests/nova/virt/libvirt/connection.py", line 339, in attach_volume
(nova.exception): TRACE: self._get_volume_device_info(vol['device_path'])
(nova.exception): TRACE: NameError: global name 'vol' is not defined
(nova.exception): TRACE:
--------------------- >> end captured logging << ---------------------

Related branches

Revision history for this message
Rohit Karajgi (rohitk) wrote :

This bug is present in /nova/virt/libvirt/connection.py (revision 1326)

Rohit Karajgi (rohitk)
Changed in nova:
assignee: nobody → Rohit Karajgi (rohitkarajgi)
status: New → Confirmed
Revision history for this message
Rohit Karajgi (rohitk) wrote :

Simple fix is to use the input parameter 'device_path' instead of the 'vol' dictionary device path.

Revision history for this message
Vish Ishaya (vishvananda) wrote :

This is an important bug. Please submit a merge prop if you have a fix.

Changed in nova:
milestone: none → diablo-3
importance: Undecided → Critical
Revision history for this message
Vish Ishaya (vishvananda) wrote :

ah i see it. i will submit a hot-fix

Changed in nova:
assignee: Rohit Karajgi (rohitkarajgi) → Vish Ishaya (vishvananda)
Revision history for this message
Rohit Karajgi (rohitk) wrote :

Ok. Thanks Vish!

Changed in nova:
status: Confirmed → In Progress
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-3 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.