the function of _resize_instance lack of exception handling
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Env info:
openstack version: rocky
storage back-end: ceph
hypervisor: qemu/KVM
Sample traceback:
=======
[req-69c94c9a-
[instance: 642ab2df-
Setting instance vm_state to ERROR: OSError: [Errno 39] Directory not empty
Traceback (most recent call last):
File "/var/lib/
yield
File "/var/lib/
timeout, retry_interval)
File "/var/lib/
shared_storage)
File "/var/lib/
self.
File "/var/lib/
six.
File "/var/lib/
os.
OSError: [Errno 39] Directory not empty
Description:
=======
1. Executing VM resize error, and the the dir of inst_base_resize has been created by `os.rename(
2. Executing command of `openstack server set` to recover VM status to active.
3. Executing VM resize error again, and Exception in Sample traceback. The operation of `os.rename(
4. Whether or not execute `self._
tags: |
added: compute removed: comute |
Could you be a bit more specific? Where / how did nova fail during the first resize? Looking at migrate_ disk_and_ power_off( ), that does the original rename, it has exception handling that cleans up the change [1][2].
I'm marking this as Incomplete until my questions are answered. Please set it back to New when you did so.
[1] https:/ /github. com/openstack/ nova/blob/ stable/ rocky/nova/ virt/libvirt/ driver. py#L8491 /github. com/openstack/ nova/blob/ stable/ rocky/nova/ virt/libvirt/ driver. py#L8352
[2]https:/