Merge lp:~nskaggs/juju-ci-tools/keystone3 into lp:juju-ci-tools

Proposed by Nicholas Skaggs on 2016-05-25
Status: Work in progress
Proposed branch: lp:~nskaggs/juju-ci-tools/keystone3
Merge into: lp:juju-ci-tools
Diff against target: 33 lines (+29/-0)
1 file modified
juju-ci-openstack-check-keystone3.sh (+29/-0)
To merge this branch: bzr merge lp:~nskaggs/juju-ci-tools/keystone3
Reviewer Review Type Date Requested Status
Juju Release Engineering 2016-05-25 Pending
Review via email: mp+295755@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

1412. By Nicholas Skaggs on 2016-05-25

remove accidental change

1411. By Nicholas Skaggs on 2016-05-25

remove ses yaml

1410. By Nicholas Skaggs on 2016-05-23

temp add ses yaml

1409. By Nicholas Skaggs on 2016-05-13

keystone3?!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'juju-ci-openstack-check-keystone3.sh'
2--- juju-ci-openstack-check-keystone3.sh 1970-01-01 00:00:00 +0000
3+++ juju-ci-openstack-check-keystone3.sh 2016-05-25 18:13:02 +0000
4@@ -0,0 +1,29 @@
5+#!/bin/bash
6+set -eu
7+usage() {
8+ echo "usage: $0 JUJU_ENVIRONMENT"
9+ echo " JUJU_ENVIRONMENT: The juju environment to check."
10+ exit 1
11+}
12+
13+SCRIPTS=$(dirname $0)
14+
15+test $# -eq 1 || usage
16+export OS_USERNAME=admin
17+export OS_PASSWORD=openstack
18+export OS_TENANT_NAME=admin
19+export OS_REGION_NAME=RegionOne
20+echo "PATH: $PATH"
21+echo "JUJU_HOME: $JUJU_HOME"
22+echo "Juju is $(which juju)"
23+echo "juju version is $(juju version)"
24+KEYSTONE_URL=$(juju deployer -e $1 -f keystone)
25+if [[ -z $KEYSTONE_URL ]]; then
26+ echo "Keystone URL could not be retrieved."
27+ echo "Openstack might be fine, but the call to deployer or juju failed."
28+ exit 1
29+fi
30+export OS_AUTH_URL=${OS_AUTH_PROTOCOL:-http}://$KEYSTONE_URL:5000/v3
31+
32+
33+$SCRIPTS/openstack_basic_check.py

Subscribers

People subscribed via source and target branches