Bug 1636958 - [RHV] VM Provision stuck in Pending Approval
Summary: [RHV] VM Provision stuck in Pending Approval
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Documentation
Version: 5.9.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.10.z
Assignee: Red Hat CloudForms Documentation
QA Contact: Ganesh Hubale
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-08 11:12 UTC by Radim Hrazdil
Modified: 2019-12-19 15:46 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-19 15:46:34 UTC
Category: ---
Cloudforms Team: Documentation
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs and screenshots (1.72 MB, application/x-gzip)
2018-10-08 11:12 UTC, Radim Hrazdil
no flags Details

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.


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