Bug 1628031 - Creation of service takes a very long time when used in a Catalog Bundle
Summary: Creation of service takes a very long time when used in a Catalog Bundle
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.9.4
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: GA
: 5.9.6
Assignee: William Fitzgerald
QA Contact: Dmitry Misharov
URL:
Whiteboard:
Depends On:
Blocks: 1622587
TreeView+ depends on / blocked
 
Reported: 2018-09-12 06:05 UTC by Gellert Kis
Modified: 2022-03-13 15:32 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
5.9.4
Last Closed: 2018-11-12 20:24:24 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 4 William Fitzgerald 2018-10-26 14:17:00 UTC
Hi Gellert,

While looking at the logs, we noticed the dequeue times are very high. We suspect that's at least partially responsible for the Service provision failure shown in the log snippets below.

In the log snippet below, the request was put on the queue and waited 4029 seconds to be delivered/processed.

Also, we noticed that the CatalogItemInitialization method is being called twice in Service/Provisioning/StateMachines which will add to the provisioning processing time.

Could you ask the customer:

1 Are they having performance issues in other areas besides Service provisioning?
2 How many Services or other types of provisioning are they doing at a time?
3 Have they reviewed the appliance configuration to see if it needs adjustments?
   (We're seeing workers getting killed as well.)
4 How often does Service Provision fail?
5 Have they upgraded since the problem was reported?
6 Can you ask the customer to supply logs showing a Service provisioning success and failure.
   (Providing request ID's for both)

Request:

[----] I, [2018-08-27T14:04:32.513220 #42209:fcb124]  INFO -- : Q-task_id([service_template_provision_task_99000000001229]) MIQ(MiqQueue.put) Message id: [99000017040827],  id: [], Zone: [default], Role: [automate], Server: [], Ident: [generic], Target id: [], Instance id: [], Ta      sk id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [100], State: [ready], Deliver On: [2018-08-27 12:05:32 UTC], Data: [], Args: [{:object_type=>"ServiceTemplateProvisionTask", :object_id=>99000000001229, :namespace=>"AutomationManagement/AnsibleTower/Service/P      rovisioning/StateMachines", :class_name=>"Provision", :instance_name=>"CatalogItemInitialization", :automate_message=>"create", :attrs=>{"request"=>"clone_to_service", :service_action=>"Provision", "Service::Service"=>99000000001226}, :user_id=>99000000000003, :miq_group_id=>9900      0000000019, :tenant_id=>99000000000001, :state=>"sequencer", :ae_fsm_started=>nil, :ae_state_started=>"2018-08-27 11:54:27 UTC", :ae_state_retries=>4, :ae_state_previous=>"---\n\"/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/CatalogItemI      nitialization\":\n  ae_state: sequencer\n  ae_state_retries: 4\n  ae_state_started: 2018-08-27 11:54:27 UTC\n  ae_state_max_retries: 100\n"}]

Queue responding: 

[----] I, [2018-08-27T15:11:41.597239 #42209:fcb124]  INFO -- : MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [99000017040827], MiqWorker id: [99000000295240], Zone: [default], Role: [automate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id      : [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [100], State: [dequeue], Deliver On: [2018-08-27 12:05:32 UTC], Data: [], Args: [{:object_type=>"ServiceTemplateProvisionTask", :object_id=>99000000001229, :namespace=>"AutomationManagement/AnsibleTower/Service/Prov      isioning/StateMachines", :class_name=>"Provision", :instance_name=>"CatalogItemInitialization", :automate_message=>"create", :attrs=>{"request"=>"clone_to_service", :service_action=>"Provision", "Service::Service"=>99000000001226}, :user_id=>99000000000003, :miq_group_id=>9900000      0000019, :tenant_id=>99000000000001, :state=>"sequencer", :ae_fsm_started=>nil, :ae_state_started=>"2018-08-27 11:54:27 UTC", :ae_state_retries=>4, :ae_state_previous=>"---\n\"/ManageIQ/AutomationManagement/AnsibleTower/Service/Provisioning/StateMachines/Provision/CatalogItemInit      ialization\":\n  ae_state: sequencer\n  ae_state_retries: 4\n  ae_state_started: 2018-08-27 11:54:27 UTC\n  ae_state_max_retries: 100\n"}], Dequeued in: [4029.124412259] seconds

Thanks

Billy


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