Add requested_size to extend_volume

Nova has changed the interface of the compute driver
extend_volume method [1] adding a new parameter namely
requested_size. This patch updates the signature of the
PowerVMDriver extend_volume method to match the change.

[1] https://review.openstack.org/#/c/613039/

Change-Id: I9df280bba8eb663dbe631a741f8d6f728b3b8f87
This commit is contained in:
Divya K Konoor 2019-03-22 04:28:15 -05:00
parent b3e195041d
commit d95e180302
1 changed files with 3 additions and 1 deletions

View File

@ -751,12 +751,14 @@ class PowerVMDriver(driver.ComputeDriver):
# to revise in the future as volume connectors evolve.
instance.save()
def extend_volume(self, connection_info, instance):
def extend_volume(self, connection_info, instance, requested_size):
"""Extend the disk attached to the instance.
:param dict connection_info: The connection for the extended volume.
:param nova.objects.instance.Instance instance:
The instance whose volume gets extended.
:param int requested_size: The requested new volume size in bytes. This
parameter is unused by this driver.
:return: None
"""
vol_drv = vol_attach.build_volume_driver(