Monday, 2019-05-27

*** jamesmcarthur has joined #zuul00:48
*** jamesmcarthur has quit IRC00:54
*** jamesmcarthur has joined #zuul01:55
openstackgerritTristan Cacqueray proposed zuul/zuul master: Skip file matcher for pipeline using timer trigger  https://review.opendev.org/66085602:07
*** jamesmcarthur has quit IRC02:13
*** rfolco has quit IRC02:14
*** logan- has quit IRC02:15
*** logan- has joined #zuul02:18
*** jamesmcarthur has joined #zuul03:28
*** jamesmcarthur has quit IRC03:38
openstackgerritTobias Henkel proposed zuul/zuul master: Annotate logs around reporting  https://review.opendev.org/66149004:29
openstackgerritTobias Henkel proposed zuul/zuul master: Annotate logs around finished builds  https://review.opendev.org/66149104:30
*** lennyb has quit IRC04:31
*** lennyb has joined #zuul04:32
*** raukadah is now known as chandankumar04:48
openstackgerritTristan Cacqueray proposed zuul/zuul master: Skip file matcher for pipeline using timer trigger  https://review.opendev.org/66085605:19
*** flepied has joined #zuul05:42
*** saneax has joined #zuul07:32
*** jpena|off is now known as jpena07:54
*** gtema has joined #zuul08:04
*** jangutter has joined #zuul08:08
*** themroc has joined #zuul08:26
*** pcaruana has joined #zuul08:26
*** tosky has joined #zuul08:31
*** themroc has quit IRC08:57
*** sshnaidm|afk is now known as sshnaidm09:08
openstackgerritFabien Boucher proposed zuul/zuul master: A reporter for Elasticsearch  https://review.opendev.org/64492709:08
*** saneax has quit IRC09:28
*** rfolco has joined #zuul09:29
*** saneax has joined #zuul09:31
*** gtema has quit IRC09:52
*** ofosos has joined #zuul10:10
*** SotK has quit IRC10:48
*** SotK has joined #zuul10:48
*** panda is now known as panda|ruck10:56
*** smyers has quit IRC10:58
*** smyers has joined #zuul10:58
*** pcaruana has quit IRC10:59
*** saneax has quit IRC11:10
*** tosky___ has joined #zuul11:19
*** tosky has quit IRC11:21
*** pcaruana has joined #zuul11:26
*** jpena is now known as jpena|lunch11:32
*** armstrongs has joined #zuul11:36
armstrongshey guys, i am trying to set up ara reports set-up with zuul. I have managed to use the ara-reports role to generate the report in the logging directory and i am using the sqlite implementation with apache. The report is rendering fine but not the sub pages, i am getting an error with ara.js 404 (Not Found) and ara.css having the same issue. All other pages from the static directory seem to be rendering fine though. Am I missing som11:40
*** saneax has joined #zuul12:02
armstrongsTarget WSGI script not found or unable to stat: /usr/bin/ara-wsgi-sqlite.css is what im getting in the logs too12:04
*** tosky___ is now known as tosky12:12
*** jpena|lunch is now known as jpena12:23
*** gtema has joined #zuul12:29
dmsimardarmstrongs: a css file in /usr/bin doesn't sound right12:52
dmsimardThere is some level of documentation to set up the sqlite middleware here: https://ara.readthedocs.io/en/stable/advanced.html12:53
armstrongsthats what i was following12:54
*** altlogbot_1 has quit IRC12:55
armstrongsso it generates a ansible.sqlite12:57
armstrongsunder the ara folder12:57
*** altlogbot_0 has joined #zuul12:58
armstrongsthen it renders the content via that all other files are showing apart from ara.css and ara.js preventing the hyperlinks working12:58
dmsimardThe role takes care of copying the database file to an ara-report directory and the web server should be set up to redirect ara-report/ to the wsgi middleware12:59
dmsimardIf the ara css or js files aren't found, it's because the routing isn't done properly, those are served by the wsgi application13:00
dmsimardThe full vhost for the openstack log server might help: https://opendev.org/opendev/puppet-openstackci/src/branch/master/templates/logs.vhost.erb13:01
armstrongsthanks looking now13:05
*** saneax has quit IRC13:23
*** gtema has quit IRC13:32
armstrongshttp://paste.openstack.org/show/752106/ is my apache config so wsgi middleware looks to be directing everything correctly apart from the ara.css and ara.js script files13:40
dmsimardarmstrongs: the only thing that jumps at me is the htmlify line -- that's not provided by ara13:46
armstrongstook it out still no luck :(13:49
fungichecked the apache error log?13:52
dmsimardarmstrongs: so you have something like /zuul-logs/path/to/change/logs/ara/ansible.sqlite which maps to http://logserver/path/to/change/logs/ara/ansible.sqlite and going to http://logserver/path/to/change/logs/ara/ works but there's no css ?13:53
armstrongs Target WSGI script not found or unable to stat: /usr/bin/ara-wsgi-sqlite.css is what im getting in the logs13:53
armstrongsyeah correct i can see the top level report13:53
armstrongsbut in the tree i have both 404 not found on the ara.css and ara.js13:54
armstrongslooks like the rest of the css is there13:54
armstrongswhen im inspecting the browser13:55
dmsimardarmstrongs: there is also those lines in the web server config: https://opendev.org/opendev/puppet-openstackci/src/branch/master/templates/logs.vhost.erb#L111-L11413:56
dmsimardbut I have no idea where that css error comes from, there's no such thing as ara-wsgi-sqlite.css :p13:56
armstrongsGET http://10.xx.x.xxx:8080/18/18/71f3ee2…/check/all-trigger-pipeline-for-exampleweb-qa7/90258c1/ara/static/css/ara.css net::ERR_ABORTED 404 (Not Found)13:57
armstrongsis what im seeing in the browser13:57
dmsimardara/static/css/ara.css should be served by the wsgi application13:57
dmsimardit looks like your rewrite/redirect only handles "/ara" and not what's underneath13:57
armstrongsi just have /zuul-logs/path/to/change/logs/ara/ansible.sqlite13:58
armstrongsin my logs folder13:58
dmsimardright13:58
dmsimardthe wsgi application loads that database dynamically13:58
dmsimardand the css/js files are served by the wsgi app13:59
armstrongsyeah so i dont get why i can see the top level of the report but cant click or use the embedded links14:00
armstrongsas when i click on /ara from apache it loads the top level ara report14:01
dmsimardarmstrongs: I believe you're missing a rewrite condition towards the end, see my last link14:02
armstrongsah ok14:02
dmsimard"# Everything beyond this point is rewritten to htmlify." ... http://paste.openstack.org/raw/752107/14:02
armstrongsthanks giving it a go now14:05
*** saneax has joined #zuul14:09
armstrongsstill no luck14:15
armstrongs[Mon May 27 14:13:30.598724 2019] [wsgi:error] [pid 15689:tid 140660581594880] [client 10.30.46.24:62864] Target WSGI script not found or unable to stat: /usr/local/bin/ara-wsgi-sqlite.css, referer: http://10.201.3.235:8080/18/18/71f3ee2fce7964fe2ec93606541640867313f5aa/check/all-trigger-pipeline-for-exampleweb-qa7/90258c1/ara/14:15
armstrongsgetting that in the logs still14:15
fungiand ara-wsgi-sqlite.css isn't a wsgi script, is it?14:16
fungiseems odd wsgi is trying to execute that, but maybe i'm misreading14:17
armstrongsno im pointing at ara-wsgi-sqlite only14:17
armstrongsi figured that python script was trying to call css14:18
armstrongsi noticed its using /usr/bin and python 2.7 as opposed to python3 which is /usr/local/bin should that matter?14:23
*** saneax has quit IRC14:24
*** saneax has joined #zuul14:25
dmsimardarmstrongs: zuul and ara should be running py314:38
dmsimardara works in py2 but since zuul is running py3 there's probably no reason to run ara in py214:38
*** chandankumar is now known as raukadah14:39
armstrongsso zuul is a seperate server thats generating the report as python 3. The log server with ara on it seems to be running python 2.7 how can i force ara to use python 3 on the log server that has apache?14:45
fungiinstall it under python3 instead of python2. e.g. `python3 -m pip install ...` or `pip3 install ...`14:47
fungior use a pip whose default python is python314:47
dmsimardarmstrongs: the fact that it's generated from py3 doesn't have an impact as to whether or not ara will be able to read it if installed from py2 or py3 -- both will work14:54
armstrongsyeah i got it using python 3 and still have the same issue15:03
armstrongshttp://paste.openstack.org/show/752113/ is my latest apache config15:12
fungiif it helps, this is what the relevant section of our apache vhost config looks like: https://opendev.org/opendev/puppet-openstackci/src/branch/master/templates/logs.vhost.erb#L92-L11415:14
fungiwith appropriate strings in place of some of those erb macros15:15
armstrongsok in python 3 with a new job i seem to be getting a new error and the report isnt rendering anymore http://paste.openstack.org/show/752114/15:26
*** armstrongs has quit IRC16:22
*** armstrongs has joined #zuul16:22
*** jpena is now known as jpena|off17:23
*** armstrongs has quit IRC17:57
*** themroc has joined #zuul18:03
*** tosky has quit IRC18:50
*** zxiiro has quit IRC19:13
*** johnsom has quit IRC19:14
*** hogepodge has quit IRC19:20
*** maxamillion has quit IRC19:21
*** kmalloc_away has quit IRC19:24
*** johnsom has joined #zuul19:41
*** maxamillion has joined #zuul19:41
*** hogepodge has joined #zuul19:44
*** themroc has quit IRC19:44
*** zxiiro has joined #zuul19:45
*** kmalloc_away has joined #zuul19:50
*** armstrongs has joined #zuul19:52
*** tosky has joined #zuul20:16
*** pcaruana has quit IRC20:56
*** tosky has quit IRC20:58
armstrongsheads up so nobody else bumps into this issue ara_report_path default of 'ara' results in css not displying but ara_report_path: ara-reports works21:22
armstrongsthanks for all the help debugging, glad i got that fixed :)21:22
fungidmsimard: ^ maybe the default needs changing?21:26
fungiarmstrongs: glad you got it working, and thanks for the info!21:26
fungialternatively, maybe we should be publishing our ara reports into an ara subtree instead of ara-reports by default in the role21:27
*** jesusaur has quit IRC21:28
*** armstrongs has quit IRC21:36
*** sshnaidm has quit IRC21:40
*** sshnaidm has joined #zuul21:42
*** jesusaur has joined #zuul22:49

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