Merge ~freyes/stsstack-bundles:octavia-hm-ping into stsstack-bundles:master

Proposed by Felipe Reyes
Status: Merged
Merged at revision: c4ff55731fb4e108fd950ddb85e4ff7f2f0e7056
Proposed branch: ~freyes/stsstack-bundles:octavia-hm-ping
Merge into: stsstack-bundles:master
Diff against target: 63 lines (+15/-4)
2 files modified
openstack/tools/create_octavia_lb.sh (+14/-3)
openstack/tools/install_local_ca.sh (+1/-1)
Reviewer Review Type Date Requested Status
Jolly Bundlers Pending
Review via email: mp+392965@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Edward Hope-Morley (hopem) :
Revision history for this message
Edward Hope-Morley (hopem) :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/openstack/tools/create_octavia_lb.sh b/openstack/tools/create_octavia_lb.sh
index 1d6a48e..0b878f1 100755
--- a/openstack/tools/create_octavia_lb.sh
+++ b/openstack/tools/create_octavia_lb.sh
@@ -4,6 +4,7 @@ lb=lb1
4member_vm=4member_vm=
5protocol=HTTP5protocol=HTTP
6protocol_port=806protocol_port=80
7hm_protocol=
78
8while (( $# > 0 )); do9while (( $# > 0 )); do
9 case $1 in10 case $1 in
@@ -39,6 +40,14 @@ while (( $# > 0 )); do
39 protocol_port=$240 protocol_port=$2
40 shift41 shift
41 ;;42 ;;
43 --healthmonitor-protocol)
44 if (( $# < 2 )); then
45 echo "missing protocol for healthmonitor"
46 exit 1
47 fi
48 hm_protocol=$2
49 shift
50 ;;
42 -h|--help)51 -h|--help)
43 cat <<EOF52 cat <<EOF
44Usage:53Usage:
@@ -61,9 +70,11 @@ EOF
61 esac70 esac
62 shift71 shift
63done72done
6473if [ -z "$hm_protocol" ]; then
74 hm_protocol=$protocol
75fi
65url_path=76url_path=
66if [[ ${protocol} == HTTP ]]; then77if [[ ${hm_protocol} == HTTP ]]; then
67 url_path="--url-path /"78 url_path="--url-path /"
68fi79fi
6980
@@ -104,7 +115,7 @@ while true; do
104done115done
105116
106HM_ID=$(openstack loadbalancer healthmonitor create \117HM_ID=$(openstack loadbalancer healthmonitor create \
107 --name ${lb}-healthmonitor --delay 5 --max-retries 4 --timeout 10 --type ${protocol} ${url_path} ${POOL_ID} \118 --name ${lb}-healthmonitor --delay 5 --max-retries 4 --timeout 10 --type ${hm_protocol} ${url_path} ${POOL_ID} \
108 --format value --column id)119 --format value --column id)
109openstack loadbalancer healthmonitor list120openstack loadbalancer healthmonitor list
110121
diff --git a/openstack/tools/install_local_ca.sh b/openstack/tools/install_local_ca.sh
index a72d510..de2e710 100755
--- a/openstack/tools/install_local_ca.sh
+++ b/openstack/tools/install_local_ca.sh
@@ -4,7 +4,7 @@ model_ca_cert_path=${1:-ssl/openstack/results/cacert.pem}
4if ((`juju status --format=json| jq -r '.applications[]| select(."charm-name"=="vault")'| wc -l`)); then4if ((`juju status --format=json| jq -r '.applications[]| select(."charm-name"=="vault")'| wc -l`)); then
5 model_uuid=`juju show-model --format=json| jq -r '.[]."model-uuid"'`5 model_uuid=`juju show-model --format=json| jq -r '.[]."model-uuid"'`
6 model_ca_cert_path=`find /tmp -name \*.stsstack-bundles.ssl.$model_uuid 2>/dev/null` || true6 model_ca_cert_path=`find /tmp -name \*.stsstack-bundles.ssl.$model_uuid 2>/dev/null` || true
7 if [ -z "$model_ca_cert_path" ]; then7 if [[ -z "$model_ca_cert_path" || "$(cat $model_ca_cert_path)" = "None" ]]; then
8 model_ca_cert_path=`mktemp --suffix=.stsstack-bundles.ssl.$model_uuid`8 model_ca_cert_path=`mktemp --suffix=.stsstack-bundles.ssl.$model_uuid`
9 echo "Fetching CA cert from vault"9 echo "Fetching CA cert from vault"
10 juju run-action --format=json vault/leader get-root-ca --wait | jq -r .[].results.output > $model_ca_cert_path10 juju run-action --format=json vault/leader get-root-ca --wait | jq -r .[].results.output > $model_ca_cert_path

Subscribers

People subscribed via source and target branches