[2.5, RBAC] Non-superuser can't edit their devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
This is with MAAS 2.5.1-7489-
I log in as a user that has only roles on resource pools, but not on MAAS
globally.
I can add a device successfully, but if I then try to add a new network
interface to the device, the "Save interface" button doesn't work.
I also can't edit the name of the device, nor adding tags, nor delete the device.
This is true for both the UI and the API.
Looking at the logs, I see this:
2019-01-14 11:07:03 maasserver.
(797) device.
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
py", line 852, in worker
return target()
File "/usr/lib/
", line 46, in work
task()
File "/usr/lib/
task()
--- <exception caught here> ---
File "/usr/lib/
result = inContext.theWork()
File "/usr/lib/
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
return func_outside_
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/usr/lib/
return method(params)
File "/usr/lib/
return self.create_
File "/usr/lib/
device = self.get_
File "/usr/lib/
raise HandlerPermissi
Related branches
- Alberto Donato (community): Approve
-
Diff: 95 lines (+39/-2)3 files modifiedsrc/maasserver/api/tests/test_devices.py (+19/-0)
src/maasserver/models/__init__.py (+4/-1)
src/maasserver/websockets/handlers/tests/test_device.py (+16/-1)
- Blake Rouse (community): Approve
- MAAS Lander: Approve
-
Diff: 95 lines (+39/-2)3 files modifiedsrc/maasserver/api/tests/test_devices.py (+19/-0)
src/maasserver/models/__init__.py (+4/-1)
src/maasserver/websockets/handlers/tests/test_device.py (+16/-1)
tags: | added: rbac |
summary: |
- [2.5, RBAC] Non-superuser can't add interface to their devices + [2.5, RBAC] Non-superuser can't edit their devices |
description: | updated |
Changed in maas: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.5.1 |
description: | updated |
description: | updated |
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |