| Summary: | More consistent handling of loan permissions | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | wangjing <jingwang> |
| Component: | web UI | Assignee: | Nick Coghlan <ncoghlan> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 0.15 | CC: | aigao, asaha, dcallagh, jjaburek, llim, mvadkert, qwan, rmancy |
| Target Milestone: | 0.15.1 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-23 06:56:22 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 999391, 1009333 | ||
|
Comment 2
Nick Coghlan
2013-09-27 01:54:46 UTC
Bug 1015043 indicates this problem is more significant than we first thought. *** Bug 1015043 has been marked as a duplicate of this bug. *** Further clarification (based on bug 1015043): forcibly returning a loan should also cancel that user's current reservation (if any). There should be a confirmation prompt if a reservation would be cancelled. Also, if the existing reservation is an automated one for a recipe, then the user attempting to forcibly return the loan will also need permission to cancel that job. (In reply to Nick Coghlan from comment #5) > Further clarification (based on bug 1015043): forcibly returning a loan > should also cancel that user's current reservation (if any). There should be > a confirmation prompt if a reservation would be cancelled. If the confirmation prompt is necessary (in the bkr cli client), please add some -y or -f parameter to automatically force it for scripting purposes. Proposal to fix the loan and reservation permissions ACL mapping in 0.15.1: https://lists.fedorahosted.org/pipermail/beaker-devel/2013-October/000812.html That approach should restore the same capabilities as existed in 0.14, without adding any new confirmation prompts. On Gerrit: http://gerrit.beaker-project.org/#/c/2340/ I changed my mind on having returning a loan automatically return an existing reservation - that's more properly considered as part of the http://beaker-project.org/dev/proposals/improved-reservations-and-loans.html design proposal. For this bug, I took the simpler approach of including the ability to return other user's manual reservations as part of the "loan_any" permission. beaker 0.15.1 has been released. |