Merge lp:~hloeung/mojo/mojo-specs-multiple-clouds into lp:mojo/mojo-specs

Proposed by Haw Loeung
Status: Merged
Approved by: Haw Loeung
Approved revision: 162
Merged at revision: 162
Proposed branch: lp:~hloeung/mojo/mojo-specs-multiple-clouds
Merge into: lp:mojo/mojo-specs
Diff against target: 17 lines (+4/-2)
1 file modified
charm-testing/redeploy-model (+4/-2)
To merge this branch: bzr merge lp:~hloeung/mojo/mojo-specs-multiple-clouds
Reviewer Review Type Date Requested Status
Thomas Cuthbert (community) Approve
Review via email: mp+381213@code.launchpad.net

Commit message

Handle when CI environment has multiple clouds

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Thomas Cuthbert (tcuthbert) wrote :

+1

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change has no commit message, setting status to needs review.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 162

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'charm-testing/redeploy-model'
2--- charm-testing/redeploy-model 2017-09-04 11:27:05 +0000
3+++ charm-testing/redeploy-model 2020-03-26 00:42:54 +0000
4@@ -1,9 +1,11 @@
5 #!/bin/bash
6
7+[ -n "$CLOUD_NAME" ] || if [ -f ${HOME}/.local/share/mojo/cloud_name ]; then CLOUD_NAME=$(cat ${HOME}/.local/share/mojo/cloud_name); fi
8+
9 echo "About to run: juju destroy-model -y ${MODEL_NAME}"
10 juju destroy-model -y ${MODEL_NAME}
11 echo "Waiting for 1 minute to avoid lp#1709324"
12 sleep 1m
13-echo "About to run: juju add-model ${MODEL_NAME}"
14-juju add-model ${MODEL_NAME}
15+echo "About to run: juju add-model ${MODEL_NAME} ${CLOUD_NAME}"
16+juju add-model ${MODEL_NAME} ${CLOUD_NAME}
17 echo "Completed recreating model"

Subscribers

People subscribed via source and target branches

to all changes: