Thursday, 2020-01-09

*** armstrongs has quit IRC00:03
*** Goneri has quit IRC00:15
*** mattw4 has quit IRC00:20
*** Goneri has joined #zuul00:49
*** Goneri has quit IRC00:55
*** portdirect has quit IRC01:02
*** jangutter has quit IRC01:42
*** jangutter has joined #zuul01:42
*** jangutter_ has joined #zuul02:28
*** jangutter has quit IRC02:30
*** paladox is now known as [UK]02:59
*** [UK] is now known as paladox03:00
*** bhavikdbavishi has joined #zuul03:04
*** bhavikdbavishi has quit IRC03:10
*** rlandy|bbl is now known as rlandy03:13
*** rlandy has quit IRC03:14
*** bhavikdbavishi has joined #zuul03:16
*** zxiiro has quit IRC04:10
*** bolg has joined #zuul05:06
*** evrardjp has quit IRC05:33
*** evrardjp has joined #zuul05:34
*** swest has joined #zuul06:11
*** bolg has quit IRC07:37
*** avass has joined #zuul07:37
*** sshnaidm|afk is now known as sshnaidm07:53
*** jpena|off is now known as jpena07:56
*** pcaruana has joined #zuul08:02
*** reiterative has joined #zuul08:10
*** bolg has joined #zuul08:12
*** tosky has joined #zuul08:25
*** themroc has joined #zuul08:32
*** sugaar has joined #zuul08:33
*** avass has quit IRC08:54
*** electrofelix has joined #zuul09:36
sugaarHi, I was wondering, how does zuul  handle the values contained in zuul.conf? are those variables that checks for the value contained in them? could be done the same if the values would be environmental variables?09:41
*** bhavikdbavishi has quit IRC09:41
*** bhavikdbavishi has joined #zuul09:42
*** bhavikdbavishi has quit IRC09:46
*** [GNU] has quit IRC09:48
openstackgerritMatthieu Huin proposed zuul/zuul master: Authorization rules: support YAML nested dictionaries  https://review.opendev.org/68479009:58
*** avass has joined #zuul11:10
*** bhavikdbavishi has joined #zuul11:13
*** bhavikdbavishi1 has joined #zuul11:16
*** bhavikdbavishi has quit IRC11:18
*** bhavikdbavishi1 is now known as bhavikdbavishi11:18
*** jangutter_ is now known as jangutter11:49
*** jpena is now known as jpena|lunch11:58
*** themroc has quit IRC12:07
*** themroc has joined #zuul12:09
*** themroc has quit IRC12:11
*** themroc has joined #zuul12:12
openstackgerritPaul Albertella proposed zuul/zuul master: Fix Gerrit config issue in tutorial demo  https://review.opendev.org/70156212:13
*** bolg has quit IRC12:33
*** bolg has joined #zuul12:47
*** rfolco has joined #zuul12:54
*** zbr|rover has quit IRC13:00
*** bolg has quit IRC13:04
*** jpena|lunch is now known as jpena13:11
tristanCmnaser: iiuc you replaced your k8s operator by helm charts for zuul right?13:15
mnasertristanC: yeah it’s what we’re running now13:15
tristanCmnaser: is there a particular reason behind the change?13:16
mnasertristanC: complexity and time mostly13:17
mnaserIt’s a lot faster to write manifests than an operator, and we do miss out on some of the features that we can get by having an operator but it’s still early for us13:18
tristanCmnaser: alright, i'll give another stab at the operator cr as it is defined in the zuul repo13:18
mnasercool, I think my helm work can be a useful “base”13:18
tristanCmnaser: it has been yes thanks13:19
tristanCmnaser: fwiw my wip is https://github.com/TristanCacqueray/dhall-zuul/blob/master/operator/application/Zuul.dhall13:20
tristanCand it results in this object: https://github.com/TristanCacqueray/dhall-zuul/blob/master/deployments/cr-k8s.yaml13:20
*** bolg has joined #zuul13:21
mnaserneat!13:21
mnaserI’m slowly revising the charts as I find small periods of time13:21
*** Goneri has joined #zuul13:50
*** bhavikdbavishi has quit IRC13:50
*** bolg has quit IRC13:57
*** michael-beaver has joined #zuul14:07
*** rlandy has joined #zuul14:11
*** zbr has joined #zuul14:16
*** zxiiro has joined #zuul14:18
*** zbr is now known as zbr|rover14:18
*** mhu has joined #zuul14:26
*** portdirect has joined #zuul14:31
openstackgerritDavid Shrewsbury proposed zuul/zuul master: WIP: Documentation reorg  https://review.opendev.org/70160814:40
openstackgerritDavid Shrewsbury proposed zuul/zuul master: WIP: Documentation reorg  https://review.opendev.org/70160814:43
openstackgerritDavid Shrewsbury proposed zuul/zuul master: WIP: Documentation reorg  https://review.opendev.org/70160814:45
*** pcaruana has quit IRC14:47
openstackgerritTobias Henkel proposed zuul/zuul master: Add --check-config option to zuul scheduler  https://review.opendev.org/54216014:49
ShrewsIf anyone can recommend how to fix the sidebar "Related Topics" links with 701608, I would appreciate the info!14:49
openstackgerritMohammed Naser proposed zuul/zuul-helm master: Add Zuul charts  https://review.opendev.org/70046014:54
tristanCShrews: it seems like caused by the new index.rst lacking titles14:57
tristanCShrews: e.g. https://review.opendev.org/#/c/701608/4/doc/source/overview/index.rst@1 should have something like https://review.opendev.org/#/c/701608/4/doc/source/references/client.rst@114:58
ShrewstristanC: hmm, i'll try that. thx15:00
*** pcaruana has joined #zuul15:02
tristanCShrews: the re-org looks great, thanks!15:06
ShrewstristanC: thx  :)15:06
ShrewstristanC: hrm, seems the 'title' directive is not enough. Need an actual header in the doc, but that does fix it15:07
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Documentation reorg  https://review.opendev.org/70160815:12
tobiashif someone has time, may I get a second review on https://review.opendev.org/696459? It's a tiny change that reduces log noise in some situations.15:13
openstackgerritJan Kubovy proposed zuul/zuul master: WIP: Add spec for scale out scheduler  https://review.opendev.org/62147915:14
Shrewstobiash: done15:14
tobiashShrews: awesome, thanks!15:14
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Documentation reorg  https://review.opendev.org/70160815:22
openstackgerritMohammed Naser proposed zuul/zuul-helm master: Add Zuul charts  https://review.opendev.org/70046015:36
corvussugaar: see here: https://zuul-ci.org/docs/zuul/admin/components.html  look for "Zuul will interpolate environment variables"15:39
openstackgerritJan Kubovy proposed zuul/zuul master: WIP: Add spec for scale out scheduler  https://review.opendev.org/62147915:39
openstackgerritAlbin Vass proposed zuul/zuul master: Force fetch when updating merger repositories  https://review.opendev.org/70175315:41
avassJust noticed that someone deleted a tag from our repos and caused a huge queue because of this: http://paste.openstack.org/show/788206/15:42
avass^I'm guessing a bit but I think that should fix it15:42
sugaarcorvus thanks15:43
mordredavass: yeah - deleting tags is super bad and people should not do it15:43
avassmordred: I agree :)15:44
mordred:)15:44
avassanyway, is there a good reason for the merger not to force fetch?15:48
corvusavass: i can't think of a good one15:48
clarkbseems like this would avoid problems if a branch is rebased too ? probably a good idea15:49
mordred++15:50
Shrewsis the force option really named 'f' ?  how... odd15:54
corvusShrews: some of the api methods just pass through cmdline args15:55
corvusso that just translates to "add -f"15:55
*** bhavikdbavishi has joined #zuul16:02
corvustristanC: can you take a look at https://review.opendev.org/701237 ?16:04
*** jpena is now known as jpena|off16:06
*** bhavikdbavishi1 has joined #zuul16:07
*** bhavikdbavishi has quit IRC16:07
*** bhavikdbavishi1 is now known as bhavikdbavishi16:07
tristanCcorvus: yes. in the 'Start minikube' task output there is: '! Using the 'cri-o' runtime with the 'none' driver is an untested configuration!'16:09
*** themroc has quit IRC16:09
corvustristanC: i guess we just tested it ;)16:09
*** themroc has joined #zuul16:09
tristanCcorvus: yes, other than that, the change seems correct16:10
corvustristanC: cool.  i'm looking forward to the next release of crio, where we won't have to restart it after changing the registries.conf file16:10
corvus(it takes a long time to restart)16:11
openstackgerritTobias Henkel proposed zuul/zuul master: Add --check-config option to zuul scheduler  https://review.opendev.org/54216016:11
*** avass has quit IRC16:12
tristanCcorvus: it takes a long time to restart because it sigterm running pods, and iirc some kube process needs sigkill16:13
corvusyeah16:13
tristanC(i manually kill all pods before restarting crio and it's almost instantaneous)16:13
corvusoh interesting16:14
openstackgerritTobias Henkel proposed zuul/zuul master: Add --validate-tenants option to zuul scheduler  https://review.opendev.org/54216016:14
openstackgerritJames E. Blair proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176416:22
corvustristanC, mnaser: ^ is that how you run a helm chart? :)16:22
tristanCcorvus: that seems correct, though i never used helm actually :)16:23
Shrewszuul-maint: For those not following along, I've proposed a reorganization of our zuul documentation to follow a more accepted pattern (and I believe an easier to digest pattern) in https://review.opendev.org/701608. You can see the results at: https://bc90d6750c30bb4706d3-111c5415117c6f7e8c7678caa672fcb9.ssl.cf1.rackcdn.com/701608/6/check/zuul-tox-docs/feabb12/docs/16:25
Shrewszuul-maint: I feel this also sets us up to fill the gap in user tutorials, which is a large barrier to wider adoption, IMO16:25
tobiashShrews: awesome, is this ready for review?16:26
Shrewstobiash: yes. well, at least for debate  :)16:26
* corvus quibbles with the idea that "user manual" and "admin manual" are less "accepted", but i don't at all quibble with the idea that this may be an improvement based on our needs :)16:26
* Shrews does not quibble with that which he himself spouts nonsense about :)16:27
tristanCcorvus: Shrews: perhaps we should drop 'user' and 'admin' section in toc, and instead specify the target audiance at the begining of a document (when it's not clear by the title)16:29
fungiwhat's the documentation model the reorganization is based on? is it really designed for documenting software which is installed and managed by different people than are interacting with it?16:30
Shrewsi believe SpamapS once mentioned the need for more user tutorials, so he may be interested as well16:30
Shrewsfungi: see commit message16:30
tristanCShrews: for example, 'install zuul' and 'create a job' doesn't really need to be tagged 'admin' or 'user'16:31
fungiskimming that blog, it seems to be relevant to software whose admins and users are the same people16:31
corvusShrews: looking at the "discussions" section, i see "components" between "zuul concepts" and "project gating".  concepts and gating are user-focused, components is admin focused16:31
funginot for documenting services which are run and used by different sets of people16:31
corvustenant config is also admin focused16:31
fungihow does this documentation restructure prevent users from getting overwhelmed by administrator/operator documentation?16:32
Shrewsi agree a clearer delineation between admin/user docs is a need. open to all options others suggest there.16:32
corvuswhat if we kept the user/admin split, then did the 4 categories in each of those?16:33
corvus(4 categories = tutorials/howtos/discussions/reference)16:33
fungiyeah, separate user documentation from admin documentation but still keeping the substructure under them would make sense16:34
corvusthe downside of that is it would be tricky to do general-audience introductory material16:34
Shrewscorvus: what do you mean by "kept the user/admin split"? what are we keeping from the existing docs?16:35
corvus(do we duplicate it?  or put some of it at the top level as front-matter)16:35
fungigeneral-audience introductory material could be more appropriate for user documentation, and then have the admin documentation recommend readers also see that16:35
*** themroc has quit IRC16:35
corvusShrews: https://etherpad.openstack.org/p/7lDwFP6dze16:35
fungiwithout needing to duplicate it in both16:35
corvusfungi: yeah, could be an option16:36
Shrewsoh, not keeping anything, but splitting into separate docs. got it16:36
tristanCfungi: we could generate a "general-audience introductory material" subset of the doc if you are worry it's going to be overwhelming, e.g. we could pick 'tutorial: setup-zuul', 'tutorial: create-a-job', 'howto: configure github-app', ...16:37
corvusShrews: well, i meant keep the top level of the TOC at https://zuul-ci.org/docs/zuul/16:37
corvusbut then using the second-level from the proposal here16:37
Shrewsk16:37
tristanCi find the 'admin' / 'user' split confusing when you are both admin and user, which is likely what happens when you discover zuul....16:38
Shrewsthey could share a Reference16:38
fungii prefer the idea of being able to give users a focused view of only user-oriented documents so they don't need to swim through a mixed list of non-user-related documents16:38
corvustristanC: yeah, that's a good point, however there are far more user-only users of zuul than combined user+admins.  maybe we can make a progression of docs that introduces people to both.16:39
Shrewsi think it would be difficult to decide what's an Admin discussion doc and what's a User discussion doc, wouldn't it? what would be the deciding factor there?16:39
corvusit's also possible that we may not want "admin / reference" and all reference should be under user docs or something.16:39
fungicombining them in a big grab-bag of documents for different audiences makes it harder on users when they don't necessarily know the terms or what they're looking for16:40
tristanCcorvus: then perhaps should we also split config-project-user and untrusted-user?16:40
corvusShrews: https://bc90d6750c30bb4706d3-111c5415117c6f7e8c7678caa672fcb9.ssl.cf1.rackcdn.com/701608/6/check/zuul-tox-docs/feabb12/docs/discussions/components.html is def an admin discussion16:40
corvustristanC: well, the only difference is pipelines.  pipelines are another user/admin grey area.  but i'm not sure subdividing user is the right answer there...16:42
tristanCwell i meant having 'admin' and 'user' docs is better, but it's also more work16:42
corvusShrews: oh i just saw your "share a reference" idea... yeah.16:43
Shrewsi'd argue that discussions seems logical to share, too. a reader will choose to dive in on those when they want to get more in-depth, regardless of if they're user or admin. it's really the tutorials and how-tos that have different audiences16:44
corvusShrews: yeah -- though "tenant config reference" may be an admin-only reference?16:45
tristanCcorvus: a config-project-user could use doc about tenant configuration, global project-pipeline-config, fast localhost job16:45
corvusShrews: maybe that's not as big of a problem though if we title it well16:45
corvustristanC: yeah, though i'm not afraid of users accidentally running into that info.16:46
Shrewscorvus: yeah, but i don't expect someone to read the reference stuff straight through like a tutorial. so if something there is admin-only, i think that's ok16:47
tristanCShrews: i agree, I find such doc structure easy to navigate and it's not that of an issue for an user to gloss over admin doc16:48
*** sshnaidm is now known as sshnaidm|bbl16:48
tristanCyou may end up reading in a loop 'tutorial -> howto -> reference -> discussion -> tutorial -> ...'16:48
openstackgerritMerged zuul/zuul-jobs master: Add cri-o support to use-buildset registry  https://review.opendev.org/70123716:49
Shrewsyeah, something more of a graduated level of reading: tutorials to get the basics, howtos to solve specific problems, discussions after more familiarity, reference only when needed16:50
Shrewsat least for a user16:50
Shrewsadmins will likely skip tutorials and go straight to howtos (install, configure, monitor). i'm not even sure what an admin-level tutorial is (other than the quick-start)16:51
SpamapSShrews: very interested in collaborating on tutorial. Very little time to contribute unfortunately.16:52
corvusShrews: yeah, quickstart -> howto (eg install github app) seems like a reasonable progression for admin16:52
SpamapSThe biggest missing tutorial is "I am a dev who has a Zuul somehow, how do I start?"16:53
corvusyep16:53
ShrewsSpamapS: yep. thus the empty user tutorial section :)16:53
*** avass has joined #zuul16:54
tristanCSpamapS: if the zuul is empty, then perhaps https://bc90d6750c30bb4706d3-111c5415117c6f7e8c7678caa672fcb9.ssl.cf1.rackcdn.com/701608/6/check/zuul-tox-docs/feabb12/docs/howtos/pti.html ?16:55
openstackgerritJames E. Blair proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176416:55
ShrewsSo, did we come up with an agreed upon change for the user/admin split? Seem there was consensus on a shared discussion/reference section... i think16:56
mnasercorvus: im actually a fan of avoiding running helm's server side component (tiller) which is being removed in helm 3 anyways, so what i like to do is something like: helm template --name <foo> charts/foo | kubectl apply -f-16:56
tristanCmnaser: doesn't "helm install" cli works without tiller?16:56
mnaseronly with helm 3, i think16:57
SpamapStristanC: *Way* too reference-material. I want a step by step thing I can copy/paste into my git tree and see working.16:57
SpamapSmnaser: *has been removed* in 3 (it's out!)16:57
SpamapSWe're using it in prod.16:57
mnaseryeah, i'm using helm 3 too (but actually use templates only)16:57
SpamapS(and.. it's got a few bugs)16:58
SpamapSIt keeps forgetting bits of the manifests.16:58
SpamapSso upgrades sometimes just go "hey I'm trying to create something that exists"16:58
tristanCShrews: 'look for and fix config-error' could be a good admin tutorial16:58
corvusShrews: i think there's general support for trying something like that -- want to take another stab at a TOC?16:58
mnaserSpamapS: yeah, that's been my similar experience, so we have argocd doing the application of manifests and what not, and helm to template them out16:58
Shrewscorvus: sure. will try something after lunch16:58
tristanCShrews: thanks again for putting the new doc for discussion, that's a lot of work!16:59
corvus++16:59
corvus(this is hard)16:59
SpamapSmnaser: good to know I'm not alone! ;)16:59
*** mattw4 has joined #zuul17:00
corvusmnaser: we should have this test job use argo :)17:00
* mnaser has a call but will comment in a bit about that17:01
openstackgerritAlbin Vass proposed zuul/zuul master: Force fetch when updating merger repositories  https://review.opendev.org/70175317:01
avassoops17:01
mordredavass: haha17:03
*** tosky has quit IRC17:05
*** tosky has joined #zuul17:06
openstackgerritMerged zuul/zuul master: Only report to changes in gerrit  https://review.opendev.org/69645917:18
fungiclarkb: i think you also said https://review.opendev.org/701753 sounded like a fine idea?17:21
clarkbI did, shoudl I approve it?17:22
corvus++17:23
clarkbdone17:24
openstackgerritJames E. Blair proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176417:29
*** jpena|off is now known as jpena17:31
*** evrardjp has quit IRC17:33
*** evrardjp has joined #zuul17:34
*** sshnaidm|bbl is now known as sshnaidm17:38
corvusmnaser: what's the plan for supplying a nodepool.yaml file for the helm charts?17:39
corvusmnaser: am i reading it right that it's expected to be a secret?17:42
mnasercorvus: the idea is that you would provide the 'config' key and it would write it out as yaml inside the secret which is then mounted inside /etc/nodepool in the container17:43
mnaserso in your values.yaml file (when running helm template or install), you'd have somethiong like: config:\n  foo: bar ...17:44
corvusmnaser: ah, i see that now, lines 10-14 in charts/nodepool/values.yaml17:45
corvuscool, i think that makes sense, thanks17:45
mnasernp!17:55
corvusmnaser: i just argo'd a nodepool: http://paste.openstack.org/show/788213/18:09
corvusthe builder is in a crash loop, but hey18:10
mnasercorvus: #progress !18:10
mnasercorvus: small tip is `kubectl logs statefulset/nodepool-builder` so you avoid having to look up the pod name18:11
mordredcorvus: look at your argoing!18:12
corvusoh here's why it's crashing: RuntimeError: No ZooKeeper servers specified in config.18:12
corvusthat makes sense :)18:12
mordredzuul does not work well without zookeeper servers18:12
openstackgerritJames E. Blair proposed zuul/zuul-helm master: Change builder container name  https://review.opendev.org/70179318:13
corvuslook a real change18:14
mnasercorvus: in our deployment i used the zookeeper helm charts18:15
mordredcorvus: I understand that one!18:15
mnaserand then pointed to it18:15
corvusmnaser: these? https://github.com/helm/charts/tree/master/incubator/zookeeper18:18
mnasercorvus: yep!18:18
*** bhavikdbavishi has quit IRC18:18
corvuscool, then that's my next step, along with giving a a custom values set to argo18:19
openstackgerritMerged zuul/zuul master: Force fetch when updating merger repositories  https://review.opendev.org/70175318:20
corvusmnaser, mordred: where were we on the "version bump" issue?  https://zuul.opendev.org/t/zuul/build/789e42d8129944df8d47354d5ad2666718:21
mnaserya, welcome to helm charts where you're supposed to bump version on every. single. change.18:21
mnaserso you can do smoething like 0.0.218:21
corvusi would like to reject the premise.   is that an option? :)18:22
mordredyeah - that seems kinda anti CD and hard with specualtive gating18:22
mnaserpretty much what i was strugglin with because the idea while you can use argo to point towards a repo18:23
mnasersomeonew who's using straight helm needs to point at a .tar.gz that's hosted somewhere for a helm index18:23
corvusdo you know if argo cares about the version?18:24
mnaserso you couldn't CD using those helm charts because the "dependency" system relies on versioning and actual .tar.gz18:24
mnaserargo does not care about the version, but if someone wants to consume those charts into their own chart (i.e. if i make my own zuul-system), i have to use the helm requirements.yaml which requires an explicit version pointing at a published .tgz18:24
corvusthis system has... flaws.18:25
mnaseryes, it's VERY much not based with any thought of CD.18:25
mnaserfor example, all of our monitoring infra is in a chart which depends on a few other smaller charts18:26
mnaserif i need to bump chart "foo" which is used in "monitoring".  i have to bump foo from 1.0.0 to 2.0.0, then i have to PUBLSIH 2.0.0, and then i have to bump the dependency of "monitoring" for  "foo" from 1.0.0 to 2.0.018:27
*** sgw has quit IRC18:27
mnaserbecause the dependencies (.tar.gz) are downloaded during build time18:27
mnaserand apparently using file:// references is fRoWnEd uPoN18:27
corvusmnaser: well, anyway, we can make speculative helm repos like you were discussing the other day to help with that...18:27
corvusbut i think maybe the versioning within zuul-helm is a different issue.  basically, it seems like we need to do the pbr thing here18:28
mnaserya, i mean, im not opposed to like18:29
mordredyeah.18:29
mnaserfinding a better approach.18:29
Shrewscorvus: of the howtos listed in https://bc90d6750c30bb4706d3-111c5415117c6f7e8c7678caa672fcb9.ssl.cf1.rackcdn.com/701608/6/check/zuul-tox-docs/feabb12/docs/howtos/index.html its seems those all would fall under admin howtos, yes?18:29
mordredmaybe we need to do a pbr-like tool that produces a values file?18:29
corvusmordred: i think it needs to edit the Chart.yaml ?18:29
mordredyeah. maybe the tool need to do that18:29
*** jpena is now known as jpena|off18:29
mnaseryeah Chart.yaml is what needs to be modified for the version correct18:29
mordredbut maybe we run it in jobs and also before making the tar.gz ?18:29
mnaserwait wait18:30
mnaseri just got an idea18:30
mordredjust thinking out loud18:30
mordredawesome18:30
corvusmordred: yeah, i think that would do the trick..... /me waits for mnaser's idea18:30
mnaseri think when you run a helm build18:30
mnaseryou can override version in command line18:30
* mnaser double checks18:30
mnaseryes, "helm package" has an option called --version18:30
mnaser--version string           set the version on the chart to this semver version18:30
*** notnone is now known as at_work18:30
corvusShrews: install, zfs are admin; cross-project gating, pti, badges are user; troubleshooting is admin18:31
*** electrofelix has quit IRC18:31
mnaserhelm package --version 0.1.1-dev123 .18:31
mnaserSuccessfully packaged chart and saved it to: /home/mnaser/src/github.com/vexxhost/helm-charts/charts/dell-exporter/dell-exporter-0.1.1-dev123.tgz18:31
mnaserooou neat18:31
corvusmnaser, mordred: also it looks like we can --check-version-increment=false on the linter18:32
corvusso between that and setting --version on publish jobs, we're probably good -- we can just ignore the version in the repo18:33
corvusgotta run18:33
mnaseri think if we adopt that pattern (and drop --check-version-increment) in the zuul/zuul-jobs we want to deliver the whole "set" of jobs from ci to publish18:34
mnaserthat way the behaviour is predictable for users18:34
openstackgerritDavid Shrewsbury proposed zuul/zuul master: Documentation reorg  https://review.opendev.org/70160818:44
*** tosky has quit IRC18:48
Shrewsthat PS offers a user/admin split. we could do away with the "Zuul Users"/"Zuul Admins"/"Digging Deeper" headers I guess as another option18:52
mordredmnaser: ++18:54
*** sgw has joined #zuul18:56
pabelangercorvus: tristanC: clarkb: could we priorities https://review.opendev.org/678273/ ? this is related to https://review.opendev.org/660856/ which was skip file maters on periodic pipelines19:17
pabelangerprioritize*19:18
*** pcaruana has quit IRC19:35
corvuspabelanger: ack will do19:36
pabelangerthank you19:38
openstackgerritJames E. Blair proposed zuul/zuul-jobs master: Move chart-testing to a role and disable version check  https://review.opendev.org/70182219:48
corvusmnaser, mordred: ^19:48
openstackgerritJames E. Blair proposed zuul/zuul-helm master: Change builder container name  https://review.opendev.org/70179319:48
corvusnow i make tacos19:49
fungimmmtacos19:58
*** openstackgerrit has quit IRC19:59
*** mhu has quit IRC20:02
pabelangerclarkb: unrelated, but do you know if pip python environment markers can be used via CLI? or only in requirement files21:02
webknjazYes but don't forget to quote/escape the whole def if you have spaces21:04
pabelangerwebknjaz: thanks21:06
*** openstackgerrit has joined #zuul21:19
openstackgerritMerged zuul/zuul-jobs master: Add basic Helm jobs  https://review.opendev.org/70022221:19
fungipabelanger: just to parrot what webknjaz said, i've used them from the command-line fine but yes stuff like semicolons does need careful escaping21:22
clarkbpabelanger: sorry I didn't get back earlier. But looks like you got your answer21:26
* clarkb has been distracted with paperwork today21:26
clarkbI should finish that up so I can focus on work work soon21:26
pabelangerfungi: webknjaz: clarkb: yup, worked as expected. thanks!21:26
*** michael-beaver has quit IRC21:27
*** Goneri has quit IRC21:41
corvusmnaser: https://review.opendev.org/701822 made my helm change pass22:14
mnasercorvus: neat!22:18
corvusmnaser: did you use argo to deploy zk?  if so, did you use a release or the git repo?22:21
mnasercorvus: i have my own "local" chart that is pinned to the latest (at the time) release22:22
mnasersorry, my local chart with depends on the zookeeper one22:23
corvusmnaser: ah, gotcha22:23
mnaseri have no values defined so i just use the out of the box values22:23
corvusmnaser: so you're sort of a few steps ahead with a system chart22:24
mnaseryes, but i haven't had time to "generalize" it22:24
corvusack22:24
mnaserthe thing that also made it hard is im not sure how to do the "system" chart inside the main repo, unless we use file:/// inside the requirements for it22:25
openstackgerritMerged zuul/zuul-helm master: Added nodepool to charts  https://review.opendev.org/70046222:26
mnasercorvus, mordred: as we're starting to merge things to zuul/zuul-helm, i'd like my deployment to actually start pointing at it22:27
mnasergiven that will be useful is helping us find any possible issues, but i'd appreciate if we can treat it as "hey lets not break a downstream user" as i would like to CD it22:28
mnaseri could pin to commits but that seems probably counterintuitive :>22:28
corvusmnaser: i have the same goals.  but we may still need to intentionally break some stuff in the early days, but if so, we can probably just coordinate here until things settle.22:29
mordredi'd love for you to CD it too ... I think we should make sure we're happy enough with a CI job before you do - maybe let's at least get https://review.opendev.org/#/c/701764/ in before you start CDing from upstream repo?22:30
mnasercorvus: ya im totally ok to break it, but "hey we're breaking this" is all im asking (i'm cool with working around it rather than having to engineer a ton of backwards compatibility)22:30
corvushrm, apparently "--generate-name" is unknown to helm?22:31
mnasermordred: given that it's 100% matching what im running and i dont want to maintain my local nodepool code anymore, it's ok _enough_ for me, but yes, i'm going to work on the job too22:31
openstackgerritMerged zuul/zuul-jobs master: Move chart-testing to a role and disable version check  https://review.opendev.org/70182222:31
mnaserwee, because i was using these nodepool charts 100% as is, it was noop22:36
mnasercorvus: is it okay if i take over your nodepool testing change?22:38
corvusmnaser: please22:49
openstackgerritMohammed Naser proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176422:51
mnasercorvus: ok cool! i'm going to start building out the "zuul-system" chart and use that for testing22:51
corvusmnaser: it looks like zookeeper-0.6.4 is the latest release, but it's from 2018.  is that what you're using?22:55
fungithat sounds like some mighty stable software22:57
corvusfungi: well, the contents of the git repo are much more recent22:58
fungiahh, so maybe they just disagree with esr's advice about release frequency22:58
mnaserhttps://review.opendev.org/#/c/701764/4/charts/zuul-system/requirements.yaml22:58
mnaserwhich i stole from https://github.com/helm/charts/blob/master/incubator/zookeeper/Chart.yaml#L422:59
mnaserwhich runs 3.5.5 according to the chart22:59
corvusmnaser: that says it's running chart version 2.1.3, but i don't see that at http://storage.googleapis.com/kubernetes-charts-incubator23:02
corvusi only see 0.6.4; what am i missing?23:03
corvusbut huh, http://storage.googleapis.com/kubernetes-charts-incubator/zookeeper-2.1.3.tgz exists23:03
mnasercorvus: i think the problem is that the directory listing is limited (hence NextMarker), helm uses an index file to find things23:03
mnaserhttp://storage.googleapis.com/kubernetes-charts-incubator/index.yaml23:04
mnaser(warning a 763kb yaml file)23:04
corvusis that how you find that 2.1.3 is the magic number?23:04
corvus(since they didn't put that in the docs)23:04
mnasercorvus: the magic number is 2.1.3 by looking at what Chart.yaml points in master (because they run chart-testing and force you to bump version for every change)23:04
mnaserand they publish .. every .. single .. change23:04
corvuswow, ok.  thx23:05
mnaseryeah, hence the ~760kb index... and thats not even for the "stable" repo23:05
fungimaybe they've taken the continuous deployment "every change is a release" mantra to heart?23:05
mnaserthe stable repo is 7.1MB yaml file23:05
mnaser9709 total releases for the stable repo according to my simple grepping23:06
fungiyeesh23:08
mnaserthis was noe of the thing that made it hard for me to build a 'speculative' repo server23:09
mnaserwas that id have to index all of that to know if i should go upstream or use local build23:09
fungihopefully parsing ~10k version records isn't too slow23:10
mnaserparsing a ~8mb yaml file is about as wild as you think it is23:10
mnaserlol23:10
fungioh, it's more than just git tags? yeah, that's a boatload of yaml, and you're going to need a bigger boat23:13
fungiit's all fun and games until someone loses an i23:13
mnaseryeah its not git tags heh23:16
openstackgerritMohammed Naser proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176423:18
clarkbfungi: where we're going we don't need speed23:22
clarkbI guess that is what happens when you get off road. you slow down23:22
corvusmnaser: i'm struggling a bit with how to provide a nodepool.yaml.  i understand that it can go in values.yaml, and that i could provide an alternate values.yaml with my own config.  that's fine, except that if i want to have argo do that, it has to be in the app repo.  so if i want to point argo at zuul/zuul-helm for nodepool, then that means my nodepool.yaml needs to be in a values file in that repo.23:22
mnasercorvus: correct, so the way i work around that is i declartively add apps23:22
mnaserand ill do soemthing like this23:22
mnasercorvus: http://paste.openstack.org/show/788220/23:24
mnaser(i dont use the cli or ui, so i just declartively define apps like that)23:24
corvusooooh23:24
corvusokay, that's opening up a new set of options, thanks :)23:24
mnaserthere's also another way but it's super annoying and unsustainable where you proivde a yaml path23:25
mnaserso something lik name: config.labels[0].name\nval: foo and that would explode forever23:25
corvusmnaser: yeah, i was on the edge of writing "yaml -> parameter override" converter for that but realized that's insane.23:25
mnaseryeah i learned about the values thing recently23:26
mnaseri had the same challenge for a while23:26
corvuscool, i will go try that now :)23:26
pabelangermnaser: looking at your example, that means nodepool.yaml lives inside your helm chart?23:28
pabelangerassuming that is a helm chart23:28
corvuspabelanger: it's an argocd declaration (which points to a helm chart)23:28
mnaserpabelanger: it would live in the argocd application definition which is fed into the actual chart.  think i'm providing an ansible vars file to an existing role23:29
pabelangerthanks, googling23:29
corvuswe could probably write a zuul-jobs role to template in a file into the "helm.values" thing so we could make it a little more user-friendly23:29
clarkbdoes that mean the nodepool charts require argo to be useful?23:30
openstackgerritMohammed Naser proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176423:31
pabelangeryah, it would be awesome to say have argocd read the existing nodepool.yaml file, some how (not that I'm involved here :))23:31
corvusclarkb: nope23:32
mnaserclarkb: nope, as a matter of fact the test code im building above is only using helm23:32
mnaserpabelanger: the idea is that you can literally copy-paste your existing nodepool.yaml and it'll feed it in23:32
corvusclarkb: this is mostly "how to get argo to do the --values thing you do with helm" :)23:32
corvus\o/ https://imgur.com/a/SptBID823:32
mnaserso you could technically shut down your existing nodepool, run the helm chart with your existing config, and everything will start back up23:32
corvusthat's an argo, a zk, and a nodepool launcher running23:32
mnaserwee23:33
clarkbcorvus: I see, supporting both rather than just argo23:33
corvusclarkb: yep.  my tiny summary of argo is "something that runs helm for you"23:33
mnaser^^^ yep, watches a repo and applies thing23:33
clarkband uses redis apparently23:34
clarkbbe sure to set memory limits on the redis container :)23:34
corvus(or even, disable the watching part and have zuul run argo (to run helm))23:35
pabelangermnaser: right, copy it sounds like. Not point to file and use some sort of magic to open, ready yaml content, close file23:35
mnaserpabelanger: yeah because the 'file' has to live in a kubernetes secret23:36
mnaserwoo23:37
mnaserthat job managed to apply all resources!23:37
pabelangermnaser: okay cool, thanks. Trying to map the layers into brain :)23:38
mnaserminirant: i hate how we take 25 minutes to setup our test env and k8s takes like... a minute or two23:39
mnaserok now i only need to add a small piece of code to wait for all pods to become ready23:39
clarkbmnaser: you know that like 50% of that is waiting on api calls right?23:39
mnasercause the charts are applying23:39
clarkbmnaser: I rewrote keystone setup in python and cut a ton of time off devstack23:39
clarkb(and then there is setup for all the other services)23:40
mnaserclarkb: did that end up landing too btw? :>23:40
clarkbno it was quite a bit hacky. more a PoC to show people "look devsdtack is slow because osc is inefficient"23:40
clarkbentrypoints kill us as does provisioning a new token for each command (and needing to list the catalog and all that stuff each time too)23:41
clarkbif we switch to a single process we can take all the overhead and run it once23:41
mnaserah23:43
openstackgerritMohammed Naser proposed zuul/zuul-helm master: Test helm charts against k8s  https://review.opendev.org/70176423:43
mnaserok, so the above should be a full run.   if that works, i'll take the role to run a helm chart against a kubernetes cluster and export it out to zuul/zuul-jobs because i can make use of that  too :)23:44
clarkbmnaser: https://review.opendev.org/#/c/673108/6/tools/create_keystone_accounts.py if you are curious. I sent email about it and tried to get more interest in the problem space. Unfortunately I think "it works but is slow" is good enough for most people23:44
fungiyeah, in the spirit of "let's make sure we test like a user would interact with the services" i get the attraction, but osc is just not efficient being called over and over in tight scripted loops23:45
pabelangermnaser: we are also spoiled, I'd happily wait 25mins vs manually testing any day23:45
corvus\o/ http://paste.openstack.org/show/788221/23:45
mnaserweee23:45
corvusthat's a min-ready node :)23:45
clarkbcorvus: using the gce driver?23:46
pabelangerlooks like it23:46
corvusyep23:46
pabelangerthat's neat23:46
corvusthat's in the gerritcodereview-ci project (what will become the production deployment of gerrit's zuul)23:46
corvusi think i just about have enough to start pushing up a change23:46
pabelangercorvus: how are you solving privileged containers? Do you have your own k8s in google cloud?23:47
openstackgerritJames E. Blair proposed zuul/zuul-helm master: Add empty clouds value  https://review.opendev.org/70186523:47
corvuspabelanger: GKE instances are privileged by default23:47
pabelangerah23:47
pabelangersome reason openshift went the other way :)23:48
clarkbpabelanger: gke is quite a bit more relaxed about perms and stuff than say openshift23:48
pabelangerclarkb: yah23:48
SpamapSDo we still need privileged executors?23:48
pabelangerthink so23:48
SpamapSI thought new bwrap + new kernel meant no.23:48
SpamapSI still have privileged executors but was just wondering.23:49
pabelangerI'm not up to speed, but I don't think anybody has tested?23:49
tristanCSpamapS: userns are still blocked by seccomp at least23:50
SpamapSAhh, so you have to reconfigure docker to disable those blocks.23:51
SpamapSor cri-o or whatever you're using ;)23:54
tristanCI implemeted almost all of the Zuul CR defined in https://zuul-ci.org/docs/zuul/developer/specs/kubernetes-operator.html, for example given: https://github.com/TristanCacqueray/dhall-zuul/blob/master/operator/examples/zuul-cr.yaml the operator applies: https://github.com/TristanCacqueray/dhall-zuul/blob/master/deployments/cr-k8s.yaml23:58

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