-
Notifications
You must be signed in to change notification settings - Fork 900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Embedded Ansible cannot be activated in MiQ #15670
Comments
This thread has some more information on how to set up embedded ansible in ManageIQ http://talk.manageiq.org/t/howto-setup-embedded-ansible/2291 |
This should be fixed by #16205 |
On gaprindashvili-1, when I enable Embeded ansible role I see below errors in
|
@psachin That looks like a separate issue, can you open a new issue and mention me? This was originally opened because awx was not supported so this was solved when we added the ability to run awx containers for embedded ansible. |
When I activate the embedded Ansible by going to into Configuration and turning on the Embedded Ansible switch, the only think I get is periodic message "The role Embedded Ansible has started activation on server EVM " but the activation doesn't seem to ever complete. The evm.log shows some errors below.
It seems the two directories the error messages refer to do not exist
[root@localhost log]# cd /etc/tower
-bash: cd: /etc/tower: No such file or directory
[root@localhost log]# cat /etc/sysconfig/ansible-tower
cat: /etc/sysconfig/ansible-tower: No such file or directory
[root@localhost log]# cat /etc/sysconfig/ansible*
cat: /etc/sysconfig/ansible*: No such file or directory
tail -f evm.log | grep -i EmbeddedAnsible
[----] I, [2017-07-27T11:40:51.182582 #1567:131913c] INFO -- : MIQ(MiqPriorityWorker::Runner#get_message_via_drb) Message id: [759], MiqWorker id: [14], Zone: [default], Role: [automate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqAeEngine.deliver], Timeout: [3600], Priority: [20], State: [dequeue], Deliver On: [], Data: [], Args: [{:object_type=>"MiqServer", :object_id=>1, :attrs=>{:event_type=>"evm_worker_start", :event_details=>"Worker started: ID [106], PID [], GUID [b1444114-3577-4dae-8411-2b6671884183]", :type=>"EmbeddedAnsibleWorker", "MiqEvent::miq_event"=>125, :miq_event_id=>125, "EventStream::event_stream"=>125, :event_stream_id=>125}, :instance_name=>"Event", :user_id=>1, :miq_group_id=>2, :tenant_id=>1, :automate_message=>nil}], Dequeued in: [3.87337859] seconds
[----] I, [2017-07-27T11:40:51.186373 #1567:131913c] INFO -- : MIQ(MiqAeEngine.deliver) Delivering {:event_type=>"evm_worker_start", :event_details=>"Worker started: ID [106], PID [], GUID [b1444114-3577-4dae-8411-2b6671884183]", :type=>"EmbeddedAnsibleWorker", "MiqEvent::miq_event"=>125, :miq_event_id=>125, "EventStream::event_stream"=>125, :event_stream_id=>125} for object [MiqServer.1] with state [] to Automate
[----] I, [2017-07-27T11:41:00.897866 #1331:131913c] INFO -- : MIQ(EmbeddedAnsibleWorker.sync_workers) Workers are being synchronized: Current #: [0], Desired #: [1]
[----] I, [2017-07-27T11:41:01.004633 #1331:131913c] INFO -- : MIQ(MiqQueue.put) Message id: [760], id: [], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqEvent.raise_evm_event], Timeout: [600], Priority: [100], State: [ready], Deliver On: [], Data: [], Args: [["MiqServer", 1], "evm_worker_start", {:event_details=>"Worker started: ID [107], PID [], GUID [e0d68719-c381-4fc9-944e-b0ec1f804636]", :type=>"EmbeddedAnsibleWorker"}]
[----] I, [2017-07-27T11:41:01.005415 #1331:131913c] INFO -- : MIQ(EmbeddedAnsibleWorker#start) Worker started: ID [107], PID [], GUID [e0d68719-c381-4fc9-944e-b0ec1f804636]
[----] I, [2017-07-27T11:41:01.183108 #1331:753f7bc] INFO -- : MIQ(EmbeddedAnsibleWorker::Runner#sync_config) ID [107], PID [], GUID [e0d68719-c381-4fc9-944e-b0ec1f804636], Zone [default], Active Roles [automate,database_operations,database_owner,embedded_ansible,ems_inventory,ems_operations,event,reporting,scheduler,smartstate,user_interface,web_services,websocket], Assigned Roles [automate,database_operations,database_owner,embedded_ansible,ems_inventory,ems_operations,event,reporting,scheduler,smartstate,user_interface,web_services,websocket], Configuration:
[----] I, [2017-07-27T11:41:01.521895 #1331:753f7bc] INFO -- : MIQ(EmbeddedAnsibleWorker::Runner#setup_ansible) calling EmbeddedAnsible.start
[----] E, [2017-07-27T11:41:01.632186 #1331:753f7bc] ERROR -- : MIQ(EmbeddedAnsibleWorker::Runner) ID [107] PID [1331] GUID [e0d68719-c381-4fc9-944e-b0ec1f804636] Error in before_exit: source /etc/sysconfig/ansible-tower; echo $TOWER_SERVICES exit code: 1
[----] I, [2017-07-27T11:41:01.648894 #1331:753f7bc] INFO -- : MIQ(EmbeddedAnsibleWorker#log_status) [Embedded Ansible Worker] Worker ID [107], PID [], GUID [e0d68719-c381-4fc9-944e-b0ec1f804636], Last Heartbeat [2017-07-27 15:41:00 UTC], Process Info: Memory Usage [], Memory Size [], Proportional Set Size: [], Memory % [], CPU Time [], CPU % [], Priority []
[----] E, [2017-07-27T11:41:01.649260 #1331:753f7bc] ERROR -- : MIQ(EmbeddedAnsibleWorker::Runner) ID [107] PID [1331] GUID [e0d68719-c381-4fc9-944e-b0ec1f804636] /usr/bin/python -c "import uuid; file('/etc/tower/SECRET_KEY', 'wb').write(uuid.uuid4().hex)" exit code: 1 Worker exiting.
[----] I, [2017-07-27T11:41:01.649436 #1331:753f7bc] INFO -- : MIQ(EmbeddedAnsibleWorker#start_monitor_thread) SystemExit received, exiting monitoring Thread
[----] I, [2017-07-27T11:41:02.628006 #1558:131913c] INFO -- : MIQ(MiqGenericWorker::Runner#get_message_via_drb) Message id: [760], MiqWorker id: [13], Zone: [default], Role: [], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [MiqEvent.raise_evm_event], Timeout: [600], Priority: [100], State: [dequeue], Deliver On: [], Data: [], Args: [["MiqServer", 1], "evm_worker_start", {:event_details=>"Worker started: ID [107], PID [], GUID [e0d68719-c381-4fc9-944e-b0ec1f804636]", :type=>"EmbeddedAnsibleWorker"}], Dequeued in: [1.634094195] seconds
The text was updated successfully, but these errors were encountered: