seantis / suitable

An Ansible API for humans.
GNU General Public License v3.0
171 stars 23 forks source link

Using ara #19

Open varunchopra opened 6 years ago

varunchopra commented 6 years ago

Has anyone managed to get openstack/ara to work with Suitable?

Right off the bat, this is what you get without any configuration:

 [WARNING]: Failure using method (v2_playbook_on_task_start) in callback plugin (<ansible.plugins.callback./home/ubuntu/.local/lib/python2.7/site-
packages/ara/plugins/callbacks/log_ara.CallbackModule object at 0x7fbbd9bd3650>): 'NoneType' object has no attribute 'path'

 [WARNING]: Failure using method (v2_runner_on_ok) in callback plugin (<ansible.plugins.callback./home/ubuntu/.local/lib/python2.7/site-
packages/ara/plugins/callbacks/log_ara.CallbackModule object at 0x7fbbd9bd3650>): 'NoneType' object has no attribute 'name'
href commented 6 years ago

I've had a brief look at this and it looks like I'd need to improve the plugin story of Suitable. Currently you can only install strategy plugins (for Mitogen support):

https://github.com/seantis/suitable/blob/1cea46333955a26d309878a7d8e4b9c3a303b067/suitable/api.py#L263-L280

Then the plugins could be registered as described in Ara's documentation: https://ara.readthedocs.io/en/latest/configuration.html

href commented 6 years ago

Note that you might be able to get this working using the environment variables (I haven't tested it), as described in the docs:

$ python -m ara.setup.env
export ANSIBLE_CALLBACK_PLUGINS=/usr/lib/python2.7/site-packages/ara/plugins/callbacks
export ANSIBLE_ACTION_PLUGINS=/usr/lib/python2.7/site-packages/ara/plugins/actions
export ANSIBLE_LIBRARY=/usr/lib/python2.7/site-packages/ara/plugins/modules
varunchopra commented 6 years ago

There seems to be an issue with Ara itself (for me at least) so I'm just letting this one go.

Their git repo doesn't have an issues section either. Sucks.

I'll just give Suitable and Mito a whirl. 💃

dmsimard commented 6 years ago

@chopraaa can you provide a script or a procedure to reproduce the issue ? It would allow me to investigate and verify if there is indeed a problem with ARA. Thanks !