[2.4, UI] Validation wrong for IPMI driver type over API and UI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
Trying to add a machine over the UI, I get the following error no matter the power type used.
['LAN_2_0', 'LAN_2_0 [IPMI 2.0]'] is not of type 'string' Failed validating 'type' in schema[
Or API:
ubuntu@maas00:~$ maas admin machines create power_type=ipmi power_parameter
['LAN_2_0', 'LAN_2_0 [IPMI 2.0]'] is not of type 'string'
Failed validating 'type' in schema[
{'type': 'string'}
On instance[
['LAN_2_0', 'LAN_2_0 [IPMI 2.0]']
Reproduce:
1. Install MAAS
2. Go to the UI
3. Add machine
4. Provide random hostname/mac
5. Select IPMI
6. Power driver: DONT select anything
7. Address/
Related branches
- Newell Jensen (community): Approve
- MAAS Lander: Needs Fixing
- Andres Rodriguez (community): Approve
-
Diff: 83 lines (+20/-11)4 files modifiedsrc/maasserver/rpc/regionservice.py (+2/-1)
src/maasserver/rpc/tests/test_regionservice.py (+15/-2)
src/maasserver/static/js/angular/directives/power_parameters.js (+2/-7)
src/maasserver/static/js/angular/directives/tests/test_power_parameters.js (+1/-1)
Changed in maas: | |
importance: | Undecided → High |
status: | New → Triaged |
milestone: | none → 2.4.0beta1 |
assignee: | nobody → Newell Jensen (newell-jensen) |
description: | updated |
Changed in maas: | |
importance: | High → Critical |
description: | updated |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
assignee: | Newell Jensen (newell-jensen) → Blake Rouse (blake-rouse) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Setting this to High, because the issue is only a problem if you forget the power_driver information for IPMI.