Bug 1490825 - VM provision with Number of VMs>1 is not working
Summary: VM provision with Number of VMs>1 is not working
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.8.3
Assignee: Boriso
QA Contact: Ilanit Stein
URL:
Whiteboard: rhev:provisioning
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-12 10:27 UTC by Ilanit Stein
Modified: 2017-12-05 15:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-14 11:33:03 UTC
Category: Bug
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
provision_requests_screenshot.png (114.52 KB, image/png)
2017-09-12 10:27 UTC, Ilanit Stein
no flags Details
evm.log (772.86 KB, application/x-gzip)
2017-09-12 10:30 UTC, Ilanit Stein
no flags Details
automation.log (73.54 KB, application/x-gzip)
2017-09-12 10:32 UTC, Ilanit Stein
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1248215 0 unspecified CLOSED Service : User provisioning request for more than one is not approved with reason " Provisioning limit is set to 1" 2021-02-22 00:41:40 UTC

Internal Links: 1248215

Description Ilanit Stein 2017-09-12 10:27:10 UTC
Description of problem:
When running from UI, VM provision (Native/ISO..), 
with Number of VMs (a field in provisioning dialog/Catalog tab) > 1,
it is not working:

1. The VMs are not provisioned.

2. The provision request (See provision_requests_screenshot.png attached)
    A. Remain in state: Pending, and status: Ok. Not sure if it is stuck or not.
    B. Has Last message: "Request was not auto-approved for the following    
       reasons: (Requested VMs 3 limit is 1)"

Version-Release number of selected component (if applicable):
CFME-5.8.2/RHV-4.1.6

How reproducible:
100%

Expected results:
1. VM provision for several VMs need to work 
(as it is an available option in the UI). 
If this option is not supported, It should be blocked. 
2. In VM provision for several VMs is failing, from some reason, the provision should fail (and it doesn't in this case).
Request is just remaining in Pending ? state. 

Additional info:
* This is found or RHV provider, but might be that this bug occur on other     
  providers as well.
* The default for number of VMs in UI is 1. Using the default, VM provision   
  works OK.

Comment 2 Ilanit Stein 2017-09-12 10:27:45 UTC
Created attachment 1324805 [details]
provision_requests_screenshot.png

Comment 3 Ilanit Stein 2017-09-12 10:30:19 UTC
Created attachment 1324806 [details]
evm.log

Comment 4 Ilanit Stein 2017-09-12 10:32:26 UTC
Created attachment 1324807 [details]
automation.log

Comment 7 Ilanit Stein 2017-09-14 11:33:03 UTC
This bug can be closed as not a bug, as this seem to a behavior, by design.

It is also a duplicate of bug 1248215, that contain this relevant comment:

Greg McCullough 2015-07-30 09:33:56 EDT
The default approval state machine is setup to only auto-approve 1 VM.  
You can remove the value for max_vms (or set to 0) to skip the VM count check.
See automate instance: / ManageIQ / Infrastructure / VM / Provisioning / StateMachines / ProvisionRequestApproval / Default

I tested on CFME-5.8.2+fix for bug 1486351/RHV-4.1.6
VM provision, with Number of VMs>1, for Native/ISO/PXE.
All worked well (along with manual approval).


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