[API, CLI] nodes and interfaces api/command line reference spaces by name and not id

Bug #1543975 reported by Michael Foord
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Won't Fix
High
Unassigned
1.9
Won't Fix
High
Unassigned

Bug Description

nodes list and interfaces read (command line and equivalent api calls) reference subnet space by name. To use the space (and to reference it internally in juju) we need the id not the name. So we need an extra lookup.

Tags: api papercut
Changed in maas:
status: New → Triaged
Revision history for this message
Michael Foord (mfoord) wrote :

My preference would be adding a space_id field to the json output in addition to the current name.

Changed in maas:
milestone: none → 2.0.0
importance: Undecided → High
Michael Foord (mfoord)
description: updated
no longer affects: maas/1.10
tags: added: api papercut
summary: - nodes and interfaces api/command line reference spaces by name and not
- id
+ [API] nodes and interfaces api/command line reference spaces by name and
+ not id
Changed in maas:
milestone: 2.0.0 → none
summary: - [API] nodes and interfaces api/command line reference spaces by name and
- not id
+ [API, CLI] nodes and interfaces api/command line reference spaces by
+ name and not id
Revision history for this message
Mike Pontillo (mpontillo) wrote :

I'm going to go ahead and close this now, for a few reasons:

 - Spaces can be used by name throughout the MAAS API, including interface constraints. So there's no need to use the ID.

 - Space names are unique in MAAS, and spaces are referenced by name in both MAAS and Juju. The ID isn't particularly meaningful (except to Juju, which is arguably a bug).

 - Juju has been operating without this field for several years now, so this issue doesn't appear to be blocking anyone.

Changed in maas:
status: Triaged → Won't Fix
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.