Wednesday, 2017-08-09

*** Apoorva_ has joined #openstack-third-party-ci01:37
*** Apoorva has quit IRC01:40
*** Apoorva_ has quit IRC01:42
*** stakeda has joined #openstack-third-party-ci01:54
*** esberglu has quit IRC01:56
*** esberglu has joined #openstack-third-party-ci01:57
*** esberglu has quit IRC01:58
*** esberglu has joined #openstack-third-party-ci01:58
*** s-shiono has joined #openstack-third-party-ci02:08
*** esberglu has quit IRC02:43
*** esberglu has joined #openstack-third-party-ci03:13
*** esberglu has quit IRC03:17
*** esberglu has joined #openstack-third-party-ci05:44
*** esberglu has quit IRC05:49
*** esberglu has joined #openstack-third-party-ci07:55
*** esberglu has quit IRC08:16
*** fdegir has quit IRC08:47
*** TheJulia has quit IRC08:47
*** stakeda has quit IRC08:47
*** krtaylor has quit IRC08:47
*** mmedvede has quit IRC08:47
*** hamzy has quit IRC08:47
*** patrickeast has quit IRC08:47
*** fungi has quit IRC08:47
*** jungleboyj has quit IRC08:47
*** anthonyper has quit IRC08:47
*** pots has quit IRC08:47
*** strigazi has quit IRC08:47
*** lennyb has quit IRC08:47
*** xinliang has quit IRC08:47
*** ChanServ has quit IRC08:47
*** rfolco has quit IRC08:47
*** rajinir has quit IRC08:47
*** s-shiono has quit IRC08:56
*** openstack has joined #openstack-third-party-ci13:55
*** Apoorva has joined #openstack-third-party-ci15:47
*** Sukhdev_ has joined #openstack-third-party-ci15:58
*** robcresswell has joined #openstack-third-party-ci16:05
robcresswello/ Hey all, running into an issue with nodepools images not having Java installed. I'm assuming this is because I'm using newer elements from upstream, and have either missed an element, or used one that has since had java installation removed. Any thoughts on how I fix this?16:07
mmedvedehey robcresswell16:08
robcresswello/16:08
mmedvedeI am checking my image build16:11
mmedvederobcresswell: the java was installed during puppet apply, iirc puppet-jenkins module16:13
mmedvedeI believe upstream infra no longer uses puppet during image build, this is why you did not find it16:13
robcresswellmmedvede: Any idea where that install comes from? Its not default in the ubuntu-xenial images.16:14
robcresswellJust trying to figure out what prompts it to install16:14
*** sambetts has joined #openstack-third-party-ci16:17
mmedvederobcresswell: I think this is the part you want https://github.com/openstack-infra/puppet-jenkins/blob/89d89683e3af408d99a86c349e6da27daace5d6e/manifests/slave.pp#L33-L4716:24
mmedvederobcresswell: you want jenkins::slave if you intend to use nodepool + jenkins. If you plan on zuulv3, then it is different16:26
robcresswellmmedvede: nodepool + jenkins for now16:26
robcresswellmmedvede: Mostly just using the content from puppet-openstackci16:27
sambettsnodepool doesn't build images with puppet any more as we understand it, so we're wondering how we install java16:27
sambettshttps://github.com/openstack-infra/project-config/tree/master/nodepool/elements/jenkins-slave my understanding was that this element should handle all the jenkins slave requirements16:28
robcresswellYeah, this is all a bit of a headache since upstream diverges from the 3rd party ci so much and lots of the content it outdated :( Ah well.16:28
sambettsbut there are no package dependencies there16:29
robcresswellergo, no java :)16:29
mmedvedeyes, you got to look at project-config pre cleanup16:29
mmedvedei.e. before puppet was pulled from their images16:29
mmedvedehttps://review.openstack.org/#/c/460728/16:29
sambettsThis commit implies we shouldn't have too https://github.com/openstack-infra/project-config/commit/2fe9c2125dc57c1d5a60e1492afd5d483a6abe4c16:30
robcresswellRight, that makes me think we should just use the jenkins_slave element; but it doesnt work :)16:31
robcresswelljenkins-slave* sorry16:31
sambettsit seems like the jenkins-slave element wasn't updated as puppet was removed :(16:31
mmedvedeso maybe you found a bug then. I see no element there that install jdk/java16:32
robcresswellSo now we're trying to figure out where Java is supposed to be installed in this process on a Xenial image, built by Nodepool16:32
robcresswellmmedvede: Any thoughts on where / how we would make that happen?16:32
mmedvedeyes, if you want to use the VM with jenkins, you need java16:32
robcresswellmmedvede: We know, we just don't know how to make nodepool do that.16:32
mmedvederobcresswell: do you have a good image, and it is just missing java?16:32
robcresswellmmedvede: Yup16:33
mmedvedeyou can either do it during image build (it seems current upstream project-config element does not do that, so you could create your own custom element to install java, or fix upstream)16:34
mmedvedeOr, you can install java on nodepool boot, with 'ready-script'16:34
robcresswellSo, is -infra still using Jenkins? Or just zuul v3?16:35
* robcresswell is confused by things.16:35
mmedvedejenkins is in name only, I believe16:35
mmedvedebut there is no jenkins server16:36
mmedvedethe "jenkins" username was kept just because it is easier to keep the same username16:36
mmedvedeI could be wrong16:36
robcresswellOh right, so upstream *is* zuulv3?16:36
mmedvedenot yet, zuul2.516:36
mmedvedefungi: correct me if I am wrong please16:37
* robcresswell is even more confused.16:37
robcresswellI thought Jenkins was still needed in a pre-zuulv3 world16:37
mmedvedethey use ansible runners16:37
*** persia has joined #openstack-third-party-ci16:38
mmedvedeBut I was not following the most recent changes closely16:38
mmedvedebut the fact that the name "jenkins" is still around makes it confusing, yes :)16:38
robcresswellOkay16:38
sambettsI didn't relise that zuul pre-v3 could operate without jenkins16:38
mmedvedeI am not sure what to recommend, I almost feel like it would be better to wait for v3 to be a bit more tested, and base your third-party CI on that16:42
sambettsmmedvede: are these ansible runners avaible for us to use in 3rd party CI? and get rid of jenkins?16:42
robcresswellmmedvede: Waiting is not really an option16:42
mmedvedebecause right now if you spend time with jenkins+nodepool, you'll be kind of wasting it if you would later be switching to v316:42
mmedvedesambetts: I am not aware of any third-party CI that use ansible runner16:42
robcresswellWell, v3 won't be available for at least a few months, and then likely have issues16:42
mmedvedeyeah16:43
mmedvedeSo if you would want to use jenkins + nodepool, you got to use elements in the older checkout of project-config16:44
fungimmedvede: correct, upstream zuul.openstack.org is continuously deployed from the master branch of zuul and uses an experimental ansible-launcher feature instead of relying on jenkins, but using jenkins with the latest releases of zuul (e.g. 2.5.2) is still intended to be supported and the recommended deployment configuration16:49
fungiwe have a preliminary zuulv3.openstack.org deployment running from the feature/zuulv3 branch tip where we're trying to finish getting it functional and ready to start using in production in a few weeks, but that's still an unsupported beta basically16:50
fungionce zuul 3.0.0 is released, we don't intend to support the experimental ansible-launcher that's part of zuul 2.5.x, since that was just a stop-gap for us16:52
mmedvedethanks for the clarification, so using ansible-launcher is a bad idea for third-party CI. Either got to stick with jenkins, or wait for v316:53
fungiso upstream zuul recommendation would be to deploy 2.5.2 with jenkins for now, and look at the tools we provide for migrating to zuul 3.x once we have 3.0.0 released and in production16:53
fungiwe want to be able to support people switching from 2.x+jenkins to 3.x, but can't really easily support 2.x+ansible-launcher16:54
sambettsfungi: the problme we're facing is that the https://github.com/openstack-infra/project-config/tree/master/nodepool/elements/jenkins-slave element doesn't seem to install java into our image, and without reverting to an older element still using puppet we're either going to end up creating a custom element or hacking java install into the ready script16:55
fungibut really, it's hard for us to provide migration recommendations/workflow/utilities for others until we've gone through getting 3.x working ourselves16:55
fungisambetts: we use a very lightweight dib element to add packages we need, which should be pretty easy to adapt: http://git.openstack.org/cgit/openstack-infra/project-config/tree/nodepool/elements/infra-package-needs16:57
sambettsfungi: yeah thats the element we're trying to modify to add java at the moment16:58
fungiyou could either stick it into that package-installs.yaml file in a fork of that element, or make a similar element with a different name which just adds the packages you need that we aren't already including in the infra-package-needs element16:59
fungimight make sense to include in the project-config-example repo even17:00
fungifrom a puppet-openstackci perspective17:00
sambettsyeah its not to bad to do now we know whats missing, we're just a little frustrated because we spent a good amount of time trying to work out what we were doing wrong compared to upstream because we thought you guys were still using jenkins so you must have been installing java somehow in the project-config elements17:01
sambettsand the jenkins-slave element in project-config seems to have been put in place for just the reason of providing the backwards compat for third party CI17:01
*** krtaylor has quit IRC17:05
*** Sukhdev_ has quit IRC17:09
*** dmsimard has joined #openstack-third-party-ci17:14
dmsimardanother channel to idle in /o/17:18
mmedvede:)17:22
*** sambetts is now known as sambetts|afk17:32
*** Sukhdev_ has joined #openstack-third-party-ci17:54
*** xinliang has quit IRC18:26
fungisambetts|afk: i believe what happened there is that the jenkins::slave class never explicitly installed java, and after we stopped using jenkins we were still baking java into our images unnecessarily (for us) for a while which we eventually cleaned up not realizing that people still deploying the jenkins::slave class had been relying on it. one option might be to just add a package resource19:03
fungito that puppet class19:03
*** krtaylor has joined #openstack-third-party-ci19:08
*** Sukhdev_ has quit IRC19:48
*** krtaylor has quit IRC21:01
*** krtaylor has joined #openstack-third-party-ci21:04
*** esberglu has quit IRC21:48
*** esberglu has joined #openstack-third-party-ci21:48
*** Sukhdev_ has joined #openstack-third-party-ci21:49
*** esberglu has quit IRC21:53
*** esberglu has joined #openstack-third-party-ci22:12
*** Apoorva_ has joined #openstack-third-party-ci22:20
*** Apoorva has quit IRC22:23
*** krtaylor has quit IRC22:52
*** krtaylor has joined #openstack-third-party-ci23:40

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