Fixes errors when nova is disabled
This patch checks if nova is disabled in some plugins so we can run packstack with CONFIG_NOVA_INSTALL=n Added also an ALL option to the firewall template. Change-Id: I05a9bd55c89d4009e28307248d74624533d47240 Fixes: rhbz#987888 rhbz#1024564 rhbz#1026795
This commit is contained in:
@@ -8,6 +8,7 @@ import logging
|
||||
from packstack.installer import validators
|
||||
from packstack.installer import basedefs
|
||||
from packstack.installer import utils
|
||||
from packstack.installer.utils import split_hosts
|
||||
|
||||
from packstack.modules.ospluginutils import getManifestTemplate, appendManifestFile
|
||||
|
||||
@@ -98,8 +99,10 @@ def createmanifest(config):
|
||||
if config['CONFIG_CEILOMETER_INSTALL'] == 'y':
|
||||
manifestdata += getManifestTemplate('glance_ceilometer.pp')
|
||||
hosts = set()
|
||||
for host in config['CONFIG_NOVA_COMPUTE_HOSTS'].split(','):
|
||||
hosts.add(host.strip())
|
||||
if config['CONFIG_NOVA_INSTALL'] == 'y':
|
||||
hosts = split_hosts(config['CONFIG_NOVA_COMPUTE_HOSTS'])
|
||||
else:
|
||||
hosts.add('ALL',)
|
||||
config['FIREWALL_ALLOWED'] = ",".join(["'%s'" % i for i in hosts])
|
||||
config['FIREWALL_SERVICE_NAME'] = "glance"
|
||||
config['FIREWALL_PORTS'] = "'9292'"
|
||||
|
||||
Reference in New Issue
Block a user