Allow resize to same host in all-in-one
There seems to be no use cases of having single compute node and forbidding to resize instances on it. This change enables "allow_resize_to_same_host" in nova.conf and makes it possible to run Tempest tests for resize. Change-Id: I090506d5e035b95a506f05b2c6608524ab2b63e9
This commit is contained in:
parent
9544341126
commit
b36cc282bd
|
@ -352,6 +352,8 @@ def create_compute_manifest(config, messages):
|
|||
'qemu+tcp://nova@%s/system'
|
||||
)
|
||||
|
||||
config["CONFIG_NOVA_ALLOW_RESIZE_TO_SAME"] = len(compute_hosts) == 1
|
||||
|
||||
ssh_keys_details = {}
|
||||
for host in compute_hosts:
|
||||
try:
|
||||
|
|
|
@ -57,6 +57,7 @@ class packstack::nova::compute ()
|
|||
pci_passthrough => hiera('CONFIG_NOVA_PCI_PASSTHROUGH_WHITELIST'),
|
||||
instance_usage_audit => $instance_usage_audit,
|
||||
instance_usage_audit_period => $instance_usage_audit_period,
|
||||
allow_resize_to_same_host => hiera('CONFIG_NOVA_ALLOW_RESIZE_TO_SAME'),
|
||||
}
|
||||
|
||||
class { '::nova::placement':
|
||||
|
|
Loading…
Reference in New Issue