Tuesday, 2018-06-12

*** dyasny__ has joined #ara01:25
*** dyasny__ is now known as dyasny01:25
dyasnydmsimard, ping - are you here?01:26
dmsimarddyasny: kinda01:26
dyasnydmsimard, just wondering - does ara give an indication on ansible tasks that have a long-ish run, e.g. with repeats+delay?01:27
dyasnydmsimard, like, if I have a few of those in a play, can I get a feel for how long they typically take01:28
dmsimarddyasny: ara doesn't give you stats but it gives you the data you need to do your stats01:28
dmsimarddyasny: for example, the tripleo folks wrote an ara_influxdb module that sends task metrics from ara and then they have graphs on top of that01:29
dmsimardhttps://github.com/openstack/tripleo-quickstart-extras/blob/master/roles/collect-logs/library/ara_influxdb.py01:29
dmsimardhttps://review.rdoproject.org/grafana/dashboard/db/tripleo-ci?orgId=101:30
dmsimardIt's pretty neat :)01:30
dyasnydmsimard, I see. I guess I could parse the output, I'm just looking for a way to get a report on those specific tasks, because I'm getting them failing sometimes and I increase the repeats to a larger number to get the play to pass. I am looking for a way to actually know when I expect to see 20 repeats and it actually abnormally takes 200, for example01:30
dyasnydmsimard, because openshift-ansible is such a beast, going through jenkins logs can be daunting :)01:31
dmsimarddyasny: yeah, I know what you mean, I'm working on a 3.9 upgrade right now :)01:31
dyasnydmsimard, same boat :) only with 3.10 and kubevirt :)01:32
dmsimardrebasing two patches because I have two PRs, one of which hasn't merged in >1yr01:32
dyasnythat's no fun at all01:32
dmsimardkubevirt looks awesome (and scary)01:32
dyasnydmsimard, tell me about it :) still, it's more fun than openstack - less loosely fitting parts01:33
dmsimarddyasny: anyway, the UI and the CLI won't really be able to help you but you can export the raw data and analyze it after the fact (like tripleo does)01:34
dmsimardinfluxdb is super easy, I don't know in what context you're running with01:34
dmsimardthey wrote something for graphite too but I don't think they ended up using it01:34
dyasnydmsimard, cool, I'll give it a try. I'm deploying a openshift first, and then kubevirt via an apb. Typically, openshift fails to deploy, and quite often it's environmental, because of a timeout being too short01:35
dmsimarddyasny: wait, you're setting up ara to track openshift-ansible ?01:36
dmsimardor for the apb ?01:36
dyasnyI was thinking to inject a task that saves the start time before the long task, then ignore the long task error state and another task to log the time it's done in, and fail on errors there01:37
dyasnycouldn't find anything native in ansible to deal with that, and then I remembered ara, for the "analysis" part01:37
dmsimarddyasny: when you want to do stuff like that, think about callbacks01:39
dmsimarddyasny: http://paste.openstack.org/show/723253/01:40
dmsimardsuper simple01:40
dyasnydmsimard, yeah, I was doing that (changing the output to json and parsing it with python) for other projects, but that's huge. Was hoping for something that already knows how to catch tasks that use repeats and reports on those only01:40
dmsimarddyasny: something that you *could* try01:41
dmsimarddyasny: tag the tasks where you import/include the things, ara saves tags as well so you can search for those01:42
dyasnydmsimard, I just ran into an issue, when the same service takes 5 times longer to start using cri-o than docker. Nobody could debug it, because the service actually starts, just not within the default timeout. So I come in in the morning, see the job failed, start looking at the setup, and everything is working. Had to go through a huge log with no actual errors. Good thing my patch to make the repeats configurable got merged quickly, but I'd like to be able01:44
dyasnyto catch such things on the fly, you know01:44
*** bcoca has quit IRC02:20
*** mhu has quit IRC05:11
*** mhu has joined #ara05:11
*** myoung|off has quit IRC05:11
*** myoung has joined #ara05:17
*** ara-slack3 has joined #ara05:48
*** ara-slack has quit IRC05:49
*** ara-slack3 has quit IRC05:49
*** ara-slack has joined #ara05:50
*** ara-slack has joined #ara05:50
*** ChanServ sets mode: +v ara-slack05:50
openstackgerritzhangzhaoshan proposed openstack/ara master: replace http with https  https://review.openstack.org/57457506:29
*** jparrill_ has joined #ara07:34
*** jparrill_ has quit IRC07:37
*** jparrill_ has joined #ara07:37
*** jparrill_ has quit IRC07:39
NaphtaSo I'm having a bit of trouble with the web gui getting stuck on "loading file contents", the actual endpoint responds fine (e.g. "/file/5878c8c4-36ea-454f-88b8-9452599d2f94/") but it never loads in it's pop up frame.07:56
*** gvincent_ has joined #ara08:04
*** gvincent_ has quit IRC08:05
*** gvincent_ has joined #ara08:05
*** gvincent has quit IRC08:07
NaphtaScratch that, our default settings for nginx had X-Frame-Options deny. Just looking around and is there any way to tell the web client that it's running under https? Getting mixed content as I'm terminating the HTTPS at a proxy server but the html has http links. Trying to avoid a rewrite tbh.08:09
*** jparrill has quit IRC08:31
*** jparrill has joined #ara08:32
*** jlozadad_ has quit IRC08:56
openstackgerritTristan Cacqueray proposed openstack/ara master: Prevent exception when LOG_FILE is empty  https://review.openstack.org/57466909:08
*** gvincent_ has quit IRC11:36
*** gvincent has joined #ara11:36
dmsimardNaphta: are you using the embedded web server ?11:53
dmsimardNaphta: flask exposes a PREFERRED_URL_SCHEME variable: http://flask.pocoo.org/docs/1.0/config/#PREFERRED_URL_SCHEME11:56
dmsimardHowever ARA doesn't set it up. If you'd like to send a patch I can point you in the right direction :)11:56
*** rvgate has joined #ara12:17
*** dyasny has quit IRC12:47
hirokiNaphta: this is a known bug: https://ptpb.pw/HrCv13:09
hirokiARA (embedded webserver) doesn't add a trailing slash for /file/* URL's, therefore breaking a reverse HTTPS proxy you might have put in front of ARA13:09
hirokiAll other links work well, it's just /file/* URL's which fail, because of the missing trailing slash13:10
*** tbielawa has joined #ara13:15
*** themurph_ has joined #ara13:23
SpamapSdmsimard: have you seen any bugs that manifest as play records not getting inserted?13:31
dmsimardSpamapS: I have not13:36
dmsimardhiroki: that's interesting13:38
hirokidmsimard: it only happens when you request files. any other links are fine and -do- get the trailing slash appended13:40
dmsimardhiroki: files are not particularly different than other types of content being loaded into modals, let me check13:41
dmsimardhiroki: facts and results work just fine ?13:44
*** Bakey has joined #ara13:45
hirokidmsimard: yes, if i click on hosts and then a host link for instance, works fine. If i click on the main playbook file (in my case site.yml) on the left, it works fine. If i click on a clickable link in tasks, it works fine. As soon as I click on a file, it does not work13:46
dmsimardhiroki: ok so notice how there is a trailing slash on the data-load item here: https://github.com/openstack/ara/blob/master/ara/templates/report.html#L2013:47
hirokiYeah, I see the trailing slash13:47
dmsimardsec13:48
dmsimardhiroki: if you click on a module name in the task list, does that work ?13:49
hirokiYou can spot the difference if you click on site.yml on the left, have the pop-up frame come up, and hover over the permanent link file top right. It shows a trailing slash. Repeat for a file under files, it doesn't show a trailing slash there13:49
dmsimardhiroki: the link that opens up the file with the line highlighted13:49
hirokidmsimard: under files or under tasks ?13:50
dmsimardhiroki: tasks13:50
hirokidmsimard: it opens up the site.yml (we include individual task files from site.yml, so i'm guessing that's why)13:50
dmsimardhiroki: ok, but it works 613:50
dmsimard?13:50
hirokiYes it does13:50
dmsimardhiroki: ok so it's really just the file tab then ?13:51
hirokiOh actually it shows the actual task file for included tasks, so anything under tasks works well. Perhaps because it adds /#line-<number> at the end of the link ?13:52
hirokiYes exactly, just the file tab13:52
dmsimardI'm narrowing in on the issue, hang on13:53
hirokisure :)13:53
*** tbielawa is now known as tbielawa|brb13:56
SpamapSdmsimard: thanks, I'll keep debugging13:59
dmsimardhiroki: want to try a patch ?14:04
hirokiSure, I can probably try it out later today14:05
dmsimardok, hang on, just confirming I didn't break something when fixing that14:08
*** tbielawa|brb is now known as tbielawa14:08
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a trailing slash to file links in the file tab  https://review.openstack.org/57473914:12
dmsimardhiroki: ^14:12
dmsimardin patch format: https://git.openstack.org/cgit/openstack/ara/patch/?id=56582b261624e40926a392bc53454f197f1d365914:12
hirokidmsimard: tested, works like a charm, thank you !14:16
dmsimardhiroki: sweet14:16
dmsimardNaphta: so hopefully that should also work for you ^, I'll land it in 0.15.1.14:17
dmsimardhiroki: so much for trying it out later today ? :D14:20
hirokiWell, I looked at the code change and it was a single line, that falls under my 90-second rule :P14:21
dmsimardah, the famous 90 second rule14:23
dmsimarddoesn't work for bread+peanut butter though14:23
dmsimard(that sounded funnier in my head)14:24
hirokiThat's because you're doing it in reverse. Spreading peanut butter on bread takes too much time. Wrapping the bread around the peanut butter is faster and chunkier14:26
dmsimardhaha, I meant how you have N seconds to pick it up from the floor14:27
dmsimard(and how it always falls face down)14:28
hirokiAh ! Well, I come from Africa, so we actually adhere to the 2 week rule14:31
dmsimardo_O14:32
*** DrWaluigi has quit IRC14:55
*** DrWaluigi has joined #ara15:00
*** DrWaluigi has quit IRC16:05
*** DrWaluigi has joined #ara16:07
*** jlozadad[m] has quit IRC16:08
ara-slack<harlowja> @dmsimard have u seen anything where a playbook failure doesn't get recorded16:18
ara-slack<harlowja> clint and i have seen this happen a couple of times16:19
ara-slack<harlowja> wonder if u recall anything like that16:19
ara-slack<dmsimard> @harlowja if the playbook outright fails to even start (i.e, a loading/syntax/parse failure), there won't be a record for it16:20
ara-slack<dmsimard> It's likely that the same applies for plays16:20
ara-slack<dmsimard> That's because it fails so early in the process that there's no hook sent to the ara callback16:21
ara-slack<harlowja> hmmmm, i'll see if we can get some kind of reproducible case16:22
ara-slack<harlowja> it seems to have actually started16:22
*** jlozadad[m] has joined #ara16:37
ara-slack<harlowja> but something odd happens; will see if can get some more details16:37
ara-slack<dmsimard> cool thanks16:50
SpamapSYeah we have task_result records and task records16:55
SpamapSbut no play record16:55
dmsimardSpamapS: that's weird. Any stack trace in the raw stdout/stderr ?16:56
*** rvgate has quit IRC16:56
*** tbielawa is now known as tbielawa|lunch16:59
SpamapSdmsimard: nothing that we saw, but I"ll look for that17:13
*** tbielawa|lunch is now known as tbielawa|lunchMt17:31
*** tbielawa|lunchMt is now known as tbielawa18:34
*** tbielawa is now known as tbielawa|brb18:53
*** tbielawa|brb is now known as tbielawa19:04
*** pmdharris has joined #ara19:36
pmdharrisdmsimard: /msg NickServ VERIFY REGISTER pmdharris tyzehnuvayfw19:37
pmdharrisi'm awesome. stand back or you might get splashed by the awesome :)19:37
dmsimardpmdharris:oops19:37
dmsimardpmdharris: that was logged, make sure that no longer works or something like that19:38
pmdharrisdmsimard: Yesterday I mentioned some UTF-8 warnings; I've tracked it down somewhat (just in case this is useful to you); setting binary_prefix to True in the MySQL connector gets rid of the errors. In my /usr/local/lib/python3.6/site-packages/pymysql/connections.py , line 584, def __init__()19:38
pmdharrisdmsimard: (I haven't yet found a way to pass that down through SQLAlchemy though, so it looks like it's a problem there)19:39
pmdharrisdmsimard: Just FYI19:39
dmsimardpmdharris: oh, neat, let me know if you manage to find out how to plumb it all the way19:39
pmdharrisdmsimard: will do :)19:39
*** pmdharris has quit IRC19:40
*** tbielawa has quit IRC20:30
*** jlozadad[m] has quit IRC20:49
*** jlozadad[m] has joined #ara21:10
*** evrardjp_ has joined #ara21:41
*** evrardjp has quit IRC21:43
*** myoung is now known as myoung|bbl22:07
*** Bakey has quit IRC23:02
*** gvincent_ has joined #ara23:17
*** jlozadad[m] has quit IRC23:17
*** gvincent has quit IRC23:17
*** jlozadad[m] has joined #ara23:37

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