Bug 1193802 - Missing multiple permissions on test TestCaseUserAndRoles.t09_check_existing_permissions
Summary: Missing multiple permissions on test TestCaseUserAndRoles.t09_check_existing_...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.6.0
Assignee: Nelly Credi
QA Contact:
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-18 09:25 UTC by David Caro
Modified: 2016-06-26 23:51 UTC (History)
19 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-26 09:57:10 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:
istein: needinfo+


Attachments (Terms of Use)

Description David Caro 2015-02-18 09:25:50 UTC
Description of problem:
The test fails with some missing permission issues

Version-Release number of selected component (if applicable):
Run the tesst on latest rebased 3.6 rhevm

How reproducible:
Run the tests on latest rebased 3.6 rhevm

Steps to Reproduce:
1.Run the tests on latest rebased 3.6 rhevm
2.
3.

Actual results:
Test fails

Expected results:
Test passes with the correct permissions check

Additional info:
http://jenkins-ci.eng.lab.tlv.redhat.com/view/0%20Unstable%203.6/job/rhevm_3.6_el6-engine_el6-host_automation_infra_one_host_restapi_mixed_nfs_rest_factory_vdsm/

The missing permissions are:

Permit 'reboot_vm' doesn't appear in permission list
Permit 'stop_vm' doesn't appear in permission list
Permit 'shut_down_vm' doesn't appear in permission list
Permit 'hibernate_vm' doesn't appear in permission list
Permit 'run_vm' doesn't appear in permission list
Permit 'manipulate_gluster_hook' doesn't appear in permission list
Permit 'manipulate_gluster_service' doesn't appear in permission list
Permit 'create_mac_pool' doesn't appear in permission list
Permit 'edit_mac_pool' doesn't appear in permission list
Permit 'delete_mac_pool' doesn't appear in permission list
Permit 'configure_mac_pool' doesn't appear in permission list

For more detailed info check the job logs

Comment 1 Oved Ourfali 2015-04-12 08:03:46 UTC
In order to examine issues like that we need to know more about the tests themselves. Opening a bug like that doesn't give us enough information to proceed with.

Gil - who can narrow this down into a specific test that is run, and the logic that failed?

Comment 2 Gil Klein 2015-04-12 08:25:14 UTC
(In reply to Oved Ourfali from comment #1)
> In order to examine issues like that we need to know more about the tests
> themselves. Opening a bug like that doesn't give us enough information to
> proceed with.
> 
> Gil - who can narrow this down into a specific test that is run, and the
> logic that failed?
Looks like this job is owned by the RHEV QE compute team (You can see the jobs owners in the "Job Ownership" box).

Ilanit, could you please help pinpoint this issue?

Comment 3 Ilanit Stein 2015-04-12 12:38:13 UTC
Moving need info to Nelly, as this job should be under RHEV QE infra team.

Comment 4 Nelly Credi 2015-04-12 13:08:10 UTC
We send ovirt-engine/api/capabilities 
and see two issues in this test:

1. we expect to find 'vm_basic_operations' permit, but it doesnt exist there,
so the question is why its not there any more

2. looks like there are 12 new permits, so Ill need approval that they should really be there & Ill add them to the test:
reboot_vm
stop_vm
shut_down_vm
hibernate_vm
run_vm
manipulate_gluster_service
manipulate_gluster_hook
disk_live_storage_migration
create_mac_pool
edit_mac_pool
delete_mac_pool
configure_mac_pool

Comment 5 Oved Ourfali 2015-04-12 13:16:41 UTC
It requires review of different teams.
Putting needinfos.

(and when you answer please make sure you don't remove all needinfos...).

Comment 6 Michal Skrivanek 2015-04-12 13:44:03 UTC
the VM related perms were changed by bug 1084117:

VM_BASIC_OPERATIONS aggregates the following permissions:
REBOOT_VM, STOP_VM, SHUT_DOWN_VM, PAUSE_VM, HIBERNATE_VM, RUN_VM.

This RFE remove VM_BASIC_OPERATIONS and instead add this new operations.

Comment 7 Lior Vernia 2015-04-13 08:37:30 UTC
The 4 MAC pool permissions are indeed new additions as part of the MAC pool per DC feature.

Comment 8 Nelly Credi 2015-04-13 08:58:19 UTC
@Michal PAUSE_VM doesnt exist in the permit list

Comment 9 Ori Liel 2015-04-14 07:21:57 UTC
Nelly, if new permissions are added to the application but not yet added to this test - does that break the test?

Comment 10 Nelly Credi 2015-04-14 08:16:02 UTC
yes, because we want to be able to track both sides - newly added permits & removed permits and align the test

but the correct flow is to get this information in advance, so we will not need to open bugs on such code changes

@Michal, please see comment 8

Comment 11 Michal Skrivanek 2015-04-14 08:50:41 UTC
(In reply to Nelly Credi from comment #8)
> @Michal PAUSE_VM doesnt exist in the permit list

yeah, apparently it's not exposed. Nevermind:)

Comment 12 Ori Liel 2015-04-14 08:56:57 UTC
So if a developer adds a new permission and posts his change - jenkins build will fail? That's kind of problematic from the developers point of view.

Comment 13 Ori Liel 2015-04-14 09:51:45 UTC
From the comments above looks like currently there is no problem with the mentioned permissions. Can the bug be closed?

Comment 14 Nelly Credi 2015-04-14 12:49:52 UTC
Im still waiting for an answer about:

manipulate_gluster_service
manipulate_gluster_hook
disk_live_storage_migration

once I get OK about these permits, we can close the bug

Comment 15 Ori Liel 2015-04-15 07:23:22 UTC
Are we trying to establish that the permissions which appear in ovirt-engine/api/capabilities but not in the above test were added on purpose? Why suspect otherwise? I think there's a problem with the concept of the test; any new permission added would immediately break it. 

Anyway, the above three permissions came from: 

disk_live_storage_migration:
  https://gerrit.ovirt.org/#/c/37287/ (Maor) 

manipulate_gluster_hook, manipulate_gluster_service:
  https://gerrit.ovirt.org/#/c/19280/ (Daniel) - 

Maor, Daniel, can you validate that they should indeed exist and were added on purpose, and then we can close this bug?

Comment 16 Daniel Erez 2015-04-15 10:39:53 UTC
(In reply to Ori Liel from comment #15)
> Are we trying to establish that the permissions which appear in
> ovirt-engine/api/capabilities but not in the above test were added on
> purpose? Why suspect otherwise? I think there's a problem with the concept
> of the test; any new permission added would immediately break it. 
> 
> Anyway, the above three permissions came from: 
> 
> disk_live_storage_migration:
>   https://gerrit.ovirt.org/#/c/37287/ (Maor) 
> 
> manipulate_gluster_hook, manipulate_gluster_service:
>   https://gerrit.ovirt.org/#/c/19280/ (Daniel) -

Not sure about these, they were added by https://gerrit.ovirt.org/#/c/13269/ and https://gerrit.ovirt.org/#/c/14831. @Sahina - I guess those are old enough so should probably be valid? 
 
> 
> Maor, Daniel, can you validate that they should indeed exist and were added
> on purpose, and then we can close this bug?

Comment 17 Ori Liel 2015-04-26 09:54:48 UTC
When I tried to see the error in the console output in jenkins, it looked like this test doesn't fail any more. I could only see the error output in earlier builds. I believe this problem was fixed somewhere along the way. Nelly, can we verify this?

Comment 18 Oved Ourfali 2015-04-26 09:57:10 UTC
Nelli - I'm closing this one, as it is an issue with the test. You should track that internally.
If relevant, and infra-related, please reopen.

Comment 19 Nelly Credi 2015-04-26 11:24:08 UTC
AFAIK this was not resolved, its just that there were build issues in the past couple of weeks, so the test wasnt executed. 
Can someone please provide the info for my last question (comment 14), so we can close this issue on my side too?

Comment 20 Oved Ourfali 2015-04-26 11:41:08 UTC
(In reply to Nelly Credi from comment #19)
> AFAIK this was not resolved, its just that there were build issues in the
> past couple of weeks, so the test wasnt executed. 
> Can someone please provide the info for my last question (comment 14), so we
> can close this issue on my side too?

Anyhow, we saw that it is probably not a bug, so bugzilla isn't the right place to track that.... as we can't open a bug/RFE on automation tests through bugzilla, otherwise I would have moved the bug to another component and whiteboard. I suggest you email the relevant people left, offline, and get your answer there.

Comment 21 Gil Klein 2015-04-26 13:22:38 UTC
Allon, could you please help review the last 3 permissions which seems to be storage related. Please see comment #14 for the exact details.

Comment 22 Allon Mureinik 2015-04-26 15:56:14 UTC
(In reply to Gil Klein from comment #21)
> Allon, could you please help review the last 3 permissions which seems to be
> storage related. Please see comment #14 for the exact details.


(In reply to Nelly Credi from comment #14)
> Im still waiting for an answer about:
> 
> manipulate_gluster_service
> manipulate_gluster_hook
Can't help you here, sorry - these are gluster permissions.
Sahina, could you please assist?

> disk_live_storage_migration
Yup.
Added in 3.5.0 as part of another BZ, expected.

Comment 23 Sahina Bose 2015-04-30 03:58:32 UTC
manipulate_gluster_hooks was added as part of the Gluster hooks management feature(http://www.ovirt.org/Features/Gluster_Hooks_Management) introduced in ovirt3.3

manipulate_gluster_service was added as part of the http://www.ovirt.org/Features/Gluster_Swift_Management in oVirt3.3, but is disabled.

These are applicable only on clusters with gluster service enabled.


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