Bug 1340710 - NoMethodError: undefined method `vendor' in Cloud/Infrastructure service provisioning if tenant quota is inforced
Summary: NoMethodError: undefined method `vendor' in Cloud/Infrastructure service prov...
Keywords:
Status: CLOSED DUPLICATE of bug 1336925
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: GA
: 5.7.0
Assignee: Greg McCullough
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-30 06:45 UTC by Aziza Karol
Modified: 2016-05-31 03:56 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-30 14:34:12 UTC
Category: Bug
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Aziza Karol 2016-05-30 06:45:38 UTC
Description of problem:


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

How reproducible:
100%

Steps to Reproduce:
1.Enforce CPU,Memory or storage quota for tenant "My Company" 
2.create a catalog item of type openstack with template cirros having disk size 12.6 MB and flavour m1.xlarge or m1.medium.
Provisioning entry point used (/Service/Provisioning/StateMachines/ServiceProvision_Template/CatalogItemInitialization)
3.provision the service.


Actual results:
`method_missing': undefined method `vendor' for #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x00000001220d20> (NoMethodError) is thrown in production.log and request state remains in pending state.

Expected results:


Additional info:
automation.log
[----] I, [2016-05-30T01:24:11.867223 #32478:6c050c]  INFO -- : Q-task_id([service_template_provision_request_11]) <AEMethod requested> service_template id: 1 service_type: atomic
[----] E, [2016-05-30T01:24:11.872501 #32478:9831cc] ERROR -- : Q-task_id([service_template_provision_request_11]) <AEMethod requested> The following error occurred during method evaluation:
[----] E, [2016-05-30T01:24:11.873117 #32478:9831cc] ERROR -- : Q-task_id([service_template_provision_request_11]) <AEMethod requested>   NoMethodError: undefined method `vendor' for #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x00000001220d20>
[----] E, [2016-05-30T01:24:11.874323 #32478:9831cc] ERROR -- : Q-task_id([service_template_provision_request_11]) <AEMethod requested>   (druby://127.0.0.1:47165) /var/www/miq/vmdb/lib/miq_automation_engine/engine/miq_ae_service_model_base.rb:200:in `method_missing'
(druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1624:in `perform_without_block'
(druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1584:in `perform'
(druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1657:in `block (2 levels) in main_loop'
(druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1653:in `loop'
(druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1653:in `block in main_loop'
(druby://127.0.0.1:47165) /opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
(druby://127.0.0.1:47165) /opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
<code: storage = if @miq_request.source.vendor == 'google'>:16:in `calculate_requested'
[----] E, [2016-05-30T01:24:11.876374 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: (druby://127.0.0.1:47165) /var/www/miq/vmdb/lib/miq_automation_engine/engine/miq_ae_service_model_base.rb:200:in `method_missing': undefined method `vendor' for #<MiqAeMethodService::MiqAeServiceServiceTemplate:0x00000001220d20> (NoMethodError)
[----] E, [2016-05-30T01:24:11.876508 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1624:in `perform_without_block'
[----] E, [2016-05-30T01:24:11.876644 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1584:in `perform'
[----] E, [2016-05-30T01:24:11.876764 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1657:in `block (2 levels) in main_loop'
[----] E, [2016-05-30T01:24:11.876874 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1653:in `loop'
[----] E, [2016-05-30T01:24:11.876995 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/rh-ruby22/root/usr/share/ruby/drb/drb.rb:1653:in `block in main_loop'
[----] E, [2016-05-30T01:24:11.877137 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
[----] E, [2016-05-30T01:24:11.877275 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from (druby://127.0.0.1:47165) /opt/rh/cfme-gemset/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'
[----] E, [2016-05-30T01:24:11.877391 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from <code: storage = if @miq_request.source.vendor == 'google'>:16:in `calculate_requested'
[----] E, [2016-05-30T01:24:11.877509 #32478:6b60ac] ERROR -- : Q-task_id([service_template_provision_request_11]) Method STDERR: 	from <code: $evm.root['quota_requested'] = calculate_requested(options_hash)>:251:in `<main>'
[----] I, [2016-05-30T01:24:11.916936 #32478:6d5998]  INFO -- : Q-task_id([service_template_provision_request_11]) <AEMethod [/ManageIQ/System/CommonMethods/QuotaMethods/requested]> Ending
[----] E, [2016-05-30T01:24:11.917630 #32478:6d5998] ERROR -- : Q-task_id([service_template_provision_request_11]) Aborting instantiation (unknown method return code) because [Method exited with rc=Unknown RC: [1]]
[----] E, [2016-05-30T01:24:11.917917 #32478:6d5998] ERROR -- : Q-task_id([service_template_provision_request_11]) State=<requested> running  raised exception: <Method exited with rc=Unknown RC: [1]>
[----] W, [2016-05-30T01:24:11.918187 #32478:6d5998]  WARN -- : Q-task_id([service_template_provision_request_11]) Error in State=[requested]
[----] I, [2016-05-30T01:24:11.918629 #32478:6d5998]  INFO -- : Q-task_id([service_template_provision_request_11]) Followed  Relationship [miqaedb:/System/CommonMethods/QuotaStatemachine/quota#create]
[----] I, [2016-05-30T01:24:11.919126 #32478:6d5998]  INFO -- : Q-task_id([service_template_provision_request_11]) Followed  Relationship [miqaedb:/System/Policy/ServiceTemplateProvisionRequest_starting#create]
[----] I, [2016-05-30T01:24:11.919490 #32478:6d5998]  INFO -- : Q-task_id([service_template_provision_request_11]) Followed  Relationship [miqaedb:/System/Policy/request_starting#create]
[----] I, [2016-05-30T01:24:11.919896 #32478:6d5998]  INFO -- : Q-task_id([service_template_provision_request_11]) Followed  Relationship [miqaedb:/System/Event/RequestEvent/Request/request_starting#create]
[----] I, [2016-05-30T01:24:28.177058 #3015:6d5998]  INFO -- : Instantiating [/System/Process/Event?EventStream%3A%3Aevent_stream=502&MiqRequest%3A%3Amiq_request=11&MiqServer%3A%3Amiq_server=1&ServiceTemplateProvisionRequest%3A%3Aservice_template_provision_request=11&User%3A%3Auser=1&event_stream_id=502&event_type=request_approved&object_name=Event&vmdb_object_type=service_template_provision_request]
[----] I, [2016-05-30T01:24:28.206755 #3015:6d5998]  INFO -- : Updated namespace [/System/Process/Event?EventStream%3A%3Aevent_stream=502&MiqRequest%3A%3Amiq_request=11&MiqServer%3A%3Amiq_server=1&ServiceTemplateProvisionRequest%3A%3Aservice_template_provision_request=11&User%3A%3Auser=1&event_stream_id=502&event_type=request_approved&object_name=Event&vmdb_object_type=service_template_provision_request  ManageIQ/System]
[----] I, [2016-05-30T01:24:28.272345 #3015:6d5998]  INFO -- : Following Relationship [miqaedb:/System/Event/RequestEvent/Request/request_approved

Comment 2 Aziza Karol 2016-05-30 09:37:15 UTC
Observing the same error when provisioning service with Vmware infrastructure provider.

Comment 3 Greg McCullough 2016-05-30 14:34:12 UTC

*** This bug has been marked as a duplicate of bug 1336925 ***


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