Wednesday, 2022-04-06

-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 836616: WIP: Debug log for unexpected skip https://review.opendev.org/c/zuul/zuul/+/83661607:33
-@gerrit:opendev.org- Andy Ladjadj proposed: [zuul/zuul-jobs] 836744: fix(packer): prevent task failure when packer_variables is not defined https://review.opendev.org/c/zuul/zuul-jobs/+/83674408:48
-@gerrit:opendev.org- Zuul merged on behalf of Clark Boylan: [zuul/zuul] 836108: Handle greedy project name regexes https://review.opendev.org/c/zuul/zuul/+/83610809:24
-@gerrit:opendev.org- Andy Ladjadj proposed: [zuul/zuul-jobs] 836744: fix(packer): prevent task failure when packer_variables is not defined https://review.opendev.org/c/zuul/zuul-jobs/+/83674409:27
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 836616: WIP: Debug log for unexpected skip https://review.opendev.org/c/zuul/zuul/+/83661609:33
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 833001: Allow using 'unique' workspace scheme in jobs https://review.opendev.org/c/zuul/zuul/+/83300111:11
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 833001: Allow using 'unique' workspace scheme in jobs https://review.opendev.org/c/zuul/zuul/+/83300113:43
-@gerrit:opendev.org- Albin Vass marked as active: [zuul/zuul] 833001: Allow using 'unique' workspace scheme in jobs https://review.opendev.org/c/zuul/zuul/+/83300113:45
@hanson76:matrix.orgHi,14:44
I just reported a bugreport (https://storyboard.openstack.org/#!/story/2009974) on Nodepool.
The "bug" is that the Kubernetes driver in Nodepool is using an api that has been removed in K8s 1.22
The affected api is rbac.authorization.k8s.io/v1beta1.
It was deprecated in 1.8 and replaced by rbac.authorization.k8s.io/v1.
We noticed this when we upgraded our test k8s cluster today.
@clarkb:matrix.orgLooks like nodepool testing pins minikube to version 1.22.0 as 1.23.0 broke create_namespaced_role? Do minikube versions align with k8s versions? If so I wonder why testing doesn't catch that15:09
@clarkb:matrix.orgDoes anyone know why the graphs at https://grafana.opendev.org/d/94891e7b01/resource-usage-by-tenants-and-projects?orgId=1 stopped on March 25? I suspect that the paths for stats that zuul publishes may have changed?15:09
@jim:acmegating.com> <@clarkb:matrix.org> Does anyone know why the graphs at https://grafana.opendev.org/d/94891e7b01/resource-usage-by-tenants-and-projects?orgId=1 stopped on March 25? I suspect that the paths for stats that zuul publishes may have changed?15:16
possibly this change: https://zuul-ci.org/docs/zuul/latest/releasenotes.html#relnotes-5-2-0-upgrade-notes
@clarkb:matrix.orgI should learn to read the release notes. Deploying from master ish has meant they aren't always useful, but a good first check anyway. Thank you15:21
@clarkb:matrix.orgcorvus: is_use is the snapshot value for current usage?15:24
@jim:acmegating.comClark: yeah, the other includes ready nodes allocated to the tenant.  depending on exactly what you're looking for, the new stats may be of interest.15:25
@clarkb:matrix.orgI guess the values we were using before are now the in_use values so using the in_use values would preserve behavior15:26
@jim:acmegating.comyep15:26
@clarkb:matrix.org> <@clarkb:matrix.org> Looks like nodepool testing pins minikube to version 1.22.0 as 1.23.0 broke create_namespaced_role? Do minikube versions align with k8s versions? If so I wonder why testing doesn't catch that16:27
Reading the minikube logs it appears to install k8s 1.21.2 which explains that
@clarkb:matrix.orgI guess the work that would need to be done is updating the minikube version and then fixing the fallout. I can push up a change that bumps the minikube version, but I doubt I'm the best person to fix the problems that show up16:27
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/nodepool] 836860: Unpin minikube in testing https://review.opendev.org/c/zuul/nodepool/+/83686016:31
@clarkb:matrix.orgtristanC: ^ you may find that interesting16:31
@clarkb:matrix.org836860 installs k8s 1.23.3 and as expected the test fails due to waiting for ready nodes16:54
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/nodepool] 836860: Support K8s 1.22.0 and newer. https://review.opendev.org/c/zuul/nodepool/+/83686017:01
@clarkb:matrix.orgHanson: ^ I'm not sure if that is a complete fix. Feel free to update the change as necessary if you like. I don't have a kubernetes to test with beyond the functional test job that zuul will run for us17:03
-@gerrit:opendev.org- Zuul merged on behalf of Ian Wienand: [zuul/nodepool] 836263: Docker image: use unstable debootstrap https://review.opendev.org/c/zuul/nodepool/+/83626317:21
@clarkb:matrix.orgoh thats neat. Even when you set the specific version the client is using the beta version. I think this means we actually need to update the openshift client?17:22
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/nodepool] 836860: Support K8s 1.22.0 and newer. https://review.opendev.org/c/zuul/nodepool/+/83686017:27
@clarkb:matrix.orgbased on how things have historically gone with updating the openshift and kubernetes client libraries I expect ^ to explode spectacularly17:27
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/nodepool] 836860: Support K8s 1.22.0 and newer. https://review.opendev.org/c/zuul/nodepool/+/83686017:46
@clarkb:matrix.orgits interesting that we set the version in the manifest and also the version of the client is part of the class name17:46
@clarkb:matrix.orgoh wow that passed the k8s test. It might just be that simple?18:00
-@gerrit:opendev.org- Clark Boylan proposed: [zuul/nodepool] 836875: Update openshift dependency https://review.opendev.org/c/zuul/nodepool/+/83687518:08
-@gerrit:opendev.org- Mohammed Naser proposed:18:54
- [zuul/zuul-registry] 835772: tests: Add regression test for manifests https://review.opendev.org/c/zuul/zuul-registry/+/835772
- [zuul/zuul-registry] 835773: Fix "docker manifest create" issue https://review.opendev.org/c/zuul/zuul-registry/+/835773
@caiquemello:matrix.orgHi guys!19:05
I'm having some issues trying to upload logs to a S3 Bucket using the role upload-logs-s3[0]. I've passed access_key_id, secret_access_key, plublic-endpoint and bucket_name to the role.
The errors messages are:
WARNING:urllib3.connectionpool:Connection pool is full, discarding connection: s3.us-east-1.amazonaws.com
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the PutObject operation: Access Denied
I've tested manually the credentials and the others parameters uploading a file to the same bucket using aws CLI, and it works just fine. Witch I believe shows that my bucket policies are fine.
[0] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/upload-logs-s3/tasks/main.yaml#L23
boto3: https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/upload-logs-base/library/zuul_s3_upload.py
@caiquemello:matrix.orgDo you guys have any ideia to help me see a little further?19:08
@clarkb:matrix.orgcaiquemello: one semi common thing is a stray newline at the end of your secret that gets there during the encoding step. Might want to double check that isn't a problem19:08
@caiquemello:matrix.org> <@clarkb:matrix.org> caiquemello: one semi common thing is a stray newline at the end of your secret that gets there during the encoding step. Might want to double check that isn't a problem19:14
Thank you Clark, but I dont know if i got your point. By secret, do you mean using secrets to enconding the credentials? if so, I'm not using it right now, cause I'm runnig it in a test env.
@clarkb:matrix.orgyes the encoding of the credentials. I guess we can rule that out hten19:16
@caiquemello:matrix.orgyeap19:16
@clarkb:matrix.orgI don't have any other ideas. We don't use s3 so I don't have much exposure to it.19:22
@jim:acmegating.comcaiquemello: here's an idea for more debugging: you can invoke the log upload script as a cli: https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/upload-logs-base/library/zuul_s3_upload.py19:23
@jim:acmegating.comthere are no instructions for setting up a test env and executing that, but if you can work through the pre-requisites, that may help you discover the problem19:24
@jim:acmegating.com(alternatively, you can write a simple ansible playbook that invokes the role and run that locally)19:24
@caiquemello:matrix.orgthx corvus I'm going to do some tests here19:30
@jpew:matrix.orgI;m running nodepool-builder in kubernetes, and I get DIB images stuck in the `building` state when the pod restarts while building. Is there a way to clean these up, or will they timeout somehow eventually?19:34
@mnaser:matrix.orgjpew: are you running /var/lib/nodepool as a persistent volume?19:34
@jpew:matrix.orgmnaser: No19:34
@mnaser:matrix.orgi _think_ that might be part of the problem me thinks19:35
-@gerrit:opendev.org- Mohammed Naser proposed:19:37
- [zuul/zuul-registry] 835772: tests: Add regression test for manifests https://review.opendev.org/c/zuul/zuul-registry/+/835772
- [zuul/zuul-registry] 835773: Fix "docker manifest create" issue https://review.opendev.org/c/zuul/zuul-registry/+/835773
@clarkb:matrix.orghrm our builders are restarted whenever new images a built and they don't leak building images in zookeeper19:38
@clarkb:matrix.orgIt is possible that they are looking for state t ocleanup like any intermediate artifacts though19:38
@jpew:matrix.org@Clark possibly because I'm using a deployment instead of a statefulset (so the hostname changes each time)?19:40
@clarkb:matrix.orgoh yes I think that is it19:40
@mnaser:matrix.orgah yes, that will also be an issue19:40
@clarkb:matrix.orgor something along those lines. I think it may use a hash now insead of th ehostname directly and that may be stored on disk19:40
@clarkb:matrix.orgits possible one or the other or both is necessary to address it19:40
@mnaser:matrix.orgDoes anyone know if zuul-registry is an OCI-complaint registry?  i'm thinking of trying to upload Helm charts into zuul-registry but wondering if anyone has heard of any experience around that?  https://helm.sh/docs/topics/registries/19:41
@clarkb:matrix.orgbut basically a builder will only clean up builds it knows belong to it that are not running. Other builders will ignore them19:41
@jpew:matrix.orgAh, makes sense19:41
@jpew:matrix.orgSo, how do I manually clean up the stuck ones then?19:41
@clarkb:matrix.orgjpew: you can use zk-shell to delete the entres in the zk db tree19:41
@jpew:matrix.orgClark: Just to check before I break anything, does `delete /nodepool/images/ubuntu-bionic/builds/0000000001` look correct?19:57
@clarkb:matrix.orgjpew: yes I think so. If you get the contents of that there may be some info in json about paths to stuff20:01
@clarkb:matrix.orgThough it may just construct that from the image name and build number that is encoded in the zk path20:01
@jpew:matrix.orgYa, there's no files or other state to clean up (the pods are gone), it's just the zk stuff that's left over20:02
@clarkb:matrix.orgOh but the state of the build should be recorded20:02
@jpew:matrix.orgYep, I can see that20:02
@clarkb:matrix.orgBut ya I think if you get that entry it should say building in a json blob which is good indication it isn't a completed build20:02
-@gerrit:opendev.org- Mohammed Naser proposed: [zuul/zuul-registry] 836885: Add support for Helm charts https://review.opendev.org/c/zuul/zuul-registry/+/83688520:48
@mnaser:matrix.orgturns out it mostly works (tested locally) other than a small OCI-manifest related thing :)20:49
@mnaser:matrix.orgps Clark i took care of making this more dynamic here -- https://review.opendev.org/c/zuul/zuul-registry/+/835772/620:50
@clarkb:matrix.orgah needed a .stdout update. +2 again20:52
@mnaser:matrix.orgyes I made a little oopsie :)20:54
@andyladjadj:matrix.orgClark: 20:58
-@gerrit:opendev.org- Mohammed Naser proposed: [zuul/zuul-registry] 836885: Add support for Helm charts https://review.opendev.org/c/zuul/zuul-registry/+/83688521:00
-@gerrit:opendev.org- Mohammed Naser proposed: [zuul/zuul-registry] 836885: Add support for Helm charts https://review.opendev.org/c/zuul/zuul-registry/+/83688521:19
@mnaser:matrix.orgI'd appreciate feedback on that Helm chart support patch, "localhost" == "not ssl" for some reason according to Helm21:31

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!