Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   koji client on another machine (http://www.linux-archive.org/fedora-build-system/481449-koji-client-another-machine.html)

01-26-2011 04:02 PM

koji client on another machine
 
Hey there.

I think that I've got a working koji server authenticating using kerberos
(yea!).

My latest issue is that I'm trying to call koji from another host using
the koji command-line client. I can get read-only commands, but
build submissions are failing:

[swebb@bplwebdev001.co0 ~]$ koji -s http://bpbuild001.co0.nar.beatportcorp.net/kojihub list-external-repos
External repo name URL
------------------------- ----------------------------------------
dist-EL5-beatport-external-repo-centos-updates-x86_64 http://repo.beatportcorp.net/centos/5/updates/x86_64/
dist-EL5-beatport-external-repo-centos-epel-x86_64 http://repo.beatportcorp.net/epel/5/x86_64/
dist-EL5-beatport-external-repo-centos-php_new53-x86_64 http://repo.beatportcorp.net/php_new5.3/
dist-EL5-beatport-external-repo-centos-updates-i386 http://repo.beatportcorp.net/centos/5/updates/i386/
dist-EL5-beatport-external-repo-centos-epel-i386 http://repo.beatportcorp.net/epel/5/i386/
dist-EL5-beatport-official-x86_64 http://mirrors.kernel.org/centos/5/os/x86_64/
dist-EL5-beatport-official-i386 http://mirrors.kernel.org/centos/5/os/i386/
dist-EL5-beatport-external-repo-buildsys http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/
[swebb@bplwebdev001.co0 ~]$ koji -s http://bpbuild001.co0.nar.beatportcorp.net/kojihub build dist-EL5-beatport cdrtools-2.01-10.7.el5.src.rpm
Kerberos authentication failed: Server not found in Kerberos database (-1765328377)

Here's the contents of my psql koji DB:

ji=> select * from users;
id | name | password | status | usertype | krb_principal
----+-------------------------------------+----------+--------+----------+-------------------------------------------------------------------
2 | swebb | | 0 | 0 | swebb@AUTH.BEATPORTCORP.NET
1 | koji | | 0 | 0 | koji/bpbuild001.co0.nar.beatportcorp.net@AUTH.BEATPORTC ORP.NET
3 | kojira | | 0 | 0 |
4 | bpbuild001.co0.nar.beatportcorp.net | | 0 | 1 | compile/bpbuild001.co0.nar.beatportcorp.net@AUTH.BEATPORTC ORP.NET
5 | dharris | | 0 | 0 | dharris@AUTH.BEATPORTCORP.NET
6 | jsteffan | | 0 | 0 | jsteffan@AUTH.BEATPORTCORP.NET
7 | talexander | | 0 | 0 | talexander@AUTH.BEATPORTCORP.NET
8 | jhiza | | 0 | 0 | jhiza@AUTH.BEATPORTCORP.NET
9 | taitken | | 0 | 0 | taitken@AUTH.BEATPORTCORP.NET
10 | ccardone | | 0 | 0 | ccardone@AUTH.BEATPORTCORP.NET
(10 rows)

- Steve

--
Steve Webb | System Administrator
Beatport | Play With Music
------------------------------------------
2399 Blake Street, Suite 170
Denver, Colorado USA 80205
tel: +1.720.932.9103
fax: +1.720.932.9104
noc: +1.303.565.2710
mobile: +1.303.564.4269
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Mike Bonnet 01-26-2011 04:15 PM

koji client on another machine
 
On 01/26/2011 12:02 PM, steve.webb@beatport.com wrote:
> Hey there.
>
> I think that I've got a working koji server authenticating using kerberos
> (yea!).
>
> My latest issue is that I'm trying to call koji from another host using
> the koji command-line client. I can get read-only commands, but
> build submissions are failing:

You need to apply the same patch to __init__.py:_serverPrincipal() to
set the domain (realm) to AUTH.BEATPORTCORP.NET as you did on the hub
machine. This problem is fixed in Koji HEAD.

> [swebb@bplwebdev001.co0 ~]$ koji -s http://bpbuild001.co0.nar.beatportcorp.net/kojihub list-external-repos
> External repo name URL
> ------------------------- ----------------------------------------
> dist-EL5-beatport-external-repo-centos-updates-x86_64 http://repo.beatportcorp.net/centos/5/updates/x86_64/
> dist-EL5-beatport-external-repo-centos-epel-x86_64 http://repo.beatportcorp.net/epel/5/x86_64/
> dist-EL5-beatport-external-repo-centos-php_new53-x86_64 http://repo.beatportcorp.net/php_new5.3/
> dist-EL5-beatport-external-repo-centos-updates-i386 http://repo.beatportcorp.net/centos/5/updates/i386/
> dist-EL5-beatport-external-repo-centos-epel-i386 http://repo.beatportcorp.net/epel/5/i386/
> dist-EL5-beatport-official-x86_64 http://mirrors.kernel.org/centos/5/os/x86_64/
> dist-EL5-beatport-official-i386 http://mirrors.kernel.org/centos/5/os/i386/
> dist-EL5-beatport-external-repo-buildsys http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/
> [swebb@bplwebdev001.co0 ~]$ koji -s http://bpbuild001.co0.nar.beatportcorp.net/kojihub build dist-EL5-beatport cdrtools-2.01-10.7.el5.src.rpm
> Kerberos authentication failed: Server not found in Kerberos database (-1765328377)
>
> Here's the contents of my psql koji DB:
>
> ji=> select * from users;
> id | name | password | status | usertype | krb_principal
> ----+-------------------------------------+----------+--------+----------+-------------------------------------------------------------------
> 2 | swebb | | 0 | 0 | swebb@AUTH.BEATPORTCORP.NET
> 1 | koji | | 0 | 0 | koji/bpbuild001.co0.nar.beatportcorp.net@AUTH.BEATPORTC ORP.NET
> 3 | kojira | | 0 | 0 |
> 4 | bpbuild001.co0.nar.beatportcorp.net | | 0 | 1 | compile/bpbuild001.co0.nar.beatportcorp.net@AUTH.BEATPORTC ORP.NET
> 5 | dharris | | 0 | 0 | dharris@AUTH.BEATPORTCORP.NET
> 6 | jsteffan | | 0 | 0 | jsteffan@AUTH.BEATPORTCORP.NET
> 7 | talexander | | 0 | 0 | talexander@AUTH.BEATPORTCORP.NET
> 8 | jhiza | | 0 | 0 | jhiza@AUTH.BEATPORTCORP.NET
> 9 | taitken | | 0 | 0 | taitken@AUTH.BEATPORTCORP.NET
> 10 | ccardone | | 0 | 0 | ccardone@AUTH.BEATPORTCORP.NET
> (10 rows)
>
> - Steve
>

--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys

01-26-2011 04:28 PM

koji client on another machine
 
That was it! You 'da man, Mike! :)

- Steve

On Wed, 26 Jan 2011, Mike Bonnet wrote:

> On 01/26/2011 12:02 PM, steve.webb@beatport.com wrote:
>> Hey there.
>>
>> I think that I've got a working koji server authenticating using kerberos
>> (yea!).
>>
>> My latest issue is that I'm trying to call koji from another host using
>> the koji command-line client. I can get read-only commands, but
>> build submissions are failing:
>
> You need to apply the same patch to __init__.py:_serverPrincipal() to
> set the domain (realm) to AUTH.BEATPORTCORP.NET as you did on the hub
> machine. This problem is fixed in Koji HEAD.
>
>> [swebb@bplwebdev001.co0 ~]$ koji -s http://bpbuild001.co0.nar.beatportcorp.net/kojihub list-external-repos
>> External repo name URL
>> ------------------------- ----------------------------------------
>> dist-EL5-beatport-external-repo-centos-updates-x86_64 http://repo.beatportcorp.net/centos/5/updates/x86_64/
>> dist-EL5-beatport-external-repo-centos-epel-x86_64 http://repo.beatportcorp.net/epel/5/x86_64/
>> dist-EL5-beatport-external-repo-centos-php_new53-x86_64 http://repo.beatportcorp.net/php_new5.3/
>> dist-EL5-beatport-external-repo-centos-updates-i386 http://repo.beatportcorp.net/centos/5/updates/i386/
>> dist-EL5-beatport-external-repo-centos-epel-i386 http://repo.beatportcorp.net/epel/5/i386/
>> dist-EL5-beatport-official-x86_64 http://mirrors.kernel.org/centos/5/os/x86_64/
>> dist-EL5-beatport-official-i386 http://mirrors.kernel.org/centos/5/os/i386/
>> dist-EL5-beatport-external-repo-buildsys http://buildsys.fedoraproject.org/buildgroups/rhel5/x86_64/
>> [swebb@bplwebdev001.co0 ~]$ koji -s http://bpbuild001.co0.nar.beatportcorp.net/kojihub build dist-EL5-beatport cdrtools-2.01-10.7.el5.src.rpm
>> Kerberos authentication failed: Server not found in Kerberos database (-1765328377)
>>
>> Here's the contents of my psql koji DB:
>>
>> ji=> select * from users;
>> id | name | password | status | usertype | krb_principal
>> ----+-------------------------------------+----------+--------+----------+-------------------------------------------------------------------
>> 2 | swebb | | 0 | 0 | swebb@AUTH.BEATPORTCORP.NET
>> 1 | koji | | 0 | 0 | koji/bpbuild001.co0.nar.beatportcorp.net@AUTH.BEATPORTC ORP.NET
>> 3 | kojira | | 0 | 0 |
>> 4 | bpbuild001.co0.nar.beatportcorp.net | | 0 | 1 | compile/bpbuild001.co0.nar.beatportcorp.net@AUTH.BEATPORTC ORP.NET
>> 5 | dharris | | 0 | 0 | dharris@AUTH.BEATPORTCORP.NET
>> 6 | jsteffan | | 0 | 0 | jsteffan@AUTH.BEATPORTCORP.NET
>> 7 | talexander | | 0 | 0 | talexander@AUTH.BEATPORTCORP.NET
>> 8 | jhiza | | 0 | 0 | jhiza@AUTH.BEATPORTCORP.NET
>> 9 | taitken | | 0 | 0 | taitken@AUTH.BEATPORTCORP.NET
>> 10 | ccardone | | 0 | 0 | ccardone@AUTH.BEATPORTCORP.NET
>> (10 rows)
>>
>> - Steve
>>
>
> --
> buildsys mailing list
> buildsys@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>

--
Steve Webb | System Administrator
Beatport | Play With Music
------------------------------------------
2399 Blake Street, Suite 170
Denver, Colorado USA 80205
tel: +1.720.932.9103
fax: +1.720.932.9104
noc: +1.303.565.2710
mobile: +1.303.564.4269
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys


All times are GMT. The time now is 01:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.