Respect the full tools list on InstanceConfig when building userdata config script.

Bug #1571832 reported by Eric Snow
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Andrew Wilkins

Bug Description

Currently the code in cloudconfig/userdatacfg_unix.go (and _win.go) only respects the first item in the list of tools available to it. At the moment this is fine since the code in the relevant methods does the right thing for the current Juju behavior. However, there is no guarantee that the provided tools list will continue to match the assumptions in the code.

Tags: tech-debt
Revision history for this message
Andrew Wilkins (axwalk) wrote :

It currently only does the right thing on Linux, not on Windows. Windows will continue to work so long as the machines are brought up on the same private network. I'm working on some changes to Azure that break this assumption, so I'll see how hard it is to fix.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

This is not as straight forward as I had hoped. The change to userdata_unix.go to honour the URLs is trivial, but doing this exposes a latent bug elsewhere.

The tools URLs provided to cloudconfig have the model UUID in the URL, which we were previously ignoring. The tools catalogues are per-model, but we don't populate the hosted model catalogues when uploading to the controller.

So, I think we should have the tools download endpoint look in the model catalogue first, and fall back to the controller's catalogue. I'm not sure how deep that goes.

Revision history for this message
Eric Snow (ericsnowcurrently) wrote :
Andrew Wilkins (axwalk)
Changed in juju-core:
assignee: nobody → Andrew Wilkins (axwalk)
status: Triaged → In Progress
milestone: none → 2.0.0
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0.0 → 2.0-beta6
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta6 → none
milestone: none → 2.0-beta6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.