Bug 1516683

Summary: Ordering Catalog from SSUI getting stuck in 'Pending' state - error - MiqAeServiceModelBase.ar_method raised: <TypeError>: <no implicit conversion of nil into String>
Product: Red Hat CloudForms Management Engine Reporter: Vatsal Parekh <vparekh>
Component: AutomateAssignee: Tina Fitzgerald <tfitzger>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.9.0CC: gmccullo, jhardy, mkanoor, obarenbo, tfitzger, vparekh
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-27 18:08:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Vatsal Parekh 2017-11-23 13:07:16 UTC
Greg, what info do you need?

Comment 3 Greg McCullough 2017-11-23 13:15:40 UTC
Vatsal - If you think the errors in the automation log are related it would be good to capture them here.

Comment 5 Vatsal Parekh 2017-11-24 07:38:30 UTC
(In reply to Greg McCullough from comment #3)
> Vatsal - If you think the errors in the automation log are related it would
> be good to capture them here.

Greg, I've attached the automation log with the request id 7, you can check more on the appliance.

Comment 6 Tina Fitzgerald 2017-11-27 18:08:16 UTC
Hi Vatsal,


There's an open ticket for this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1509977


Here's the error from the appliance automation.log-20171124 log file:

----] E, [2017-11-24T02:34:57.664397 #13124:94e2678] ERROR -- : The following error occurred during instance method <check_quota> for AR object <#<ServiceTemplateProvisionRequest id: 7, description: "Provisioning Service [test] from [test]", approval_state: "approved", type: "ServiceTemplateProvisionRequest", created_on: "2017-11-24 07:34:36", updated_on: "2017-11-24 07:34:53", fulfilled_on: nil, requester_id: 1, requester_name: "Administrator", request_type: "clone_to_service", request_state: "pending", message: "Service_Template_Provisioning - Request Created", status: "Ok", options: {:dialog=>{"dialog_test"=>"3"}, :workflow_settings=>{:resource_action_id=>45, :dialog_id=>34}, :initiator=>nil, :src_id=>1, :cart_state=>"cart", :requester_group=>"EvmGroup-super_administrator"}, userid: "admin", source_id: 1, source_type: "ServiceTemplate", destination_id: nil, destination_type: nil, tenant_id: 2, service_order_id: 3, process: true>>
[----] E, [2017-11-24T02:34:57.664584 #13124:94e2678] ERROR -- : MiqAeServiceModelBase.ar_method raised: <TypeError>: <no implicit conversion of nil into String>
[----] E, [2017-11-24T02:34:57.664653 #13124:94e2678] ERROR -- : /var/www/miq/vmdb/app/models/mixins/miq_provision_quota_mixin.rb:256:in `casecmp'
/var/www/miq/vmdb/app/models/mixins/miq_provision_quota_mixin.rb:256:in `block in quota_find_active_prov_request_by_owner'


The error is caused by the lack of an email address for the admin user.
Updating the admin user email address will resolve the issue, and/or changing the quota source to tenant or group.

Let me know if you have any questions.

Thanks,
Tina

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