Friday, 2017-03-31

*** jparrill has joined #ara06:47
-openstackstatus- NOTICE: Jobs in gate are failing with POST_FAILURE. Infra roots are investigating07:40
*** ChanServ changes topic to "Jobs in gate are failing with POST_FAILURE. Infra roots are investigating"07:40
*** karimb has joined #ara08:13
*** karimb has quit IRC08:17
-openstackstatus- NOTICE: logs.openstack.org has corrupted disks, it's being repaired. Please avoid rechecking until this is fixed08:20
*** ChanServ changes topic to "logs.openstack.org has corrupted disks, it's being repaired. Please avoid rechecking until this is fixed"08:20
*** karimb has joined #ara08:23
*** dmsimard|afk is now known as dmsimard12:41
dmsimard_dev: hey, I've been knocked out and sick past 2 days, I'll look at it sometime today thanks for following up12:59
*** jparrill has quit IRC13:52
*** tready has joined #ara15:12
treadyhey all - quick question about startup/ini.  I've got a working server, but it seems that it's not creating the socket file on startup?15:14
treadyhere's my ini: https://pastebin.com/bg9BxS5M15:14
tready& here's my init script: https://pastebin.com/pPPSMvB015:14
treadythe socket file is not currently in /tmp, & starting ara from the terminal, I get: bind(): No such file or directory [core/socket.c line 230]15:16
treadyI'd thought the process would create the file, but apparently not....?15:16
dmsimardtready: hm, I'm not super familiar with uwsgi :(15:20
dmsimardtready: I guess you're not interested in using apache/mod_wsgi?15:20
treadyok.  apparently it was the damned quotes.  heh.15:21
treadynah, we've got an existing nginx install that I'm using15:21
treadylong as you're here, I told you that I'd write up the nginx instructions - is that just a PR once done?15:21
dmsimardtready: oh yeah, I'd definitely love nginx+uwsgi docs15:21
treadyI ask, b/c the "contributing" instructions seem way more involved15:22
dmsimardtready: Yeah, we don't use the github workflow, there's a few hoops to jump through to get started but after that it's easy -- I see you're already acquainted with the docs, yeah, that's how15:22
treadybut I figured maybe just for documentation, the guidelines may not be as.... detailed.  heh15:22
dmsimardtready: docs are in the source of the project so it's like code contribution :)15:23
dmsimardtready: I'd be happy to walk you through the process if you need a hand, otherwise I can commit on your behalf or something15:23
*** tbielawa has joined #ara15:23
treadyok, I'll get back to you once I get them written up.15:23
treadymy instance is running again, btw :)15:23
dmsimardtready: awesome15:25
treadyanother, un-related question: we're recording a run that goes every 2hrs.  it has 102 tasks, 16 hosts, & we now have 137 records of it15:27
treadydigging into the reports lately produces just a spinning wheel15:27
treadyis this just b/c the sqlite is struggling?15:27
treadyalso: is it possible to setup ara to run w/a postgresql back end?15:28
dmsimardtready: it looks like getting it to run with pgsql will need to wait until the next release (0.12.4) which will contain https://review.openstack.org/#/c/450948/15:28
dmsimardbut mysql is known to work out of the box15:29
dmsimardtready: how many playbooks are in each page right now ?15:29
tready1015:29
tready(reports, if that's what you're referring to)15:29
dmsimardThe tables are loaded asynchronously sequentially from top to bottom15:29
dmsimardso i.e, as you load the reports page, you the first report will load first in the background but the one at the bottom might take a bit to display as the ones before it are loading15:30
dmsimardThe only (known) reason why there'd be an endless spinning wheel is if the playbook has incomplete data (i.e, was interrupted or is in progress)15:31
treadyok.  It doesn't seem to make a difference which record I try to access right now, unfortunately15:31
tready& these records are all marked success/complete15:31
dmsimardhm, spinning wheels everywhere ?15:32
treadyunfortunately15:32
treadyeven clicking the 1st record, 1st action15:32
dmsimardso it might mean that the frontend is not able to do the AJAX calls to get the data that's meant to be in the tables15:32
treadyhmmm... well it did work at one point15:33
dmsimardtready: if you open the developer tools/inspect thing of your browser, go to the network tab and reload the page -- are you seeing 404's or 500's ?15:33
treadynope, just 200's all the way down15:34
dmsimardtready: oh wait, you're running nginx you said ?15:34
treadycorrect15:34
dmsimardtready: there's an unreleased bugfix for that https://review.openstack.org/#/c/450965/15:35
treadyoh ho-hooooo!!15:35
dmsimardtready: I wanted to cut 0.12.4 this week but got sick and knocked out, there'll be a release candidate early next week as I fight with one last bug I want to fix15:36
dmsimardtready: in the meantime, you could run your application off of source/master branch15:36
treadyok15:36
treadyI'll try the patch to see if it fixes the issue & let you know15:37
dmsimardtready: draft changelog for 0.12.4 is http://paste.openstack.org/raw/605086/15:37
_devdmsimard: Just got into the office and saw your message. No rush, hope you feel better.16:12
*** karimb has quit IRC16:30
*** karimb has joined #ara16:32
*** karimb has quit IRC16:36
*** karimb has joined #ara16:45
treadydmsimard - applied diff file, unfortunately, same symptoms persist18:11
dmsimardtready: endless spinning wheel ?18:11
treadycorrect18:11
dmsimardtready: not sure what else it could be, if you inspect the modal, do you see the link here with a trailing slash ? i.e, http://i.imgur.com/fk9S2dS.png18:17
dmsimardmodal = little popup thing18:19
treadywhat's the tree for that?  I'm not seeing it18:23
treadyok, I found it, I think18:24
treadyforgot about the "inspect" part.  heh18:24
treadyI've got something a bit different.  I guess b/c it isn't loading anything18:29
treadyhttp://i.imgur.com/H0XugGp.png18:29
dmsimardtready: nah it's just a different popup, that looks right though18:29
dmsimardtready: this is pure nginx/uwsgi ? you said there was nothing ususual in nginx logs or developer console ?18:30
treadynothing I saw in dev console.  lemme check the logs18:30
treadyno, nothing in error log18:32
dmsimardtready: what about uwsgi logs ?18:32
dmsimardnginx I guess would just be http logs, not application logs18:32
dmsimardnginx is just reverse proxy right ?18:32
treadycorrect18:33
treadywhere does ara log to?  syslog?18:33
dmsimardtready: ara's logs are probably not going to tell you if there's been an error, they're probably logged to uwsgi in foreground -- but by default it's to ~/.ara/ara.log iirc18:34
dmsimardtready: check /var/log/uwsgi or journalctl -u uwsgi or something18:34
treadyhmmm18:45
treadyI haven't got ~/.ara/ara.log, nor /var/log/uwsgi18:45
treadyI'm going to try to enable uwsgi logging - default is stdout/err, apparently18:48
dmsimardtready: just to throw uwsgi/nginx out of the equation18:48
dmsimardtready: can you fire the embedded server just to see if you can reproduce it there ? Command is "ara-manage runserver"18:49
*** tbielawa is now known as tbielawa|lunch18:51
treadycan't connect to it.  got "unable to connect"18:52
tready(in Firefox).  Chrome says "refused to connect" ERR_CONNECTION_REFUSED18:52
dmsimardtready: are you running that off of another machine ? you might need to make it listen on all interface, ex: "ara-manage runserver -h 0.0.0.0"18:52
treadyah.  that worked.18:53
treadyok, so that loaded up the details modal w/o issue18:54
dmsimardtready: ok, just making sure, let's go back to uwsgi to try and figure it out18:54
treadynothing much helpful in the uwsgi log, either, unfortunately.  I get the following line when invoking the modal:19:04
tready[pid: 115987|app: 0|req: 24/58] 10.8.0.204 () {50 vars in 1142 bytes} [Fri Mar 31 15:03:27 2017] GET /file/1c709066-89f3-425a-9946-b9776da0f7a0/ => generated 31302 bytes in 38 msecs (HTTP/1.1 200) 2 headers in 82 bytes (2 switches on core 0)19:04
_devtbh, we use gunicorn with nginx talking to it19:05
_devon OpenBSD, but still might work if you want to give something else a shot19:05
treadyI just don't get why it worked initially, but then quit working19:07
dmsimardtready: really odd, not sure what to say - I'd need a procedure (ideally a script?) to reproduce the issue on my end to try and understand what's going on19:16
treadyok.  I'll let you know when I have a chance to get back to it.  Thanks for helping as much as you did.  Appreciate it.19:17
dmsimardtready: all good, I'm still interested in those nginx+uwsgi docs eh -- let me know :)19:18
treadywhen/if I get it working!19:19
dmsimard_dev: testing now, very cool :)19:28
dmsimardSee those annoying messages everywhere ? http://paste.openstack.org/show/605100/ That's what I want to get rid of before cutting new release, not as straightforward as it seems19:30
*** tready has quit IRC19:33
*** karimb has quit IRC19:36
*** tbielawa|lunch is now known as tbielawa19:52
_devIt looks like thats coming from alembic?19:54
dmsimardyeah, it is19:54
_devare you running migrate everytime we invoke ara?19:54
dmsimardYes and no, it runs once automatically (by default) when the application bootstraps19:55
_devah,19:55
_devwell, it looks like its logging at INFO: https://github.com/openstack/ara/blob/e50b6bb2a32d0c4cd7bfd0ebe1cbd14197bd06ee/ara/db/alembic.ini#L3319:55
_devdo we need to keep it to info?19:55
_devcan we set it to WARNING maybe?19:56
dmsimardIt's not just the INFO thing, it's the logger handler, I'd rather have it log to ara.log -- it doesn't seem like I'm able to get it to log *only* to the file, either nowhere or both file and stdout19:56
dmsimardso I'm poking around19:56
-openstackstatus- NOTICE: lists.openstack.org will be offline from 20:00 to 23:00 UTC for planned upgrade maintenance19:56
_devokay, wish i could be of more help :\20:04
*** tbielawa has quit IRC20:05
*** tbielawa has joined #ara20:11
openstackgerritDavid Moreau Simard proposed openstack/ara master: Hide foreground INFO alembic.runtime.migration stdout logging  https://review.openstack.org/45231720:21
dmsimard_dev: I added a comment to your patch btw, other than that it's good to go20:24
dmsimardI could merge it before the weekend \o/20:24
_devjust saw them, ill update and push20:25
_devthanks20:25
*** tbielawa has quit IRC20:34
openstackgerritDevon Mizelle proposed openstack/ara master: adding postgresql text type "isms"  https://review.openstack.org/45094820:34
_devokay, pushed!20:35
openstackgerritMerged openstack/ara master: adding postgresql text type "isms"  https://review.openstack.org/45094821:10
-openstackstatus- NOTICE: The upgrade maintenance for lists.openstack.org has been completed and it is back online.21:48
*** dougbtv_ has joined #ara22:04
*** dougbtv has quit IRC22:07

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!