hard to determine valid values for power parameters
Bug #1287310 reported by
James Troup
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Raphaël Badin |
Bug Description
| root@mabolo:~# maas-cli root node update node-1c7c0c4c-
| {"power_
(FWIW, I cut and paste that value from the Web UI). The error message
gives me no hint at all as what the avaiable choices are. (I
eventually figured out by looking at the source and a bit trial and
error that I was looking for 'LAN_2_0'.
This is maas 1.4+bzr1693+
pocket of the UCA on Precise.
Related branches
lp:~rvb/maas/bug-1287310
- Gavin Panella (community): Approve
-
Diff: 188 lines (+82/-22)6 files modifiedsrc/maasserver/clusterrpc/power_parameters.py (+5/-0)
src/maasserver/clusterrpc/tests/test_power_parameters.py (+5/-0)
src/maasserver/forms.py (+1/-1)
src/maasserver/forms_settings.py (+1/-21)
src/maasserver/utils/forms.py (+37/-0)
src/maasserver/utils/tests/test_forms.py (+33/-0)
tags: | added: hwe papercut |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → In Progress |
milestone: | none → 14.04 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Raphaël, this error is triggered from Django's own clean() deep inside our DictCharField. clean_sub_ fields( ). Do you have any ideas on how we can get it to put the list of valid choices up there?
Failing that, we need to rely on the api feature I added to get the list of available power_types on a cluster describe_ power_types) .
(nodes.