Run init-once in kolla-ansible folder

init-once is removed in kolla project

Change-Id: I088c90a332a52520b17ca24cedf0ed0f710889d9
This commit is contained in:
Jeffrey Zhang 2016-11-20 10:00:09 +08:00
parent 4ef26e8fab
commit 91f0ff1c91

View File

@ -8,9 +8,9 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export KOLLA_BASE=$1 export KOLLA_BASE=$1
export KOLLA_TYPE=$2 export KOLLA_TYPE=$2
export KEEPALIVED_VIRTUAL_ROUTER_ID=$(shuf -i 1-255 -n 1) export KEEPALIVED_VIRTUAL_ROUTER_ID=$(shuf -i 1-255 -n 1)
export KOLLA_ANSIBLE_DIR=$(mktemp -d)
function prepare_kolla_ansible { function prepare_kolla_ansible {
KOLLA_ANSIBLE_DIR=$(mktemp -d)
cat > /tmp/clonemap <<EOF cat > /tmp/clonemap <<EOF
clonemap: clonemap:
- name: openstack/kolla-ansible - name: openstack/kolla-ansible
@ -49,7 +49,7 @@ function sanity_check {
docker restart memcached docker restart memcached
nova --debug service-list nova --debug service-list
neutron --debug agent-list neutron --debug agent-list
tools/init-runonce ${KOLLA_ANSIBLE_DIR}/tools/init-runonce
nova --debug boot --poll --image $(openstack image list | awk '/cirros/ {print $2}') --nic net-id=$(openstack network list | awk '/demo-net/ {print $2}') --flavor 1 kolla_boot_test nova --debug boot --poll --image $(openstack image list | awk '/cirros/ {print $2}') --nic net-id=$(openstack network list | awk '/demo-net/ {print $2}') --flavor 1 kolla_boot_test
nova --debug list nova --debug list
# If the status is not ACTIVE, print info and exit 1 # If the status is not ACTIVE, print info and exit 1