|
|
$ sudo vi /etc/nova/nova.conf
L; C& M; J: a+ _, qAdd the line to [DEFAULT] section.$ n8 e. V" C$ O7 q* U
7 i/ R1 S, |- W: E2 N6 a[DEFAULT]* b7 p' ^' o d& e! \1 y
allow_resize_to_same_host = True6 I& |( X& q' ?) ^
state_path = /var/lib/nova
7 @9 E7 I( e+ H/ U tenabled_apis = osapi_compute,metadata/ A$ s2 w1 a! U8 ]' w) t
log_dir = /var/log/nova% ]- W* ?: Z9 w; ^3 k' g+ i* ?
use_neutron = True
' I* q$ l1 Q& Tlinuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver* C% V" h0 S( s$ g% o
firewall_driver = nova.virt.firewall.NoopFirewallDriver5 k! `; I8 K$ t; ]: s) o ^
vif_plugging_is_fatal = True
; b0 u7 x! T. Ivif_plugging_timeout = 3009 D$ Z& A5 j8 }+ I" o2 C
resume_guests_state_on_host_boot = True
) C. a0 u2 @/ ^' o4 n1 ^" @1 x6 F) e! c1 e
6 O- i2 U3 Z. }2 n/ B% }# H. MThe same setting can be added with8 U% L6 r5 L; Q }+ }: H8 m) q
sudo openstack-config --set /etc/nova/nova.conf DEFAULT allow_resize_to_same_host True- n6 |" ?0 E; [8 Z/ W1 |# N( H, U
Display the value set:
# f* q3 n# I% N" [' p, {$ openstack-config --get /etc/nova/nova.conf DEFAULT allow_resize_to_same_host True# C) T1 @* q5 _! V
) A5 L0 h3 `, y' ]4 j4 N5 E# LRestart OpenStack Nova services.
- M/ `% J, D7 h( q2 Xfor service in compute api scheduler; do/ J* w+ K: Y4 G; c. e; y( w
sudo systemctl restart openstack-nova-${service}.service9 J y1 }0 O0 T' B6 [; ]$ I$ _
done$ |3 T: w+ G# t+ {+ o; c0 l0 k! x
Retry instance resizing.
' O! s$ ~; K0 N" f. c6 ~5 i" Q5 r: g9 j; N" B
|
|