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
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://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://codereview.appspot.com/8913044/

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

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:
   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
Dimiter Naydenov (dimitern) wrote :

LGTM, trivial. So if smoser says it's better to back it out, let's do
that. Hopefully they'll fix upstart in time for the users not to notice
this issue.

https://codereview.appspot.com/8913044/

Revision history for this message
Scott Moser (smoser) wrote :

Dimiter, just for the record, the issue only occurs if there are updates to libc6, libjson0, libsepol1, libnih1, libselinux1, or upstart. Post raring release:
 a.) all updates go through SRU process (meaning higher scrutiny)
 b.) on EC2 there we'll release images on ~ 3 week cadence for kernel updates, so since juju picks latest released image, the likely case is there are no updates to the latest image.

Revision history for this message
John A Meinel (jameinel) wrote :

Poke, didn't this already need to land for 1.10?

Revision history for this message
Martin Packman (gz) wrote :
Revision history for this message
Martin Packman (gz) wrote :

*** Submitted:

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.

R=
CC=
https://codereview.appspot.com/8913044

https://codereview.appspot.com/8913044/

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