Bug 601754

Summary: koji list-buildroot constrains buildroot ID to decimal number
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: kojiAssignee: David Cantrell <dcantrell>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dcantrell, mikem
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-08 21:33:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Petr Pisar 2010-06-08 15:00:56 UTC
$ koji list-targets --name dist-f14-perltest
Name                           Buildroot                      Destination                   
dist-f14-perltest              dist-f14-perltest              dist-f14-perltest

$ koji list-buildroot dist-f14-perltest
ValueError: invalid literal for int() with base 10: 'dist-f14-perltest'

koji does not expect number in place of buildroot obviously. This is insufficient as dedicated targets have its own special buildroot ID.

Using "14" for "dist-f14-build" works:

$ koji list-buildroot 14 |head

Comment 1 Mike McLean 2010-06-08 21:33:38 UTC
Unfortunately koji deals with a number of overloaded terms. We try to be internally consistent, but can cannot control how others chose to talk about koji or build tools in general.

In Koji, a buildroot is the chroot environment on a build host that is used to perform various tasks (mainly builds). Since Koji generates fresh buildroots for each build there are a *lot* of buildroots.

Buildroots do not have any sort of name. They only have a numeric id. You seem to want to refer to a build root by a tag name, but a tag can correspond to many, many buildroots (or none at all).

While the list-buildroot command could certainly use a few improvements, the one you're asking for is nonsensical.