[2.x, API] interface update will return successful with invalid params

Bug #1680266 reported by Seth Tanner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Medium
Unassigned
maas (Ubuntu)
New
Medium
Unassigned

Bug Description

Description: Ubuntu 16.04.2 LTS
Release: 16.04
maas:
  Installed: 2.1.3+bzr5573-0ubuntu1~16.04.1

the interface update command appears to always return success as long as the system_id and nic_id are valid

example of a valid command
maas <profile> interface update <system_id> <nic_id> vlan=<vlan id>

to replicate just throw in an unsupported param
maas <profile> interface update <system_id> <nic_id> vlan_id=<vlan id>
maas <profile> interface update <system_id> <nic_id> fabric=<fabric id>

this will result in
Success.
Machine-readable output follows:
{ . . .

Ideally the request should fail with a response stating that the param specified is unsupported

Changed in maas (Ubuntu):
importance: Undecided → High
Changed in maas:
importance: Undecided → High
milestone: none → 2.2.0rc2
Revision history for this message
Mike Pontillo (mpontillo) wrote :

I think this should be targeted for a later MAAS release. To do this correctly and consistently would mean re-examining the entire MAAS API.

Changed in maas:
importance: High → Medium
Changed in maas (Ubuntu):
importance: High → Medium
Changed in maas:
milestone: 2.2.0rc2 → 2.2.1
Changed in maas:
status: New → Triaged
milestone: 2.2.1 → 2.3.0
summary: - interface update will return successful with invalid params
+ [2.x, API] interface update will return successful with invalid params
Changed in maas:
milestone: 2.3.0 → 2.3.x
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
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.