Closed tzumainn closed 4 months ago
After some experimentation and research, there's no easy way to do this. The problem is that the way policy rules are enabled in OpenStack, there's no good way to check if an attribute is empty string.
Based on a comment by Orran, it also sounds like this is nowhere near a high priority, as node owners always have the ability to cancel a lease anyway.
The specific scenario is:
a) node has owner b) node is leased c) now both owner and lessee can control power state of node
There's some curiosity whether a policy file can make it so that an owner can only control the power state if their node is not leased.