summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorzhongjun <zhong.jun@zte.com.cn>2017-04-24 10:32:51 +0800
committerzhongjun <zhong.jun@zte.com.cn>2017-04-24 10:44:00 +0800
commita3ef3c57cf4b6dde928896b6ea39c864490042f1 (patch)
tree0923e5a6ae8c77772ed6328cbcaf8e121cc10430 /deploy
parent17db096d1bbbaabd30add632fc91e4e48afc990f (diff)
Unify the kolla config in py
put the kolla nova-compute.conf file update handle to prepare/ execute.py for unify the all relate kolla config in py way. Change-Id: Iac585df97d2855038a83f9bfdadfb9e449660c9c Signed-off-by: zhongjun <zhong.jun@zte.com.cn>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/prepare/execute.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/prepare/execute.py b/deploy/prepare/execute.py
index 1e88755c..67c31b1b 100644
--- a/deploy/prepare/execute.py
+++ b/deploy/prepare/execute.py
@@ -38,6 +38,13 @@ def _config_service(service, subs):
return _wrap
+@_config_service('nova', ['compute'])
+def _set_default_compute():
+ return '[libvirt]\n' \
+ 'virt_type=qemu\n' \
+ 'cpu_mode=none\n'
+
+
@_config_service('nova', ['api'])
def _set_default_floating_pool(network_file):
xnet = NetworkConfig(network_file=network_file).ext_network_name
@@ -59,6 +66,7 @@ def main():
required=True,
help='network configuration file')
args = parser.parse_args()
+ _set_default_compute()
_set_default_floating_pool(args.network_file)
_set_trusts_auth()