@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 nodepool | 06:36 |
---|---|---|
I see! Thank you for clearing up what the project private keys are used for. | ||
@jjbeckman:matrix.org | I'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.org | jjbeckman: 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.org | it'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#L25 | 07:28 |
@iwienand:matrix.org | https://opendev.org/opendev/base-jobs/src/commit/dbd7b981dbcab3607e9614fbc3a9d5a0d30af7d6/playbooks/base/pre.yaml#L57 is where we setup repos | 07:29 |
@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 jobs | 07: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 jobs | 07: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/+/865531 | 09: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.org | there may be a kubernetes-specific equivalent of the prepare-workspace role, i'll check the zuul-jobs documentation | 15:35 |
@clarkb:matrix.org | tristanC: and/or tobiash may have pointers since I think they both run jobs in k8s resources | 15:37 |
@fungicide:matrix.org | looking 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.org | in which case the generic prepare-workspace role could "just work" | 15:42 |
@fungicide:matrix.org | but i have pretty much zero experience with kubernetes, so hopefully someone who does can confirm | 15:42 |
@fungicide:matrix.org | it 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 used | 15: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/+/879782 | 16: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/+/879784 | 16:55 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!