The solution
is rather simple: set the property allow_resize_to_same_host to true in /etc/nova/nova.conf . After this restart nova-compute and nova-api by doing
# systemctl restart openstack-nova-compute
# systemctl restart openstack-nova-api
Also be careful, if you set up to save the root disk inside of Cinder (boot and create volume). I still haven’t found a way to resize using Nova. Inexplicably the request times out and the instance enters the state VM_ERROR. The workaround I used is:
- Delete the instance while keeping the volume that contains the root.
- Create a new instance booting from the root volume of the precedent.
- Re-assign floating IP.
EDIT: After a few tweaks and a reboot I can now resize instances with root disk inside Cinder. It was probably due to a malfunction in the cinder-scheduler component.
Không có nhận xét nào :
Đăng nhận xét