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:
Evgeny Antyshev 2017-03-03 09:52:00 +00:00 committed by Javier Peña
parent 9544341126
commit b36cc282bd
2 changed files with 3 additions and 0 deletions

View File

@ -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:

View File

@ -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':