Unable to get device_path from network mounted volume in extend in use

Bug #1786189 reported by Jose Castro Leon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Wishlist
Jose Castro Leon

Bug Description

While implementing support for extending in-use volumes for RBD, I've hit a bug as the code relies on the server having access to the devices that are visible in its filesystem through the device path. On network attached volumes in which the qemu process directly access the device over the network, this device_path attribute does not exist that leads to an exception.

https://github.com/openstack/nova/blob/master/nova/virt/libvirt/driver.py#L1636

...
            state = guest.get_power_state(self._host)
            active_state = state in (power_state.RUNNING, power_state.PAUSED)
            if active_state:
                disk_path = connection_info['data']['device_path'] <=====
                LOG.debug('resizing block device %(dev)s to %(size)u kb',
                          {'dev': disk_path, 'size': new_size})
                dev = guest.get_block_device(disk_path)
...

Tags: ceph libvirt
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/590188

Changed in nova:
assignee: nobody → Jose Castro Leon (jose-castro-leon)
status: New → In Progress
Revision history for this message
Jose Castro Leon (jose-castro-leon) wrote :

In order to expose it, I've added the implementation for extend in-use RBD volumes that depend on os-brick

https://review.openstack.org/#/c/589925/1

Matt Riedemann (mriedem)
Changed in nova:
importance: Undecided → Wishlist
tags: added: ceph libvirt
Revision history for this message
Matt Riedemann (mriedem) wrote :

I'm going to close this since it's not a bug, it's just required for this blueprint:

https://blueprints.launchpad.net/nova/+spec/extend-in-use-rbd-volumes

We can track the changes with the blueprint.

Changed in nova:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.