Merge lp://staging/~gz/juju-core/1.10_revert_r1188 into lp://staging/juju-core/1.10

Proposed by Martin Packman
Status: Merged
Approved by: William Reade
Approved revision: no longer in the source branch.
Merged at revision: 1190
Proposed branch: lp://staging/~gz/juju-core/1.10_revert_r1188
Merge into: lp://staging/juju-core/1.10
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/1.10_revert_r1188
Reviewer Review Type Date Requested Status
Juju Engineering Pending
Review via email: mp+162861@code.staging.launchpad.net

Description of the change

Undo change to cloudinit update logic on raring

Fix for next 1.10 release brought across from trunk.

https://codereview.appspot.com/9276044/

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Reviewers: mp+162861_code.launchpad.net,

Message:
Please take a look.

Description:
Undo change to cloudinit update logic on raring

Fix for next 1.10 release brought across from trunk.

https://code.launchpad.net/~gz/juju-core/1.10_revert_r1188/+merge/162861

(do not edit description out of merge proposal)

Please review this at https://codereview.appspot.com/9276044/

Affected files:
   A [revision details]
   M environs/cloudinit/cloudinit.go
   M environs/cloudinit/cloudinit_test.go

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
=== modified file 'environs/cloudinit/cloudinit.go'
--- environs/cloudinit/cloudinit.go 2013-04-19 16:55:38 +0000
+++ environs/cloudinit/cloudinit.go 2013-04-22 20:34:59 +0000
@@ -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(true)
- }
   c.AddSSHAuthorizedKeys(cfg.AuthorizedKeys)
   c.AddPackage("git")

@@ -184,9 +178,9 @@
   }

   // general options
+ c.SetAptUpgrade(true)
   c.SetAptUpdate(true)
   c.SetOutput(cloudinit.OutAll, "| tee -a
/var/log/cloud-init-output.log", "")
-
   return c, nil
  }

Index: environs/cloudinit/cloudinit_test.go
=== modified file 'environs/cloudinit/cloudinit_test.go'
--- environs/cloudinit/cloudinit_test.go 2013-04-19 15:46:34 +0000
+++ environs/cloudinit/cloudinit_test.go 2013-04-22 20:34:59 +0000
@@ -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.Unmarshal(data, &x)
    c.Assert(err, IsNil)

- // TODO(dimitern) raring does apt-get upgrade differently, due to LP bug
#1103881

- if test.cfg.Tools.Series != "raring" {
- c.Check(x["apt_upgrade"], Equals, true)
- }
+ c.Check(x["apt_upgrade"], Equals, true)
    c.Check(x["apt_update"], Equals, true)

    scripts := getScripts(x)

Revision history for this message
Ian Booth (wallyworld) wrote :
Revision history for this message
John A Meinel (jameinel) wrote :
Revision history for this message
Martin Packman (gz) wrote :

*** Submitted:

Undo change to cloudinit update logic on raring

Fix for next 1.10 release brought across from trunk.

R=wallyworld, jameinel
CC=
https://codereview.appspot.com/9276044

https://codereview.appspot.com/9276044/

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches