Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at
Bug 1083519 - (spacecmd) softwarechannel_removepackages and different package checksums
Summary: (spacecmd) softwarechannel_removepackages and different package checksums
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.1
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Milan Zázrivec
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: space22
TreeView+ depends on / blocked
Reported: 2014-04-02 11:50 UTC by Jeremy Maes
Modified: 2014-07-17 08:41 UTC (History)
1 user (show)

Fixed In Version: spacecmd-2.2.10-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-07-17 08:41:14 UTC

Attachments (Terms of Use)

Description Jeremy Maes 2014-04-02 11:50:36 UTC
Description of problem: When trying to remove packages with the same name, version number, ... but different checksums the spacecmd implementation of softwarechannel_removepackages fails to remove the packages.

When using a * wildcard it will list all packages correctly, but due to the way the tool builds its package id list (packagelist -> namelist -> request id's from result) I figure it isn't able to build a correct list because multiple id's are possible for "duplicate" packages.

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

How reproducible: always

Steps to Reproduce:
1. Add 2 packages with identical name, version and arch but different checksums to a channel
2. Try to delete them using spacecmd and softwarechannel_removepackages
3. None are removed

Actual results: No packages are removed

Expected results: Either both are removed or a warning/error is given that there is ambiguity. When wildcards are used any match should be removed.

Additional info: Removal works fine from webui or via direct API removal using the id's.

Comment 1 Jeremy Maes 2014-06-10 14:15:32 UTC
I had almost forgotten about this bug, but upon further testing after filing it I found out that one version gets deleted on the first run, none get deleted afterwards.

So it's not exactly "none are removed", but one only gets removed on first execution. (which kinda surprised me as I expected it to delete just one version every run.

Comment 2 Milan Zázrivec 2014-06-24 15:33:26 UTC
Fixed in spacewalk.git master: f185a0ec027ddcf2dcdfae5d9a15691d37ecd509

Thank you for a quite interesting bug report.

Comment 3 Milan Zázrivec 2014-07-17 08:41:14 UTC
Spacewalk 2.2 has been released:

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