From d95e1803022d810b876f38ec951482452ad3f2e3 Mon Sep 17 00:00:00 2001 From: Divya K Konoor Date: Fri, 22 Mar 2019 04:28:15 -0500 Subject: [PATCH] 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 --- nova_powervm/virt/powervm/driver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nova_powervm/virt/powervm/driver.py b/nova_powervm/virt/powervm/driver.py index 6c55b44b..0db99bce 100644 --- a/nova_powervm/virt/powervm/driver.py +++ b/nova_powervm/virt/powervm/driver.py @@ -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(