juju doesn't use maas' knowledge of system architecture when picking tools

Bug #1303853 reported by Jason Hobbs
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Andrew Wilkins

Bug Description

When using maas as a provider, juju doesn't use maas' knowledge of the system architecture to pick the correct tools version.

For example, when bootstrapping with a constraint results in an armhf system being picked, amd64 tools are picked:
ubuntu@juju-dev:~$ juju bootstrap -v -v --constraints "tags=calxeda-highbank"
Launching instance
WARNING picked arbitrary tools &{"1.18.0-trusty-amd64" "https://streams.canonical.com/juju/tools/releases/juju-1.18.0-trusty-amd64.tgz" "a48fbeea9bd69ef4510994cff5f260c98c11d36fb48df4c9010e07970d951f71" %!q(int64=7419939)}

If I supply an additional constraint of "arch=armhf", the correct tools version is picked:

ubuntu@juju-dev:~$ juju bootstrap -v -v --constraints "tags=calxeda-highbank arch=armhf"
Launching instance
WARNING picked arbitrary tools &{"1.18.0-trusty-armhf" "https://streams.canonical.com/juju/tools/releases/juju-1.18.0-trusty-armhf.tgz" "ad0cd5731fda4c97c698a17d66d892f8de55c061542d09682c32c192e5a9ccee" %!q(int64=7085643)}

But, maas knows this system is armhf and therefore I shouldn't need to supply that myself as an additional constraint. This will result in non amd64 architectures not working unless special care is taken.

This affects 1.18.0-trusty-amd64.

tags: added: server-hwe
Curtis Hovey (sinzui)
tags: added: bootstrap maas-provider
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
milestone: none → 1.19.0
tags: added: arm64 ppc64el
description: updated
description: updated
tags: added: armhf-hwe
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 1.19.0 → 1.19.1
John A Meinel (jameinel)
Changed in juju-core:
milestone: 1.19.1 → 1.20.0
Changed in juju-core:
milestone: 1.20.0 → next-stable
Revision history for this message
Andrew Wilkins (axwalk) wrote :

I'm making some related changes, so will fix this while I'm there.

Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
milestone: next-stable → 1.21-alpha1
Revision history for this message
Andrew Wilkins (axwalk) wrote :
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
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.