openstackgerrit | Ha Dung proposed openstack/ara: Fixes all current typo errors of Ara project. https://review.openstack.org/423928 | 06:17 |
---|---|---|
*** karimb has joined #ara | 11:49 | |
*** karimb has quit IRC | 12:22 | |
*** karimb has joined #ara | 13:40 | |
openstackgerrit | Merged openstack/ara: Add meta description and favicon https://review.openstack.org/423701 | 14:02 |
*** boxrick1 has joined #ara | 14:59 | |
boxrick1 | Good afternoon peops, I am currently trying to set up ARA to run as a semi permanent box, this obviously lends itself to Apache rather than flask | 14:59 |
dmsimard | boxrick1: hey o/ | 15:00 |
boxrick1 | In the past I have used WSGI to get Python flask apps behind Apache, in this case. What does ara-manage runserver call ? | 15:01 |
dmsimard | boxrick1: I haven't personally ran ara behind apache but I know that nginx works really well. | 15:01 |
boxrick1 | I imagine the process is fairly similar, any hints where I should start with NGINX? Perhaps I can dissect that to get where I need. | 15:01 |
dmsimard | Well, to be fair, I've not run ara as proper WSGI -- just proxying to the dev server. Doing proper WSGI would be a good thing to try and document | 15:02 |
dmsimard | let me see | 15:03 |
boxrick1 | I am currently making this into a set of Ansible playbooks to install it and use as a central service. | 15:17 |
boxrick1 | So any bits you could help with the web service component, in either an NGINX world or Apache would be pretty cool! I already have the foundation of the WSGI from another Flask app I made. | 15:18 |
dmsimard | boxrick1: someone contributed an ara role which I intend to bring upstream sometime, one sec | 15:20 |
dmsimard | boxrick1: https://github.com/chaitanyaenr/ansible-role-ara | 15:21 |
dmsimard | I'm testing out a proper wsgi setup right now | 15:21 |
dmsimard | boxrick1: after fighting with apache and selinux a bit I got something working, not super happy with the workarounds though | 15:46 |
dmsimard | checking if there's a better solution. | 15:46 |
boxrick1 | Well, I wonder if I can merge it with my stuff? I am running this on Ubuntu | 15:47 |
boxrick1 | So no SELINUX to contend with at least. | 15:47 |
dmsimard | yeah, just figured I'd make it work with selinux :) | 15:48 |
dmsimard | There's no apache hacks involved in making selinux work, it was just policies about apache reading and writing stuff. | 15:48 |
dmsimard | boxrick1: Okay, I got something I'm a bit more happy with, hang on | 16:08 |
dmsimard | This would be the vhost: http://paste.openstack.org/raw/596078/ | 16:09 |
dmsimard | This the wsgi file at /var/www/ara/ara.wsgi: http://paste.openstack.org/raw/596079/ | 16:10 |
dmsimard | And then /var/www/ara/ansible.cfg: http://paste.openstack.org/raw/596080/ | 16:10 |
dmsimard | That should be enough to get you started | 16:10 |
dmsimard | I'll open up a bug to add this to the documentation | 16:11 |
boxrick1 | Ok cool, cheers for that. Greatly appreciated! | 16:18 |
mnaser | i'm integrating ara into our CI to publish reports for our ansible runs. I have [ara] dir=.ara (which works locally), however it's trying to create a file at "/var/lib/jenkins/.ara/ara.log" which is ~/.ara (default value). makes me feel that its not being read. I added an 'env' in our jenkins run and set an env variable, i see ARA_DIR=.ara yet it still does the same | 16:51 |
mnaser | according to env, PWD=/var/lib/jenkins/workspace/system-config_sensu-horizon-MPWIZA5IP7X42BN3WPDVB6V5ED2LB47KXNGJBFV3ZEFT3PEN2N5Q@2 in this case.. so it should create .ara inside of it :x | 16:52 |
mnaser | hardcoded ARA_DIR to contain the full path, so env reports: ARA_DIR=/var/lib/jenkins/workspace/system-config_sensu-horizon-MPWIZA5IP7X42BN3WPDVB6V5ED2LB47KXNGJBFV3ZEFT3PEN2N5Q@2/.ara | 17:07 |
mnaser | buut traceback with this still: IOError: [Errno 2] No such file or directory: '/var/lib/jenkins/.ara/ara.log' | 17:07 |
*** karimb has quit IRC | 17:09 | |
dmsimard | mnaser: there's two different configs | 17:17 |
dmsimard | mnaser: under [ara], that'd be "dir" and "logfile" | 17:17 |
mnaser | dmsimard oh my bad, i misinterpreted this - https://github.com/dmsimard/ara/blob/master/ara/config.py#L23 | 17:18 |
dmsimard | although I actually bumped into that earlier when setting up something with wsgi | 17:18 |
mnaser | i thought changing dir would prefix both log and sql | 17:18 |
dmsimard | right, that'd be my end user expectation too :) | 17:18 |
mnaser | ooo | 17:19 |
mnaser | also a small doc bug, ARA_LOG is actaully ARA_LOG_FILE here - https://ara.readthedocs.io/en/latest/configuration.html#ara-dir | 17:19 |
mnaser | lemme fix | 17:19 |
mnaser | oh also, docs say: ARA_DIR: Base directory where ARA will store it’s log file and sqlite database, unless specified otherwise. -- should that be changed or you'll likely change the behaviour? | 17:20 |
openstackgerrit | David Moreau Simard proposed openstack/ara: Properly default the log file location to ARA's directory https://review.openstack.org/424251 | 17:23 |
dmsimard | mnaser: I think that should do it ^ | 17:23 |
openstackgerrit | Mohammed Naser proposed openstack/ara: Fix log file docs to point to correct setting https://review.openstack.org/424253 | 17:25 |
mnaser | and this should make life easier ^ | 17:25 |
mnaser | :p | 17:25 |
dmsimard | oh snap | 17:27 |
dmsimard | Added a comment | 17:27 |
openstackgerrit | Mohammed Naser proposed openstack/ara: Fix log file docs to point to correct setting https://review.openstack.org/424253 | 17:28 |
dmsimard | thanks :) | 17:28 |
mnaser | np | 17:29 |
mnaser | dmsimard: looks like the DEFAULT_DATABASE_PATH has the same issue as the one above | 17:34 |
mnaser | it goes off DEFAULT_ARA_DIR | 17:34 |
dmsimard | you're not wrong | 17:35 |
dmsimard | (╯°□°)╯︵ ┻━┻ | 17:35 |
mnaser | ill have them in our ansible.cfg but yeah :p | 17:35 |
dmsimard | my english is failing me | 17:40 |
dmsimard | "# Log and database locations default to the "computed" ARA directory" | 17:40 |
dmsimard | computed ? rendered ? | 17:40 |
dmsimard | compiled ? | 17:40 |
mnaser | ahem | 17:41 |
mnaser | default to the ARA directory which is predetermined using <x> method .. i guess? | 17:41 |
mnaser | cool, got past that stage, not hopefully jenkins html publisher grabs those correctly | 17:45 |
openstackgerrit | David Moreau Simard proposed openstack/ara: Properly default the database and logs location to ARA's directory https://review.openstack.org/424251 | 17:46 |
openstackgerrit | David Moreau Simard proposed openstack/ara: Properly default the database and logs location to ARA's directory https://review.openstack.org/424251 | 17:46 |
dmsimard | mnaser: in my experience serving html/js apps straight out of jenkins artifact collection sucks | 17:47 |
mnaser | dmsimard: using this instead of collecting it as an artifact - https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin | 17:47 |
dmsimard | something something jenkins csp ? content security policy ? | 17:47 |
mnaser | yes | 17:47 |
mnaser | i'll have to do a little fix up around that too | 17:48 |
dmsimard | I was never able to get it to work properly iirc | 17:48 |
dmsimard | haven't tried in a long time | 17:48 |
dmsimard | maybe that plugin helps, never tried it | 17:48 |
mnaser | i'll report back :) | 17:48 |
openstackgerrit | Merged openstack/ara: Fix log file docs to point to correct setting https://review.openstack.org/424253 | 17:55 |
*** themurph has joined #ara | 19:18 | |
openstackgerrit | Merged openstack/ara: Properly default the database and logs location to ARA's directory https://review.openstack.org/424251 | 21:06 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!