Merge lp:~simpoir/landscape-bundles/bash_quotes into lp:landscape-bundles

Proposed by Simon Poirier
Status: Merged
Approved by: Simon Poirier
Approved revision: 56
Merged at revision: 56
Proposed branch: lp:~simpoir/landscape-bundles/bash_quotes
Merge into: lp:landscape-bundles
Diff against target: 66 lines (+10/-10)
2 files modified
charm-store (+9/-9)
render-bundles (+1/-1)
To merge this branch: bzr merge lp:~simpoir/landscape-bundles/bash_quotes
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+406210@code.launchpad.net

Commit message

Updated charm rev and fixed charm publish script.

Description of the change

New landscape charm rev.

* updated landscape-server charm rev
* missing quotes in bash scripts made it try to publish to null channel.

To post a comment you must log in.
Revision history for this message
Simon Poirier (simpoir) :
Revision history for this message
Daniel Manrique (roadmr) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'charm-store'
--- charm-store 2020-09-30 15:00:24 +0000
+++ charm-store 2021-07-26 21:14:08 +0000
@@ -4,9 +4,9 @@
4# Needs make clean, make render called first.4# Needs make clean, make render called first.
5#5#
66
7ACTION=$17ACTION="$1"
8STORE_USER=${2:-landscape}8STORE_USER="${2:-landscape}"
9CHANNEL=${3}9CHANNEL="${3}"
10INITIAL_CHANNEL="edge"10INITIAL_CHANNEL="edge"
11RELEASE_CHANNEL="stable"11RELEASE_CHANNEL="stable"
1212
@@ -31,7 +31,7 @@
31for target in landscape-dense-maas landscape-dense landscape-scalable; do31for target in landscape-dense-maas landscape-dense landscape-scalable; do
3232
33 if [ "$ACTION" == "diff" ]; then33 if [ "$ACTION" == "diff" ]; then
34 if [ -z $CHANNEL ]; then34 if [ -z "$CHANNEL" ]; then
35 CHANNEL=$RELEASE_CHANNEL35 CHANNEL=$RELEASE_CHANNEL
36 fi36 fi
37 echo "# [$target] Pulling fresh copy from $CHANNEL channel"37 echo "# [$target] Pulling fresh copy from $CHANNEL channel"
@@ -46,22 +46,22 @@
4646
47 if [ "$ACTION" == "push" ]; then47 if [ "$ACTION" == "push" ]; then
48 echo "# [$target] Pushing to namespace ~${STORE_USER}, unpublished channel"48 echo "# [$target] Pushing to namespace ~${STORE_USER}, unpublished channel"
49 url=$( (set -x; charm push build/${target} cs:~${STORE_USER}/bundle/${target}) | grep ^url | awk '{ print $2 }')49 url=$( (set -x; charm push "build/${target}" "cs:~${STORE_USER}/bundle/${target}") | grep ^url | awk '{ print $2 }')
5050
51 if [ -n $CHANNEL ]; then51 if [ -n "$CHANNEL" ]; then
52 echo "# [$target] Publishing to ${CHANNEL} channel"52 echo "# [$target] Publishing to ${CHANNEL} channel"
53 (set -x; charm release --channel ${CHANNEL} $url)53 (set -x; charm release --channel "${CHANNEL}" "$url")
54 fi54 fi
55 fi55 fi
5656
57 if [ "$ACTION" == "publish-latest" ]; then57 if [ "$ACTION" == "publish-latest" ]; then
58 latest=$(charm show --channel unpublished --all --format=json cs:~${STORE_USER}/bundle/${target} | jq -r '.id.Id')58 latest=$(charm show --channel unpublished --all --format=json "cs:~${STORE_USER}/bundle/${target}" | jq -r '.id.Id')
5959
60 if [ -z $CHANNEL ]; then60 if [ -z $CHANNEL ]; then
61 CHANNEL=$RELEASE_CHANNEL61 CHANNEL=$RELEASE_CHANNEL
62 fi62 fi
63 echo "# [$target] Publishing latest unpublished revision to ${CHANNEL} channel"63 echo "# [$target] Publishing latest unpublished revision to ${CHANNEL} channel"
64 (set -x; charm release --channel ${CHANNEL} $latest)64 (set -x; charm release --channel "${CHANNEL}" "$latest")
65 fi65 fi
6666
67done67done
6868
=== modified file 'render-bundles'
--- render-bundles 2020-09-30 13:33:08 +0000
+++ render-bundles 2021-07-26 21:14:08 +0000
@@ -16,7 +16,7 @@
16 "memory": 2048},16 "memory": 2048},
17 "haproxy": {},17 "haproxy": {},
18 "landscape": {18 "landscape": {
19 "charm": "cs:bionic/landscape-server-38",19 "charm": "cs:bionic/landscape-server-40",
20 "memory": 4096,20 "memory": 4096,
21 # We defer to the default "install_sources" from the charm.21 # We defer to the default "install_sources" from the charm.
22 "install_keys": "4652B4E6"}22 "install_keys": "4652B4E6"}

Subscribers

People subscribed via source and target branches

to all changes: