Thanks Thomas,

It helped!


On Tue, Apr 25, 2017 at 4:59 AM, Tomas Kopecek <tkopecek@redhat.com> wrote:
Dne 25.4.2017 v 02:11 Tengiz Dawkins napsal(a):
Hi all,

For the lack of koji-users@ list I dared to ask koji-devel@.

I am very new to koji and I setup a testing stack
using http://www.devops-blog.net/koji/koji-rpm-build-system-installation-part-1

Currently I am stuck at koji builder authentication. The validation user
vs host is not quite clear to me:

kojiHUB@root@/etc/kojid>/usr/sbin/kojid -f
Traceback (most recent call last):
  File "/usr/sbin/kojid", line 5140, in <module>
    main(options, session)
  File "/usr/sbin/kojid", line 97, in main
    tm = TaskManager(options, session)
  File "/usr/lib/python2.7/site-packages/koji/daemon.py", line 480, in
__init__
    self.host_id = self.session.host.getID()
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1945,
in __call__
    return self.__func(self.__name, args, opts)
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 2381,
in _callMethod
    raise err
koji.AuthError: User 3 is not a host

Should user ever be a host?

I used --debug-xmlrpc but it doesn't give any useful info. Bumping up
the koji-hub debug level is not useful neither (KojiDebug=on).

Any pointers are appreciated.

The OS is  centos7, stock koji (i guess 1.11, but user agent claims it
is 1.7).




_______________________________________________
koji-devel mailing list -- koji-devel@lists.fedorahosted.org
To unsubscribe send an email to koji-devel-leave@lists.fedorahosted.org

Hi,
users can be both - humans and machines (e.g. Jenkins instance triggering builds). Builder itself uses a non-human user for its authentication. Name of that user and client certificate is given in /etc/kojid/kojid.conf (user, cert, ca, serverca).

From message it seems, that user from the config was able to authenticate, but it is not set a user which corresponds to builder machine. In your tutorial it is in part 4 (those 'add-host' commands). Maybe our docs: https://docs.pagure.org/koji/server_howto/#koji-daemon-builder will shed more light on it.

If you want to see, how working configuration/users works, checkout https://github.com/release-engineering/koji-dojo which is 'almost one-click' docker solution for simple koji instance. You can just build it and explore its configuration.

--

            Tomas Kopecek <tkopecek@redhat.com>
            Release Engineering Development, RedHat
_______________________________________________
koji-devel mailing list -- koji-devel@lists.fedorahosted.org
To unsubscribe send an email to koji-devel-leave@lists.fedorahosted.org