Cloned for 5.3.1
So this shouldn't affect 5.3.0 afterall, Will move to modified for QA to test properly. -Justin
channel subscription change, rhn-profile-sync shows 2 errata -> correct behavior system registration shows only 1 applicable erratum: 1. I created a custom channel 2. I created 2 custom errata both containing same package foo-2 and published them into the custom channel 3. I created an activation key for the custom channel 4. I registered a client having installed foo-1 using the activation key WebUI shows that only 1 erratum is applicable. After errata-cache was regenerated by taskomatic or after rhn-profile-sync was run on the client, 2 errata were shown on the webUI. Using Satellite-5.4.0-RHEL5-re20101015.0 -> FAILS_QA
Tomas, I wasn't able to reproduce this, what client were you using? Can you point me to a reproducer? Thanks! -Justin
Hey Justin, I using a rhel55 client. I used rhn-setup-1.1.15-1.el5. Now, I tried rhn-setup-0.4.20-33.el5 with the same result. Ping me for regarding reproducer because I reuse the systems often.
I've isolated the problem. The stored proc rhn_server.update_needed_cache currently makes an assumption that multiple errata won't share a package which is incorrect. I believe this was changed recently with some of the errata cache work that someone did. The proc uses a hashmap of package_id -> errata_id which causes this problem. Anyways, the proc will only add 1 needed errata for each package_id each time it is run. So for example, if you have 5 errata with the same package, the proc will need to be run 5 times for the system to see all 5 are applicable. -Justin
I'm not going to go ahead to fix it since it will take some time, and I've got a 540 bug to work on, but the above information will at least save someone the time from tracking it down again :} -Justin
fixed in spacewalk.git: 74665cc2f5ce9d14592ba5ba15afea16050da420
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332 RHEA-2010:0803 - RHN Tools enhancement update https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333 RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334 RHEA-2010:0800 - RHN Satellite Server 5.4.0 https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335 Docs are available: http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html Regards, Clifford