Add RenameDevice() on machine (or .Rename function on device)

Bug #1743385 reported by Stéphane Graber
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Go MAAS API Library
Triaged
Wishlist
Unassigned

Bug Description

The gomaasapi package is a nice abstraction to get Machines and their attached Devices (containers) from MAAS but it only supports creating and deleting devices, not renaming them.

That's likely because Juju never renames a container, but LXD does and as a result we need to be able to rename the MAAS devices. A delete + create isn't practical and would open us for a race where another machine could steal our IP while doing that.

For now, we're directly calling the rename API from MAAS through the low level API that gomaasapi exports, but it'd be neat to have a .Rename() (on device) or .RenameDevice() (on machine) function to do that for us cleanly.

Revision history for this message
Anastasia (anastasia-macmood) wrote :

I am not sure if this is the best place to report bug or make suggestions for gomaasapi as although we, as Juju, are interested in it and are using it, it feels like this may not be solely on Juju team.

I will keep it as a wishlist for now and see if we can address it as an extra-curriculum activity :)

Changed in juju:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Stéphane Graber (stgraber) wrote :

Filed it here at the request of the Juju Core team :)

affects: juju → gomaasapi
summary: - [gomaasapi] Add RenameDevice() on machine (or .Rename function on
- device)
+ Add RenameDevice() on machine (or .Rename function on device)
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.