Description of problem: spacewalk-clone-by-date uses errata's issue_date while cloning errata's into the channel. But when we try to clone/add errata's into the cloned channel from web-ui, it refers/displays the update_date and not the issue_date. If we want to have uniformity between the cloned channels created from web-ui and cli, both should refer to the same date (issue or update date). Thus this feature request to add the option with which we can use update_date when the channel is being cloned using spacewalk-clone-by-date command How reproducible: Always Steps to Reproduce: 1. spacewalk-clone-by-date -u username -p password -d 2007-10-30 -l rhel-i386-server-5 test-channel1 2. Login to web-ui, go to test-channel1 -> Errata tab 3. Check the Update date of errata Actual results: There are errata's which are updated after 2007-10-30 Expected results: No errata's should be added which are released/update after the date mentioned in the spacewalk-clone-by-date command i.e 2007-10-30 add a option --use-update-date to refer the errata's update_date instead of issue_date
Created attachment 731229 [details] Proposed patch
# spacewalk-clone-by-date -u admin -d 2007-10-30 -l rhel-i386-server-5 testpatch-issue-date ..snip.. By continuing the following will be cloned: rhel-i386-server-5 -> testpatch-issue-date (108/2704 Errata) Continue with clone (y/n)?y Cloning Errata into testpatch-issue-date (108): ________________________________________ ######################################## - complete Copying repodata, please wait. Solving Dependencies (485): ..snip.. ######################################## - complete Checking the channel -> Errata -> List/Remove tab we see : Type Advisory Synopsis Updated Security Advisory CLA-2007:0724 Critical: firefox security update 12/4/07 Security Advisory CLA-2007:0740 Moderate: bind security update 12/4/07 Product Enhancement Advisory CLA-2007:0658 redhat-rpm-config enhancement update 11/7/07 Bug Fix Advisory CLA-2007:0959 Updated kernel packages for Red Hat Enterprise Linux 5 Update 1 11/7/07 Bug Fix Advisory CLA-2007:0574 libXp bug fix update 11/7/07 Bug Fix Advisory CLA-2007:0544 selinux-policy bug fix update 11/7/07 Bug Fix Advisory CLA-2007:0579 gfs2-utils bug fix update 11/7/07 Bug Fix Advisory CLA-2007:0563 quagga bug fix update 11/7/07 8 errata's which were having update date > 10/30/07 were cloned. Now using --use-update-date option those were not added. # spacewalk-clone-by-date -u admin -d 2007-10-30 -l rhel-i386-server-5 testpatch-update-date --use-update-date ..snip.. By continuing the following will be cloned: rhel-i386-server-5 -> testpatch-update-date (100/2704 Errata) Continue with clone (y/n)?y Cloning Errata into testpatch-update-date (100): ________________________________________ ######################################## - complete Copying repodata, please wait. Solving Dependencies (453): ..snip.. ######################################## - complete
Patch accepted, thanks! Spacewalk master: 3f8e200c4ee6aa1fab10bdfe4bdaf27b641c4f28 41aa3b461a33023df545664d0d259732d07f8680
And 7eafbb14995178fa106c1e2f4efa35407570e9b5 to fix pylint error.
Fix for this bug is present in Spacewalk 2.0, closing this bug as CURRENTRELEASE.