Friday, 2023-04-07

@jjbeckman:matrix.org> <@clarkb:matrix.org> for example if you wanted to push something to github you would use the project ssh keys. This is completely separate from accessing resources provided by nodepool06:36
I see! Thank you for clearing up what the project private keys are used for.
@jjbeckman:matrix.orgI've yet run into another issue and would appreciated any advice :(06:43
In my Kubernetes/Github based Zuul deployment, when trying to execute a simple job that looks like this:
```
- hosts: all
tasks:
- name: Run unittests
shell:
cmd: "pwd; ls -la; sleep 30; python -m unittest -v hello"
chdir: "{{ zuul.project.src_dir }}"
```
The build fails with this.
```
Unable to change directory before execution: [Errno 2] No such file or directory: b'src/github.com/{redacted}/{redacted}'
```
Inspecting the node pod, it appears that the source code is not copied over from the executor.
Is my assumption that the source code ought to be copied over from the `executor` to the node, and that this somehow being skipped, fails the build, correct?
If so, any advice on how I can solve this issue?
@iwienand:matrix.orgjjbeckman: do you have a base job that is running something like https://opendev.org/zuul/zuul-jobs/src/commit/7755ef1b8d4d7803c9ad330a1bd9599715e06c60/roles/prepare-workspace?07:26
@iwienand:matrix.orgit's much more complex but you can see the opendev base job @ https://opendev.org/opendev/base-jobs/src/branch/master/zuul.d/jobs.yaml#L2507:28
@iwienand:matrix.orghttps://opendev.org/opendev/base-jobs/src/commit/dbd7b981dbcab3607e9614fbc3a9d5a0d30af7d6/playbooks/base/pre.yaml#L57 is where we setup repos07:29
@iwienand:matrix.orgreally you can get a good idea by looking at the "console" tab of any job reported on review.opendev.org.  just pull down the first steps and you can see all the common pre jobs07:29
@jjbeckman:matrix.org> <@iwienand:matrix.org> really you can get a good idea by looking at the "console" tab of any job reported on review.opendev.org.  just pull down the first steps and you can see all the common pre jobs07:40
Thanks for all the good advice, we will go through the "console" tab of all the builds there, and try to find one that sets up repos in Kubrernetes clusters.
-@gerrit:opendev.org- Christian Mueller proposed: [zuul/nodepool] 865531: Amazon EC2 Spot support https://review.opendev.org/c/zuul/nodepool/+/86553109:40
@fungicide:matrix.org> <@jjbeckman:matrix.org> Thanks for all the good advice, we will go through the "console" tab of all the builds there, and try to find one that sets up repos in Kubrernetes clusters.15:34
i don't think you'll find any. we don't have kubernetes clusters in opendev
@fungicide:matrix.orgthere may be a kubernetes-specific equivalent of the prepare-workspace role, i'll check the zuul-jobs documentation15:35
@clarkb:matrix.orgtristanC: and/or tobiash may have pointers since I think they both run jobs in k8s resources15:37
@fungicide:matrix.orglooking at the descriptions for the several prepare-workspace* roles at https://zuul-ci.org/docs/zuul-jobs/general-roles.html#role-prepare-workspace i get the impression that ansible's synchronize module is supposed to magically use kubectl?15:41
@fungicide:matrix.orgin which case the generic prepare-workspace role could "just work"15:42
@fungicide:matrix.orgbut i have pretty much zero experience with kubernetes, so hopefully someone who does can confirm15:42
@fungicide:matrix.orgit looks like the prepare-workspace-git variant is for using git command-line operations instead of the synchronize module, and prepare-workspace-openshift is for overriding kubectl detection in order to force rsync to be used15:43
-@gerrit:opendev.org- Zuul merged on behalf of Clark Boylan: [opendev/zone-zuul-ci.org] 879782: Update zuul dns records to the new static02 server https://review.opendev.org/c/opendev/zone-zuul-ci.org/+/87978216:01
-@gerrit:opendev.org- Zuul merged on behalf of Clark Boylan: [opendev/zone-gating.dev] 879784: Point gating.dev at the new static02 server https://review.opendev.org/c/opendev/zone-gating.dev/+/87978416:55

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