[2.0, 2.1] Release and list IPs reserved by another user
Bug #1629061 reported by
Andreas Hasenack
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Mike Pontillo |
Bug Description
It's helpful, via the API, to list and release IPs reserved by another user. Currently you only get back (via read) and can release IPs of the current user, not somebody else.
In general, I was looking at something like a command-line switch perhaps, like --all-users, that would include in the read action result objects belonging to other users.
Related branches
lp:~mpontillo/maas/make-ipaddresses-api-great-again--bug-1629061
- Gavin Panella (community): Approve
-
Diff: 978 lines (+519/-211)8 files modifiedsrc/maasserver/api/devices.py (+2/-15)
src/maasserver/api/ip_addresses.py (+153/-22)
src/maasserver/api/machines.py (+2/-15)
src/maasserver/api/rackcontrollers.py (+2/-15)
src/maasserver/api/regioncontrollers.py (+2/-15)
src/maasserver/api/tests/test_ipaddresses.py (+336/-129)
src/maasserver/models/staticipaddress.py (+5/-0)
src/maasserver/models/tests/test_staticipaddress.py (+17/-0)
summary: |
- Release and list IPs reserved by another user + [2.0, 2.1] Release and list IPs reserved by another user |
Changed in maas: | |
status: | Incomplete → In Progress |
assignee: | nobody → Mike Pontillo (mpontillo) |
importance: | Undecided → Critical |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
@andreas, I'm curious, what error do you get if you try and release an IP owned by someone else?