|
|
$ sudo vi /etc/nova/nova.conf
0 x/ w- y, O5 H& c, c' `5 e4 R! WAdd the line to [DEFAULT] section.' I, C& \( g5 c3 ^+ \/ ]: R
% s1 J6 q9 W+ P ?) l) q4 O
[DEFAULT]
1 h# B% G; t3 x" P" u0 kallow_resize_to_same_host = True) Z6 e1 h/ T& r: d! G
state_path = /var/lib/nova, j! u4 P! @8 D, T8 V5 z
enabled_apis = osapi_compute,metadata* k' P. s% l G0 T; b8 j
log_dir = /var/log/nova1 [6 J6 ]4 I% V7 h
use_neutron = True
. z) |9 g4 G$ q8 M% U5 N8 Qlinuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver& I( O- L* X/ _" v% Q0 b" |
firewall_driver = nova.virt.firewall.NoopFirewallDriver+ ^# G# L& M2 ^) v3 ~1 A
vif_plugging_is_fatal = True. G3 U9 r2 _1 h/ ^. b5 a, Q
vif_plugging_timeout = 300( ?+ j7 W2 `$ Q" |7 k
resume_guests_state_on_host_boot = True
, X h7 P" y( e7 t9 }$ ?, P7 j7 `3 j+ z( g. P4 f, H
/ i4 k1 w: a% o7 f/ d5 K( _
The same setting can be added with3 O3 l- V$ Y9 s$ l) H
sudo openstack-config --set /etc/nova/nova.conf DEFAULT allow_resize_to_same_host True
. w% u9 P5 k! D/ e. yDisplay the value set:) @, O3 [% U9 T. }+ X" ]
$ openstack-config --get /etc/nova/nova.conf DEFAULT allow_resize_to_same_host True
* d0 P) O" E g
' W' y/ g5 ]0 F" E S' wRestart OpenStack Nova services.& [; J$ Q& e- {1 h6 X5 c
for service in compute api scheduler; do8 K3 [6 ?) f. b- g) ]# A3 h
sudo systemctl restart openstack-nova-${service}.service% ^3 h5 K h& E+ R! B" p
done3 ~5 c$ }1 n- z! w" E, w+ }
Retry instance resizing.# a. ^: |, `* n' k- p
S1 g. H& e/ k
|
|