Monday, 2024-05-20

@anoop-jose:matrix.orgHi guys, https://zuul-ci.org/docs/zuul/8.3.1/tutorials/quick-start.html04:47
Is it possible to set a nodepool with aws (minimum 2 ECs) with this quick installation so that I can run pipelines in parallel?
@anoop-jose:matrix.orgHi guys, https://zuul-ci.org/docs/zuul/8.3.1/tutorials/quick-start.html04:49
Is it possible to set a nodepool with aws (minimum 2 ECs) with this quick installation so that I can run pipelines in parallel?
@anoop-jose:matrix.orgwhenever I setup a zuul platform using https://acmegating.com/acme-enterprise-zuul/#start with gerrit or github as the code review system, the code push is never invoking the check/gate pipelines. are there any additional stuffs that I need to take care of? I can assure that the details are rightly given in the acme generator05:04
@anoop-jose:matrix.org```06:34
$ sudo docker container logs zuul-tutorial_gerritconfig_1 | tail -10
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that
the implicit localhost does not match 'all'
TASK [Copy new All-Projects config into place] *********************************
ok: [localhost]
TASK [Update All-Projects config in Gerrit] ************************************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "set -e\ngit config user.email 'admin@example.com'\ngit commit -a -m 'update config'\ngit push http://admin:secret@gerrit:8080/All-Projects +HEAD:refs/meta/config\n", "delta": "0:00:00.010056", "end": "2024-05-20 05:27:31.352351", "msg": "non-zero return code", "rc": 1, "start": "2024-05-20 05:27:31.342295", "stderr": "", "stderr_lines": [], "stdout": "Not currently on any branch.\nnothing to commit, working tree clean", "stdout_lines": ["Not currently on any branch.", "nothing to commit, working tree clean"]}
PLAY RECAP *********************************************************************
localhost : ok=12 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
```
```
~/zuul/doc/source/examples$ sudo docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
a1f6ea9d07b7 quay.io/zuul-ci/zuul-web "/usr/bin/dumb-init …" 17 minutes ago Up 17 minutes 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp
zuul-tutorial_web_1
323e1e1c4655 quay.io/zuul-ci/zuul-executor "/usr/bin/dumb-init …" 17 minutes ago Up 17 minutes
zuul-tutorial_executor_1
e43ccc760021 quay.io/zuul-ci/zuul-scheduler "/usr/bin/dumb-init …" 17 minutes ago Up 2 minutes
zuul-tutorial_scheduler_1
bedcd137c5eb quay.io/zuul-ci/nodepool-launcher "/usr/bin/dumb-init …" 17 minutes ago Up 17 minutes 0.0.0.0:8005->8005/tcp, :::8005->8005/tcp
zuul-tutorial_launcher_1
4d1810cbb11f quay.io/zuul-ci/zuul-executor "/usr/bin/dumb-init …" 17 minutes ago Exited (2) About a minute ago
zuul-tutorial_gerritconfig_1
7049b485f061 gerritcodereview/gerrit "/entrypoint.sh" 17 minutes ago Up 17 minutes 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:29418->29418/tcp, :::29418->29418/tcp zuul-tutorial_gerrit_1
c8064a3ac02d zuul-tutorial_logs "httpd-foreground" 17 minutes ago Up 17 minutes 0.0.0.0:8000->80/tcp, :::8000->80/tcp
zuul-tutorial_logs_1
c90aa50bb1bb zuul-tutorial_node "/usr/sbin/sshd -D" 17 minutes ago Up 17 minutes 22/tcp
zuul-tutorial_node_1
e75882e95567 zookeeper "/docker-entrypoint.…" 17 minutes ago Up 17 minutes 2181/tcp, 2888/tcp, 3888/tcp, 8080/tcp
zuul-tutorial_zk_1
8b6cc654b69a mariadb "docker-entrypoint.s…" 17 minutes ago Up 17 minutes 3306/tcp
zuul-tutorial_mysql_1
```
Also why the gerritconfig docker executor is getting failed?
@anoop-jose:matrix.orgThis was just a normal quick installation done based on the zuul tutorial06:35
@kiransurya:matrix.org> <@anoop-jose:matrix.org> ```06:46
> $ sudo docker container logs zuul-tutorial_gerritconfig_1 | tail -10
> [WARNING]: No inventory was parsed, only implicit localhost is available
> [WARNING]: provided hosts list is empty, only localhost is available. Note that
> the implicit localhost does not match 'all'
> [WARNING]: No inventory was parsed, only implicit localhost is available
> [WARNING]: provided hosts list is empty, only localhost is available. Note that
> the implicit localhost does not match 'all'
>
> TASK [Copy new All-Projects config into place] *********************************
> ok: [localhost]
>
> TASK [Update All-Projects config in Gerrit] ************************************
> fatal: [localhost]: FAILED! => {"changed": true, "cmd": "set -e\ngit config user.email 'admin@example.com'\ngit commit -a -m 'update config'\ngit push http://admin:secret@gerrit:8080/All-Projects +HEAD:refs/meta/config\n", "delta": "0:00:00.010056", "end": "2024-05-20 05:27:31.352351", "msg": "non-zero return code", "rc": 1, "start": "2024-05-20 05:27:31.342295", "stderr": "", "stderr_lines": [], "stdout": "Not currently on any branch.\nnothing to commit, working tree clean", "stdout_lines": ["Not currently on any branch.", "nothing to commit, working tree clean"]}
>
> PLAY RECAP *********************************************************************
> localhost : ok=12 changed=3 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
> ```
>
> ```
> ~/zuul/doc/source/examples$ sudo docker container ls -a
> CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
> NAMES
> a1f6ea9d07b7 quay.io/zuul-ci/zuul-web "/usr/bin/dumb-init …" 17 minutes ago Up 17 minutes 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp
> zuul-tutorial_web_1
> 323e1e1c4655 quay.io/zuul-ci/zuul-executor "/usr/bin/dumb-init …" 17 minutes ago Up 17 minutes
> zuul-tutorial_executor_1
> e43ccc760021 quay.io/zuul-ci/zuul-scheduler "/usr/bin/dumb-init …" 17 minutes ago Up 2 minutes
> zuul-tutorial_scheduler_1
> bedcd137c5eb quay.io/zuul-ci/nodepool-launcher "/usr/bin/dumb-init …" 17 minutes ago Up 17 minutes 0.0.0.0:8005->8005/tcp, :::8005->8005/tcp
> zuul-tutorial_launcher_1
> 4d1810cbb11f quay.io/zuul-ci/zuul-executor "/usr/bin/dumb-init …" 17 minutes ago Exited (2) About a minute ago
> zuul-tutorial_gerritconfig_1
> 7049b485f061 gerritcodereview/gerrit "/entrypoint.sh" 17 minutes ago Up 17 minutes 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp, 0.0.0.0:29418->29418/tcp, :::29418->29418/tcp zuul-tutorial_gerrit_1
> c8064a3ac02d zuul-tutorial_logs "httpd-foreground" 17 minutes ago Up 17 minutes 0.0.0.0:8000->80/tcp, :::8000->80/tcp
> zuul-tutorial_logs_1
> c90aa50bb1bb zuul-tutorial_node "/usr/sbin/sshd -D" 17 minutes ago Up 17 minutes 22/tcp
> zuul-tutorial_node_1
> e75882e95567 zookeeper "/docker-entrypoint.…" 17 minutes ago Up 17 minutes 2181/tcp, 2888/tcp, 3888/tcp, 8080/tcp
> zuul-tutorial_zk_1
> 8b6cc654b69a mariadb "docker-entrypoint.s…" 17 minutes ago Up 17 minutes 3306/tcp
> zuul-tutorial_mysql_1
> ```
>
> Also why the gerritconfig docker executor is getting failed?
Thank you @anoop-jose:matrix.org for posting the scenario here. Even I'm facing the same issue of docker container getting exited frequently. The version I used was 8.3.1. Can anyone suggest a solution for this issue?
@jim:acmegating.comthe gerritconfig docker container is expected to exit; it only performs initial setup.  the zuul-executor is not expected to exit, you may want to check the logs there.13:11
@carlozermo:matrix.orgHello everyone,15:09
I have deployed Zuul 6.4 on my cluster and created a new nodepool that uses Azure as a provider to create new VMs. What I am trying to achieve is to ensure that each time a new VM is created, it has a specific and identifiable name based on the family size + a final suffix to distinguish them. Instead, what I am getting is a name with a "np" prefix followed by a pseudorandom number, like np00000XXXXX.
Below is an example of the nodepool definition:
providers:
- name: azure-dynamic-vm
max-concurrency: 1
driver: azure
zuul-public-key: <value_zuul-public-key>
resource-group-location: <value_resource-group-location>
location: <value_location>
resource-group: <value_resource-group>
auth-path: <value_auth-path>
subnet-id: <value_subnet-id>
public-ipv4: <value_public_ipv4>
pools:
- name: dynamic-vm-16-core-pool
max-servers: 15
labels:
- name: dynamic-vm-16-core
cloud-image: <value_cloud_image>
hardware-profile:
vm-size: Standard_E16s_v3
tags:
department: <value_department>
purpose: CI/CD
platform: nodepool
size: 16 cores, 128GB RAM
os: ubuntu_focal
img: v014
What am I doing wrong?
@carlozermo:matrix.org * Hello everyone,15:10
I have deployed Zuul 6.4 on my cluster and created a new nodepool that uses Azure as a provider to create new VMs. What I am trying to achieve is to ensure that each time a new VM is created, it has a specific and identifiable name based on the family size + a final suffix to distinguish them. Instead, what I am getting is a name with a "np" prefix followed by a pseudorandom number, like np00000XXXXX.
Below is an example of the nodepool definition:
providers:
- name: azure-dynamic-vm
max-concurrency: 1
driver: azure
zuul-public-key: \<value\_zuul-public-key>
resource-group-location: \<value\_resource-group-location>
location: \<value\_location>
resource-group: \<value\_resource-group>
auth-path: \<value\_auth-path>
subnet-id: \<value\_subnet-id>
public-ipv4: \<value\_public\_ipv4>
pools:
- name: dynamic-vm-16-core-pool
max-servers: 15
labels:
- name: dynamic-vm-16-core
cloud-image: \<value\_cloud\_image>
hardware-profile:
vm-size: Standard\_E16s\_v3
tags:
department: \<value\_department>
purpose: CI/CD
platform: nodepool
size: 16 cores, 128GB RAM
os: ubuntu\_focal
img: v014
What am I doing wrong?
@jim:acmegating.comCarlo Zermo: 2 things: 1) setting the name is not supported; 2) that's a very old version of zuul.15:30
@carlozermo:matrix.org> <@jim:acmegating.com> Carlo Zermo: 2 things: 1) setting the name is not supported; 2) that's a very old version of zuul.15:37
Thank you corvus for your response. I know I’m using a very old version, and I plan to upgrade to Zuul 9.5 as soon as possible to move to the latest version of Zuul in a couple of months. Do you know if it is possible to set the name in the latest version of Zuul?
@jim:acmegating.comit is not possible, and won't be.  there are external constraints on the hostname that requires nodepool to set it like that.15:39
@carlozermo:matrix.orgYou mean, some constraints from the Microsoft Azure API that deny the possibility to set a custom name?Did I understand correctly?15:43
@jim:acmegating.comnot necessarily azure, but some clouds place a constraint there; and some operating systems.15:50
@carlozermo:matrix.orgGot it! Thanks again!16:02
@carlozermo:matrix.orgOne last question corvus , just because I need to explain it to my team. Is there any documentation that explains why it's not possible to set the name? 16:09
I mean, why are you so sure that is not possible to do it? (again, it's just to be clear with my team)
@jim:acmegating.comCarlo Zermo: there's no documentation that says that it is16:10
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 920059: Abort pipeline processing for pending reconfigs earlier https://review.opendev.org/c/zuul/zuul/+/92005918:05
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 920059: Abort pipeline processing for pending reconfigs earlier https://review.opendev.org/c/zuul/zuul/+/92005918:11
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:18:52
- [zuul/zuul] 919903: Perform fewer gerrit queries for changes submitted-together https://review.opendev.org/c/zuul/zuul/+/919903
- [zuul/zuul] 919904: Allow early configuration of fake gerrit in tests https://review.opendev.org/c/zuul/zuul/+/919904
- [zuul/zuul] 919905: Stop using submitted-together for submitWholeTopic https://review.opendev.org/c/zuul/zuul/+/919905
- [zuul/zuul] 919906: Expand the query cache scope to encompass multiple events https://review.opendev.org/c/zuul/zuul/+/919906
- [zuul/zuul] 919907: Make the query cache continuous https://review.opendev.org/c/zuul/zuul/+/919907
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 915516: Add support for excluding locked branches https://review.opendev.org/c/zuul/zuul/+/91551620:01
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 915091: Add --disable-pipelines option https://review.opendev.org/c/zuul/zuul/+/91509120:06
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul] 897859: Add image debug build option https://review.opendev.org/c/zuul/zuul/+/89785920:12
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 901345: Fix some API endpoints with special chars https://review.opendev.org/c/zuul/zuul/+/90134520:14

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