Dne 25.4.2017 v 02:11 Tengiz Dawkins napsal(a):
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
Currently I am stuck at koji builder authentication. The validation user
vs host is not quite clear to me:
Traceback (most recent call last):
File "/usr/sbin/kojid", line 5140, in <module>
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
self.host_id = self.session.host.getID()
File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1945,
return self.__func(self.__name, args, opts)
File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 2381,
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
koji-devel mailing list -- koji-devel(a)lists.fedorahosted.org
To unsubscribe send an email to koji-devel-leave(a)lists.fedorahosted.org
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:
more light on it.
If you want to see, how working configuration/users works, checkout
which is 'almost
one-click' docker solution for simple koji instance. You can just build
it and explore its configuration.
Tomas Kopecek <tkopecek(a)redhat.com>
Release Engineering Development, RedHat