"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
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Graham Binns

Bug Description

Julian spotted this in https://code.launchpad.net/~gmb/maas/start-and-allocate-bug-1365591/+merge/238130/comments/584582.

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.

Tags: confusing-ui

Related branches

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
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.