Friday, 2018-06-15

*** caphrim007 has quit IRC00:03
*** caphrim007 has joined #openstack-jjb00:04
*** caphrim007 has quit IRC00:05
*** caphrim007 has joined #openstack-jjb00:06
*** caphrim007 has quit IRC00:11
*** caphrim007 has joined #openstack-jjb01:20
*** caphrim007 has quit IRC01:39
openstackgerritKien Ha proposed openstack-infra/jenkins-job-builder master: Add depth option to git shallow-clone  https://review.openstack.org/42504202:08
openstackgerritKien Ha proposed openstack-infra/jenkins-job-builder master: Add publishers related to GitLab Plugin  https://review.openstack.org/51861803:04
openstackgerritMerged openstack-infra/jenkins-job-builder master: Add depth option to git shallow-clone  https://review.openstack.org/42504203:45
*** caphrim007 has joined #openstack-jjb04:59
*** caphrim007 has quit IRC05:03
*** caphrim007 has joined #openstack-jjb05:17
*** hashar has joined #openstack-jjb07:51
*** electrofelix has joined #openstack-jjb09:03
beiskezxiiro: Is everything good for release today?13:22
zxiirobeiske: i just woke up. I'll do a release later today13:36
beiskeThank you!13:36
zxiirossbarnea: electrofelix any patches we want merged before I cut a release?13:37
ssbarneazxiiro: have you tested the runscript fix?13:37
zxiirossbarnea: yes. I need to fix your suggestion to not use replace though. I'll patch that up in a bit13:38
ssbarneado it, i will also test it on two of my servers and lets release after that.13:39
electrofelixzxiiro: I think the main two patches I had around fixing the exceptions in python-jenkins have already landed13:44
zxiirojust remembered I have a meeting now. I'll do the patch after the meeting14:00
*** caphrim007 has quit IRC14:04
*** caphrim007_ has joined #openstack-jjb14:07
*** caphrim007_ has quit IRC14:11
*** caphrim007 has joined #openstack-jjb14:13
*** caphrim007 has quit IRC14:17
*** tanhengyeow has joined #openstack-jjb14:53
openstackgerritTan Heng Yeow proposed openstack-infra/jenkins-job-builder master: Improve support for EnvInject plugin  https://review.openstack.org/57066415:12
openstackgerritThanh Ha proposed openstack/python-jenkins master: Fix run_scripts() API  https://review.openstack.org/57430215:38
zxiirossbarnea: sorry for the delay. I just updated the patch.15:38
zxiirossbarnea: I'm gonna release jenkins-job-builder. you want to do python-jenkins?15:53
openstackgerritMerged openstack-infra/jenkins-job-builder master: Add support for GraphView column to views  https://review.openstack.org/57467015:53
ssbarneanope, got busy with something here15:54
zxiirossbarnea: ok i can do it15:55
zxiirolooks like there's only 2 patches from electrofelix in the release so should be pretty safe15:57
ssbarneazxiiro: i still get exception while trying to run script15:58
zxiirohuh very odd...15:59
ssbarneahttps://gist.github.com/ssbarnea/54fdae90acbb43064b61c31bfe5480b816:01
ssbarneayou do have access to the same machine16:01
*** caphrim007 has joined #openstack-jjb16:02
zxiirossbarnea: yeah16:02
zxiirossbarnea: I tried against that Jenkins server last week16:02
ssbarneaand to be sure, your CR is downloaded in python-jenkins repo, but this is obvious as you would not get the exception otherwise.16:03
ssbarneasad that I don't get anything visible in jenkins ocnsole.16:03
zxiirossbarnea: yep. I've even confirmed via the magic string too so I know it's running that code16:03
zxiirossbarnea: are you using api token or password to authenticate?16:04
zxiiroi was using api token16:04
ssbarneayep, inside .netrc16:04
zxiirossbarnea: hmm maybe try without netrc just to see?16:04
ssbarneaother requests are working normally. is there something special about run script? as opposed to the other http requests?16:05
zxiirossbarnea: Not sure. I don't know this code base very well16:05
*** caphrim007 has quit IRC16:06
*** caphrim007 has joined #openstack-jjb16:06
zxiirobeiske: JJB 2.0.10 is released in case you're not following the mailing list16:06
*** caphrim007 has quit IRC16:06
*** caphrim007 has joined #openstack-jjb16:06
ssbarneazxiiro: found the issue! maybe is partially my fault.16:08
ssbarneaif you check my example is using HTTP, but server is configured to redirect http to https.16:09
ssbarneawell, this redirection works well for most requests, but not for the runScript one.16:09
ssbarneai enabled debugging logging and this is now visible.16:09
ssbarneai updated the gist with debug info, if I switch to https it works.16:10
ssbarneastill, it is supposed to work with both, so we need to fix it.16:11
electrofelixssbarnea: I believe that we haven't configured requests to follow redirects16:11
ssbarneabased on requests docs, allow_redirects defaults to True -http://docs.python-requests.org/en/master/api/16:12
electrofelixoh, I thought it was set to false?16:13
electrofelixah, I see, it's disabled for HEAD requests16:14
zxiirossbarnea: ah makes sense, cool. I was starting to think it was voodoo magic16:14
ssbarneawell, i have haproxy in front of it16:15
ssbarneausually i am using nginx, but a week ago I decided to transform my pfsense into a SSL load-balancer16:15
ssbarneais this on my haproxy? as i do not see anything related to this on requests.16:18
*** r-mibu has joined #openstack-jjb16:21
openstackgerritTan Heng Yeow proposed openstack-infra/jenkins-job-builder master: Improve support for nodelabelparameter  https://review.openstack.org/57065916:22
ssbarneatanhengyeow: out of curiosity, what is the purpose of label parameter? I only use node one where I put node name or label conditions like "pyslave && !master"16:26
openstackgerritTan Heng Yeow proposed openstack-infra/jenkins-job-builder master: Improve support for EnvInject plugin  https://review.openstack.org/57066416:30
ssbarneazxiiro: i still dont know what is causing the failure with HTTP case and i would prefer to make it work. i doubt is related to my loadbalancer.16:45
tanhengyeowssbarnea: From my understanding it is used to restrict where the job can be executed. I'm not using it though, saw that an user posted for this request @ https://storyboard.openstack.org/#!/story/2001287 and thought it might be a good opportunity to learn about implementing support for plugins :)16:45
openstackgerritTan Heng Yeow proposed openstack-infra/jenkins-job-builder master: Improve support for nodelabelparameter  https://review.openstack.org/57065916:51
zxiirossbarnea: ah yeah, we should look into fixing it in another patch17:01
ssbarneait affects only this command, so it should be related.17:12
zxiirossbarnea: yeah but it's an issue unrelated to this patch imo.17:13
zxiirossbarnea: do we know that it's caused by requests? or has this issue always been an issue?17:13
ssbarneai am going to some tests now17:24
ssbarneafirst, the issue reproduces with other servers which are using different frontends.17:27
ssbarneaprobably we could avoid it by detecting the url and replacing it with correct one, maybe even displaying a warning.17:28
ssbarneathis would speedup the library a LOT because at this moment all requests are redirects, so double the traffic.17:28
zxiirothat would be good17:36
electrofelixssbarnea: wonder if we should log an issue with python-requests that for Session objects it should obey permanent redirects for the rest of the sessons17:43
ssbarneagood question, but i doubt it will be accepted as some people are redirecting based on requeted url, so it may break their "redirector" implementations.17:44
ssbarneaone problem that I have is that by default instantiating the class does not perform any requests, so I am unable to know that current url will be redirected.17:45
ssbarneai find the issue quite important because i am sure we will get bug reports about people encountering this issue, so i want to avoid this from happening.17:45
ssbarneai would prefer a clear failure than having "some" request failing silently, it would be a time waster for everyone17:46
ssbarneais not personal here, as I can always fix the url, is just about "UX" (python-jenkins user..)17:47
electrofelixin two minds, it's nice to be able to instantiate a class without it starting performing requests until you're ready for it to start talking to the remote, but maybe there is a call that we should expose and have JJB perform to log about checking the remote server access?17:50
electrofelixas an example of usage17:50
electrofelixon the redirect that might not support updating requests to do this automatically, but maybe they would add an option to allow it to be enabled17:54
ssbarneaapparently that part of HTTP spec, i found in several places that a redirect POST request must be transformed into a GET.17:57
ssbarneathis means that we must be sure we don't get redirected before doing this.17:57
ssbarneai think it has to do with security17:58
electrofelixah, yeah, curl has a --post301 --post302 & --post303 to override that behaviour17:58
ssbarneawould you find a problem if we include an implicit request when we instantiate the class?17:58
ssbarneaif we try to connect to the server as soon we create the object, we should be able to detect the redirection and if the url parameter, also throwing a warning.17:59
electrofelixI'd certainly advise a conservative approach to it, if it can be established without using a request that requires authentication that would be preferable18:05
*** electrofelix has quit IRC18:05
openstackgerritTan Heng Yeow proposed openstack-infra/jenkins-job-builder master: Improve support for nodelabelparameter  https://review.openstack.org/57065918:15
openstackgerritSorin Sbarnea proposed openstack/python-jenkins master: detect and respect http redirects  https://review.openstack.org/57581718:28
ssbarneazxiiro: ^^ this needs to be tested so we don't break some authentication types.18:30
ssbarneabut at least in my case it works really nice, doing what i wanted: correcting the url and telling consumer about that.18:31
ssbarneaand more important POST no longer fails silently.18:31
*** tanhengyeow has quit IRC18:55
zxiirossbarnea: cool. looking soon19:10
zxiirossbarnea: seems to work for me19:44
zxiirossbarnea: yeah, and works when I switch to your s-less http url too19:45
*** hashar has quit IRC22:10
*** caphrim007_ has joined #openstack-jjb23:17
*** caphrim007 has quit IRC23:20
*** caphrim007_ has quit IRC23:20

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