Bug 1369888 - Recent clone-by-date logging changes incomplete
Summary: Recent clone-by-date logging changes incomplete
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Ales Dujicek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-24 15:46 UTC by Grant Gainey
Modified: 2016-11-07 13:38 UTC (History)
2 users (show)

Fixed In Version: spacewalk-utils-2.3.2-30-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 13:38:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2662 0 normal SHIPPED_LIVE Satellite 5.7 bug fix update 2016-11-07 18:37:17 UTC

Description Grant Gainey 2016-08-24 15:46:57 UTC
spacewalk-clone-by-date needs to:
* summarize the number of errata cloned to satisfy dependencies
* log all errata and all RPMs cloned for dependency-resolution

Currently, with the recently-released log-output change, cloning-as-original and cloning-with-a-date end up with different out put in errata-clone.log, and no errata-summary.

Comment 1 Grant Gainey 2016-09-22 15:03:55 UTC
Added errata-count to summary.
Cleaned up errata-clone.log output to remove dups and sort RPM and errata lists.

Sample output:

===
[root@dhcp137-7 ~]# spacewalk-clone-by-date -y -u admin -p XXXXXXXXX -a test-rhel-x86_64-server-6 --channels rhel-x86_64-server-optional-6 cbd-20150101-optional-6-server-10 -d 2015-01-01 
Reading repository information.
Using issue_date.
Looking up the original channel for test-rhel-x86_64-server-6, rhel-x86_64-server-6 found

By continuing the following channels will be created: 
cbd-20150101-optional-6-server-10
Cloning rhel-x86_64-server-optional-6 to cbd-20150101-optional-6-server-10 with original package set.
Copying repodata, please wait.
Solving Dependencies (2664): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
Dependencies added, looking for new dependencies
Solving Dependencies (27): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
Dependencies added, looking for new dependencies
Solving Dependencies (2): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
17 RPM(s) added to cbd-20150101-optional-6-server-10 to resolve dependencies.
10 errata added to cbd-20150101-optional-6-server-10 to resolve dependencies.
Please see /var/log/rhn/errata-clone.log for details.

By continuing the following will be cloned:
  rhel-x86_64-server-optional-6 -> cbd-20150101-optional-6-server-10  (1478/1970 Errata)
Cloning Errata into cbd-20150101-optional-6-server-10 (1478):
________________________________________
######################################## - complete
Copying repodata, please wait.
Solving Dependencies (5519): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
Dependencies added, looking for new dependencies
Solving Dependencies (3): 
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
3 RPM(s) added to cbd-20150101-optional-6-server-10 to resolve dependencies.
1 errata added to cbd-20150101-optional-6-server-10 to resolve dependencies.
Please see /var/log/rhn/errata-clone.log for details.
[root@dhcp137-7 ~]#
===

spacewalk.github:
0ea6aa57d6102130207e37f5baf2800796fb3fe6

Comment 4 Ales Dujicek 2016-10-20 11:38:12 UTC
tested with spacewalk-utils-2.3.2-29

Cloned to date and original state:
spacewalk-clone-by-date -u admin -p password -l rhel-i386-server-6 cbd-rhel-i386-server-6-2010-12-15--29 -y -d 2010-12-15
spacewalk-clone-by-date -u admin -p password -l rhel-i386-server-6 cbd-rhel-i386-server-6-orig--29 -y


> output contains:
Reading repository information.
Using issue_date.

By continuing the following channels will be created:
cbd-rhel-i386-server-6-orig--29
Cloning rhel-i386-server-6 to cbd-rhel-i386-server-6-orig--29 with original package set.
Copying repodata, please wait.
Solving Dependencies (2691):
________________________________________
######################################## - complete
Processing Dependencies:
________________________________________
######################################## - complete
Dependencies added, looking for new dependencies
....
232 RPM(s) added to cbd-rhel-i386-server-6-orig--29 to resolve dependencies.
18 errata added to cbd-rhel-i386-server-6-orig--29 to resolve dependencies.
Please see /var/log/rhn/errata-clone.log for details.

By continuing the following will be cloned:
  rhel-i386-server-6 -> cbd-rhel-i386-server-6-orig--29  (0/3563 Errata)

No errata to clone, checking removelist.

and (with clone to date)
...
232 RPM(s) added to cbd-rhel-i386-server-6-2010-12-15--29 to resolve dependencies.
18 errata added to cbd-rhel-i386-server-6-2010-12-15--29 to resolve dependencies.
Please see /var/log/rhn/errata-clone.log for details.

By continuing the following will be cloned:
  rhel-i386-server-6 -> cbd-rhel-i386-server-6-2010-12-15--29  (49/3563 Errata)
Cloning Errata into cbd-rhel-i386-server-6-2010-12-15--29 (49):
________________________________________
######################################## - complete
Copying repodata, please wait.
Solving Dependencies (165):
________________________________________


contains summary of added RPMs and errata (was only RPMs before) => OK


> log /var/log/rhn/errata-clone.log contains:
Cloning rhel-i386-server-6 to cbd-rhel-i386-server-6-2010-12-15--29 with original package set.

Adding 7 RPM(s) needed for dependencies to cbd-rhel-i386-server-6-2010-12-15--29
device-mapper-persistent-data-0.3.2-1.el6.i686
openldap-2.4.40-5.el6.i686
...

Cloning 7 errata for dependencies to cbd-rhel-i386-server-6-2010-12-15--29 :
RHBA-2011:0529
RHBA-2014:1376
...

and (with clone to date)
Cloning Errata into cbd-rhel-i386-server-6-2010-12-15--29 (49):
RHBA-2010:0836 - NetworkManager bug fix and enhancement update
RHBA-2010:0845 - selinux-policy bug fix update
RHBA-2010:0846 - yum bug fix update
...
165 packages were added to cbd-rhel-i386-server-6-2010-12-15--29 as a result of clone:
NetworkManager-0.8.1-5.el6_0.1.i686
NetworkManager-glib-0.8.1-5.el6_0.1.i686
NetworkManager-gnome-0.8.1-5.el6_0.1.i686
...

contains list of both added errata and RPMS (was only errata - when cloning original, and only RPM when cloning to date) => OK
errata and RPMs names are ordered => OK


notes:
 - the first part of errata list does not contain errata synopsis
 - sorted() order is case sensitive

Comment 5 Grant Gainey 2016-10-20 21:39:58 UTC
Sort stays case-sensitive. Synopsis added.

spacewalk.github:
a8ec06f5eb5ddf43c674931a357314509d3a68ee

Comment 9 errata-xmlrpc 2016-11-07 13:38:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2662.html


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