← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1172297] Re: Can use volume_id in nova.volume.cinder.API to reduce roundtrips with Cinder

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1172297

Title:
  Can use volume_id in nova.volume.cinder.API to reduce roundtrips with
  Cinder

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  Currently volume.cinder.API methods accept volume object as a parameter while the majority of them only needs volume_id.
  So API users need to do a redundant roundtrip with Cinder: first to get volume object and then pass it to another method (which only needs volume_id). 
  For example: 
  nova.api.openstack.compute.contrib.volumes.VolumeController.delete():
   ...
          try:
              vol = self.volume_api.get(context, id)
              self.volume_api.delete(context, vol)
   ...

  while volume_api.delete() method is just:
      def delete(self, context, volume):
          cinderclient(context).volumes.delete(volume['id'])

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1172297/+subscriptions