Friday, 2022-03-18

@bodgix:matrix.orgHello folks. I have a zuul job where I want to create a python script and then run it in a docker container by mounting it via -v.00:41
I've been struggling with finding the correct directory on the zuul executor.
First I tried simply /tmp . Creating the script works but later when I try to open the script inside the container, I'm getting a Permission denied 13 even when I run the container as root.
Later I tried:
{{ zuul.executor.work_root }}/tests
There was an issue creating /var/lib/zuul as requested: [Errno 13] Permission denied: b'/var/lib/zuul'
And
{{ ansible_user_dir }}/zuul-output/tests
Failed to get information on remote file (/home/cloud-user/zuul-output/tests/test.py): Permission denied
The 2nd error comes from a copy module which I use with the "content" attribute to deploy the script.
Since /tmp doesn't seem to work for my docker use case (I'm guessing because of SELinux??), is there a standard location for zuul jobs to use as a tmp dir which will work with docker?
@tony-ang:matrix.orgI have a question again.05:54
I don't know where to put these configuration information such as Trigger, pipelines & Tenant Configuration.
Can I set configuration information in the zuul.conf file?
Or do they have separate file names for each?
@fungicide:matrix.orgTony Ang: the zuul services (including the scheduler) are configured with a service configuration file in ini format, usually /etc/zuul/zuul.conf, and in that tile's [scheduler] section you'll have a line like tenant_config=/etc/zuul/main.yaml which points the scheduler service to the tenant configuration in yaml format (or to an executable script which generates the tenant configuration dynamically). these are files which need to be locally installed in the same system where the scheduler service is running12:02
@fungicide:matrix.orgpipelines and their trigger information, as well as project definitions, job definitions and so on, are all expected to be in git repositories zuul has indexed, so those don't normally get deployed onto the scheduler system itself12:04
@fungicide:matrix.orginstead they'll be in zuul.yaml or .zuul.yaml files in a git repository, or can be split up into multiple yaml files inside a zuul.d or .zuul.d directory in a git repository. they can also be spread across multiple git repositories12:06
@fungicide:matrix.orgthe service configuration (zuul.conf) is documented here: https://zuul-ci.org/docs/zuul/latest/configuration.html12:11
@fungicide:matrix.orgthe tenant configuration (often named main.yaml) is documented here: https://zuul-ci.org/docs/zuul/latest/tenants.html12:11
@fungicide:matrix.orgproject configuration (things loaded from zuul.yaml or zuul.d/*.yaml in indexed git repositories, including pipeline definitions) is documented here: https://zuul-ci.org/docs/zuul/latest/project-config.html12:13
-@gerrit:opendev.org- Dr. Jens Harbott proposed on behalf of Ian Wienand: [zuul/nodepool] 826541: Revert "Remove openstacksdk from siblings job" https://review.opendev.org/c/zuul/nodepool/+/82654112:47
-@gerrit:opendev.org- Michal Nasiadka proposed on behalf of Tobias Henkel: [zuul/zuul] 757452: WIP: Support ansible 2.10 https://review.opendev.org/c/zuul/zuul/+/75745213:30
-@gerrit:opendev.org- Zuul merged on behalf of Andy Ladjadj: [zuul/zuul] 829033: Pin elasticsearch to <8.0.0 https://review.opendev.org/c/zuul/zuul/+/82903313:56
-@gerrit:opendev.org- Michal Nasiadka proposed on behalf of Tobias Henkel: [zuul/zuul] 757452: WIP: Support ansible 2.10 https://review.opendev.org/c/zuul/zuul/+/75745214:12
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834324: Create remote ref when it does not exist https://review.opendev.org/c/zuul/zuul/+/83432415:01
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834324: Create remote ref when it does not exist https://review.opendev.org/c/zuul/zuul/+/83432415:05
-@gerrit:opendev.org- Matthieu Huin https://matrix.to/#/@mhuin:matrix.org proposed: [zuul/zuul] 777629: Spec: external permissions for the REST admin API https://review.opendev.org/c/zuul/zuul/+/77762915:13
@mhuin:matrix.orgThere was some interest for this ^ at some point, but this might be too cumbersome to implement - I've just rebased the spec to leave the discussion open15:14
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834324: Create remote ref when it does not exist https://review.opendev.org/c/zuul/zuul/+/83432415:19
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834324: Create remote ref when it does not exist https://review.opendev.org/c/zuul/zuul/+/83432415:28
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834324: Create remote ref when it does not exist https://review.opendev.org/c/zuul/zuul/+/83432415:34
@gobi_g:matrix.orgHi,15:40
I'm facing the following error:
"waiting on logger. Log Stream did not terminate."
Any idea about this?
@gobi_g:matrix.orgBecause of this i can't able to view the logs while the jobs are executing.15:44
@clarkb:matrix.orgkarthi: it means you don't have the zuul logger daemon running or you cannot reach it via the network. It listens on port 19885 iirc so that needs to be open on your firewall if you have one15:45
@clarkb:matrix.organd then to start it I think there may be a role to run in your pre-run playbook. Let me see15:45
@gobi_g:matrix.orgZuul_console I have added it in my playbook.15:46
@clarkb:matrix.orgstart-zuul-console is the role15:46
@clarkb:matrix.orgin that case double check it is accessible via port 1988515:47
-@gerrit:opendev.org- Zuul merged on behalf of Simon Westphahl: [zuul/nodepool] 834170: Prioritize requests with labels that can be served https://review.opendev.org/c/zuul/nodepool/+/83417015:47
@gobi_g:matrix.orgI have one 2 nodes. In one zuul server running. On that node I can able to view logs. On the other I'm facing this problem.15:47
@gobi_g:matrix.org* I have  2 nodes. In one zuul server running. On that node I can able to view logs. On the other I'm facing this problem.15:47
@gobi_g:matrix.orgOkay. I'll check whether I can able to access the node with port 19885. I hope i have to check in this zuul-logs service right or from executor?15:52
@clarkb:matrix.orgkarthi: the zuul logs service is the permanent storage for logs I think and is unrelated to the live stream. You need access to it from the executor/fingergw iirc15:53
@gobi_g:matrix.org Clark: Okay. Thanks for the details🙂15:55
@avass:vassast.orgClark: it also happens when you run async tasks (which is causing 10sec delay for the task to finish)16:19
@avass:vassast.orghttps://review.opendev.org/c/zuul/zuul/+/83335316:20
@avass:vassast.orgAnd another bug when "creates" is used with command/shell because the logfile is never creater16:22
@avass:vassast.org* And another bug when "creates" is used with command/shell because the logfile is never created16:41
-@gerrit:opendev.org- Guillaume Chauvel proposed:23:31
- [zuul/zuul] 732067: tutorial: Add "gate your first patch" https://review.opendev.org/c/zuul/zuul/+/732067
- [zuul/zuul] 732068: tutorial: Add "Use zuul jobs" https://review.opendev.org/c/zuul/zuul/+/732068
- [zuul/zuul] 732069: tutorial: Add "gate pipeline" https://review.opendev.org/c/zuul/zuul/+/732069
- [zuul/zuul] 732070: tutorial: Add "job secrets" https://review.opendev.org/c/zuul/zuul/+/732070
- [zuul/zuul] 732071: tutorial: Add "job dependencies" https://review.opendev.org/c/zuul/zuul/+/732071
- [zuul/zuul] 737656: Rename quick-start to zuul-tutorial-quick-start https://review.opendev.org/c/zuul/zuul/+/737656
-@gerrit:opendev.org- Guillaume Chauvel proposed:23:37
- [zuul/zuul] 735475: Fix zuul_run_command ret when command is not found https://review.opendev.org/c/zuul/zuul/+/735475
- [zuul/zuul] 770817: Fix zuul_stream test setup https://review.opendev.org/c/zuul/zuul/+/770817
- [zuul/zuul] 735476: zuul_stream: close streamer when task is skipped https://review.opendev.org/c/zuul/zuul/+/735476
- [zuul/zuul] 770818: zuul_stream: Improve chdir error management https://review.opendev.org/c/zuul/zuul/+/770818

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