[2.4, UI] Validation wrong for IPMI driver type over API and UI

Bug #1756985 reported by Andres Rodriguez
6
This bug affects 1 person
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['items']['properties']['default']: {'type': 'string'} On instance[0]['default']: ['LAN_2_0', 'LAN_2_0 [IPMI 2.0]']

Or API:

ubuntu@maas00:~$ maas admin machines create power_type=ipmi power_parameters_power_address=192.168.122.5 architecture=amd64/generic mac_addresses=aa:bb:cc:dd:ee:33
['LAN_2_0', 'LAN_2_0 [IPMI 2.0]'] is not of type 'string'

Failed validating 'type' in schema['items']['properties']['default']:
    {'type': 'string'}

On instance[0]['default']:
    ['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/user/password: Put random values.

Related branches

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)
Revision history for this message
Blake Rouse (blake-rouse) wrote :

Setting this to High, because the issue is only a problem if you forget the power_driver information for IPMI.

description: updated
summary: - [2.4, UI] Can't add a machine over the UI
+ [2.4, UI] Validation wrong for IPMI driver type over API and UI
Changed in maas:
importance: Critical → High
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
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.