*** electrofelix has joined #openstack-jjb | 10:57 | |
*** mjturek has joined #openstack-jjb | 14:17 | |
mjturek | having trouble with python-jenkins and was wondering if this is a good place to get help? | 14:18 |
---|---|---|
mjturek | trying to delete a node with it and I get a 405 (action not allowed) response | 14:18 |
xmj | yep | 14:42 |
xmj | mjturek: is the user that you want to delete a node with, allowed to do that? | 14:42 |
*** mjturek has quit IRC | 15:03 | |
*** mjturek has joined #openstack-jjb | 15:49 | |
mjturek | xmj: sorry for the delay! yes! | 15:50 |
mjturek | it's my user and I can delete from the jenkins interface | 15:51 |
mjturek | trying to automate as it's a large number of nodes | 15:51 |
mjturek | I tried creating the Jenkins object with my user/pass but that didn't seem to change anything | 15:52 |
zxiiro | https://github.com/openstack/python-jenkins/blob/master/jenkins/__init__.py#L1502-L1512 | 16:12 |
zxiiro | mjturek: doesn't look like it's using groovy to delete. So the regular delete agent permission should be sufficient | 16:12 |
zxiiro | mjturek: maybe try giving yourself admin permissions too and see if that helps? | 16:12 |
zxiiro | although I don't think it should require that either | 16:13 |
mjturek | hmmm I'll give that a shot zxiiro | 16:13 |
mjturek | thanks! | 16:13 |
mjturek | zxiiro: seems I have permission to delete agents accoring to the configureSecurity page | 16:24 |
mjturek | so no auth happens for a delete_node, regardless of what's set? | 16:24 |
zxiiro | I have no idea. It's an API I haven't used before. | 16:34 |
zxiiro | mjturek: 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 |
mjturek | understood! If I find a work around I'll contribute it back | 17:17 |
xmj | interesting | 17:17 |
zxiiro | definitely would appreciate more contributors :) | 17:20 |
zxiiro | we need it | 17:20 |
zxiiro | My 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 |
xmj | i'll do that once i run into issues | 17:21 |
xmj | zxiiro: do you have some open issues on github? | 17:22 |
xmj | zxiiro: 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 |
xmj | er, not december, early feb | 17:25 |
zxiiro | xmj: the tools we use are generally Gerrit, and Google Groups (https://groups.google.com/forum/#!forum/jenkins-job-builder) | 17:26 |
zxiiro | we're a very small team these days so we are keeping things kind of informal | 17:26 |
xmj | fair | 17:28 |
xmj | so there's no open bugs. good! | 17:28 |
zxiiro | xmj: 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 |
zxiiro | heck even discussing in here is fine too :) | 17:34 |
xmj | :) | 17:39 |
xmj | the two things i do is * create jobs and * create views | 17:39 |
xmj | both work... :) | 17:39 |
xmj | at some point in the future, i will have to read my way around storing (IAM) credentials inside of it, | 17:40 |
xmj | then extending it such that I can limit some (created-earlier) job to only viewing a given set of credential domains | 17:40 |
xmj | this is probably still a while away, will keep on chipping | 17:41 |
*** electrofelix has quit IRC | 19:02 | |
*** mjturek has quit IRC | 21:43 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!