Seems like it's a bug in the client's code, the --tenant argument should be required for the autohold-list subcommand. (line 231 or so in zuul/cmd/client.py). If you'd like, once opendev's gerrit is back up, you could submit a patch to fix this, or I can do it for you.

Also, if you intend to interact with zuul via the REST API, please be aware that support for the REST API  is being moved to the zuul-client CLI, and the zuul admin CLI is likely to have support for the REST API deprecated and ultimately removed in favor of the gearman connection. You should use the zuul-client CLI instead, which can be found at https://pypi.org/project/zuul-client/ .

On Tue, Oct 20, 2020 at 11:02 AM Åsmund Østvold <asmundo@gmail.com> wrote:
Thank you Matthieu,

Minor comment inline:
On Tue, Oct 20, 2020 at 10:31 AM Matthieu Huin <mhuin@redhat.com> wrote:
Hello,

Try again adding the --insecure argument:

zuul --insecure --zuul-url http://zuul-ci.######.net/openapi autohold-list

Also, the URL looks incorrect, unless you have some redirection at work it should be http://zuul-ci.######.net/

This did mostly work. 

With modified command I get the error:
Exception: "--tenant" argument required
 
The doc example does not list '--tenant' https://zuul-ci.org/docs/zuul/reference/client.html. But it could be that it would get the tenants from zuul.conf.

Adding the --tenant with tenant id reported no problems. 

Thank you so much!

Cheers,
Åsmund



--

Matthieu Huin

Senior Software Developer

Red Hat