Thursday, 2022-03-31

@g_gobi:matrix.orgHi Guys,04:08
I'm facing issue in zuul like scheduler pick the changes and enqueue it but it didn't trigger the job. It says no job configured. In zuul dashboard I can able to view the jobs configured for the pipeline.
Here added the logs for ref
@g_gobi:matrix.org * Hi Guys,04:09
I'm facing issue in zuul like scheduler pick the changes and enqueue it but it didn't trigger the job. It says no job configured. In zuul dashboard I can able to view the jobs configured for the pipeline.
Here added the logs for reference. Thanks.
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485706:03
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485707:00
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485708:04
@sean-k-mooney:matrix.orgfungi:  i got https://github.com/SeanMooney/ansible_role_devstack working. its now reusing the zuul-jobs roles, devstack roles and openstack-zuul-jobs roles repos to deploy a 3 node devstack without zuul/nodepool using molecure to spin up vm via vagrant/libvirt09:33
@sean-k-mooney:matrix.orgi required surprisingly little hacks https://github.com/SeanMooney/ansible_role_devstack/blob/master/ansible/roles/devstack_common/tasks/main.yml#L4-L1209:34
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485711:09
@tibeer:matrix.orgHi, i'd like to ask if there is a way to get the secrets defined in GItHub and make them available as a secret for a job.11:28
@avass:vassast.orgTim Beermann: I don't think there's any built-in support in zuul to do that, but you could easily write a role you can use that fetches secrets from github11:31
@tibeer:matrix.orgAlbin Vass: Thanks for the hint! I'll look into it.11:39
@d-j-j:matrix.orgHi, I'm trying to generate the docs locally. Made a venv based on doc/requirements.txt and ran "make html". It fails with different python import errors or various "not found" errors depending on what working dir I'm using (zuul root, doc, ...). Could you give me a hint how to call it correctly?11:42
@avass:vassast.orgd-j-j: docs for the zuul repo? I think it should be enought to run `tox -e docs` if you have tox installed11:42
@avass:vassast.orgthen tox should set up a venv correctly for you and build the docs11:43
@d-j-j:matrix.orgAlbin Vass: thanks! I didn't realize it's also a tox env.11:43
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485712:41
-@gerrit:opendev.org- Simon Westphahl proposed: [zuul/nodepool] 836013: Add support for label quota https://review.opendev.org/c/zuul/nodepool/+/83601313:03
@ekapoun1:matrix.orgHello, regarding circular dependencies - do they work across repos, or only within the same repo? We're testing the consequences of enabling it, but although we have a shared queue set up between two different repos, where both queue definitions say circular dependencies are allowed, Zuul says a dependency cycle is detected and gives a -1. Is there a tenant configuration to enable/disable circular dependencies as well?13:14
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485713:37
-@gerrit:opendev.org- Albin Vass proposed: [zuul/zuul] 836022: Document prometheus_port, prometheus_addr for all components https://review.opendev.org/c/zuul/zuul/+/83602214:02
-@gerrit:opendev.org- Dominik Jaeger proposed: [zuul/zuul] 836023: Add zuul/requirements.txt to docs env https://review.opendev.org/c/zuul/zuul/+/83602314:03
@d-j-j:matrix.org> <@gerrit:opendev.org> Dominik Jaeger proposed: [zuul/zuul] 836023: Add zuul/requirements.txt to docs env  https://review.opendev.org/c/zuul/zuul/+/83602314:05
I came across an import error when generating the docs. This solved it but not sure if it's the preferred solution...
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485714:08
-@gerrit:opendev.org- Dong Zhang proposed: [zuul/zuul] 834857: WIP: Fix bug in getting changed files https://review.opendev.org/c/zuul/zuul/+/83485714:54
@mnaser:matrix.orgI've got a few simple reviews I'd like to ask for reviews on:16:35
- https://review.opendev.org/c/zuul/zuul-jobs/+/835162
- https://review.opendev.org/c/zuul/zuul-jobs/+/835156
- https://review.opendev.org/c/zuul/zuul-registry/+/835772
- https://review.opendev.org/c/zuul/zuul-registry/+/835773
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 835918: Create missing db entries and retry https://review.opendev.org/c/zuul/zuul/+/83591817:28
@pearcetyler:matrix.orgZuul is occasionally getting stuck in an infinite loop of trying to start jobs, reaching hundreds+ retry attempts to start a job on default settings (Which should limit retry to 3 I thought?). Any idea what could cause this?20:09
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 836086: Fix implied branch matchers with regex chars https://review.opendev.org/c/zuul/zuul/+/83608620:54
@iwienand:matrix.orgTyler Pearce: oh, weird.  are you running with https://review.opendev.org/c/zuul/zuul/+/830840 ?  20:55
@avass:vassast.orgianw: that should only allow jobs to abort early without retrying20:58
@avass:vassast.orgTyler Pearce: usually that happens when an executor fails during setup (before the actual job starts) I'd check the executor logs for errors20:59
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed:21:03
- [zuul/zuul-helm] 835480: Add license file https://review.opendev.org/c/zuul/zuul-helm/+/835480
- [zuul/zuul-helm] 836090: Disable functional test job in gate https://review.opendev.org/c/zuul/zuul-helm/+/836090
@pearcetyler:matrix.orgI do see some errors `ERROR zuul.AnsibleJob:   ValueError: SHA b'05197b9de40446fdf516a6691a7950b8d479f450' could not be resolved, git returned: b'05197b9de40446fdf516a6691a7950b8d479f450 missing'` but it seems odd that the sha would go missing 🤔 What would cause this? It doesn't look like anything changed in the branch after starting the gate pipeline21:07
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul-helm] 836090: Disable functional test job in gate https://review.opendev.org/c/zuul/zuul-helm/+/83609021:09
@pearcetyler:matrix.orgZuul might be failing to merge things? `Could not fetch refs to merge from remote` is there a cap on the retries here or is it possible it's getting stuck here?21:12
```
# Return ABORTED so that we'll try again. At this point all of
# the refs we're trying to merge should be valid refs. If we
# can't fetch them, it should resolve itself.
self.log.exception("Could not fetch refs to merge from remote")
```
-@gerrit:opendev.org- James E. Blair https://matrix.to/#/@jim:acmegating.com proposed: [zuul/zuul] 835918: Create missing db entries and retry https://review.opendev.org/c/zuul/zuul/+/83591821:12
-@gerrit:opendev.org- Zuul merged on behalf of James E. Blair https://matrix.to/#/@jim:acmegating.com: [zuul/zuul-helm] 835480: Add license file https://review.opendev.org/c/zuul/zuul-helm/+/83548021:15
@vlotorev:matrix.orgHi, I have created a tenant with two gerrit connections and both have 'sandbox' project. Zuul doesn't start and ends with exception:22:13
```
scheduler_1 | projects_matching_regex = tenant.getProjectsByRegex(regex)
scheduler_1 | File "/usr/local/lib/python3.8/site-packages/zuul/model.py", line 5325, in getProjectsByRegex
scheduler_1 | raise Exception("Project name '%s' is ambiguous, "
scheduler_1 | Exception: Project name 'sandbox' is ambiguous, please fully qualify the project with a hostname. Valid hostnames are dict_keys(['gerrit1.com', ''gerrit2.com']).
```
@clarkb:matrix.orgvlotorev: as mentioned in there you'll need to fully qualify the project names to distinguish them and remove the collision22:15
@clarkb:matrix.orggerrit1.com/sandbox and gerrit2.com/sandbox22:16
@vlotorev:matrix.orgOriginal tenants.yaml:22:21
```
- tenant:
name: sometenant
source:
gerrit1:
untrusted-projects:
- sandbox
gerrit2:
config-projects:
- sandbox
```
If I change to
```
- tenant:
name: sometenant
source:
gerrit1:
untrusted-projects:
- sandbox
gerrit2:
config-projects:
- gerrit2.com/sandbox
```
Then zuul starts but tries to check for 'gerrit2.com/sandbox' repo on gerrit2.com server which results into 'gerrit2.com/gerrit2.com/sandbox'. This is name is seen on zuul web when I click on project details.
@clarkb:matrix.orgI think it is ok to have your first config there since they are unambious in that context. But in your in repo configs you need todifferentiate?22:25
@vlotorev:matrix.orgZuul doesn't reload (zuul-scheduler full-reconfigure), it ends with an exception as I posted above.22:27
@vlotorev:matrix.org * Zuul doesn't reload configuration (`zuul-scheduler full-reconfigure`), it ends with an exception as I posted above. Full traceback:22:29
```
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/zuul/cmd/scheduler.py", line 152, in run
self.sched.prime(self.config)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 636, in prime
self._doReconfigureEvent(event)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 942, in _doReconfigureEvent
tenant = loader.loadTenant(self.abide, tenant_name,
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2357, in loadTenant
new_tenant = self.tenant_parser.fromYaml(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 1621, in fromYaml
tenant.layout = self._parseLayout(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2199, in _parseLayout
self._addLayoutItems(layout, tenant, data)
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2144, in _addLayoutItems
projects_matching_regex = tenant.getProjectsByRegex(regex)
File "/usr/local/lib/python3.8/site-packages/zuul/model.py", line 5325, in getProjectsByRegex
raise Exception("Project name '%s' is ambiguous, "
Exception: Project name 'sandbox' is ambiguous, please fully qualify the project with a hostname. Valid hostnames are dict_keys(['gerrit1.com', ''gerrit2.com']).
```
@vlotorev:matrix.org * With the first config Zuul doesn't reload configuration (`zuul-scheduler full-reconfigure`), it ends with an exception as I posted above. Full traceback:22:30
```
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/zuul/cmd/scheduler.py", line 152, in run
self.sched.prime(self.config)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 636, in prime
self._doReconfigureEvent(event)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 942, in _doReconfigureEvent
tenant = loader.loadTenant(self.abide, tenant_name,
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2357, in loadTenant
new_tenant = self.tenant_parser.fromYaml(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 1621, in fromYaml
tenant.layout = self._parseLayout(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2199, in _parseLayout
self._addLayoutItems(layout, tenant, data)
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2144, in _addLayoutItems
projects_matching_regex = tenant.getProjectsByRegex(regex)
File "/usr/local/lib/python3.8/site-packages/zuul/model.py", line 5325, in getProjectsByRegex
raise Exception("Project name '%s' is ambiguous, "
Exception: Project name 'sandbox' is ambiguous, please fully qualify the project with a hostname. Valid hostnames are dict_keys(['gerrit1.com', ''gerrit2.com']).
```
@vlotorev:matrix.org * :Clark: With the first config Zuul doesn't reload configuration (`zuul-scheduler full-reconfigure`), it ends with an exception as I posted above. Full traceback:22:33
```
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/zuul/cmd/scheduler.py", line 152, in run
self.sched.prime(self.config)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 636, in prime
self._doReconfigureEvent(event)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 942, in _doReconfigureEvent
tenant = loader.loadTenant(self.abide, tenant_name,
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2357, in loadTenant
new_tenant = self.tenant_parser.fromYaml(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 1621, in fromYaml
tenant.layout = self._parseLayout(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2199, in _parseLayout
self._addLayoutItems(layout, tenant, data)
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2144, in _addLayoutItems
projects_matching_regex = tenant.getProjectsByRegex(regex)
File "/usr/local/lib/python3.8/site-packages/zuul/model.py", line 5325, in getProjectsByRegex
raise Exception("Project name '%s' is ambiguous, "
Exception: Project name 'sandbox' is ambiguous, please fully qualify the project with a hostname. Valid hostnames are dict_keys(['gerrit1.com', ''gerrit2.com']).
```
@vlotorev:matrix.org * Clark:  With the first config Zuul doesn't reload configuration (`zuul-scheduler full-reconfigure`), it ends with an exception as I posted above. Full traceback:22:33
```
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/zuul/cmd/scheduler.py", line 152, in run
self.sched.prime(self.config)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 636, in prime
self._doReconfigureEvent(event)
File "/usr/local/lib/python3.8/site-packages/zuul/scheduler.py", line 942, in _doReconfigureEvent
tenant = loader.loadTenant(self.abide, tenant_name,
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2357, in loadTenant
new_tenant = self.tenant_parser.fromYaml(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 1621, in fromYaml
tenant.layout = self._parseLayout(
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2199, in _parseLayout
self._addLayoutItems(layout, tenant, data)
File "/usr/local/lib/python3.8/site-packages/zuul/configloader.py", line 2144, in _addLayoutItems
projects_matching_regex = tenant.getProjectsByRegex(regex)
File "/usr/local/lib/python3.8/site-packages/zuul/model.py", line 5325, in getProjectsByRegex
raise Exception("Project name '%s' is ambiguous, "
Exception: Project name 'sandbox' is ambiguous, please fully qualify the project with a hostname. Valid hostnames are dict_keys(['gerrit1.com', ''gerrit2.com']).
```
@clarkb:matrix.orgYes I think that is failing in your in repo configs not the tenant config22:36
@clarkb:matrix.orgI think what we need to see are your project regex stanzas22:37
@vlotorev:matrix.orgClark: Do you mean `.zuul.yaml/.zuul.d` configuration in repos that might be referring to 'sandbox' project?22:43
@clarkb:matrix.orgyes22:45
@clarkb:matrix.orgbut specifically your any regex stanzas since that is the part of the code that is angry22:45
@clarkb:matrix.orghttps://opendev.org/openstack/project-config/src/branch/master/zuul.d/projects.yaml#L9 is an example from opendev's config22:45
@vlotorev:matrix.orgThe thing is tenant config posted above is almost literal, I do have only two sandbox projects and they are empty (no zuul files), I removed other repos from tenant config while tracing the issue. Let me recheck and removed data directory with scheduler cloned repos.22:50
@vlotorev:matrix.org * The thing is tenant config posted above is almost literal, I do have only two sandbox projects and they are empty (no zuul files), I removed other repos from tenant config while tracing the issue. Let me recheck and remove the data directory with scheduler cloned repos.22:50
@clarkb:matrix.orgIt isn't the tenant config though22:52
@clarkb:matrix.orgit is your in repo config22:52
@vlotorev:matrix.orgI have only two sandbox projects which don't have in-repo configs.22:57
BTW, might it be that zookeeper caches some state?
@clarkb:matrix.orgzookeeper does cache state to improve performance (prevents needing to go out to git repos to load data)22:57
@clarkb:matrix.orgvlotorev: looking at the code the getProjectsByRegex() seems to only be called if you have a regex project definition like iwth the example I shared. That is a project name that starts with ^ and is treated as config that applies to all projects that match the regex23:01
@vlotorev:matrix.orgClark: Thanks, I was wrong about 'only two empy sandbox projects'. I have project-config with following stanza:23:48
```
- project:
name: ^.*$
check:
jobs: []
gate:
jobs: []
```
I inserted it into my configuration as recommended here https://zuul-ci.org/docs/zuul/latest/tutorials/quick-start.html#configure-zuul-pipelines.
Why it's recommended then?
@vlotorev:matrix.org * Clark: Thanks, I was wrong about 'only two empy sandbox projects'. I have project-config with following stanza:23:50
```
- project:
name: ^.*$
check:
jobs: []
gate:
jobs: []
```
I inserted it into my configuration as recommended here https://zuul-ci.org/docs/zuul/latest/tutorials/quick-start.html#configure-zuul-pipelines.
Why is it recommended then?

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