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

Issue 90640043: bootstrap: always provider precise and trusty

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 12 months ago by jameinel
Modified:
9 years, 12 months ago
Reviewers:
axw, wallyworld, mp+216888
Visibility:
Public.

Description

bootstrap: always provider precise and trusty Now that we have 2 potential LTS targets, when we bootstrap the local provider, make sure we upload tools for both of them. That way when deploying charms, we can successfully deploy all the stable charms. This addresses bug #1306537, perhaps as a band-aid but I think a reasonable one. https://code.launchpad.net/~jameinel/juju-core/1.18-local-trusty-and-precise-1306537/+merge/216888 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 chunk +7 lines, -0 lines 2 comments Download

Messages

Total messages: 3
jameinel
Please take a look.
9 years, 12 months ago (2014-04-23 13:53:58 UTC) #1
axw
One comment, otherwise LGTM. https://codereview.appspot.com/90640043/diff/1/cmd/juju/bootstrap.go File cmd/juju/bootstrap.go (right): https://codereview.appspot.com/90640043/diff/1/cmd/juju/bootstrap.go#newcode137 cmd/juju/bootstrap.go:137: // If we are going ...
9 years, 12 months ago (2014-04-24 00:50:19 UTC) #2
wallyworld
9 years, 12 months ago (2014-04-24 02:02:24 UTC) #3
not lgtm since as per my comments i think the correct place to make this change
is elsewhere.

https://codereview.appspot.com/90640043/diff/1/cmd/juju/bootstrap.go
File cmd/juju/bootstrap.go (right):

https://codereview.appspot.com/90640043/diff/1/cmd/juju/bootstrap.go#newcode142
cmd/juju/bootstrap.go:142: }
Actually, this is the wrong place to put this change.
The correct place to make this change is bootstrap.SeriesToUpload() in
environs/bootstrap/synctools.go

This method adds in series from:
- version.Current.Series
- config.LatestLtsSeries()
- cfg.DefaultSeries()

But when LatestLtsSeries() switched to trusty, it broke things on trusty hosts.
I think the correct change is to simply replace config.LatestLtsSeries() with
"precise, trusty". And, as a bonus, there are tests for that.
Sign in to reply to this message.

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