From 113fccee9efc558e90b0a62adedccb29347d7f18 Mon Sep 17 00:00:00 2001 From: Harry Huang <huangxiangyu5@huawei.com> Date: Thu, 28 Feb 2019 14:16:34 +0800 Subject: Add ONAP scenario JIRA: - 1. Add ONAP plugin 2. Add ONAP scenario Change-Id: I80046811207f5786049fb9829e3d9f33ea31978a Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> --- deploy/conf/vm_environment/k8-nosdn-onap-noha.yml | 46 +++++++++++++++++++++++ deploy/prepare.sh | 4 +- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 deploy/conf/vm_environment/k8-nosdn-onap-noha.yml (limited to 'deploy') diff --git a/deploy/conf/vm_environment/k8-nosdn-onap-noha.yml b/deploy/conf/vm_environment/k8-nosdn-onap-noha.yml new file mode 100644 index 00000000..d7b85a85 --- /dev/null +++ b/deploy/conf/vm_environment/k8-nosdn-onap-noha.yml @@ -0,0 +1,46 @@ +############################################################################## +# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +--- +TYPE: virtual +FLAVOR: cluster + +plugins: + - onap: "Enable" + +hosts: + - name: host1 + roles: + - kube_master + - etcd + - ha + + - name: host2 + roles: + - kube_node + + - name: host3 + roles: + - kube_node + + - name: host4 + roles: + - kube_node + + - name: host5 + roles: + - kube_node + + - name: host6 + roles: + - kube_node + + - name: host7 + roles: + - kube_node diff --git a/deploy/prepare.sh b/deploy/prepare.sh index 59d76824..f11ae74c 100755 --- a/deploy/prepare.sh +++ b/deploy/prepare.sh @@ -53,9 +53,9 @@ function prepare_env() { sudo sed -i 's/^.\?tcp_port.*/tcp_port = "16509"/g' /etc/libvirt/libvirtd.conf sudo sed -i 's/^.\?listen_addr.*/listen_addr = "0.0.0.0"/g' /etc/libvirt/libvirtd.conf sudo sed -i 's/^.\?auth_tcp.*/auth_tcp = "none"/g' /etc/libvirt/libvirtd.conf - sudo sed -i 's/^.\?libvirtd_opts.*/libvirtd_opts = "-l"/g' /etc/default/libvirt-bin - + sudo sed -i 's/^.\?libvirtd_opts.*/libvirtd_opts="-d -l"/g' /etc/default/libvirt-bin sudo service libvirt-bin restart + if sudo service openvswitch-switch status|grep stop; then sudo service openvswitch-switch start fi -- cgit