Bug 1166748 - [jpe] Can't add permission: org.ovirt.engine.core.bll.AddPermissionCommand / org.ovirt.engine.core.compat.Guid.hashCode(Guid.java:114) [compat.jar:]
Summary: [jpe] Can't add permission: org.ovirt.engine.core.bll.AddPermissionCommand / ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: 3.5.0
Assignee: Yair Zaslavsky
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks: 1158470
TreeView+ depends on / blocked
 
Reported: 2014-11-21 15:55 UTC by Jiri Belka
Modified: 2016-02-10 19:03 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-24 08:29:21 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
engine.log (1.08 MB, application/x-gzip)
2014-11-21 15:55 UTC, Jiri Belka
no flags Details

Description Jiri Belka 2014-11-21 15:55:03 UTC
Created attachment 959824 [details]
engine.log

Description of problem:

i can't add permission to a user.

2014-11-21 16:41:29,802 DEBUG [org.ovirt.engine.core.bll.AddPermissionCommand] (ajp-/127.0.0.1:8702-12) [3405805f] Checking whether user fdfc627c-d875-11e0-90f0-83df133b58cc or one of the groups he is member of, have the following permissions:  ID: cb8b1462-3cb6-4bf0-b7e4-28be5702b6ac Type: VMAction group MANIPULATE_PERMISSIONS with role type USER,  ID: cb8b1462-3cb6-4bf0-b7e4-28be5702b6ac Type: VMAction group ADD_USERS_AND_GROUPS_FROM_DIRECTORY with role type USER
2014-11-21 16:41:29,804 DEBUG [org.ovirt.engine.core.bll.AddPermissionCommand] (ajp-/127.0.0.1:8702-12) [3405805f] Found permission 00000003-0003-0003-0003-0000000002d8 for user when running AddPermission, on VM with id cb8b1462-3cb6-4bf0-b7e4-28be5702b6ac
2014-11-21 16:41:29,805 DEBUG [org.ovirt.engine.core.bll.AddPermissionCommand] (ajp-/127.0.0.1:8702-12) [3405805f] Found permission 00000003-0003-0003-0003-0000000002d8 for user when running AddPermission, on VM with id cb8b1462-3cb6-4bf0-b7e4-28be5702b6ac
2014-11-21 16:41:29,832 ERROR [org.ovirt.engine.core.bll.AddPermissionCommand] (org.ovirt.thread.pool-7-thread-30) [3405805f] Command org.ovirt.engine.core.bll.AddPermissionCommand throw exception: java.lang.NullPointerException
        at org.ovirt.engine.core.compat.Guid.hashCode(Guid.java:114) [compat.jar:]
        at org.ovirt.engine.core.common.businessentities.Permissions.hashCode(Permissions.java:134) [common.jar:]
        at java.lang.Object.toString(Object.java:237) [rt.jar:1.7.0_71]
        at org.ovirt.engine.core.bll.CommandBase.getCommandParamatersString(CommandBase.java:1229) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.logRunningCommand(CommandBase.java:1250) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1164) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1307) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1932) [bll.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:210) [utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInRequired(TransactionSupport.java:149) [utils.jar:]
        at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:118) [utils.jar:]
        at org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:1331) [bll.jar:]
        at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:344) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.executeValidatedCommand(MultipleActionsRunner.java:191) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner.runCommands(MultipleActionsRunner.java:158) [bll.jar:]
        at org.ovirt.engine.core.bll.MultipleActionsRunner$2.run(MultipleActionsRunner.java:167) [bll.jar:]
        at org.ovirt.engine.core.utils.threadpool.ThreadPoolUtil$InternalWrapperRunnable.run(ThreadPoolUtil.java:90) [utils.jar:]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_71]
        at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_71]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

2014-11-21 16:41:29,839 DEBUG [org.ovirt.engine.core.bll.AddPermissionCommand] (org.ovirt.thread.pool-7-thread-30) [3405805f] Command [id=112106f4-8c67-4eac-b0b6-7d12ce884d37]: No compensation data.
2014-11-21 16:41:29,845 ERROR [org.ovirt.engine.core.bll.AddPermissionCommand] (org.ovirt.thread.pool-7-thread-30) [3405805f] Transaction rolled-back for command: org.ovirt.engine.core.bll.AddPermissionCommand.
2014-11-21 16:41:29,862 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-7-thread-30) [3405805f] Correlation ID: 3405805f, Call Stack: null, Custom Event ID: -1, Message: User admin failed to grant permission for Role UserRole on VM jb-w7-x64 to User/Group <UNKNOWN>.

Version-Release number of selected component (if applicable):
rhevm-backend-3.5.0-0.20.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. add UserRole to an AD user for a VM
2.
3.

Actual results:
doesn't work, strage <UNKNOWN> in event msg

Expected results:
should work

Additional info:

Comment 1 Oved Ourfali 2014-11-23 07:02:29 UTC
It doesn't reproduce for me in latest 3.5 branch.
vt11 will be release probably today, can you re-test it with it?

Comment 2 Jiri Belka 2014-11-24 08:22:44 UTC
I can't reproduce with vt11.

Comment 3 Yair Zaslavsky 2014-11-24 08:27:32 UTC
<Uknown> event means some error that does not map to one of the events has occured.
The fact the error occured means a CTOR of guid has receieved null.
For this to occur it means null was stored in DB probably.
Ths sounds ackward, if can't be reproduced i suggest to close a INSUFFICIENT_DATA (could not reproduce myself).

Comment 4 Oved Ourfali 2014-11-24 08:29:21 UTC
Closing as current-release, as there might have been an issue that was fixed.
Jiri - thanks for the quick verification.


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