extend_volume for libvirt / iscsi volumes fails due to faulty debug code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
MarkMielke |
Bug Description
Python module nova/virt/
def extend_volume(self, connection_info, instance, requested_size):
"""Extend the volume."""
new_size = self.connector.
return new_size
In cases where device_path is not available, the above code fails due to LOG.debug():
2021-07-15 16:03:41.137 1546583 WARNING nova.compute.
2021-07-15 16:03:41.170 1546583 ERROR oslo_messaging.
...
2021-07-15 16:03:41.170 1546583 ERROR oslo_messaging.
2021-07-15 16:03:41.170 1546583 ERROR oslo_messaging.
2021-07-15 16:03:41.170 1546583 ERROR oslo_messaging.
If this code is commented out, the use case works correctly. Also, there is other code in Nova and os-brick that acknowledges that device_path may not be set, such as in nova/virt/
# NOTE(lyarwood): Find the path to provide to qemu-img
if 'device_path' in connection_
It seems like this is a left over code path that does not handle the case that device_path must be derived at runtime, and is not captured in conneciton_
Changed in nova: | |
assignee: | nobody → MarkMielke (mark-mielke) |
Fix proposed to branch: master /review. opendev. org/c/openstack /nova/+ /801003
Review: https:/