[2.4, b1, pod] Adding a pod via the API shouldn't require zone to be specified

Bug #1755807 reported by Andres Rodriguez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Newell Jensen

Bug Description

Trying to add a pod WITHOUT specifying a zone results in:

stdout for maas maas ['pods', 'create', 'name=first-cat-pod', 'type=virsh', 'power_address=qemu+ssh://ubuntu@10.245.136.8/system', 'power_pass=ubuntu']: {{{{"zone": ["Select a valid choice. That choice is not one of the available choices."]}}}}

So there's basically three issues:

1. MAAS doesn't allow specifying a pod via the API with specifying a zone.
2. allows the user to add a pod by specifying the zone *name* and not just the database *id*
3. returns zone on the API output.

Tags: pod

Related branches

Changed in maas:
importance: Undecided → High
milestone: none → 2.4.0beta1
status: New → Triaged
tags: added: pod
Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
summary: - [2.4, b1, pod] Adding a pod via the API shouldn't require zone to be
- specifi
+ [2.4, b1, pod] Can't add a pod via the API because of the zone
description: updated
summary: - [2.4, b1, pod] Can't add a pod via the API because of the zone
+ [2.4, b1, pod] Adding a pod via the API shouldn't require zone to be
+ specified
Changed in maas:
assignee: Newell Jensen (newell-jensen) → Andres Rodriguez (andreserl)
status: Triaged → In Progress
description: updated
Changed in maas:
assignee: Andres Rodriguez (andreserl) → Newell Jensen (newell-jensen)
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.