Importing custom boot images is broken in MAAS 1.10.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Lee Trager |
Bug Description
I've tried importing custom images with MAAS 1.10 (version information below) with the following commands:
$ sudo maas-region-admin apikey --username rodsmith
qUf4nh7bcnKDhhu
$ maas login admin http://
$ maas admin boot-resources create name=u1510_amd64 title="Ubuntu 15.10 (AMD64)" architecture=
usage: /usr/lib/
optional arguments:
-h, --help show this help message and exit
drill down:
COMMAND
login Log in to a remote API, and remember its description and
refresh Refresh the API descriptions of all profiles.
logout Log out of a remote API, purging any stored credentials.
list List remote APIs that have been logged-in to.
admin Interact with http://
the JSON object must be str, not 'bytes'
This sequence worked in MAAS 1.9, but appears to be broken in 1.10 -- or has the syntax for adding custom images changed with 1.10?
Here's my version information:
$ dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 1.10.0+
ii maas-cert-server 0.2.13-
ii maas-cli 1.10.0+
ii maas-cluster-
ii maas-common 1.10.0+
ii maas-dhcp 1.10.0+
ii maas-dns 1.10.0+
ii maas-proxy 1.10.0+
ii maas-region-
ii maas-region-
un python-django-maas <none> <none> (no description available)
un python-maas-client <none> <none> (no description available)
un python-
ii python3-django-maas 1.10.0+
ii python3-maas-client 1.10.0+
ii python3-
I'm attaching my /var/log/maas directory tree.
Related branches
- Gavin Panella (community): Approve
-
Diff: 48 lines (+27/-0)2 files modifiedsrc/maascli/actions/boot_resources_create.py (+2/-0)
src/maascli/actions/tests/test_boot_resources_create.py (+25/-0)
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Critical |
milestone: | none → 2.0.0 |
tags: | added: python3 |
tags: | added: hwcert-server |
no longer affects: | maas/1.10 |
Changed in maas: | |
assignee: | nobody → Lee Trager (ltrager) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
patched :
line 134 :
from : content. decode( 'utf-8' ))
data = json.loads(content)
to:
data = json.loads(