Generic Service Error while ordering service of Ansible Playbook type

gaprindashvili

#1

Hello,

I have enabled “Embedded Ansible” and also added github repository. I have created catalog and catalog item of type ‘Ansible Playbook’ successfully. But I am facing problem while ordering this service. ManageIQ notifies with Generic Service Error and status of service as ‘Error’.

Errors in evm.log:

[----] D, [2018-02-09T15:17:11.500114 #1626:4792db4] DEBUG -- : AnsibleTowerClient::Api Sending <get> with <["/ansibleapi/v1/jobs/9/stdout/?format=txt_download"]>
[----] E, [2018-02-09T15:17:11.605226 #1626:4792db4] ERROR -- : MIQ(ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Job#raw_stdout) Reading AnsibleTower Job miq_OpenStack | create external network_provision with id(3) stdout failed with error: 751: unexpected token at ''
[----] E, [2018-02-09T15:17:11.605455 #1626:4792db4] ERROR -- : MIQ(ServiceAnsiblePlaybook#log_stdout) Failed to get stdout from ansible job miq_OpenStack | create external network_provision
[----] E, [2018-02-09T15:17:11.605572 #1626:4792db4] ERROR -- : [MiqException::MiqOrchestrationStatusError]: 751: unexpected token at ''  Method:[block in method_missing]
[----] E, [2018-02-09T15:17:11.628605 #1626:105d13c] ERROR -- : Q-task_id([service_template_provision_task_3]) MIQ(MiqAeEngine.deliver) Error delivering {"dialog_param_network_name"=>"MyExtNetwork", "dialog_param_os_host"=>"172.22.26.201", "dialog_param_os_user"=>"admin", "password::dialog_param_os_password"=>"v2:{HwuNigvUyoAMUplQdgJevlF2soJpog5jBHMe8WjJ9qA=}", "dialog_param_os_ssl"=>"false", "request"=>"clone_to_service", :service_action=>"Provision", "Service::Service"=>3} for object [ServiceTemplateProvisionTask.3] with state [check_completed] to Automate:

Errors shown in automation.log as:

[----] I, [2018-02-09T01:25:38.429372 #1704:749140]  INFO -- : Instance [/ManageIQ/System/Event/EmsEvent/EMBEDDEDANSIBLE/job_create] not found in MiqA
eDatastore - trying [.missing]
[----] E, [2018-02-09T01:26:25.019150 #1704:7320e4] ERROR -- : <AEMethod check_completed> Error in check completed: Job launching failed
[----] I, [2018-02-09T01:26:25.072668 #1704:7320e4]  INFO -- : <AEMethod check_completed> Ending check_completed
[----] I, [2018-02-09T01:26:25.087819 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) <AEMethod [/ManageIQ/Service/Generic/StateMachines/GenericLifecycle/check_completed]> Ending
[----] I, [2018-02-09T01:26:25.087919 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) Method exited with rc=MIQ_OK
[----] I, [2018-02-09T01:26:25.088159 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) Processed  State=[check_completed] with Result=[error]
[----] W, [2018-02-09T01:26:25.088235 #1704:749140]  WARN -- : Q-task_id([service_template_provision_task_6]) Error in State=[check_completed]
[----] I, [2018-02-09T01:26:25.088333 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) In State=[check_completed], invoking [on_error] method=[update_status(status => 'Error Processing check_completed')]
[----] I, [2018-02-09T01:26:25.140437 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) Updated namespace [Service/Generic/StateMachines/GenericLifecycle/update_status  ManageIQ/Service/Generic/StateMachines]
[----] I, [2018-02-09T01:26:25.147570 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) Invoking [inline] method [/ManageIQ/Service/Generic/StateMachines/GenericLifecycle/update_status] with inputs [{"status"=>"Error Processing check_completed"}]
[----] I, [2018-02-09T01:26:25.148587 #1704:749140]  INFO -- : Q-task_id([service_template_provision_task_6]) <AEMethod [/ManageIQ/Service/Generic/StateMachines/GenericLifecycle/update_status]> Starting
[----] I, [2018-02-09T01:26:25.445711 #1704:73b9dc]  INFO -- : <AEMethod update_status> Starting update_status
[----] I, [2018-02-09T01:26:25.451291 #1704:73b9dc]  INFO -- : <AEMethod update_status> Status message: Server [EVM] Service [OpenStack | Create External Network] Provision Step [check_completed] Status [Error Processing check_completed]
[----] E, [2018-02-09T01:26:25.610041 #1704:73b9dc] ERROR -- : <AEMethod update_status> Generic Service Error: Server [EVM] Service [OpenStack | Create External Network] Provision Step [check_completed] Status [Error Processing check_completed]

Can some one tell me why I am getting this errors? And how to solve this?