#3429 Kojira
Closed: Fixed 2 years ago by tkopecek. Opened 2 years ago by aisha.

I have a question. How Kojira is called? How Kojira is connected with the Koji? I believe it is a xml-rpc call, but what are its parameters of function calling?


Kojira is a stand-alone daemon which can run anywhere where koji-utils rpm is installed. There is no API for that, everything is handled by that daemon - see https://docs.pagure.org/koji/utils/#kojira for details.

Metadata Update from @tkopecek:
- Custom field Size adjusted to None

2 years ago

Kojira is a stand-alone daemon which can run anywhere where koji-utils rpm is installed. There is no API for that, everything is handled by that daemon - see https://docs.pagure.org/koji/utils/#kojira for details.

Thanks @tkopecek. By this you mean, kojira is not connected to koji-hub, kojid(builder)? So If I want to run the entire kojira on AWS Lambda, I would just require the koji-utils rpm and nothing else? What are your thoughts on it?

You need:
a) configured hub url in /etc/kojira/kojira.conf (for hub connection)
b) rw access to /mnt/koji (for kojira to be able to delete old repos)

So, if you're able to provide these you're ok to go. It depends on your whole koji infra, especially on storage management if you're able to provide that RW access.

Metadata Update from @tkopecek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Metadata Update from @aisha:
- Issue status updated to: Open (was: Closed)

2 years ago

Thank you @tkopecek appreciate it. I have a doubt here by /etc/kojira/kojira.conf you mean https://pagure.io/koji/blob/master/f/util/kojira.conf ? I need some more insight if you could tell me where exactly in the kojira code is it making connection with the hub? I understand that it's a stand-alone daemon, but there must be some entry-point, some function calling that is taking place. That info would be helpful.

From this place on: https://pagure.io/koji/blob/master/f/util/kojira#_1333 In next lines it will do the first call depending on authentication type.

Metadata Update from @tkopecek:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata