Merge lp://staging/~gz/juju-core/revert_r1188 into lp://staging/~juju/juju-core/trunk
Proposed by
Martin Packman
Status: | Merged |
---|---|
Merged at revision: | 1212 |
Proposed branch: | lp://staging/~gz/juju-core/revert_r1188 |
Merge into: | lp://staging/~juju/juju-core/trunk |
Diff against target: |
51 lines (+2/-12) 2 files modified
environs/cloudinit/cloudinit.go (+1/-7) environs/cloudinit/cloudinit_test.go (+1/-5) |
To merge this branch: | bzr merge lp://staging/~gz/juju-core/revert_r1188 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+160208@code.staging.launchpad.net |
Description of the change
Undo change to cloudinit update logic on raring
See the merge proposal that added this workaround for more details:
<https:/
In short smoser has doubts about the fix, and it is unlikely to be an
issue once raring has been released. There will be no upstart upgrades
without first fixing the underlying problem.
To post a comment you must log in.
Reviewers: mp+160208_ code.launchpad. net,
Message:
Please take a look.
Description:
Undo change to cloudinit update logic on raring
See the merge proposal that added this workaround for more details:
<https:/ /codereview. appspot. com/8648047/>
In short smoser has doubts about the fix, and it is unlikely to be an
issue once raring has been released. There will be no upstart upgrades
without first fixing the underlying problem.
https:/ /code.launchpad .net/~gz/ juju-core/ revert_ r1188/+ merge/160208
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/8913044/
Affected files: cloudinit/ cloudinit. go cloudinit/ cloudinit_ test.go
A [revision details]
M environs/
M environs/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: environs/ cloudinit/ cloudinit. go cloudinit/ cloudinit. go' cloudinit/ cloudinit. go 2013-04-19 16:55:38 +0000 cloudinit/ cloudinit. go 2013-04-22 20:34:59 +0000 (true) orizedKeys( cfg.AuthorizedK eys) ("git")
=== modified file 'environs/
--- environs/
+++ environs/
@@ -106,12 +106,6 @@
if err := verifyConfig(cfg); err != nil {
return nil, err
}
- // TODO(dimitern) this is needed for raring, due to LP bug #1103881
- if cfg.Tools.Series == "raring" {
- addScripts(c, "apt-get upgrade -y")
- } else {
- c.SetAptUpgrade
- }
c.AddSSHAuth
c.AddPackage
@@ -184,9 +178,9 @@
}
// general options (true) te(true) cloudinit. OutAll, "| tee -a cloud-init- output. log", "")
+ c.SetAptUpgrade
c.SetAptUpda
c.SetOutput(
/var/log/
-
return c, nil
}
Index: environs/ cloudinit/ cloudinit_ test.go cloudinit/ cloudinit_ test.go' cloudinit/ cloudinit_ test.go 2013-04-19 15:46:34 +0000 cloudinit/ cloudinit_ test.go 2013-04-22 20:34:59 +0000 Unmarshal( data, &x)
=== modified file 'environs/
--- environs/
+++ environs/
@@ -129,7 +129,6 @@
},
setEnvConfig: true,
expectScripts: `
-apt-get upgrade -y
set -xe
mkdir -p /var/lib/juju
mkdir -p /var/log/juju
@@ -249,10 +248,7 @@
err = goyaml.
c.Assert(err, IsNil)
- // TODO(dimitern) raring does apt-get upgrade differently, due to LP bug Tools.Series != "raring" { x["apt_ upgrade" ], Equals, true) x["apt_ upgrade" ], Equals, true) x["apt_ update" ], Equals, true)
#1103881
- if test.cfg.
- c.Check(
- }
+ c.Check(
c.Check(
scripts := getScripts(x)