"Acquire and start node" button appears on node page for admins who don't own an allocated but unstarted node
Bug #1381007 reported by
Graham Binns
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Graham Binns |
Bug Description
Julian spotted this in https:/
To reproduce:
1. Create two users in MAAS 1.7; one an admin
2. Acquire (don't start) a node with the non-admin user
3. As admin, visit the node page. The "Start node" button will read "Acquire and start node".
4. Clicking the button will start the node, though it will remain allocated to the non-admin user (so, confusing, too!).
The check in StartNode.display() should check to see if the node has already been allocated as well as checking the owner.
Related branches
lp://qastaging/~gmb/maas/acquire-and-start-node-bug-1381007
- Christian Reis (community): Approve
-
Diff: 100 lines (+57/-4)3 files modifiedsrc/maasserver/models/tests/test_node.py (+21/-0)
src/maasserver/node_action.py (+11/-3)
src/maasserver/tests/test_node_action.py (+25/-1)
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.