Merge lp:~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates into lp:orange-box

Proposed by Darryl Weaver
Status: Merged
Merged at revision: 489
Proposed branch: lp:~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates
Merge into: lp:orange-box
Diff against target: 94 lines (+25/-11)
4 files modified
debian/postinst (+3/-2)
usr/bin/orange-box-demo-cleanup (+3/-2)
usr/bin/orange-box-sync-charmstore (+17/-5)
usr/lib/orange-box/patches/acquire_languages_none.patch (+2/-2)
To merge this branch: bzr merge lp:~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates
Reviewer Review Type Date Requested Status
Dustin Kirkland  Pending
Review via email: mp+236762@code.launchpad.net

Description of the change

Fix for bug #1376279.
Fix for bug #1376292.
Renamed orange-box-destroy-juju to orange-box-demo-cleanup.
Provided a link for backwards compatibility.
Added /home/ubuntu/examples/bin/ to default PATH.

To post a comment you must log in.
Revision history for this message
Nicolas Thomas (thomnico) wrote :

Dweaver did you change the Example branch ??

shouldn't this:
   echo "PATH=\$PATH:/home/ubuntu/.juju-plugins:/home/ubuntu/examples/bin"
be:
 echo "PATH=\$PATH:/home/ubuntu/.juju-plugins:/home/ubuntu/Examples/bin"

On Wed, Oct 1, 2014 at 8:51 PM, <email address hidden> wrote:
> The proposal to merge lp:~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates into lp:orange-box has been updated.
>
> Status: Needs review => Merged
>
> For more details, see:
> https://code.launchpad.net/~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates/+merge/236762
> --
> https://code.launchpad.net/~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates/+merge/236762
> You are subscribed to branch lp:orange-box.

--
Best Regards,
       Nicolas Thomas
http://insights.ubuntu.com/?p=889
EMEA Solution Architect Canonical
GPG FPR: D592 4185 F099 9031 6590 6292 492F C740 F03A 7EB9

Revision history for this message
Darryl Weaver (dweaver) wrote :

Ah, yes it should have been with a capital E for Examples.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Fixed in r493.

Dustin Kirkland
Canonical, Ltd.

On Wed, Oct 1, 2014 at 7:09 PM, Darryl Weaver
<email address hidden> wrote:
> Ah, yes it should have been with a capital E for Examples.
> --
> https://code.launchpad.net/~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates/+merge/236762
> You are requested to review the proposed merge of lp:~dweaver/orange-box/orange-box-lp1376292-lp1376279-minor-updates into lp:orange-box.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/postinst'
2--- debian/postinst 2014-10-01 11:44:43 +0000
3+++ debian/postinst 2014-10-01 17:55:29 +0000
4@@ -158,7 +158,8 @@
5 maas-server: 'http://10.14.4.1/MAAS/'
6 maas-oauth: '$APIKEY'
7 default-series: trusty
8- enable-os-upgrade: false
9+ #Enable below after juju 1.21 is released as stable
10+ #enable-os-upgrade: false
11 authorized-keys-path: /home/ubuntu/.ssh/id_rsa.pub
12 admin-secret: 'admin'
13 logging-config: '<root>=DEBUG'
14@@ -166,7 +167,7 @@
15 rm -rf /home/ubuntu/.juju-plugins
16 git clone https://github.com/juju/plugins /home/ubuntu/.juju-plugins
17 sudo chown -R ubuntu:ubuntu /home/ubuntu/
18- echo "PATH=\$PATH:/home/ubuntu/.juju-plugins" >> /home/ubuntu/.bashrc
19+ echo "PATH=\$PATH:/home/ubuntu/.juju-plugins:/home/ubuntu/examples/bin" >> /home/ubuntu/.bashrc
20 #Required for local charm deployments to work.
21 sed -i -e '/^export JUJU_REPOSITORY=/d' /home/ubuntu/.bashrc
22 echo "export JUJU_REPOSITORY=/srv/charmstore" >> /home/ubuntu/.bashrc
23
24=== renamed file 'usr/bin/orange-box-destroy-juju' => 'usr/bin/orange-box-demo-cleanup'
25--- usr/bin/orange-box-destroy-juju 2014-07-30 18:28:42 +0000
26+++ usr/bin/orange-box-demo-cleanup 2014-10-01 17:55:29 +0000
27@@ -1,6 +1,6 @@
28 #!/bin/bash
29 #
30-# orange-box-destroy-juju
31+# orange-box-demo-cleanup
32 # Copyright (C) 2014 Canonical Ltd.
33 #
34 # Authors: Darryl Weaver <darryl.weaver@canonical.com>
35@@ -20,8 +20,9 @@
36
37 ENVIRONMENT=`juju env`
38
39-#Destroy everything
40+#Destroy juju environment
41 juju destroy-environment $ENVIRONMENT
42+#make sure AMTs are all powered off
43 export AMT_PASSWORD=Password1+
44 for i in $(seq 11 19); do
45 yes | amttool 10.14.4.$i powerdown >/dev/null 2>&1
46
47=== added symlink 'usr/bin/orange-box-destroy-juju'
48=== target is u'orange-box-demo-cleanup'
49=== modified file 'usr/bin/orange-box-sync-charmstore'
50--- usr/bin/orange-box-sync-charmstore 2014-08-22 22:11:37 +0000
51+++ usr/bin/orange-box-sync-charmstore 2014-10-01 17:55:29 +0000
52@@ -31,13 +31,25 @@
53 mkdir -p /srv/charmstore/snapshot-$DATE
54
55 echo Mirroring the Charmstore ...
56-cd /srv/charmstore/
57-run-one charm getall snapshot-$DATE 2>/dev/null
58+cd /srv/charmstore/snapshot-$DATE
59+sudo -i run-one charm getall /srv/charmstore/snapshot-$DATE 2>/dev/null
60+#check some base charms are there:
61+if [ ! -d juju-gui ]; then
62+ echo "Juju-gui charm is missing - exiting"
63+ exit
64+elif [ ! -d nova-cloud-controller ]; then
65+ echo "nova-cloud-controller charm is missing - exiting"
66+ exit
67+elif [ ! -d mongodb ]; then
68+ echo "mongodb charm is missing - exiting"
69+ exit
70+fi
71+
72 #Branch the Landscape charm - required for Landscape demo to minimise network dependencies
73-cd snapshot-$DATE
74-bzr branch lp:~landscape/landscape-charm/stable landscape >/dev/null 2>&1 || (cd landscape && bzr pull >/dev/null 2>&1)
75+sudo -i bzr branch lp:~landscape/landscape-charm/stable /srv/charmstore/snapshot-$DATE/landscape >/dev/null 2>&1 || (cd /srv/charmstore/snapshot-$DATE/landscape && bzr pull >/dev/null 2>&1)
76 #Branch the cinder-ceph charm - required for openstack
77-bzr branch lp:charms/cinder-ceph >/dev/null 2>&1 || (cd cinder-ceph && bzr pull >/dev/null 2>&1)
78+sudo -i bzr branch lp:charms/cinder-ceph /srv/charmstore/snapshot-$DATE/cinder-ceph >/dev/null 2>&1 || (cd /srv/charmstore/snapshot-$DATE/cinder-ceph && bzr pull >/dev/null 2>&1)
79+
80 #Link directories for service aliases
81 ln -s quantum-gateway neutron-gateway
82 ln -s rabbitmq-server rabbitmq
83
84=== modified file 'usr/lib/orange-box/patches/acquire_languages_none.patch'
85--- usr/lib/orange-box/patches/acquire_languages_none.patch 2014-10-01 11:44:43 +0000
86+++ usr/lib/orange-box/patches/acquire_languages_none.patch 2014-10-01 17:55:29 +0000
87@@ -1,5 +1,5 @@
88---- /etc/mass/preseeds/curtin_userdata 2014-09-23 21:18:30 +0000
89-+++ /etc/mass/preseeds/curtin_userdata 2014-10-01 11:41:06 +0000
90+--- /etc/maas/preseeds/curtin_userdata 2014-09-23 21:18:30 +0000
91++++ /etc/maas/preseeds/curtin_userdata 2014-10-01 11:41:06 +0000
92 @@ -14,6 +14,7 @@
93 driver_04_load: ["sh", "-c", "depmod && modprobe {{driver['module']}}"]
94 {{endif}}

Subscribers

People subscribed via source and target branches