Bug 1337646 - Service : Not able to provision more than certain number of VM's for Google Compute Engine
Summary: Service : Not able to provision more than certain number of VM's for Google ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.7.0
Assignee: Lucy Fu
QA Contact: Dave Johnson
URL:
Whiteboard: provisioning
Depends On:
Blocks: 1359785
TreeView+ depends on / blocked
 
Reported: 2016-05-19 17:52 UTC by Shveta
Modified: 2017-01-12 05:06 UTC (History)
8 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1359785 (view as bug list)
Environment:
Last Closed: 2017-01-11 19:58:49 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
automation logs (7.82 MB, application/zip)
2016-05-19 17:52 UTC, Shveta
no flags Details

Description Shveta 2016-05-19 17:52:32 UTC
Created attachment 1159587 [details]
automation logs

Description of problem:


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


How reproducible:


Steps to Reproduce:
1. Tried on GCE provider , provisioned 15 VM's 
2. request failed with error in logs "invoking [on_error] method=[update_provision_status(status => '[Fog::Errors::Error]: Project cfme-tests cannot accept requests to insert while in an inactive billing state.  Billing state may take several minutes to update.')]
"
3.

Actual results:


Expected results:


Additional info:Logs are attached.
Build : 

5.6.0.7-beta2.6.20160516171555_b1be31f

Comment 2 Greg Blomquist 2016-05-19 18:05:15 UTC
Adam, seems like I saw something for this already from Joe @ Google.  Does this sound familiar?

Comment 3 Shveta 2016-05-19 18:07:38 UTC
Upstream issue - https://github.com/ManageIQ/manageiq/issues/8427

Comment 4 Adam Grare 2016-05-19 18:08:05 UTC
Yes, he opened an issue upstream.  https://github.com/ManageIQ/manageiq/issues/8427

Comment 5 Shveta 2016-05-19 20:00:46 UTC
I tried same on Vsphere , request succeeded.

Comment 6 Adam Grare 2016-05-19 20:08:26 UTC
Shveta, have you set up billing account?  Can you provision 1 instance on this GCE account?  Can you create an instance from https://console.cloud.google.com/?

Comment 7 Greg McCullough 2016-05-24 22:20:43 UTC
Lucy - Based on the comments in the git issue (See https://github.com/ManageIQ/manageiq/issues/8427#issuecomment-221385014) this does not appear to be a GCE specific issue.

Please work with Shveta to track down the root cause.

Comment 9 CFME Bot 2016-06-20 17:45:54 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/4016b228703de3ee36197efaadf539b3e5558b50

commit 4016b228703de3ee36197efaadf539b3e5558b50
Author:     Lucy Fu <lufu>
AuthorDate: Fri Jun 17 18:06:46 2016 -0400
Commit:     Lucy Fu <lufu>
CommitDate: Mon Jun 20 09:53:11 2016 -0400

    Set pending as the default state for MiqRequestTask.
    
    The state of MiqRequest should not be used as the default state for tasks.
    With multiple provisioning, the miq_request.state may have changed from pending to active before all tasks are created
    that would throw an RunTime error and kill the subsequent tasks.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1337646

 app/models/miq_request.rb       |  3 +--
 app/models/miq_request_task.rb  |  1 +
 spec/models/miq_request_spec.rb | 39 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 2 deletions(-)

Comment 11 Shveta 2016-09-21 03:17:30 UTC
Fixed.
Verified in 5.7.0.0.20160906172503_12f65cb


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