Bug 2226731

Summary: Current koji client doesnt work with the rpmfusion instance: koji: GenericError: Invalid method: getKojiVersion
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: kojiAssignee: Mike McLean <mikem>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: kevin, kwizart, mikem, patrick
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Škarvada 2023-07-26 11:08:25 UTC
Current koji client doesn't work with rpmfusion koji instance.

Reproducible: Always

Steps to Reproduce:
1. koji -p koji-rpmfusion cancel $TASKID
or manually:
koji -s https://koji.rpmfusion.org/kojihub --cert=~/.rpmfusion.cert --authtype=ssl cancel $TASKID

Actual Results:  
2023-07-25 19:21:27,435 [ERROR] koji: GenericError: Invalid method: getKojiVersion



Expected Results:  
No error, task canceled.

It works OK with:
koji-1.21.0-2.fc30.noarch

Comment 1 Jaroslav Škarvada 2023-07-26 11:09:01 UTC
Reproduced with:
koji-1.33.0-1.fc37.noarch

Comment 2 Kevin Fenzi 2023-07-28 18:52:12 UTC
I'm not sure what version rpmfusion is running (it's old enough that it doesn't report that on the api page). 

I don't think koji claims interoperability between clients that are very far apart.

Adding kwizart here for comment on the rpmfusion instance, perhaps it could be upgraded?

If not, we probibly should move this upstream and see if there's anything to do to make it more compatible to older versions.

Comment 3 Nicolas Chauvet (kwizart) 2023-07-28 21:10:28 UTC
Right, I think that's a recent change that made any recent client start to fail with older el7 based koji.
We might backport the getKojiVersion method in the el7 branch or to fix the client to assume older koji if the getKojiversion cannot be found.

For now the workaround is to use el7 koji client for cancel tasks.