Wrong arguments for 'detach_volume' of virt driver

Bug #1768965 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
In Progress
Undecided
Takashi Natsume

Bug Description

The 'detach_volume' method is called in nova/virt/block_device.py.

virt_driver.detach_volume(connection_info, instance, self['mount_device'], encryption=encryption)

https://github.com/openstack/nova/blob/0ef3c685b9d2e0049f38fcf1a268870e69a5b9cf/nova/virt/block_device.py#L473-L476

But the signature is as follows:

detach_volume(self, context, connection_info, instance, mountpoint, encryption=None)

The context is missing.

https://github.com/openstack/nova/blob/0ef3c685b9d2e0049f38fcf1a268870e69a5b9cf/nova/virt/driver.py#L469-L470

nova master (commit 0ef3c685b9d2e0049f38fcf1a268870e69a5b9cf)

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/566152

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Takashi NATSUME (<email address hidden>) on branch: master
Review: https://review.openstack.org/566152

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.