Bug 174740 - applying opera patch with zen-updater fails
Summary: applying opera patch with zen-updater fails
Status: RESOLVED FIXED
: 168670 173660 174595 177482 177540 177589 177594 177634 177875 178881 179414 179744 180990 181086 181276 181890 183321 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Zenworks (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Blocker with 1 vote (vote)
Target Milestone: ---
Assignee: Chris Rivera
QA Contact: Mauro Parra Miranda
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 05:01 UTC by Andreas Jaeger
Modified: 2006-06-09 15:47 UTC (History)
21 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
zmd-messages (2.20 KB, text/plain)
2006-05-11 05:02 UTC, Andreas Jaeger
Details
zmd-backend.log (90.27 KB, application/x-bzip2)
2006-05-11 05:03 UTC, Andreas Jaeger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Jaeger 2006-05-11 05:01:26 UTC
I tried to just apply the opera patch with zen-updater but got the following exception:

Novell.Zenworks.Zmd.Public.ZenException: Failed to lookup resolvable with id '75716'

Server stack trace: 
in <0x0019f> Novell.Zenworks.Zmd.Packaging.RedCarpetBackend+SqlTransaction:GetResult ()
in <0x000a3> Novell.Zenworks.Zmd.Packaging.RedCarpetBackend:ResolveDependencies (Novell.Zenworks.Zmd.Packaging.IResolvable[] installs, Novell.Zenworks.Zmd.Packaging.IResolvable[] upgrades, Novell.Zenworks.Zmd.Packaging.IResolvable[] removals)
in <0x00042> Novell.Zenworks.Zmd.Packaging.PackageManager:Resolve (Novell.Zenworks.Zmd.Packaging.IResolvable[] installs, Novell.Zenworks.Zmd.Packaging.IResolvable[] upgrades, Novell.Zenworks.Zmd.Packaging.IResolvable[] removals)
in <0x0005b> Novell.Zenworks.Zmd.Packaging.RemotePackageManager:ResolveDependencies (Novell.Zenworks.Zmd.Packaging.Public.ResolvableInfo[] installs, Novell.Zenworks.Zmd.Packaging.Public.ResolvableInfo[] upgrades, Novell.Zenworks.Zmd.Packaging.Public.ResolvableInfo[] removals)
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Runtime.Remoting.RemotingServices:InternalExecute (System.Reflection.MethodBase,object,object[],object[]&)
in <0x00265> System.Runtime.Remoting.RemotingServices:InternalExecuteMessage (System.MarshalByRefObject target, IMethodCallMessage reqMsg)

Exception rethrown at [0]: 

in <0x00a63> System.Runtime.Remoting.Proxies.RealProxy:PrivateInvoke (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, System.Exception exc, System.Object[] out_args)
Comment 1 Andreas Jaeger 2006-05-11 05:02:25 UTC
Created attachment 82918 [details]
zmd-messages
Comment 2 Andreas Jaeger 2006-05-11 05:03:06 UTC
Created attachment 82919 [details]
zmd-backend.log
Comment 3 Andreas Jaeger 2006-05-11 05:04:39 UTC
same problem with rug:

root:/var/log # rug in -t patch opera
Resolving Dependencies...

ERROR: Failed to lookup resolvable with id '75716'
Comment 4 Klaus Kämpf 2006-05-11 09:56:08 UTC
Where is this patch ?
Comment 5 Harald Mueller-Ney 2006-05-11 09:59:44 UTC
/mounts/mirror/SuSE/ftp.suse.com/pub/suse/update/10.1/repodata/

patch-opera-1313.xml
Comment 6 Klaus Kämpf 2006-05-11 10:39:20 UTC
I just installed this patch using "rug in -t patch opera" without problems.

Comment 7 Klaus Kämpf 2006-05-11 10:48:48 UTC
The zmd-backend.log attached at comment #2 shows a successful solver run, selecting the upgraded opera x86_64 package.
Comment 8 Klaus Kämpf 2006-05-11 11:19:35 UTC
After downgrading opera I am able to reproduce this bug
Comment 9 Klaus Kämpf 2006-05-11 11:28:07 UTC
I get
  ERROR: Failed to lookup resolvable with id '57551'

The resolvable in question is of kind "atom" and internally used inside zypp.

select id,kind from resolvables where name='opera';
57549|3
51101|0
57547|0
57550|0
57551|8

57549 is the patch, 51101 the installed package, 57547 the .i586 upgrade packages, 57550 the x86_64 upgrade package, and 57551 the atom (link between patch and package)

The error message comes from zmd, I don't see it in zmd-backend.log
Comment 11 Klaus Kämpf 2006-05-11 11:51:43 UTC
The exeception is coming from ZMD
  zmd/modules/linux/RedCarpetBackend.cs, line 1010
where it reads all transactions and calls GetResolvableById() for each id mentioned in the transactions table.

However, GetResolvableById() does not look at the resolvables table (where all resolvables are listed) but (in turn) at packages, patch, nessage, and script.

It does NOT look at patterns or products nor does it fall-back to the resolvables table.
Comment 12 Klaus Kämpf 2006-05-11 11:54:07 UTC
*** Bug 174595 has been marked as a duplicate of this bug. ***
Comment 13 Tambet Ingo 2006-05-11 12:34:43 UTC
I'll add patterns and products to the GetResolvableById(), but I'm not sure what to do with atoms. As you say, atoms are only internal zypp objects, and there's no class zmd can create for them. Even if it could, what would it show in rug and zen-*? "unknown"? Who whould install an "unknown" thing to their machine?
Comment 14 Tambet Ingo 2006-05-11 12:39:11 UTC
Committed the pattern and product lookup (Committed revision 28224.).
Comment 15 Tambet Ingo 2006-05-11 13:33:23 UTC
*** Bug 173660 has been marked as a duplicate of this bug. ***
Comment 16 Naresh Wignarajah 2006-05-11 14:18:43 UTC
Re-assigning to Tambet and resolving as fixed.
Comment 17 Naresh Wignarajah 2006-05-11 14:19:25 UTC
Resolved.  See Comment #14.
Comment 18 Klaus Kämpf 2006-05-11 14:19:50 UTC
If the reading of transactions is for display purposes only, the atoms can be safely skipped.
Comment 19 Naresh Wignarajah 2006-05-11 14:24:12 UTC
Re-opening and asking Klaus whether this is fully resolved?
Comment 20 Tambet Ingo 2006-05-11 14:25:06 UTC
It's not fixed.

About comment #18, zdm clears the transactions table before the actual transaction and adds required entries in. There are multiple reasons to do so, mostly because of concurrent user support.
Comment 21 Tambet Ingo 2006-05-11 15:08:58 UTC
What needs to be done is to create a dummy class implementing IResolvable which gets taken from the transactions table, passed to rug/zen-* (which ignores it for the output), and passes it back to zmd for the transaction.

Assigning to Chris. (Thanks Naresh, Chris)
Comment 23 Thorsten Kukuk 2006-05-16 08:39:51 UTC
What is the status here? Is this a problem for SLE10, too?
Comment 26 Chris Rivera 2006-05-16 14:56:00 UTC
This fixed in revision 28426.  zmd, rug, and zen-* silently handle atoms.
Comment 27 Chris Rivera 2006-05-22 19:09:54 UTC
*** Bug 177540 has been marked as a duplicate of this bug. ***
Comment 28 Tambet Ingo 2006-05-23 09:36:56 UTC
*** Bug 177589 has been marked as a duplicate of this bug. ***
Comment 29 Tambet Ingo 2006-05-23 09:39:43 UTC
*** Bug 177594 has been marked as a duplicate of this bug. ***
Comment 30 Tambet Ingo 2006-05-23 09:40:58 UTC
*** Bug 177634 has been marked as a duplicate of this bug. ***
Comment 31 Michael Gross 2006-05-23 13:49:33 UTC
*** Bug 177482 has been marked as a duplicate of this bug. ***
Comment 32 Tambet Ingo 2006-05-23 14:08:05 UTC
*** Bug 177875 has been marked as a duplicate of this bug. ***
Comment 33 Tambet Ingo 2006-05-26 10:12:48 UTC
*** Bug 178881 has been marked as a duplicate of this bug. ***
Comment 34 Jeff Vincent 2006-05-26 16:18:43 UTC
Where do we get a patch/fix/workaround ... anyone?
Comment 35 Marcus Meissner 2006-05-26 16:30:45 UTC
we have one in testing.

temporarily add this update source:
ftp://ftp.suse.com/pub/people/aj/10.1-packagemanagement-update-test/
and insdtall the patches in there.
Comment 36 Andreas Jaeger 2006-05-27 13:53:19 UTC
*** Bug 179414 has been marked as a duplicate of this bug. ***
Comment 37 Stanislav Brabec 2006-05-29 17:48:36 UTC
I have added to YaST sources on my 10.1 x86_64:
ftp://ftp.suse.com/pub/people/aj/10.1-packagemanagement-update-test/

I see 3 updates (msttfonts, flash-player, Update of the update stack.)

Selecting all or only zmd, YaST2 online_update silently quits. zen-updater applet shows 8 available updates, but zmd is not in the list of available updates (but it shows 10.1-packagemanagement-update-test in the configuration).
Comment 38 James Willcox 2006-05-30 15:54:58 UTC
*** Bug 179744 has been marked as a duplicate of this bug. ***
Comment 39 Alberto Passalacqua 2006-06-01 18:26:07 UTC
After applying the patches, if I unselect some catalog in the Configure -> Catalogs tab, Zen seems not to save the setting because all catalogs are selected again after a logout or reboot.
Comment 40 Tambet Ingo 2006-06-02 06:21:10 UTC
*** Bug 180990 has been marked as a duplicate of this bug. ***
Comment 41 Marcus Meissner 2006-06-02 08:26:07 UTC
*** Bug 181086 has been marked as a duplicate of this bug. ***
Comment 42 Marcus Meissner 2006-06-02 18:50:54 UTC
*** Bug 181276 has been marked as a duplicate of this bug. ***
Comment 43 Marcus Meissner 2006-06-06 09:13:21 UTC
*** Bug 181890 has been marked as a duplicate of this bug. ***
Comment 44 Chris Rivera 2006-06-09 14:58:48 UTC
*** Bug 181890 has been marked as a duplicate of this bug. ***
Comment 45 Marcus Meissner 2006-06-09 15:06:50 UTC
Updates for this problem have been released today.

Please install them with YaST Online Update, then restart zen-updater.

afterwards zen-updater will work correctly.
Comment 46 Tambet Ingo 2006-06-09 15:47:50 UTC
*** Bug 183321 has been marked as a duplicate of this bug. ***