Bug 887805 - RHEVM-CLI: 'remove permit' command doesn't work by-id (by-name works fine)
Summary: RHEVM-CLI: 'remove permit' command doesn't work by-id (by-name works fine)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3.2.0
Assignee: Michael Pasternak
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 915537
TreeView+ depends on / blocked
 
Reported: 2012-12-17 11:52 UTC by Ilia Meerovich
Modified: 2016-02-10 19:09 UTC (History)
10 users (show)

Fixed In Version: SF4
Doc Type: Bug Fix
Doc Text:
Previously, 'remove permit' was not processing the '--role-identifier' parameter and would fail without message or error. Now, the command works with identifiers and prints 'accepted' when successfully executed.
Clone Of:
Environment:
Last Closed: 2013-06-10 20:29:41 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0890 0 normal SHIPPED_LIVE rhevm-cli bug fix and enhancement update 2013-06-11 00:24:57 UTC

Description Ilia Meerovich 2012-12-17 11:52:36 UTC
Output form Michael's bug repro:

[oVirt shell (connected)]# show role aaa

id            : 1f3724c0-1ada-4e13-aa37-5910c86e14b9
name          : aaa
_Base__context: 140680821593424
administrative: False
mutable       : True

[oVirt shell (connected)]# list permits --role-identifier aaa

id         : 502
name       : manipulate_permissions

id         : 1300
name       : login

[oVirt shell (connected)]# add permit --role-identifier aaa --id 7

id            : 7
name          : connect_to_vm
_Base__context: 140680821593424
administrative: False
role-id       : 1f3724c0-1ada-4e13-aa37-5910c86e14b9

[oVirt shell (connected)]# list permits --role-identifier aaa

id         : 502
name       : manipulate_permissions

id         : 1300
name       : login

id         : 7
name       : connect_to_vm


[oVirt shell (connected)]# remove permit connect_to_vm --role-identifier aaa
[oVirt shell (connected)]# list permits --role-identifier aaa

id         : 502
name       : manipulate_permissions

id         : 1300
name       : login

Comment 1 Michael Pasternak 2012-12-17 11:57:02 UTC
ilia,

It's not 'list command doesn't work by-id', but 'remove command' and for very
specific use-case - permit.

Comment 2 Michael Pasternak 2012-12-25 14:00:44 UTC
http://gerrit.ovirt.org/10366

Comment 3 Oded Ramraz 2013-02-06 10:29:30 UTC
RHEVM shell (connected)]# add permit --role-identifier aaa --id 7

id            : 7
name          : connect_to_vm
administrative: False
role-id       : c92b0f80-5fc8-4b12-94f4-5db34707ccb1

[RHEVM shell (connected)]# remove permit connect_to_vm --role-identifier aaa

accepted.

[RHEVM shell (connected)]# list permits --role-identifier aaa

id         : 301
name       : edit_vm_pool_configuration


Verified sf5

Comment 4 errata-xmlrpc 2013-06-10 20:29:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0890.html


Note You need to log in before you can comment on or make changes to this bug.