Bug 186658

Summary: Spurious error about outdated zypp patch
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michal Svec <msvec>
Component: YaST2Assignee: Stefan Schubert <schubi>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Normal    
Priority: P5 - None CC: aj, andreas.hanke, ast, dmacvicar, forgotten_mbQyAD5r4K, hmuelle, mvidner, suse-beta
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot
screenshot
relevant y2logs
zyppdb
y2logs fill full zypp debug output
you screenshot

Description Michal Svec 2006-06-20 13:08:58 UTC
On some hosts online_update reports strange errors about zypp patches, offering to delete zypp. Seems to be caused by some outdated zypp patches, which are not available any more, but were available at some point of time.
Comment 1 Michal Svec 2006-06-20 13:09:52 UTC
Created attachment 90603 [details]
screenshot
Comment 2 Michal Svec 2006-06-20 13:10:12 UTC
Created attachment 90604 [details]
screenshot
Comment 3 Michal Svec 2006-06-20 13:12:09 UTC
Created attachment 90607 [details]
relevant y2logs
Comment 4 Michal Svec 2006-06-20 13:13:09 UTC
Created attachment 90608 [details]
zyppdb
Comment 5 Michal Svec 2006-06-20 13:14:51 UTC
The second screenshot (attachment #90604 [details]) is from someone else, just for illustration it also happens itw. Logs and zyppdb are relevant to the first screenshot.
Comment 6 Martin Vidner 2006-06-20 13:20:08 UTC
The problem is that the current "big patch" is called libzypp and the earlier ones were called zypp. We should release a newer big libzypp patch that obsoletes (automatically) the older libzypp and (explicitly) the even older zypp patches.

Michal L, I believe this is the same problem that you reported to maso on Jun 11.
Comment 7 Martin Vidner 2006-06-20 13:23:27 UTC
(to test, extract /var/lib/zypp/db/patches/df12dc65c0bc455fbd3d0ddd95a8fe22 from comment 4)
Comment 8 Harald Mueller-Ney 2006-07-24 13:42:39 UTC
Fixed
Comment 9 Michal Svec 2006-07-26 12:38:57 UTC
How is this supposed to be fixed? I still experience the problem (comment #2).
I can see the "libzypp update" in my list of patches for installation in YOU,
but I still get this error (I haven't run the update though).
Comment 12 Stanislav Visnovsky 2006-08-17 08:28:15 UTC
Harald, the patches on the update servers do not contain any information about obsoleting the old patch.
Comment 13 Harald Mueller-Ney 2006-08-17 09:19:16 UTC
Stano, could you provide a snippet how to obsolete a patch in our zypp-metadata?
Comment 14 Stanislav Visnovsky 2006-08-17 15:47:22 UTC
Jiri, please, help here.
Comment 15 Jiri Srain 2006-08-18 12:53:46 UTC
You can specify it exactly the same way as in case of packages:

<rpm:obsoletes>
  <rpm:entry kind="patch" name="patch-xxx-1234"/>
</rpm:obsoletes>

I'm just not sure about the rpm: prefix...
Comment 16 Michal Svec 2006-08-18 13:54:13 UTC
BTW this should be done for both of the above reported patches ...
Comment 18 Michal Svec 2006-08-21 12:40:21 UTC
Still the same.

I can confirm there is now obsoletes in the downloaded patch:
  <rpm:obsoletes>
    <rpm:entry kind="patch" name="patch-zypp-1310"/>
  </rpm:obsoletes>

But it doesn't change the behavior, I still get that error.
BTW that error refers to patch:zypp-1310-0.noarch if that matters.
Comment 19 Harald Mueller-Ney 2006-08-21 16:52:13 UTC
I am willing to fix the internal test-repo again, but someone of the developers has to tell me what needs to go into the patch.
Comment 20 Harald Mueller-Ney 2006-08-21 17:01:12 UTC
Michal could you try again? I changed the obsoletes on my own, some trial and error:

  <rpm:obsoletes> 
    <rpm:entry kind="patch" name="patch-zypp epoch="0" ver="1310" rel="0" flags="EQ""/>
  </rpm:obsoletes>

I expect obosoletes should have the same "scheme" as requires if versions are used. It is completely untested. 

Jiri, does it look correct to you?
Comment 21 Jiri Srain 2006-08-22 06:33:36 UTC
No, it does not, quoting int the rpm:entry tag is incorrect. Correct should be

<rpm:entry kind="patch" name="patch-zypp" epoch="0" ver="1310" rel="0"
flags="EQ"/>
Comment 22 Jiri Srain 2006-08-22 06:34:18 UTC
If it still doesn't work, let's have a look at the parser's and solver's logs...
Comment 23 Michal Svec 2006-08-22 08:25:44 UTC
Still the same.
Comment 24 Harald Mueller-Ney 2006-08-22 14:37:49 UTC
I don't know who is the best contact for providing the correct "obsoletion" snippet. Jiri, could you investigate and provide the snippet or reassign the bug to the best suited person?
Comment 25 Harald Mueller-Ney 2006-08-22 16:30:33 UTC
Please try again Michal, I missed comment#21 and fixed the type Jiri found.
Sorry for inconvenience.
Comment 26 Michal Svec 2006-08-23 07:42:16 UTC
Created attachment 96850 [details]
y2logs fill full zypp debug output
Comment 27 Michal Svec 2006-08-23 07:43:29 UTC
According to Stano Schubi could know more ...
Comment 28 Stefan Schubert 2006-08-23 08:55:45 UTC
I have not looked in the logfiles, but Harald you are obsoleting patch "patch-zypp". The screenshot of comment means the patch with the name "zypp". So please take the correct name.

Comment 31 Michal Svec 2006-08-23 09:52:15 UTC
This is what I have in the patch-libzypp-1839.xml:

  <rpm:obsoletes>
    <rpm:entry kind="patch" name="zypp" epoch="0" ver="1310" rel="0" flags="EQ"/>
  </rpm:obsoletes>

However, I still get the same error.
Comment 32 Stefan Schubert 2006-08-25 13:15:50 UTC
And now I need the logfiles again;-):

Could you please start

export ZYPP_FULLLOG=1; yast2 online_udpate

in a xterm and reproduce the error ?

Please attach the logfiles /var/log/YaST2/*
( at least /var/log/YaST2/y2log )

Thanks
Comment 33 Michal Svec 2006-08-25 13:37:36 UTC
Seems to be OK now, strange :-)
Will check again next week.
Comment 34 Michal Svec 2006-08-31 11:13:10 UTC
Created attachment 97619 [details]
you screenshot

I do not have that error any more. The patch seems to be selected for removal (see the screenshot), if that's an intended behavior.
Comment 35 Stefan Schubert 2006-09-05 13:27:03 UTC
A patch will be obsoleted by another. Thats OK. Do you see the deleted patch again after you commit and restart YOU ?
Comment 36 Michal Svec 2006-09-05 13:46:55 UTC
I could see twice libzypp update (and some other remnants, but not the patch to be deleted neither the error message. So this seems to be fixed.
Comment 37 Stefan Schubert 2006-09-05 16:00:53 UTC
OK, thank you for your help Michael.
Duncan, it works;-)