openstackgerrit | Merged openstack/ara feature/1.0: Import ARA configuration, views and API "just-in-time" https://review.openstack.org/522983 | 02:23 |
---|---|---|
openstackgerrit | Merged openstack/ara feature/1.0: Add helper modules/scripts to know where ARA is https://review.openstack.org/522898 | 02:23 |
openstackgerrit | Merged openstack/ara feature/1.0: Temporarily switch unit test jobs to non-voting https://review.openstack.org/522889 | 02:23 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Re-structure API routes and responses to match a list/detail model https://review.openstack.org/516172 | 02:48 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Provide some base for functional/unit/integration tests unification https://review.openstack.org/522710 | 02:48 |
openstackgerrit | David Moreau Simard proposed openstack/ara feature/1.0: Refactor configuration and drop static generation https://review.openstack.org/523013 | 02:48 |
openstackgerrit | Merged openstack/ara feature/1.0: Re-structure API routes and responses to match a list/detail model https://review.openstack.org/516172 | 03:40 |
openstackgerrit | Merged openstack/ara feature/1.0: Provide some base for functional/unit/integration tests unification https://review.openstack.org/522710 | 03:44 |
openstackgerrit | Merged openstack/ara feature/1.0: Refactor configuration and drop static generation https://review.openstack.org/523013 | 03:44 |
*** tbielawa_ has quit IRC | 04:41 | |
*** bcoca has quit IRC | 05:01 | |
*** ara-slack1 has joined #ara | 06:15 | |
*** ara-slack has quit IRC | 06:15 | |
*** nicovs_be has joined #ara | 08:00 | |
*** openstackgerrit has quit IRC | 09:48 | |
*** nicovs_be has quit IRC | 10:49 | |
*** nicovs_be has joined #ara | 10:49 | |
*** nicovs_be has quit IRC | 10:54 | |
*** nicovs_be has joined #ara | 10:54 | |
*** resmo has joined #ara | 13:05 | |
*** tbielawa_ has joined #ara | 14:10 | |
*** tbielawa_ has quit IRC | 14:18 | |
*** tbielawa has joined #ara | 14:19 | |
*** bcoca has joined #ara | 14:52 | |
*** bcoca has joined #ara | 14:52 | |
*** tbielawa is now known as tbielawa|brb | 15:13 | |
*** tbielawa|brb has quit IRC | 15:19 | |
*** tbielawa has joined #ara | 15:56 | |
*** nicovs_be has quit IRC | 15:57 | |
*** nicovs_be has joined #ara | 15:57 | |
*** nicovs_be has quit IRC | 16:02 | |
*** tbielawa has quit IRC | 16:25 | |
*** tbielawa has joined #ara | 16:25 | |
*** tbielawa has quit IRC | 16:28 | |
*** tbielawa has joined #ara | 16:29 | |
*** tbielawa has quit IRC | 16:36 | |
*** tbielawa has joined #ara | 16:36 | |
*** nicovs_be has joined #ara | 16:44 | |
*** Bakey has joined #ara | 16:48 | |
*** nicovs_be has quit IRC | 16:48 | |
Bakey | someone fix my idiocy here: I can't seem to get ara to look at the correct database file | 16:51 |
Bakey | CLI queries return fine | 16:51 |
Bakey | web UI never shows anything | 16:52 |
dmsimard | Bakey: hey o/ | 16:52 |
dmsimard | Bakey: how are you running the web interface ? | 16:53 |
Bakey | save me! \o | 16:53 |
Bakey | apache | 16:53 |
Bakey | tried to follow https://ara.readthedocs.io/en/latest/webserver.html#apache-mod-wsgi | 16:53 |
Bakey | web UI loads OK, got no data | 16:53 |
dmsimard | Bakey: that means it's one of two things, 1) apache doesn't know where the ara database is 2) it doesn't have access to it | 16:54 |
dmsimard | Bakey: are you running sqlite ? mysql ? | 16:54 |
Bakey | sqlite | 16:54 |
Bakey | not opposed to using mysql, was trying to KISS | 16:54 |
dmsimard | Bakey: are you running ansible from the same machine where your apache is installed ? | 16:54 |
Bakey | yes | 16:54 |
Bakey | ansible playbooks run as root | 16:54 |
Bakey | apache runs as apache of course | 16:54 |
dmsimard | Bakey: where is the database located ? | 16:54 |
Bakey | how can I tell? | 16:54 |
dmsimard | by default it'd be in ~/.ara/ansible.sqlite so /root/.ara/ansible.sqlite | 16:55 |
dmsimard | and apache is probably looking for it in his vision of ~/.ara/ansible.sqlite (/var/www/ ?) | 16:55 |
Bakey | looks to be in /root/.ara/ | 16:55 |
dmsimard | if you look at the docs, there's a mention of an ansible.cfg file with a SetEnv directive | 16:55 |
dmsimard | basically both your user and apache need to use the same config and have access to the database | 16:55 |
Bakey | yeah, in the virtual host | 16:55 |
dmsimard | if you want to just try out ARA and KISS, do away with apache for the time being and just fire up the standalone webserver: ara-manage runserver | 16:56 |
Bakey | ok, so it seems to make more sense to have my root user use /var/www/ara/.ara/ansible.sqlite | 16:56 |
Bakey | or I could do that | 16:56 |
dmsimard | need to brb. | 16:56 |
Bakey | dmsimard: got it working, what I gather is if your'e going to use apache, you'd probably also be better off using an actual DB like mysql or postgresql | 17:03 |
dmsimard | Bakey: it depends on the use case and the scale you're working with | 17:16 |
dmsimard | The embedded webapp is fine but when there's a lot of data/users it doesn't scale very well | 17:17 |
dmsimard | That's when it is time to start considering wsgi/apache instead | 17:17 |
dmsimard | Same thing for mysql versus sqlite | 17:19 |
dmsimard | mysql is not necessarily faster than sqlite, but it makes you able to aggregate data from multiple locations, for example. | 17:20 |
*** dmsimard changes topic to "ARA - Ansible Run Analysis: Making playbook runs easier to visualize, understand and troubleshoot | Git: https://github.com/openstack/ara - Docs: https://ara.readthedocs.io/en/latest/ - Latest version: 0.14.5: https://github.com/openstack/ara/releases/tag/0.14.5 | This channel is logged: http://eavesdrop.openstack.org/irclogs/%23ara/" | 17:27 | |
*** tbielawa is now known as tbielawa|lunch | 17:48 | |
*** sshnaidm is now known as sshnaidm|off | 17:59 | |
*** resmo has quit IRC | 18:06 | |
Bakey | I don't see the need to aggregate data any time soon, so this will most likely be a scaling issue more than anything | 18:07 |
Bakey | I'll see how it goes | 18:07 |
dmsimard | Bakey: neat! Let me know if there's anything, and if the docs aren't clear, always happy to review patches or improve them :) | 18:21 |
Bakey | I did notice one thing in the docs | 18:22 |
Bakey | "ara data list" doesn't work | 18:23 |
Bakey | you have to do "ara data list --all" | 18:23 |
dmsimard | Bakey: hmm, I'll take a look when I have a chance. Thanks :) | 18:30 |
dmsimard | Bakey: I don't have a stable database handy and currently checked out in the middle of a patch for the next major release, what does "ara data list" say ? and what does "ara help data list" do ? | 18:31 |
Bakey | one sec | 18:31 |
Bakey | "ara data list: error: one of the arguments --playbook/-b --all/-a is required" | 18:31 |
Bakey | ara help data list returns proper help documentation | 18:32 |
Bakey | but it lists "--all" or "-a" as optional | 18:32 |
Bakey | soemthing about ara data list is requiring an argument | 18:33 |
Bakey | but your online docs at readthedocs.io doesn't mention that | 18:33 |
dmsimard | Bakey: so you mean here right ? https://ara.readthedocs.io/en/latest/usage.html#querying-the-database-with-the-cli | 18:40 |
Bakey | yep | 18:40 |
dmsimard | Bakey: hm, so that's the "global" help -- like if you do "ara help". Maybe we could add all the commands and their help in there. | 18:43 |
Bakey | https://pastebin.com/vtydHM7f | 18:47 |
dmsimard | Bakey: yeah that's the one. It's just copy/pasted verbatim in the docs -- but I just found out that the library we're using to create the CLI has a module to automatically document commands so we should definitely be using that. | 18:51 |
dmsimard | Bakey: thanks for making me look :D | 18:51 |
*** tbielawa|lunch is now known as tbielawa | 18:52 | |
Bakey | no prob | 18:53 |
Bakey | it's not a super huge thing, just figured you might want your documentation to be 100% accurate :) | 18:54 |
dmsimard | well those auto-generated docs would be much better and more importantly, accurate and maintenance-free | 18:54 |
*** tbielawa has quit IRC | 20:03 | |
*** tbielawa has joined #ara | 20:07 | |
*** tbielawa has quit IRC | 20:29 | |
*** tbielawa has joined #ara | 20:44 | |
*** tbielawa is now known as tbielawa|around | 20:47 | |
*** openstackstatus has quit IRC | 21:42 | |
*** openstack has joined #ara | 21:44 | |
*** ChanServ sets mode: +o openstack | 21:44 | |
*** tbielawa|around has quit IRC | 22:02 | |
ara-slack1 | <voronenko> Q: If I want to reference playbook log externally, what is the best way to know play GUID like `a1c96dab-34ef-403f-ae93-29ce5ac6f0d0` at the end of the play inside play itself ? | 22:09 |
ara-slack1 | <dmsimard> @voronenko hi! Registering the result of an ara_record or ara_read task will provide a playbook_id variable. | 23:24 |
ara-slack1 | <dmsimard> I happened to have a gist that explains exactly that: https://gist.github.com/dmsimard/0335667e69539c1dd22a169cbd43e616 | 23:25 |
ara-slack1 | <dmsimard> Should probably take the time to document that! | 23:25 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!