Help needed with Openstack Third Party CI
Hi, I am trying to set up Openstack third party CI using software factory version 3.7. Followed the steps from this guide https://softwarefactory-project.io/docs/guides/third_party_ci.html. After adding gerrit connection details for review.opendev.org, I am getting an error in the zuul scheduler logs: ./scheduler.log:2022-07-18 21:10:25,564 INFO zuul.GerritConnection: review.opendev.org: Gerrit Poller is disabled because no HTTP authentication is defined ./web.log:2022-07-18 21:10:23,948 ERROR zuul.BranchCache.review.opendev.org: Exception loading ZKObject <zuul.zk.branch_cache.BranchCacheZKObject object at 0x7efee2784190> at /zuul/cache/connection/review.opendev.org/branches/data The gerrit connection details entry in the sfconfig.yaml file is: gerrit_connections: - name: review.opendev.org hostname: review.opendev.org port: 29418 puburl: https://review.opendev.org username: username canonical_hostname: opendev.org The SSH key located at /var/lib/software-factory/bootstrap-data/ssh_keys/zuul_rsa.pub is added to the account in review.opendev.org Could anyone suggest if I am missing anything? Are there better alternatives than using a software factory? Any documentation available? Best regards, Aneesh
On Tue, Jul 19, 2022, at 2:59 PM, Aneesh Pachilangottil wrote:
Hi, I am trying to set up Openstack third party CI using software factory version 3.7. Followed the steps from this guide https://softwarefactory-project.io/docs/guides/third_party_ci.html. After adding gerrit connection details for review.opendev.org, I am getting an error in the zuul scheduler logs:
./scheduler.log:2022-07-18 21:10:25,564 INFO zuul.GerritConnection: review.opendev.org: Gerrit Poller is disabled because no HTTP authentication is defined
I think this first log message is just noise and doesn't point to a problem. Zuul is able to talk to Gerrit via both http and ssh. In this case you have only configured ssh and it is telling you that some functionality is disabled due to the lack of http connection details.
./web.log:2022-07-18 21:10:23,948 ERROR zuul.BranchCache.review.opendev.org <http://zuul.branchcache.review.opendev.org/>: Exception loading ZKObject <zuul.zk.branch_cache.BranchCacheZKObject object at 0x7efee2784190> at /zuul/cache/connection/review.opendev.org/branches/data
This is very likely the actual issue. But without the full traceback is difficult to say more. Can you include the full traceback from your logs?
The gerrit connection details entry in the sfconfig.yaml file is: gerrit_connections: - name: review.opendev.org hostname: review.opendev.org port: 29418 puburl: https://review.opendev.org username: username canonical_hostname: opendev.org
The SSH key located at /var/lib/software-factory/bootstrap-data/ssh_keys/zuul_rsa.pub is added to the account in review.opendev.org
Could anyone suggest if I am missing anything? Are there better alternatives than using a software factory? Any documentation available?
Software factory should be a fine way to run Zuul. That said it might be helpful to run the Zuul quickstart to gain some familiarity with how Zuul's components are deployed and function. Then you can map that to your software factory deployment.
Best regards, Aneesh
On Tue, 2022-07-19 at 15:05 -0700, Clark Boylan wrote:
On Tue, Jul 19, 2022, at 2:59 PM, Aneesh Pachilangottil wrote:
Hi, I am trying to set up Openstack third party CI using software factory version 3.7. Followed the steps from this guide https://softwarefactory-project.io/docs/guides/third_party_ci.html. After adding gerrit connection details for review.opendev.org, I am getting an error in the zuul scheduler logs:
./scheduler.log:2022-07-18 21:10:25,564 INFO zuul.GerritConnection: review.opendev.org: Gerrit Poller is disabled because no HTTP authentication is defined
I think this first log message is just noise and doesn't point to a problem. Zuul is able to talk to Gerrit via both http and ssh. In this case you have only configured ssh and it is telling you that some functionality is disabled due to the lack of http connection details.
./web.log:2022-07-18 21:10:23,948 ERROR zuul.BranchCache.review.opendev.org <http://zuul.branchcache.review.opendev.org/>: Exception loading ZKObject <zuul.zk.branch_cache.BranchCacheZKObject object at 0x7efee2784190> at /zuul/cache/connection/review.opendev.org/branches/data
This is very likely the actual issue. But without the full traceback is difficult to say more. Can you include the full traceback from your logs?
The gerrit connection details entry in the sfconfig.yaml file is: gerrit_connections: - name: review.opendev.org hostname: review.opendev.org port: 29418 puburl: https://review.opendev.org username: username canonical_hostname: opendev.org
clark can correct me if this has changed but if i recall correctly its prefer to configre both ssh an http instead of just ssh to reduce load on the upstream gerrit servers. so it should look like this [connection opendev.org] driver=gerrit canonical_hostname=opendev.org server=review.openstack.org sshkey=/var/lib/zuul/.ssh/nodepool_rsa user=ci-sean-mooney baseurl=https://review.opendev.org password=<http password goes here> auth_type=basic ill also point out that since this is using basic auth you really should ensure you use https urls :) i shoudl also proably update that server url to review.opendev.org instead of review.openstack.org but this zuul installation has not been running for about 2 years sicne i redpeloy the cloud it ran on. to conenct via http to report result you need to define https://zuul-ci.org/docs/zuul/latest/drivers/gerrit.html#attr-%3Cgerrit%20co... that also enable line level reporting which si nice for linint jobs but we generally dont tend to need it for tempest ectra so not sure it will be useful ina third part context. based on my own config you are msising either the password or ssh key. the default location zull will check for the sshkey is ~zuul/.ssh/id_rsa https://zuul-ci.org/docs/zuul/latest/drivers/gerrit.html#attr-%3Cgerrit%20co... and you do not have password defiend which is needed for http reporting.
The SSH key located at /var/lib/software-factory/bootstrap-data/ssh_keys/zuul_rsa.pub is added to the account in review.opendev.org
Could anyone suggest if I am missing anything? Are there better alternatives than using a software factory? Any documentation available?
Software factory should be a fine way to run Zuul. That said it might be helpful to run the Zuul quickstart to gain some familiarity with how Zuul's components are deployed and function. Then you can map that to your software factory deployment.
Best regards, Aneesh
Sean's right. Actually, I believe /var/lib/software-factory/bootstrap-data/ssh_keys/zuul_rsa gets written to /var/lib/zuul/.ssh as id_rsa, not zuul_rsa, which is confusing. So use /var/lib/zuul/.ssh/id_rsa. Note that you need to use the private key (without the .pub) in the connection configuration, not the public one; the public one is the one you add to the upstream Gerrit.
participants (4)
-
Aneesh Pachilangottil
-
Clark Boylan
-
Eduardo Santos
-
Sean Mooney