Merge autopkgtest-cloud:lxd-creds into autopkgtest-cloud:master

Proposed by Brian Murray
Status: Merged
Approved by: Tim Andersson
Approved revision: 321af85b4a14577542bb60e223edf7fb4baf03ba
Merged at revision: fb37a21ee27bd9946f93b0b85e7d3899ff62eb69
Proposed branch: autopkgtest-cloud:lxd-creds
Merge into: autopkgtest-cloud:master
Diff against target: 14 lines (+2/-1)
1 file modified
mojo/make-lxd-secgroup (+2/-1)
Reviewer Review Type Date Requested Status
Paride Legovini Approve
Review via email: mp+444126@code.launchpad.net

Description of the change

I was adding the lcy02.rc file to the credentials directory (~/.scalingstack/) and thought bos01.rc and bos02.rc were redundant given that we have bos02-arm64.rc, bos02-ppc64el.rc, and bos02-s390x.rc. However, after removing them a `mojo run` failed.

2023-06-05 20:56:14 [ERROR] /srv/mojo/mojo-stg-proposed-migration/focal/staging/spec/make-lxd-secgroup: 12: .: Can't open /home/stg-proposed-migration/.scalingstack/bos02.rc

This change will have make-lxd-secgroup read from bos02-arm64.rc instead.

To post a comment you must log in.
Revision history for this message
Paride Legovini (paride) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/mojo/make-lxd-secgroup b/mojo/make-lxd-secgroup
2index 634e598..d41274c 100755
3--- a/mojo/make-lxd-secgroup
4+++ b/mojo/make-lxd-secgroup
5@@ -9,7 +9,8 @@ elif [ "${MOJO_STAGE:-}" = "staging" ]; then
6 ROUTER_IP=185.125.191.193
7 fi
8
9-. ~/.scalingstack/bos02.rc
10+# source the credentials for the DC where armhf tests run
11+. ~/.scalingstack/bos02-arm64.rc
12
13 LXD_IPS=$(juju status --format=json autopkgtest-lxd-worker | jq --monochrome-output --raw-output '.applications["autopkgtest-lxd-worker"].units | map(.["public-address"])[]')
14 HAPROXY_IPS=$(juju status --format=json haproxy-lxd-armhf | jq --monochrome-output --raw-output '.applications["haproxy-lxd-armhf"].units | map(.["public-address"])[]')

Subscribers

People subscribed via source and target branches