Actually in this case it's a bit different from bug 1811235 but the same fix would apply. In this case the libvirt driver raises InstanceFaultRollback for the error:
https://github.com/openstack/nova/blob/9b2e00e015f22b2d876cd3c239af8e139040c8c8/nova/virt/libvirt/driver.py#L9546
That should now be handled here:
https://github.com/openstack/nova/blob/9b2e00e015f22b2d876cd3c239af8e139040c8c8/nova/compute/manager.py#L4718
https://github.com/openstack/nova/blob/9b2e00e015f22b2d876cd3c239af8e139040c8c8/nova/compute/manager.py#L8753
The vm_state gets reset to active because _resize_instance isn't passing in the instance_state and it defaults to ACTIVE:
https://github.com/openstack/nova/blob/9b2e00e015f22b2d876cd3c239af8e139040c8c8/nova/compute/manager.py#L8718
So we need to do like this change:
https://github.com/openstack/nova/blob/9b2e00e015f22b2d876cd3c239af8e139040c8c8/nova/compute/manager.py#L4591-L4593
Actually in this case it's a bit different from bug 1811235 but the same fix would apply. In this case the libvirt driver raises InstanceFaultRo llback for the error:
https:/ /github. com/openstack/ nova/blob/ 9b2e00e015f22b2 d876cd3c239af8e 139040c8c8/ nova/virt/ libvirt/ driver. py#L9546
That should now be handled here:
https:/ /github. com/openstack/ nova/blob/ 9b2e00e015f22b2 d876cd3c239af8e 139040c8c8/ nova/compute/ manager. py#L4718
https:/ /github. com/openstack/ nova/blob/ 9b2e00e015f22b2 d876cd3c239af8e 139040c8c8/ nova/compute/ manager. py#L8753
The vm_state gets reset to active because _resize_instance isn't passing in the instance_state and it defaults to ACTIVE:
https:/ /github. com/openstack/ nova/blob/ 9b2e00e015f22b2 d876cd3c239af8e 139040c8c8/ nova/compute/ manager. py#L8718
So we need to do like this change:
https:/ /github. com/openstack/ nova/blob/ 9b2e00e015f22b2 d876cd3c239af8e 139040c8c8/ nova/compute/ manager. py#L4591- L4593