summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbaigk <baiguoku@huawei.com>2015-09-19 11:07:44 +0800
committerbaigk <baiguoku@huawei.com>2015-09-19 16:57:18 +0800
commit95e055a4582070548cb1632934fa18af7be76ced (patch)
tree5e93d728bc3dc2e12d4794978ebf0fad477ac76f
parent952e99a21501899b5e2615443fd1518b9d316b2e (diff)
support to assign ppa name when deploy openstack
JIRA: COMPASS-63 Change-Id: Ifdaa8a82e849291c1b5d5a48f9f678f5bb417a89 Signed-off-by: baigk <baiguoku@huawei.com>
-rw-r--r--deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml (renamed from deploy/adapters/ansible/openstack_juno/HA-ansible-multinodes.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/allinone.yml (renamed from deploy/adapters/ansible/openstack_juno/allinone.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/compute.yml (renamed from deploy/adapters/ansible/openstack_juno/compute.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/controller.yml (renamed from deploy/adapters/ansible/openstack_juno/controller.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/group_vars/all (renamed from deploy/adapters/ansible/openstack_juno/group_vars/all)0
-rw-r--r--deploy/adapters/ansible/openstack/multinodes.yml (renamed from deploy/adapters/ansible/openstack_juno/multinodes.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/network.yml (renamed from deploy/adapters/ansible/openstack_juno/network.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/single-controller.yml (renamed from deploy/adapters/ansible/openstack_juno/single-controller.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/storage.yml (renamed from deploy/adapters/ansible/openstack_juno/storage.yml)0
-rw-r--r--deploy/adapters/ansible/openstack/templates/dnsmasq-neutron.conf (renamed from deploy/adapters/ansible/openstack_juno/templates/dnsmasq-neutron.conf)0
-rw-r--r--deploy/adapters/ansible/openstack/templates/ml2_conf.ini (renamed from deploy/adapters/ansible/openstack_juno/templates/ml2_conf.ini)0
-rw-r--r--deploy/adapters/ansible/openstack/templates/neutron-network.conf (renamed from deploy/adapters/ansible/openstack_juno/templates/neutron-network.conf)0
-rw-r--r--deploy/adapters/ansible/openstack/templates/neutron.conf (renamed from deploy/adapters/ansible/openstack_juno/templates/neutron.conf)0
-rw-r--r--deploy/adapters/ansible/openstack/templates/nova.conf (renamed from deploy/adapters/ansible/openstack_juno/templates/nova.conf)0
-rw-r--r--deploy/adapters/ansible/roles/ha/templates/haproxy.cfg2
-rw-r--r--deploy/client.py7
-rw-r--r--deploy/compass_vm.sh3
-rw-r--r--deploy/conf/cluster.conf6
-rw-r--r--deploy/conf/five.conf4
-rw-r--r--deploy/deploy_host.sh2
20 files changed, 17 insertions, 7 deletions
diff --git a/deploy/adapters/ansible/openstack_juno/HA-ansible-multinodes.yml b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
index 692650b5..692650b5 100644
--- a/deploy/adapters/ansible/openstack_juno/HA-ansible-multinodes.yml
+++ b/deploy/adapters/ansible/openstack/HA-ansible-multinodes.yml
diff --git a/deploy/adapters/ansible/openstack_juno/allinone.yml b/deploy/adapters/ansible/openstack/allinone.yml
index 4539e5fb..4539e5fb 100644
--- a/deploy/adapters/ansible/openstack_juno/allinone.yml
+++ b/deploy/adapters/ansible/openstack/allinone.yml
diff --git a/deploy/adapters/ansible/openstack_juno/compute.yml b/deploy/adapters/ansible/openstack/compute.yml
index 8f6100ca..8f6100ca 100644
--- a/deploy/adapters/ansible/openstack_juno/compute.yml
+++ b/deploy/adapters/ansible/openstack/compute.yml
diff --git a/deploy/adapters/ansible/openstack_juno/controller.yml b/deploy/adapters/ansible/openstack/controller.yml
index 0269281e..0269281e 100644
--- a/deploy/adapters/ansible/openstack_juno/controller.yml
+++ b/deploy/adapters/ansible/openstack/controller.yml
diff --git a/deploy/adapters/ansible/openstack_juno/group_vars/all b/deploy/adapters/ansible/openstack/group_vars/all
index 5643fcd9..5643fcd9 100644
--- a/deploy/adapters/ansible/openstack_juno/group_vars/all
+++ b/deploy/adapters/ansible/openstack/group_vars/all
diff --git a/deploy/adapters/ansible/openstack_juno/multinodes.yml b/deploy/adapters/ansible/openstack/multinodes.yml
index 5b43a696..5b43a696 100644
--- a/deploy/adapters/ansible/openstack_juno/multinodes.yml
+++ b/deploy/adapters/ansible/openstack/multinodes.yml
diff --git a/deploy/adapters/ansible/openstack_juno/network.yml b/deploy/adapters/ansible/openstack/network.yml
index 77752e45..77752e45 100644
--- a/deploy/adapters/ansible/openstack_juno/network.yml
+++ b/deploy/adapters/ansible/openstack/network.yml
diff --git a/deploy/adapters/ansible/openstack_juno/single-controller.yml b/deploy/adapters/ansible/openstack/single-controller.yml
index 96ec0a6a..96ec0a6a 100644
--- a/deploy/adapters/ansible/openstack_juno/single-controller.yml
+++ b/deploy/adapters/ansible/openstack/single-controller.yml
diff --git a/deploy/adapters/ansible/openstack_juno/storage.yml b/deploy/adapters/ansible/openstack/storage.yml
index f0be1381..f0be1381 100644
--- a/deploy/adapters/ansible/openstack_juno/storage.yml
+++ b/deploy/adapters/ansible/openstack/storage.yml
diff --git a/deploy/adapters/ansible/openstack_juno/templates/dnsmasq-neutron.conf b/deploy/adapters/ansible/openstack/templates/dnsmasq-neutron.conf
index 7bcbd9df..7bcbd9df 100644
--- a/deploy/adapters/ansible/openstack_juno/templates/dnsmasq-neutron.conf
+++ b/deploy/adapters/ansible/openstack/templates/dnsmasq-neutron.conf
diff --git a/deploy/adapters/ansible/openstack_juno/templates/ml2_conf.ini b/deploy/adapters/ansible/openstack/templates/ml2_conf.ini
index 7b3e76da..7b3e76da 100644
--- a/deploy/adapters/ansible/openstack_juno/templates/ml2_conf.ini
+++ b/deploy/adapters/ansible/openstack/templates/ml2_conf.ini
diff --git a/deploy/adapters/ansible/openstack_juno/templates/neutron-network.conf b/deploy/adapters/ansible/openstack/templates/neutron-network.conf
index 63ac27ee..63ac27ee 100644
--- a/deploy/adapters/ansible/openstack_juno/templates/neutron-network.conf
+++ b/deploy/adapters/ansible/openstack/templates/neutron-network.conf
diff --git a/deploy/adapters/ansible/openstack_juno/templates/neutron.conf b/deploy/adapters/ansible/openstack/templates/neutron.conf
index 8a5e76ee..8a5e76ee 100644
--- a/deploy/adapters/ansible/openstack_juno/templates/neutron.conf
+++ b/deploy/adapters/ansible/openstack/templates/neutron.conf
diff --git a/deploy/adapters/ansible/openstack_juno/templates/nova.conf b/deploy/adapters/ansible/openstack/templates/nova.conf
index 559a6d82..559a6d82 100644
--- a/deploy/adapters/ansible/openstack_juno/templates/nova.conf
+++ b/deploy/adapters/ansible/openstack/templates/nova.conf
diff --git a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
index 3c18d362..f1a2312c 100644
--- a/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
+++ b/deploy/adapters/ansible/roles/ha/templates/haproxy.cfg
@@ -6,7 +6,7 @@ global
group haproxy
maxconn 4000
pidfile /var/run/haproxy/haproxy.pid
- log 127.0.0.1 local0
+ #log 127.0.0.1 local0
tune.bufsize 1000000
stats socket /var/run/haproxy.sock
stats timeout 2m
diff --git a/deploy/client.py b/deploy/client.py
index 48602c42..33d987ee 100644
--- a/deploy/client.py
+++ b/deploy/client.py
@@ -213,6 +213,9 @@ opts = [
cfg.StrOpt('cluster_prv_vip',
help='cluster ip address',
default=''),
+ cfg.StrOpt('repo_name',
+ help='repo name',
+ default=''),
]
CONF.register_cli_opts(opts)
@@ -414,6 +417,7 @@ class CompassClient(object):
http_proxy = CONF.http_proxy
https_proxy = CONF.https_proxy
local_repo_url = CONF.local_repo_url
+ repo_name = CONF.repo_name
if not https_proxy and http_proxy:
https_proxy = http_proxy
@@ -453,7 +457,6 @@ class CompassClient(object):
if not default_gateway:
raise Exception('default gateway is not defined')
-
general_config = {
'language': language,
'timezone': timezone,
@@ -474,6 +477,8 @@ class CompassClient(object):
general_config['search_path'] = search_path
if local_repo_url:
general_config['local_repo'] = local_repo_url
+ if repo_name:
+ general_config['repo_name'] = repo_name
os_config["general"] = general_config
diff --git a/deploy/compass_vm.sh b/deploy/compass_vm.sh
index 067918da..d3fec236 100644
--- a/deploy/compass_vm.sh
+++ b/deploy/compass_vm.sh
@@ -28,6 +28,7 @@ function install_compass_core() {
}
function wait_ok() {
+ set +x
log_info "wait_compass_ok enter"
retry=0
until timeout 1s ssh $ssh_args root@$MGMT_IP "exit" >/dev/null 2>&1
@@ -40,7 +41,7 @@ function wait_ok() {
exit 1
fi
done
-
+ set -x
log_warn "os install time used: 100%"
log_info "wait_compass_ok exit"
}
diff --git a/deploy/conf/cluster.conf b/deploy/conf/cluster.conf
index 71fe0b76..b905957d 100644
--- a/deploy/conf/cluster.conf
+++ b/deploy/conf/cluster.conf
@@ -1,5 +1,7 @@
-export ADAPTER_OS_PATTERN='(?i)ubuntu-14\.04\.3.*'
-#export ADAPTER_OS_PATTERN='(?i)CentOS-7.*1503-01.*'
+export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)ubuntu-14\.04\.3.*'}
+#export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*1503-01.*'}
+export REPO_NAME=${REPO_NAME:-"trusty-juno-ppa"}
+#export REPO_NAME=${REPO_NAME:-"centos7-juno-ppa"}
export ADAPTER_NAME="openstack_juno"
export ADAPTER_TARGET_SYSTEM_PATTERN="^openstack$"
export ADAPTER_FLAVOR_PATTERN="HA-ansible-multinodes"
diff --git a/deploy/conf/five.conf b/deploy/conf/five.conf
index 9abc3e9e..beff1c54 100644
--- a/deploy/conf/five.conf
+++ b/deploy/conf/five.conf
@@ -1,5 +1,7 @@
export ADAPTER_OS_PATTERN='(?i)ubuntu-14\.04\.3.*'
-#export ADAPTER_OS_PATTERN='(?i)CentOS-7.*1503-01.*'
+#export ADAPTER_OS_PATTERN=${ADAPTER_OS_PATTERN:-'(?i)CentOS-7.*1503-01.*'}
+export REPO_NAME=${REPO_NAME:-"trusty-juno-ppa"}
+#export REPO_NAME=${REPO_NAME:-"centos7-juno-ppa"}
export ADAPTER_NAME="openstack_juno"
export ADAPTER_TARGET_SYSTEM_PATTERN="^openstack$"
export ADAPTER_FLAVOR_PATTERN="single-controller"
diff --git a/deploy/deploy_host.sh b/deploy/deploy_host.sh
index a4dbd00a..92853469 100644
--- a/deploy/deploy_host.sh
+++ b/deploy/deploy_host.sh
@@ -14,7 +14,7 @@ function deploy_host(){
--hostnames="${HOSTNAMES}" --partitions="${PARTITIONS}" --subnets="${SUBNETS}" \
--adapter_os_pattern="${ADAPTER_OS_PATTERN}" --adapter_name="${ADAPTER_NAME}" \
--adapter_target_system_pattern="${ADAPTER_TARGET_SYSTEM_PATTERN}" \
- --adapter_flavor_pattern="${ADAPTER_FLAVOR_PATTERN}" \
+ --adapter_flavor_pattern="${ADAPTER_FLAVOR_PATTERN}" --repo_name="${REPO_NAME}" \
--http_proxy="${PROXY}" --https_proxy="${PROXY}" --no_proxy="${IGNORE_PROXY}" \
--ntp_server="${NTP_SERVER}" --dns_servers="${NAMESERVERS}" --domain="${DOMAIN}" \
--search_path="${SEARCH_PATH}" --default_gateway="${GATEWAY}" \