Add RenameDevice() on machine (or .Rename function on device)
Bug #1743385 reported by
Stéphane Graber
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.
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.
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 :)