Bug 2401605 - cobbler 3.3.3-3.3.7 reposync with --tries invokes underlying python issue as per gh issues 3377 (patch)
Summary: cobbler 3.3.3-3.3.7 reposync with --tries invokes underlying python issue as ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: cobbler
Version: epel9
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-04 21:01 UTC by Bishop Clark
Modified: 2025-10-14 01:40 UTC (History)
6 users (show)

Fixed In Version: cobbler-3.3.7-15.fc44 cobbler-3.3.7-15.el9
Clone Of:
Environment:
Last Closed: 2025-10-05 03:48:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to prevent type mismatch on parsing 'tries' option (889 bytes, text/plain)
2025-10-04 21:01 UTC, Bishop Clark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github cobbler cobbler issues 3377 0 None closed Reposync command fails when `--tries` is given 2025-10-04 21:01:49 UTC
Github cobbler cobbler pull 3378 0 None Merged Fix reposync --tries argument 2025-10-04 21:01:49 UTC

Description Bishop Clark 2025-10-04 21:01:49 UTC
Created attachment 2108521 [details]
patch to prevent type mismatch on parsing 'tries' option

Description of problem:

using 'tries' with 'reposync' causes an error due to an underlying change in python.

# cobbler reposync --no-fail --only epel9-x86_64 --tries=1
task started: 2025-10-04_133649_Reposync_18be927557aa4c8fb827703f663c56fd
task started (id=Reposync, time=Sat Oct  4 13:36:49 2025)
start_task(reposync); event_id(2025-10-04_133649_Reposync_18be927557aa4c8fb827703f663c56fd)
reposync; ['epel9-x86_64']
hello, reposync
run, reposync, run!
Exception occurred: <class 'TypeError'>
Exception value: can only concatenate str (not "int") to str
Exception Info:
!!! TASK FAILED !!!


Version-Release number of selected component (if applicable):

# rpm -qf /etc/issue /etc/cobbler/
rocky-release-9.6-1.3.el9.noarch
cobbler-3.3.7-1.el9.noarch

(reported first in cobbler 3.3.3)

How reproducible:

Trivially, every time, as used in various tools.


Steps to Reproduce:
1. install cobbler - yum install
2. add common repo - any valid repo
3. invoke cobbler reposync with --tries=1 (any number)

Actual results:

Error.


Expected results:

Standard and normal repo sync.

Additional info:

https://github.com/cobbler/cobbler/issues/3377

https://github.com/cobbler/cobbler/pull/3378 - davejbax links this to a python 3.9+ change, and a change in input types.


https://patch-diff.githubusercontent.com/raw/cobbler/cobbler/pull/3378.diff shows a potential fix but refactored for our setup looks like the trivial change in the attachment

Comment 1 Bishop Clark 2025-10-04 21:07:30 UTC
Yep.  Applying the patch shows an immediate improvement in behaviour.

Comment 2 Fedora Update System 2025-10-05 03:44:19 UTC
FEDORA-2025-16260cc4de (cobbler-3.3.7-15.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-16260cc4de

Comment 3 Fedora Update System 2025-10-05 03:48:44 UTC
FEDORA-2025-16260cc4de (cobbler-3.3.7-15.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2025-10-05 04:07:37 UTC
FEDORA-EPEL-2025-6728220371 (cobbler-3.3.7-15.el9) has been submitted as an update to Fedora EPEL 9.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-6728220371

Comment 5 Fedora Update System 2025-10-06 01:33:22 UTC
FEDORA-EPEL-2025-6728220371 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-6728220371

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-10-14 01:40:20 UTC
FEDORA-EPEL-2025-6728220371 (cobbler-3.3.7-15.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.