Tuesday, 2017-03-28

dmsimardboxrick1: ideally everything would be the same version, I think you're bound to run into problems if you run a callback somewhere that doesn't have the latest sql migrations/models00:05
*** openstackgerrit has quit IRC11:33
*** themurph has quit IRC13:31
*** themurph has joined #ara13:34
*** fignew has joined #ara13:46
dmsimardboxrick1: did you give the patch a try ?13:50
boxrick1Yea, it feels faster. But when I timed it with a big page it wasn't noticeably so. But with with a page size of around 25 its now usable.13:52
boxrick1So id say a decent improvement overall, just not with massive pages.13:52
boxrick1I stuck some UI suggestions on the Openstack story page.13:53
dmsimardboxrick1: yeah, I saw13:53
dmsimardboxrick1: there's more (and more involved) performance optimization opportunities in the future13:54
dmsimardI need to write them down, saw a few yesterday when I worked on that patch13:54
boxrick1Well I think a dynamic loading when you click, as opposed to at page load would help considerably13:55
dmsimardboxrick1: for the home page ?13:56
boxrick1On the reports page13:56
boxrick1The home page is not something I really use, its just a big title with loads of stats.13:56
dmsimardboxrick1: yeah.13:57
dmsimardThere is only so much I can do for the reports page, I am by no means a professional "full stack" developer but would definitely welcome experts to help the application scale better13:57
boxrick1Ah I appreciate that, these are hopefully just little things to make a big improvement. Your web skills seem decent enough to me.13:58
dmsimardThere's probably a bunch of awesome ajax and react and nodejs stuff that could be done to make things snappy and all but it's really not my cup of tea :p13:59
boxrick1Meh, keep the tool functional and nail the basics. I would have personally kept things along the lines of page load per play even to keep it simp.e14:00
boxrick1As you say leave the flashy GUIs to someone who does it as a day job.14:00
dmsimardThe whole "centralized" or "persistent" ARA story needs attention and I'm probably first guilty of that, I want to dogfood it but haven't got around to it14:02
boxrick1You mean in the fashion I use it?14:03
dmsimardI've been using it in mostly ephemeral and CI context where things definitely don't scale to hundreds of playbooks and millions of records14:03
*** tbielawa has joined #ara14:51
*** openstackgerrit has joined #ara15:05
openstackgerritDavid Moreau Simard proposed openstack/ara master: Improve count performance  https://review.openstack.org/45044915:05
openstackgerritMerged openstack/ara master: Improve count performance  https://review.openstack.org/45044915:30
*** _dev has joined #ara15:51
*** tbielawa has quit IRC16:54
*** tbielawa has joined #ara16:57
*** tbielawa is now known as tbielawa|lunch18:13
dmsimardmnaser, logan-: huh, I just reproduced the http/https thing completely by accident19:03
mnaserdmsimard oh cool, have a public link? :19:04
mnaser:p19:04
dmsimardmnaser: https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/reports/index.html19:04
mnaserMixed Content: The page at 'https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/reports/index.html' was loaded over HTTPS, but requested an insecure resource 'http://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc7/'. This request has been blocked; the content must be served over HTTPS.o19:05
dmsimardIt's not from jenkins htmlpublisher and it's not hosted as a jenkins artifact, it's statically generated and rsync'd to a dumb server19:05
mnaserok interesting19:05
mnasercould it be possible iframe defaults to http19:05
dmsimardhave no clue19:06
dmsimardtrying to see19:06
dmsimardthe iframe uses a relative link19:06
mnaseryeah i saw that too19:06
dmsimardi.e, <iframe id="result_iframe" class="iframe" data-src="../result/index.html" src="../result/bd9b47ba-4317-4e08-b5bf-45f89f2e3576"></iframe>19:06
mnaserand for some reason19:07
dmsimardso I'm not sure how that can end up happening19:07
mnaserthe https request gets cancelled19:07
mnaserand then does the http one which gets rejected19:07
dmsimardgoogling this is the plague, everyone wants to include an http iframe in a https site19:07
mnaserthis is so strange19:09
mnaserdmsimard if you click the network tab and hit smoething to open a modal19:09
mnaserit goes from (canceled) to (blocked:mixed-content)19:09
mnasermaking 2 requests, an http and https19:09
dmsimardmnaser: I don't have access to the server it's hosted on, maybe there's something going on with the webserver config19:10
dmsimardI know it's nginx though19:10
mnaserhey hey hey19:10
mnaseri found it19:10
mnaser:D19:10
dmsimardshow me19:10
mnaserok dmsimard  are you ready19:10
dmsimardI am19:10
dmsimardlet me guess19:10
dmsimarda typo19:10
mnasercurl -vvv https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc719:10
mnaser<p>The document has moved <a href="http://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc7/">here</a>.</p>19:11
mnaserredirecting it to http19:11
mnaserthe lack of trailing /19:11
mnaserresults in a 30119:11
mnaserwhich does not redirect to https19:11
mnaser(i would say this is a miconfigured server, but if you added a trailing /, you avoid this)19:11
dmsimardehhhhhhhhhhhhhhhhhhhhhhhh19:11
dmsimardthe server is not wrong19:11
mnaseryeah but its redirecting to http: not https:19:12
dmsimardexists: https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc7/index.html19:12
dmsimarddoesn't exist: https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc719:12
dmsimardnow, don't get me wrong, the web server behavior is definitely weird here19:12
mnaserno thats normal19:13
mnaserapache always does this19:13
mnaserGET /artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc719:13
mnaserapache sees that there is no file with that name, but a folder exists with that name19:13
mnaserresponds with a 301 to /artifacts/rdo/poc-dmsimard-kolla-build/13/file/78a14335-aee2-4c0c-902c-317b7b324fc7/19:13
mnaserbecause there is an index.html inside of it, it responds with the index file19:13
mnaser(technically no trailing slash => file, trailing slash => folder)19:14
dmsimardmnaser: yeah19:14
dmsimardlogan-: fyi we found your problem ^19:14
dmsimardnow to fix it ...19:15
*** tbielawa|lunch is now known as tbielawa19:15
mnaserhttps://github.com/openstack/ara/blob/master/ara/templates/report_list.html#L28 -- maybe replace those calls with url_for19:15
mnaserand get rid of the magic replacement logic19:16
mnaser(and you could even technically reduce it to a single modal too, because you're just dynamically loading the iframe with whatever data-load url contains19:16
dmsimardmnaser: can't get rid of url_for, that's the magic that makes flask-frozen work19:20
mnaseroh im saying add it there instead of getting rid of it19:20
dmsimardmnaser: https://github.com/openstack/ara/blob/master/ara/templates/report_list.html#L42319:20
dmsimardreturn $(this).data('src').replace('index.html','').concat(load + '/'); seems to work19:21
dmsimardat least it doesn't break the existing behavior, just need to check if it'd fix the issue19:21
* dmsimard tests19:21
mnaseri was thinking https://github.com/openstack/ara/blob/master/ara/templates/report_list.html#L28 -- {{ playbook.file.id }} => {{ url_for('playbook.show_playbook', id=playbook.file.id) }},19:22
dmsimardmnaser: I can add it there, but then I need to add 15 slashes instead of one19:22
mnasertrue19:22
dmsimardtrying to re-generate with the fix19:23
dmsimardsee what happens19:23
dmsimardmnaser: wfm https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13-patched/reports/index.html19:27
dmsimardwhat a stupid bug19:27
mnaserwee :D19:27
dmsimardstupidest bug in ara's history so far imo19:27
mnaser:p19:27
mnaserglad you got a reproducable case that was accessible19:27
mnaserthis would have been impossible if it was done behind closed doors19:27
dmsimardyeah, I mean, reproducing the problem is crucial to figuring out what the root cause is ..19:28
dmsimardand I did it by accident \o/19:28
dmsimardthis is timely, I was one patch away from cutting release candidate for 0.12.419:28
dmsimardI want to get rid of the goddamn sqlalchemy log messages in the foreground19:28
dmsimardmnaser: fwiw you have an example of the per-tag kolla-build thing I told you about19:30
dmsimardnope, not the right fix, almost there19:34
mnaseranother error dmsimard ?19:34
dmsimardmnaser: doesn't work for the action column in the task results because the task results adds an anchor to highlight the line number19:34
dmsimardso we're appending a / after #19:35
mnasereeek19:35
dmsimardguess I'll have to add it in the url_for19:35
mnaseryeah that'll probably eliminate any weird stuff19:36
mnaserand the replace logic19:36
openstackgerritDevon Mizelle proposed openstack/ara master: adding postgresql text type "isms"  https://review.openstack.org/45094819:43
_devoh, that's me!19:44
_deva little uncomfortable having my full name in it, but w/e. had to fight gerrit enough.19:44
dmsimard_dev: o/19:53
_devhi!19:53
dmsimard_dev: that looks great at first glance I'll have a better look later19:54
dmsimardthanks a lot for jumping through the hoops, you have my eternal gratitude :)19:55
_devthank you for a great project!19:56
_devlet me know if i need to change anything, I hope the changes to run_tests.sh work decently.19:56
_devi didnt want to enforce use of docker to spin up pgsql, so its kind of left as an exercise to the user/jenkins.19:56
_devbut i documented how to do it in docker, at least.19:56
dmsimard_dev: yeah right now we're integration testing sqlite only but I want to do integration testing on mysql and pgsql as well19:57
dmsimard_dev: so just to show you how things work19:58
dmsimardin your patch, if you click on, say, "gate-ara-integration-latest-ubuntu-xenial"19:58
dmsimardthat sends you to the job logs -- console.html is the job console (where i.e, run_tests.sh sends it's output) but we also collect various logs19:58
dmsimardhttp://logs.openstack.org/48/450948/1/check/gate-ara-integration-latest-ubuntu-xenial/149e3d9/19:58
dmsimardif you go in "build" you can even see the statically generated report for whatever run_tests.sh has run19:59
dmsimardunit tests are provided by gate-ara-python27-ubuntu-xenial and pep8/bandit tests are provided by gate-ara-pep8-ubuntu-xenial20:00
openstackgerritDavid Moreau Simard proposed openstack/ara master: Append slash to modal iframe URLs  https://review.openstack.org/45096520:08
dmsimardmnaser: hopefully that does it ^ I'll try it out now.20:09
logan-dmsimard: awesome stuff. Just reading the backlog20:09
dmsimardlogan-: that was a weird problem20:10
dmsimard(╯°□°)╯︵ ┻━┻20:10
openstackgerritDavid Moreau Simard proposed openstack/ara master: Append slash to modal iframe URLs  https://review.openstack.org/45096520:13
dmsimardlgtm20:14
dmsimardlogan-: fyi, reproduced here: https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13/reports/index.html20:15
dmsimardand then with the patch ^: https://ci.centos.org/artifacts/rdo/poc-dmsimard-kolla-build/13-patched/reports/index.html20:15
_devah okay, so you all gather the logs up and bundle them with the review20:15
_devthats pretty nifty.20:15
dmsimard_dev: after you've jumped through the hoops once and get used to the workflow it's pretty awesome :)20:16
logan-So it was more about fronting ARA with nginx than anything on the Jenkins side.. heh20:27
dmsimardlogan-: you happen to run nginx too ?20:27
logan-Yeah my Jenkins is behind a nginx proxy20:28
dmsimardwell there ya go20:28
dmsimardlogan-: it'll land in 0.12.4 sometime this week20:28
logan-I suspect that's why we were seeing that same behavior20:28
logan-Cool20:28
dmsimardlarsks: do you have any remote idea why we put that number there ? I have no recollection https://github.com/openstack/ara/blob/master/ara/db/versions/001_initial_revision.py#L8020:29
logan-There's some other content security protection stuff that needs to be adjusted in Jenkins, I'll work on getting that documented after I'm able to get things working on the new version :)20:29
*** tbielawa has quit IRC20:29
* larsks looks20:29
dmsimardlarsks: it's carried even from the original pull request https://github.com/dmsimard/ara/pull/89/commits/3680ea6ec1f712f38373ebd8c9f8a681a8b8898b20:30
dmsimardbut the number looks too specific20:30
dmsimardit's probably something like sqlite vs mysql implementation of text()20:30
larsksdmsimard: that is the max value for an unsigned mysql MEDIUMINT20:31
larsks...which is probably the max size of a text field.20:31
larsksI'll bet that's it.20:32
dmsimardlarsks: something like sqlite was interpreting text() too small ?20:32
dmsimardlarsks: so there's https://review.openstack.org/#/c/450948/1/ara/db/versions/001_initial_revision.py@8020:32
dmsimardfigure there'd be a better way around it20:32
larsksIs your suggestion there that maybe a with_variant could be used for mysql?20:34
dmsimardlarsks: not familiar with how to properly handle different variants, I'm poking around olso.db and other projects to check if there's anything in particular20:36
dmsimardlarsks: http://codesearch.openstack.org/?q=with_variant&i=nope&files=&repos=20:38
dmsimardso wrap the class20:39
larsksdmsimard: so, this is where it came from in ara: https://github.com/openstack/ara/commit/2850c1cd4746a81e6cb8023d17702d8da92402ed20:40
dmsimardah nice find20:40
larsksgit log -G 1677721520:40
dmsimardwell actually not quite20:41
larsksBut yeah, the with_variant stuff seems like it might be cleaner.20:41
dmsimardthat's for the result table, this is the host facts table20:41
dmsimardbut same thing20:41
larsksRight.20:41
dmsimardoh I know who I can ask20:42
dmsimardharlowja: hai20:42
harlowjayo20:42
dmsimardharlowja: what'd be the proper way to handle a 3 way variance between sqlite/pgsql/mysql in migrations ?20:42
dmsimardharlowja: from looking at http://codesearch.openstack.org/?q=with_variant&i=nope&files=&repos= it looks like it's just one variant, not two20:42
* harlowja redirects to zzzeek :-P20:42
harlowjajump in #openstack-oslo ask zzzeek20:43
* dmsimard jumps20:43
harlowjahe sorta created sqlalchemy20:43
harlowjaso he should know20:43
harlowjalol20:43
dmsimardoh snap20:43
dmsimardharlowja: we have so many smart people involved in OpenStack it's great20:47
harlowja:-P20:47
dmsimardharlowja: there's the pypi guy too20:47
dmsimardwas surpsied20:47
harlowjais he still around?20:47
harlowjathough rackspace let him go :-/20:47
dmsimardhe got a new job somewhere20:47
harlowja*thought20:47
harlowjakk20:47
harlowjagood20:47
dmsimardhe was at HPE I think20:47
harlowjaya20:47
dmsimardharlowja: oh right he's at amazon now.20:48
harlowjainteresting20:48
_devseems weird, but maybe you can chain the with_variant?21:38
_devlike .with_variant(mysql.VARCHAR(), 'mysql').with_variant(somethingother, 'postgresql')21:39
openstackgerritMerged openstack/ara master: Append slash to modal iframe URLs  https://review.openstack.org/45096522:18
_devdmsimard: I just saw your comments on my review. I'm about to leave the office, so I'll push a commit or two tomorrow.22:27
dmsimard_dev: yeah no rush.22:28
harlowjahmmm, dmsimard when running with sqlite and now with the ability to sigterm running ansible, seem to be getting http://imgur.com/a/DvqWG after i did this :-P22:39
harlowjadoesn't seem to kill ara, just throws that message up22:39
harlowjalol22:39
dmsimardharlowja: https://github.com/openstack/ara/commit/a44fc4e53abb39635841a3c997d54d991c5e343c22:40
dmsimard0.12.422:40
dmsimardSoon (tm)22:40
harlowjaah22:40
harlowjak22:40
harlowjacoool22:40
harlowjai think the loading task result page also spins?22:40
harlowjavs erroring out?22:40
dmsimardYeah it'll spin endlessly22:41
harlowjakk22:41
dmsimardHaven't checked how to make it do something else22:41
harlowjanp22:41

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