Tuesday, 2019-03-05

*** electrofelix has joined #openstack-jjb10:57
*** mjturek has joined #openstack-jjb14:17
mjturekhaving trouble with python-jenkins and was wondering if this is a good place to get help?14:18
mjturektrying to delete a node with it and I get a 405 (action not allowed) response14:18
xmjyep14:42
xmjmjturek: is the user that you want to delete a node with, allowed to do that?14:42
*** mjturek has quit IRC15:03
*** mjturek has joined #openstack-jjb15:49
mjturekxmj: sorry for the delay! yes!15:50
mjturekit's my user and I can delete from the jenkins interface15:51
mjturektrying to automate as it's a large number of nodes15:51
mjturekI tried creating the Jenkins object with my user/pass but that didn't seem to change anything15:52
zxiirohttps://github.com/openstack/python-jenkins/blob/master/jenkins/__init__.py#L1502-L151216:12
zxiiromjturek: doesn't look like it's using groovy to delete. So the regular delete agent permission should be sufficient16:12
zxiiromjturek: maybe try giving yourself admin permissions too and see if that helps?16:12
zxiiroalthough I don't think it should require that either16:13
mjturekhmmm I'll give that a shot zxiiro16:13
mjturekthanks!16:13
mjturekzxiiro: seems I have permission to delete agents accoring to the configureSecurity page16:24
mjturekso no auth happens for a delete_node, regardless of what's set?16:24
zxiiroI have no idea. It's an API I haven't used before.16:34
zxiiromjturek: unfortunately python-jenkins is kind of unmaintained as OpenStack stopped depending on it. The folks in this channel maintain it out of interest of keeping JJB alive so APIs unused by JJB may not be as well tested.16:35
mjturekunderstood! If I find a work around I'll contribute it back17:17
xmjinteresting17:17
zxiirodefinitely would appreciate more contributors :)17:20
zxiirowe need it17:20
zxiiroMy org depends on JJB for all of our Jenkins deployments so I've been volunteering over here but it's difficult to keep up without help from the community.17:21
xmji'll do that once i run into issues17:21
xmjzxiiro: do you have some open issues on github?17:22
xmjzxiiro: since asking you in December I rewrote our org's cloud account, repo & pipeline management.. the latter uses python-jenkins (for lack of experience with the terraform provider)17:24
xmjer, not december, early feb17:25
zxiiroxmj: the tools we use are generally Gerrit, and Google Groups (https://groups.google.com/forum/#!forum/jenkins-job-builder)17:26
zxiirowe're a very small team these days so we are keeping things kind of informal17:26
xmjfair17:28
xmjso there's no open bugs. good!17:28
zxiiroxmj: yeah if you have an improvement idea. depending how large an effort it is, either push a Gerrit patch and we can discuss there, or email the mailing list and we can discuss there too.17:34
zxiiroheck even discussing in here is fine too :)17:34
xmj:)17:39
xmjthe two things i do is * create jobs and * create views17:39
xmjboth work... :)17:39
xmjat some point in the future, i will have to read my way around storing (IAM) credentials inside of it,17:40
xmjthen extending it such that I can limit some (created-earlier) job to only viewing a given set of credential domains17:40
xmjthis is probably still a while away, will keep on chipping17:41
*** electrofelix has quit IRC19:02
*** mjturek has quit IRC21:43

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