Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(21)

Issue 72230045: provider/maas: apt-get install bridge-utils

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by rog
Modified:
10 years, 1 month ago
Reviewers:
mp+209885, gz, axw, fwereade
Visibility:
Public.

Description

provider/maas: apt-get install bridge-utils Previously we added bridge-utils to the required packages in environs/cloudinit, but at bootstrap time, those packages are not installed before the additional commands specified by a provider are run (we want any failures to be visible, so we wait until the synchronous part of the bootstrap process). To fix this, we explicitly add "apt-get install bridge-utils" to provider/maas and remove it from environs/cloudinit. Fixes: https://bugs.launchpad.net/juju-core/+bug/1271144 https://bugs.launchpad.net/juju-core/+bug/1277359 https://code.launchpad.net/~rogpeppe/juju-core/512-maas-bootstrap-bridge-utils/+merge/209885 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : provider/maas: apt-get install bridge-utils #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 chunk +0 lines, -1 line 0 comments Download
M provider/maas/environ.go View 1 chunk +1 line, -0 lines 1 comment Download

Messages

Total messages: 4
rog
Please take a look.
10 years, 1 month ago (2014-03-07 12:21:24 UTC) #1
fwereade
On 2014/03/07 12:21:24, rog wrote: > Please take a look. I has a sad about ...
10 years, 1 month ago (2014-03-07 12:34:32 UTC) #2
axw
On 2014/03/07 12:34:32, fwereade wrote: > On 2014/03/07 12:21:24, rog wrote: > > Please take ...
10 years, 1 month ago (2014-03-07 13:19:25 UTC) #3
gz
10 years, 1 month ago (2014-03-07 16:28:42 UTC) #4
Not sure this is landable as is.

https://codereview.appspot.com/72230045/diff/20001/provider/maas/environ.go
File provider/maas/environ.go (right):

https://codereview.appspot.com/72230045/diff/20001/provider/maas/environ.go#n...
provider/maas/environ.go:271: "apt-get install bridge-utils",
This misses the niceties of utils/apt.go aptGetCommand, some of which like -y
are really requirements. We should try to share good apt practices across the
code base.

It also will not play nicely with Wayne's in-progress change to make sure we try
to install packages-for-juju from the cloud-archive where possible:

https://code.launchpad.net/~wwitzel3/juju-core/lp-1289316-lxc-maas-precise
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b