← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1940521] [NEW] Resize attached volume with fiberchannel

 

Public bug reported:

We use volume_backed instances.
After live migration in connection_info desapiaring information about "device_path".
Resizing of attached volumes failed because in debug message try to get "device_path".

--- /usr/lib/python3/dist-packages/nova/virt/libvirt/volume/fibrechannel.py	2021-05-26 16:14:34.000000000 +0300
+++ /usr/lib/python3/dist-packages/nova/virt/libvirt/volume/fibrechannel_new.py	2021-05-26 16:14:38.000000000 +0300
@@ -80,6 +80,6 @@
         LOG.debug("calling os-brick to extend FC Volume", instance=instance)
         new_size = self.connector.extend_volume(connection_info['data'])
         LOG.debug("Extend FC Volume %s; new_size=%s",
-                  connection_info['data']['device_path'],
+                  connection_info['volume_id'],
                   new_size, instance=instance)
         return new_size

I think change device_path to volume_id will be better and do not rise
this exception.

Release Victoria.
Storage Huawei Dorado V3

** Affects: nova
     Importance: Undecided
         Status: New

** Patch added: "0003_fiberchannel.patch"
   https://bugs.launchpad.net/bugs/1940521/+attachment/5519056/+files/0003_fiberchannel.patch

** Description changed:

- We use volume_backed instances. 
+ We use volume_backed instances.
  After live migration in connection_info desapiaring information about "device_path".
- Reseize attached volumes failed because in debug message try to get "device_path".
+ Resizing of attached volumes failed because in debug message try to get "device_path".
  
  --- /usr/lib/python3/dist-packages/nova/virt/libvirt/volume/fibrechannel.py	2021-05-26 16:14:34.000000000 +0300
  +++ /usr/lib/python3/dist-packages/nova/virt/libvirt/volume/fibrechannel_new.py	2021-05-26 16:14:38.000000000 +0300
  @@ -80,6 +80,6 @@
-          LOG.debug("calling os-brick to extend FC Volume", instance=instance)
-          new_size = self.connector.extend_volume(connection_info['data'])
-          LOG.debug("Extend FC Volume %s; new_size=%s",
+          LOG.debug("calling os-brick to extend FC Volume", instance=instance)
+          new_size = self.connector.extend_volume(connection_info['data'])
+          LOG.debug("Extend FC Volume %s; new_size=%s",
  -                  connection_info['data']['device_path'],
  +                  connection_info['volume_id'],
-                    new_size, instance=instance)
-          return new_size
+                    new_size, instance=instance)
+          return new_size
  
  I think change device_path to volume_id will be better and do not rise
  this exception.
  
  Release Victoria.
+ Storage Huawei Dorado V3

-- 
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/1940521

Title:
  Resize attached volume with fiberchannel

Status in OpenStack Compute (nova):
  New

Bug description:
  We use volume_backed instances.
  After live migration in connection_info desapiaring information about "device_path".
  Resizing of attached volumes failed because in debug message try to get "device_path".

  --- /usr/lib/python3/dist-packages/nova/virt/libvirt/volume/fibrechannel.py	2021-05-26 16:14:34.000000000 +0300
  +++ /usr/lib/python3/dist-packages/nova/virt/libvirt/volume/fibrechannel_new.py	2021-05-26 16:14:38.000000000 +0300
  @@ -80,6 +80,6 @@
           LOG.debug("calling os-brick to extend FC Volume", instance=instance)
           new_size = self.connector.extend_volume(connection_info['data'])
           LOG.debug("Extend FC Volume %s; new_size=%s",
  -                  connection_info['data']['device_path'],
  +                  connection_info['volume_id'],
                     new_size, instance=instance)
           return new_size

  I think change device_path to volume_id will be better and do not rise
  this exception.

  Release Victoria.
  Storage Huawei Dorado V3

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