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>
if [ $IS_BARE == 0 ];then
echo "====== add relate config of kolla ======"
- ssh $SSH_PARAS $DAISY_IP "mkdir -p /etc/kolla/config/nova"
- ssh $SSH_PARAS $DAISY_IP "echo -e '[libvirt]\nvirt_type=qemu\ncpu_mode=none' >> /etc/kolla/config/nova/nova-compute.conf"
ssh $SSH_PARAS $DAISY_IP "bash $REMOTE_SPACE/deploy/prepare.sh -n $NETWORK"
fi
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
required=True,
help='network configuration file')
args = parser.parse_args()
+ _set_default_compute()
_set_default_floating_pool(args.network_file)
_set_trusts_auth()