[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-factory
Subject:    Re: [opensuse-factory] openQA what authorization for /usr/share/openqa/script/client
From:       Normand <normand () linux ! vnet ! ibm ! com>
Date:       2016-09-30 9:37:24
Message-ID: 40185271-0685-2d15-ed21-ef156ce0c9d0 () linux ! vnet ! ibm ! com
[Download RAW message or body]



On 30/09/2016 11:23, Ondrej Holecek wrote:
> On pátek 30. září 2016 11:07:19 CEST Normand wrote:
>> I previously installed openQA in a ppc64le host as per doc in (1) and
>> was able to trigger jobs with the /usr/share/openqa/script/client
>> BUT this is only working for session of "_openqa-worker" id
>>
>> If I try to issue the command with my default owner id, then it failed
>> as reported in (2)
>>
>> What is expected setup to have an id to be authorized to use the client
>> script ?
> 1) Using openQA WebUI create API keys - this you probably already did.
> 2) put those keys to either /etc/openqa/client.conf or ~/.config/openqa/
> client.conf in format
>
> [$host]
> key = $your_key
> secret = $your_secret

Thank you Ondrej, the second point was my missing part.

>
> Do note that you need to use the same $host in client.conf and client script.
> ie. if you use '[openqa.somedomain.ex]', you need to use `--host
> openqa.somedomain.ex` in client script call.
>
> In your example you didn't provide --host option to client script thus it
> assumed host to be "localhost" -> You need to have [localhost] section in
> client.conf with appropriate keys.

Yes, I understand, my current tests are basic ones, using same host for 
server and workers.

>
>>
>> (1)
>> https://github.com/os-autoinst/openQA/blob/master/docs/GettingStarted.asciid
>> oc
>>
>> https://github.com/os-autoinst/openQA/blob/master/docs/Installing.asciidoc
>>
>> (2) failure with my onwer id:
>> ===
>> [michel@abanc:]
>> /var/lib/openqa/script/client isos post
>> ISO=openSUSE-Tumbleweed-DVD-ppc64-Snapshot20160917-Media.iso
>> DISTRI=opensuse VERSION=Tumbleweed FLAVOR=DVD ARCH=ppc64 BUILD=20160917
>> missing apisecret and/or apikey at /var/lib/openqa/script/client line 144.
>> ERROR: 403 - Forbidden
>> { error => "no api key" }
>> ===
>

-- 
Michel Normand

-- 
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic