Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1336925 - Automate | Quota error "undefined method `vendor' for #<MiqAeMethodService::MiqAeServiceServiceTemplate:"
Automate | Quota error "undefined method `vendor' for #<MiqAeMethodService::M...
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.6.0
Unspecified Unspecified
high Severity high
: GA
: 5.6.0
Assigned To: William Fitzgerald
Dmitry Misharov
automate:quota
:
: 1340710 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-05-17 15:57 EDT by Tina Fitzgerald
Modified: 2018-06-25 10:57 EDT (History)
9 users (show)

See Also:
Fixed In Version: 5.6.0.9
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 12:03:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Tina Fitzgerald 2016-05-17 15:57:30 EDT
Description of problem:
Quota requested method error for generic service item causes the following error:

<code: storage = if @miq_request.source.vendor == 'google'>:16:in `calculate_requested'
[----] E, [2016-05-17T15:13:32.100512 #26491:12cb6bc] ERROR -- : Q-task_id([service_template_provision_request_1000000000277]) Method STDERR: (druby://127.0.0.1:40365) /home/hkataria/dev/manageiq/lib/miq_automation_engine/engine/miq_ae_service_model_base.rb:200:in `method_missing': undefined method `vendor' for #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x00000002c65c58> (NoMethodError)
[----] E, [2016-05-17T15:13:32.100568 #26491:12cb6bc] ERROR -- : Q-


How reproducible:
Create a generic service item and provision it.

Actual results:


Expected results:


Additional info:
Comment 4 Greg McCullough 2016-05-30 10:34:12 EDT
*** Bug 1340710 has been marked as a duplicate of this bug. ***
Comment 5 CFME Bot 2016-05-31 10:16:09 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/adb2ba7b73135650868ce0f85cd39bec7f073c64

commit adb2ba7b73135650868ce0f85cd39bec7f073c64
Author:     william fitzgerald <wfitzger@redhat.com>
AuthorDate: Fri May 20 12:36:08 2016 -0400
Commit:     william fitzgerald <wfitzger@redhat.com>
CommitDate: Fri May 27 19:58:05 2016 -0400

    Automate - Fixed service quota
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1336925
    
    Added Service provisioning spec tests for generic and vmware service items.
    
    Updated spec helper files.

 .../QuotaMethods.class/__methods__/requested.rb    | 55 +++++++++++-------
 .../method_validation/calculate_requested_spec.rb  | 66 ++++++++++++++--------
 spec/support/quota_helper.rb                       | 43 ++++++++++----
 spec/support/service_template_helper.rb            | 10 ++--
 4 files changed, 119 insertions(+), 55 deletions(-)
Comment 7 Tina Fitzgerald 2016-06-02 13:08:15 EDT
Hi Milan,

Sorry about the lack of detail in the steps to reproduce...

Tenant quota should have at least one value that will cause the quota to fail.

The default service entry point should be: /Service/Provisioning/StateMachines/ServiceProvision_Template/default class.

Please let me know if it's still not behaving as you'd expect.

Thanks,
Tina
Comment 9 Milan Falešník 2016-06-03 09:14:51 EDT
Verified in 5.6.0.9

I have set a tenant quota (and I set them that they were already "broken"). I made a plain Generic service and kicked off its provisioning. No error happened during the provisioning.
Comment 12 errata-xmlrpc 2016-06-29 12:03:22 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348
Comment 13 CFME Bot 2016-08-04 08:51:48 EDT
New commit detected on cfme/5.5.z:
https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=86c546e3c0e79e117a6577cd0238676ff923a8e3

commit 86c546e3c0e79e117a6577cd0238676ff923a8e3
Author:     william fitzgerald <wfitzger@redhat.com>
AuthorDate: Fri May 20 12:36:08 2016 -0400
Commit:     Tina Fitzgerald <tfitzger@redhat.com>
CommitDate: Wed Aug 3 14:46:11 2016 -0400

    Automate - Fixed service quota
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1336925
    
    Added Service provisioning spec tests for generic and vmware service items.
    
    Updated spec helper files.
    
    Conflicts:
    	db/fixtures/ae_datastore/ManageIQ/System/CommonMethods/QuotaMethods.class/__methods__/requested.rb
    	spec/automation/unit/method_validation/calculate_requested_spec.rb
    	spec/support/quota_helper.rb

 .../QuotaMethods.class/__methods__/requested.rb    | 55 ++++++++++++--------
 .../method_validation/calculate_requested_spec.rb  | 58 ++++++++++++++++------
 spec/support/quota_helper.rb                       | 57 +++++++++++++++++++--
 spec/support/service_template_helper.rb            | 10 ++--
 4 files changed, 137 insertions(+), 43 deletions(-)
Comment 14 Tina Fitzgerald 2016-08-04 11:58:26 EDT
Fixed in version 5.5.z: 
https://bugzilla.redhat.com/show_bug.cgi?id=1360132

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