juju names arm arch 'arm' internally, but 'armhf' in tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Jason Hobbs | ||
1.18 |
Fix Released
|
High
|
John A Meinel |
Bug Description
I'm trying to bootstrap juju via maas onto a highbank (armhf) system. If I provide no constraints, juju picks amd64 tools for the node, which obviously won't work.
If I provide a --constraints=
ubuntu@maas-dev:~$ juju bootstrap -v -v --constraints "tags=calxeda-
error: invalid value "tags=calxeda-
It looks like juju-core expects 'arm' for the arm architecture, but that results in no tools being found, as the arch is set to armhf in the released:tools.json here https:/
This also applies when syncing tools. armhf tools aren't synced because the default tools constraint is:
This is with 1.17.2-trusty-amd64
Related branches
- Jason Hobbs (community): Approve
- John A Meinel: Approve
-
Diff: 353 lines (+41/-40)12 files modifiedcmd/plugins/juju-metadata/toolsmetadata_test.go (+1/-1)
constraints/constraints_test.go (+4/-4)
container/kvm/kvm_test.go (+4/-4)
environs/instances/instancetype_test.go (+13/-13)
environs/manual/init_test.go (+5/-5)
environs/testing/tools.go (+1/-1)
instance/instance_test.go (+4/-4)
juju/arch/arch.go (+2/-2)
juju/arch/arch_test.go (+3/-2)
provider/joyent/environ.go (+1/-1)
provider/joyent/provider.go (+1/-1)
state/api/params/params_test.go (+2/-2)
tags: | added: armhf constraints |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- bad "arch" constraint: "armhf" not recognized + juju names arm arch 'arm' internally, but 'armhf' in tools |
description: | updated |
tags: | added: server-hwe |
tags: | added: armhf-hwe |
Changed in juju-core: | |
status: | In Progress → Triaged |
Changed in juju-core: | |
milestone: | none → 1.19.0 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
I posted a branch that lets this work for me here lp:~jason-hobbs/juju-core/lp-1285410-fix-arm-armhf-mistmatch