Merge lp:~ahasenack/landscape-charm/landscape-charm-use-trusty into lp:~landscape/landscape-charm/trunk

Proposed by Andreas Hasenack
Status: Merged
Approved by: Andreas Hasenack
Approved revision: 205
Merged at revision: 202
Proposed branch: lp:~ahasenack/landscape-charm/landscape-charm-use-trusty
Merge into: lp:~landscape/landscape-charm/trunk
Diff against target: 72 lines (+8/-8)
3 files modified
config/landscape-deployments.yaml (+4/-4)
dev/update-charm-revision-numbers (+3/-3)
tests/01-begin (+1/-1)
To merge this branch: bzr merge lp:~ahasenack/landscape-charm/landscape-charm-use-trusty
Reviewer Review Type Date Requested Status
Chris Glass (community) Approve
Adam Collard (community) Approve
Review via email: mp+231892@code.launchpad.net

Commit message

Change the deployer file to use trusty where possible for the charms we deploy.

Description of the change

This branch switches all charms to use trusty, except haproxy, which doesn't have a trusty charm yet.

Finally, there is a small fix to the test_msg test because LDS trunk is now returning a new field, in addition to the tested ones. Since only LDS trunk does it, I chose to ignore this extra field.

I didn't add another deployer file for the trusty files, or new deployer targets, because we want to keep this simple for users. If they are confronted with dozens of deployer option, answering "which one do I use?" becomes more complicated. Still, if reviewers want it, I could change that so we get to test both precise and trusty for the time being.

To post a comment you must log in.
Revision history for this message
Adam Collard (adam-collard) wrote :

I tried just running make deploy-dense-maas but immediately hit an issue https://pastebin.canonical.com/115984/

The -u to deployer looks suspicious - can we remove it from this MP please?

review: Needs Fixing
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> I tried just running make deploy-dense-maas but immediately hit an issue
> https://pastebin.canonical.com/115984/
>
> The -u to deployer looks suspicious - can we remove it from this MP please?

Addressed, thanks

205. By Andreas Hasenack

Can't use -u, because the landscape charm that ends up in the temporary
directory we use is not a branch.

Revision history for this message
Adam Collard (adam-collard) wrote :

LGTM! +1

Did a deployment on dense maas and confirmed things looked ok with a basic (manual) smoke test

review: Approve
Revision history for this message
David Britton (dpb) wrote :

"I also added a flag, enabled by default, to update all charms before running the charm integration tests."

I don't see this in the diff?

Revision history for this message
David Britton (dpb) wrote :

> "I also added a flag, enabled by default, to update all charms before running
> the charm integration tests."
>
> I don't see this in the diff?

Ignore. (Thanks Adam)

Revision history for this message
Chris Glass (tribaal) wrote :

Looks good! +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config/landscape-deployments.yaml'
2--- config/landscape-deployments.yaml 2014-07-29 17:14:04 +0000
3+++ config/landscape-deployments.yaml 2014-08-27 16:03:23 +0000
4@@ -1,9 +1,9 @@
5 _common:
6 services:
7 rabbitmq-server:
8- charm: cs:precise/rabbitmq-server-28
9+ charm: cs:trusty/rabbitmq-server-4
10 postgresql:
11- charm: cs:precise/postgresql-74
12+ charm: cs:trusty/postgresql-3
13 constraints: mem=2048
14 options:
15 extra-packages: python-apt postgresql-contrib postgresql-.*-debversion
16@@ -18,7 +18,7 @@
17 # Don't deploy default haproxy service on port 80
18 services: ""
19 apache2:
20- charm: cs:precise/apache2-24
21+ charm: cs:trusty/apache2-4
22 expose: True
23 options:
24 enable_modules: proxy proxy_http proxy_balancer rewrite expires headers ssl
25@@ -28,7 +28,7 @@
26
27 landscape:
28 inherits: _common
29- series: precise
30+ series: trusty
31 services:
32 landscape:
33 branch: lp:~landscape/landscape-charm/stable
34
35=== modified file 'dev/update-charm-revision-numbers'
36--- dev/update-charm-revision-numbers 2014-05-23 20:51:15 +0000
37+++ dev/update-charm-revision-numbers 2014-08-27 16:03:23 +0000
38@@ -50,10 +50,10 @@
39 be tested and checked in if successful.
40
41 Look for lines like:
42- charm: cs:precise/juju-gui-83
43+ charm: cs:trusty/juju-gui-83
44
45 Or:
46- series: precise
47+ series: trusty
48 """
49 filename = "config/landscape-deployments.yaml"
50 for line in fileinput.input(filename, inplace=1):
51@@ -73,7 +73,7 @@
52 description = "Put new charmstore descriptors into a deployer file."
53 parser = argparse.ArgumentParser(description=description)
54 parser.add_argument("charms", help="List charms to update", nargs='*')
55- parser.add_argument("--series", help="Charm series", default="precise")
56+ parser.add_argument("--series", help="Charm series", default="trusty")
57 return parser.parse_args()
58
59
60
61=== modified file 'tests/01-begin'
62--- tests/01-begin 2014-07-16 20:25:25 +0000
63+++ tests/01-begin 2014-08-27 16:03:23 +0000
64@@ -232,7 +232,7 @@
65 Specifically that it is reachable and that it responds
66 correctly to requests.
67 """
68- good_content = "ds8:messagesl;s11:server-uuid"
69+ good_content = ["ds8:messagesl", "s11:server-uuid"]
70 post_data = ("ds8:messagesl;s22:next-expected-sequencei0;s8:"
71 "sequencei0;;")
72 header = "X-MESSAGE-API: 3.1"

Subscribers

People subscribed via source and target branches