`machine deploy` parameter expectations and error output are not consistent

Bug #1662361 reported by Ryan Beisner
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Dougal Matthews

Bug Description

`machine deploy` parameter expectations and error output are not consistent.

### Probe
⟫ maas maas machine deploy qmwcqs distro_series="?not-sure?"
{"distro_series": ["'?' is not a valid distro_series. It should be one of: '', 'ubuntu/trusty', 'ubuntu/xenial', 'ubuntu/yakkety', 'ubuntu/zesty'."]}
(Failed, but I discovered advice on what to set for a value.

### Try based on error from probe
⟫ maas maas machine deploy qmwcqs distro_series="ubuntu/xenial"
{"distro_series": ["xenial in distro_series does not match with operating system ubuntu"]}
(Failed, what huh?)

### Try with s.w.a.g.
⟫ maas maas machine deploy qmwcqs distro_series="xenial"
(Success, but not in line with what the cli just advised.)

Related branches

tags: added: papercut
Changed in maas:
milestone: none → 2.3.0
importance: Undecided → Medium
status: New → Triaged
summary: - `machine deploy` parameter expectations and error output are not
- consistent
+ [2.x, api] `machine deploy` parameter expectations and error output are
+ not consistent
tags: added: api
Changed in maas:
milestone: 2.3.0 → 2.3.x
Revision history for this message
Joshua McClintock (jmcclintock777) wrote : Re: [2.x, api] `machine deploy` parameter expectations and error output are not consistent

This may be a similar issue, I have multiple types of distro_series per OS type:

maasuser@host:~# maas admin machine deploy hahnnk distro_series="?not-sure?"
{"distro_series": ["'?not-sure?' is not a valid distro_series. It should be one of: '', 'esxi/6.7', 'esxi/6.7dell', 'esxi/6.7hpe', 'rhel/7', 'ubuntu/bionic', 'windows/win2016*', 'windows/win2019'."]}
maasuser@host:~# maas admin machine deploy hahnnk distro_series="esxi/6.7hpe"
{"distro_series": ["6.7hpe in distro_series does not match with operating system esxi"]}

It looks like it splits in the distro_series on '/' and takes the left side (esxi). How do I specify the right side '6.7/hpe'?

Revision history for this message
Joshua McClintock (jmcclintock777) wrote :

Ignore my comment, if I specify the part on the right side of the '/', I can get it to deploy that.

summary: - [2.x, api] `machine deploy` parameter expectations and error output are
- not consistent
+ `machine deploy` parameter expectations and error output are not
+ consistent
Changed in maas:
milestone: 2.3.x → 2.8.0b1
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b1 → 2.8.0b2
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b2 → 2.8.0rc1
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b3 → 2.8.0rc1
Changed in maas:
assignee: nobody → Dougal Matthews (d0ugal)
Alberto Donato (ack)
Changed in maas:
milestone: 2.8.0b4 → 2.8.0rc1
Dougal Matthews (d0ugal)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Alberto Donato (ack)
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.