diff --git a/doc/source/support-matrix.ini b/doc/source/support-matrix.ini index 3d7a844a..1617d7b3 100644 --- a/doc/source/support-matrix.ini +++ b/doc/source/support-matrix.ini @@ -113,7 +113,7 @@ notes=The extend volume operation provides a means to extend Therefore this operation is not considered to be mandatory to support. cli=cinder extend driver-impl-powervm=partial -driver-notes-powervm=Only supported for NPIV, FileIO, and iSCSI volumes. +driver-notes-powervm=Not supported for rbd volumes. [operation.attach-interface] title=Attach virtual network interface to instance diff --git a/nova_powervm/tests/virt/powervm/volume/test_vscsi.py b/nova_powervm/tests/virt/powervm/volume/test_vscsi.py index 5dcce8ec..9202a24f 100644 --- a/nova_powervm/tests/virt/powervm/volume/test_vscsi.py +++ b/nova_powervm/tests/virt/powervm/volume/test_vscsi.py @@ -1,4 +1,4 @@ -# Copyright 2015, 2017 IBM Corp. +# Copyright 2015, 2018 IBM Corp. # # All Rights Reserved. # @@ -290,6 +290,10 @@ class TestVSCSIAdapter(BaseVSCSITest): self.assertRaises(p_exc.VolumeAttachFailed, self.vol_drv._validate_vios_on_connection, 1) + def test_extend_volume(self): + # Ensure the method is implemented + self.vol_drv.extend_volume() + @mock.patch('pypowervm.tasks.hdisk.remove_hdisk') @mock.patch('pypowervm.wrappers.virtual_io_server.VIOS.hdisk_from_uuid') @mock.patch('pypowervm.tasks.scsi_mapper.remove_maps') diff --git a/nova_powervm/virt/powervm/volume/vscsi.py b/nova_powervm/virt/powervm/volume/vscsi.py index efe30e1d..91e4e19a 100644 --- a/nova_powervm/virt/powervm/volume/vscsi.py +++ b/nova_powervm/virt/powervm/volume/vscsi.py @@ -1,4 +1,4 @@ -# Copyright 2015, 2017 IBM Corp. +# Copyright 2015, 2018 IBM Corp. # # All Rights Reserved. # @@ -163,6 +163,11 @@ class PVVscsiFCVolumeAdapter(volume.VscsiVolumeAdapter, vios_w, self.volume_id) return hdisk.good_discovery(status, device_name), udid + def extend_volume(self): + # The compute node does not need to take any additional steps for the + # client to see the extended volume. + pass + def _discover_volume_on_vios(self, vios_w, volume_id): """Discovers an hdisk on a single vios for the volume.