Monday, 2017-10-02

*** hashar has joined #openstack-jjb07:09
*** electrofelix has joined #openstack-jjb07:18
*** hashar has quit IRC08:02
*** hashar has joined #openstack-jjb08:02
mnenciaelectrofelix: I've did some tests with folders and I've discover an issue in python-jenkins: If a folder name contains a space it breaks any get_all_jobs call that includes it.13:41
mnenciabeside that I've rebased the https://review.openstack.org/#/c/134307/12 on top of https://review.openstack.org/#/c/189697/ and everything seems to work correctly if i avoid using folders with spaces in the name.13:52
electrofelixmnencia: I guess I didn't think about it, if you can get a fix up, I'm help get it through13:52
mnenciathe issue is that we need to urlencode the name before passing it to self.get_info13:53
mnenciamoreover i noticed that  python-jenkins get_version calls fails miserably because it doesn't use self.jenkins_open to create teh request object, so it fails to autenticate.13:56
mnenciabut it's a different bug13:56
mnenciaelectrofelix the patch is trivial14:07
mnenciashould i open a request in gerrit?14:07
mnenciahttps://pastebin.com/p1ZeSPgk14:08
electrofelixmnencia: do zaro and myself should be able to help get it through review14:22
electrofelixmnencia: so there was definitely a reason not to use jenkins_open when using get_version14:24
mnenciaelectrofelix i don't know. but with the current code it fails on my setup. If you want i can prepare a patch also for that14:25
electrofelixit certainly didn't require auth previously, but maybe something has changed, so would be good to elaborate14:25
mnenciaelectrofelix maybe it depens of the kind of the auth requirements14:26
electrofelixmnencia: that would make sense, is your jenkins behind something else doing the auth and you can't even see the main info page without a username/password or can you visit the home page without auth and then login to access more info?14:28
mnenciathis is my test https://pastebin.com/pj0RzeBs14:30
mnenciaand this is just after, adding the auth https://pastebin.com/NfgR0JMQ14:32
mnenciamy conf is: enable security, Login with google, role-based authorization strategy14:33
mnencianothing else14:34
electrofelixso if you are not authenticated and you attempt to go to the main jenkins page, what happens? do you get redirected to auth with google?14:35
mnenciayes14:35
electrofelixhmm, that's probably the source of this then. I presume you can't do a HEAD request without getting redirected either?14:36
electrofelixthough, tbh, I'm not sure I'm seeing a good reason not to switch the 'get_version()' call to use jenkins_open() as well14:38
mnenciacurl -I says 403 forbidden14:38
mnenciaelectrofelix it doesn't look important to me, but at least it should be documented. I used get_version() to check if my connection was working and it took a bit to me to understand that was a get_version() error instead14:41
electrofelixI think I see why, 'wait_for_normal_op()' was intended to work without trying to go through the auth code, but assuming it's possible to have that work as expected with auth on get_version() it would make things easier for users14:42
mnenciaelectrofelix i've found this https://review.openstack.org/#/c/504536/14:46
mnenciasomeone already create the fix for the space-in-folder-name issue14:47
mnenciaI've add my +1 to his patch.14:51
mnenciaelectrofelix What should I do with https://review.openstack.org/#/c/134307/12 ? I've the rebased code, but I don't know how to contribute it14:52
electrofelixmnencia: I would suggest rebasing it just against master, and then run 'git-review' and it should upload the amended patch14:57
openstackgerritMarco Nenciarini proposed openstack-infra/jenkins-job-builder master: Basic folder support  https://review.openstack.org/13430715:01
mnenciaelectrofelix do you have idea on why zuul is complaining about the patch? It looks like a network error to me (at least for the pep8 part)16:21
*** hashar has quit IRC16:35
electrofelixmnencia: some suggestion in #openstack-infra that it's fallout due to high load16:48
electrofelixI'll trigger a recheck on it tomorrow assuming everything is hunky dory then16:50
*** electrofelix has quit IRC17:56
*** hashar has joined #openstack-jjb19:27
openstackgerritJacqueline Haefke proposed openstack-infra/jenkins-job-builder master: Add Support for a list of additional-credentials in the SVN-plugin  https://review.openstack.org/49430719:50
*** hashar has quit IRC20:50

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