Bug 1636958

Summary: [RHV] VM Provision stuck in Pending Approval
Product: Red Hat CloudForms Management Engine Reporter: Radim Hrazdil <rhrazdil>
Component: DocumentationAssignee: Red Hat CloudForms Documentation <cloudforms-docs>
Status: CLOSED WONTFIX QA Contact: Ganesh Hubale <ghubale>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.9.5CC: dmetzger, jhardy, kdixon, mfeifer, mshriver, obarenbo, rhrazdil, smallamp
Target Milestone: GAKeywords: AutomationBlocker, Regression
Target Release: 5.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-19 15:46:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Documentation Target Upstream Version:
Embargoed:
Attachments:
Description Flags
logs and screenshots none

Description Radim Hrazdil 2018-10-08 11:12:52 UTC
Created attachment 1491619 [details]
logs and screenshots

Description of problem:
I've been investigating issues with our provisioning test cases failing on timeout [0].
However, executing provisioning by itself always succeeds, so I tried to find which tests have been executed before this provision test.

I found that executing quota tests [1] on a clean appliance can lead to a state in which provision request done by Administration is stuck in Pending Approval.

These quota tests create a new user, assign the user to EvmGroup-super_administrator group, set tenant project quotas and try to provision a vm as the created user. First I thought there are some leftovers after these tests, but I triple-checked and haven't found any. 

Attached relevant screenshots as well as complete automation.log, evm.log, rhevm.log, production.log and api.log.

Executed this command to reproduce:
miq-runtest cfme/tests/infrastructure/test_project_quota.py cfme/tests/infrastructure test_provisioning_dialog.py::test_change_cpu_ram

This resulted in a state where Administrator user has created a provision request, which is stuck in Pending Approval.
I'll keep the appliance for some time to allow for further investigation.

[0] https://github.com/ManageIQ/integration_tests/blob/cfa6ac2f346f006b1af57ccca26c7cda71887a02/cfme/tests/infrastructure/test_provisioning_dialog.py#L117
[1] https://github.com/ManageIQ/integration_tests/blob/master/cfme/tests/infrastructure/test_project_quota.py


Version-Release number of selected component (if applicable):
Version 5.9.5.0.20180927190514_e161d8f

How reproducible:
75%

Steps to Reproduce:
1. miq-runtest cfme/tests/infrastructure/test_child_tenant.py cfme/tests/infrastructure/test_project_quota.py cfme/tests/infrastructure/test_provisioning_dialog.py::test_change_cpu_ram


Actual results:
This resulted in a state where Administrator user has created a provision request, which is stuck in Pending Approval.

Expected results:
Provision request should be auto approved.

Additional info:

Comment 3 Radim Hrazdil 2018-10-08 11:37:47 UTC
Forgot to add RHV Software Version:4.2.7.1-0.1.el7ev

Comment 4 Radim Hrazdil 2018-10-08 11:53:50 UTC
Also, this issue appeared for the first time in CFME version 5.9.4.7

Comment 10 dmetzger 2018-10-11 13:59:33 UTC
Converting this to a Doc ticket per PM. Request is to document that quotas should not be applied to the Super-Admin group. The Super-Admin group by design bypasses restrictions place on normal users/groups.

Comment 12 Sudhir Mallamprabhakara 2019-08-27 19:07:20 UTC
This is now a doc ticket.. removing the need info.