[API] MAAS cli incorrect "Success" message
Bug #1750604 reported by
Peter Sabaini
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Unassigned |
Bug Description
Updating a deployed nodes' interface config via the maas CLI outputs a success message, but actually doesn't do anything.
If the operation did not succeed the CLI should throw an error, otherwise this can introduce hard to spot misconfiguration
Eg.:
$ maas maas-root interface update kahrsc 473 bond_mode=
Success.
Machine-readable output follows:
...
"id": 473,
...
"system_id": "kahrsc",
...
"params": {
...
Maas 2.3.0-6434-
tags: | added: api internal |
Changed in maas: | |
milestone: | 2.4.0alpha2 → 2.4.0beta1 |
Changed in maas: | |
milestone: | 2.4.0beta1 → 2.4.0beta2 |
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta3 |
Changed in maas: | |
milestone: | 2.4.0beta3 → 2.4.0beta4 |
summary: |
- MAAS cli incorrect "Success" message + [API] MAAS cli incorrect "Success" message |
tags: | added: maas-cli |
Changed in maas: | |
milestone: | 2.4.0beta4 → 2.4.x |
To post a comment you must log in.
Hi Peter,
Is there any logs at all that would show why this failed to update?
The API outputs success to the *request* that it made to the server, but the "output" section should actually say whether there was a failure or not.