[Bug 1191351] New: Fix missing methods for software installation process
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 Bug ID: 1191351 Summary: Fix missing methods for software installation process Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Major Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: Markus.Elfring@web.de QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 852945 --> http://bugzilla.opensuse.org/attachment.cgi?id=852945&action=edit error logs as background information for another questionable software upgrade attempt I tried it out by the means of the image ���openSUSE-Tumbleweed-DVD-x86_64-Snapshot20210928-Media.iso��� to upgrade another system which became affected also by installation challenges with link changes according to an evolving topic. https://en.opensuse.org/openSUSE:Usr_merge#State_in_openSUSE It seemed that the dependency resolution succeeded after a while. Unfortunately, a missing method was reported after the start of the software update. (I did not notice any interfaces which would trigger more helpful clarification possibilities.) I dared another software update attempt by the means of the image ���openSUSE-Tumbleweed-KDE-Live-x86_64-Snapshot20210929-Media.iso���. Hours were needed to configure the involved dependencies until I found them good enough for the next system upgrade. But I got annoyed once more after the update start by the following error message. ��� Internal error. Please report a bug report with logs. Run save_y2logs to get complete logs. Caller: /usr/share/YaST2/lib/y2packager/resolvable.rb:123:in `method_missing' Details: undefined method `path' for #<Y2Packager::Resolvable:0x000055a9b6c25d98> Start the Ruby debugger now and debug the issue? (Experts only!) ��� How will the chances evolve to fix remaining open issues? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c3 --- Comment #3 from Markus Elfring <Markus.Elfring@web.de> --- Will the chances grow for corresponding software fixes also by the means of more detailed source code analysis and review? https://github.com/yast/yast-yast2/blob/4f0560a55f0b4ece41ed50063fd7baf00cd8... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c4 --- Comment #4 from Markus Elfring <Markus.Elfring@web.de> --- I imagine that another source code inspection can help for the desired clarification of the reported issue. At which code places is it tried so far to call the method ���path��� (eventually also for the class ���Y2Packager::Resolvable���)? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c5 Knut Alejandro Anderssen Gonz��lez <kanderssen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED --- Comment #5 from Knut Alejandro Anderssen Gonz��lez <kanderssen@suse.com> --- (In reply to Markus Elfring from comment #4)
I imagine that another source code inspection can help for the desired clarification of the reported issue.
At which code places is it tried so far to call the method ���path��� (eventually also for the class ���Y2Packager::Resolvable���)?
Ok, I was trying to reproduce the error and was able to raise the same exception in a console: So apparently the problem is cause by products which do not have the "path" attribute which should be optional: From the logs at least these two: <Y2Packager::Resolvable:0x000055a9b222ccf0 @arch="i586", @kind=:product, @name="openSUSE-Addon-NonOss", @source=57, @ +version="13.2-0">,��� #<Y2Packager::Resolvable:0x000055a9b222cc00 @arch="x86_64", @kind=:product, @name="openSUSE-Addon-NonOss", @source=57, @version="13.2-0"> -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 Knut Alejandro Anderssen Gonz�lez <kanderssen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |NEW -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 Knut Alejandro Anderssen Gonz�lez <kanderssen@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c6 --- Comment #6 from Markus Elfring <Markus.Elfring@web.de> --- (In reply to Knut Alejandro Anderssen Gonz��lez from comment #5)
Ok, I was trying to reproduce the error and was able to raise the same exception in a console:
Thanks for such a constructive feedback.
So apparently the problem is cause by products which do not have the "path" attribute which should be optional:
I would wonder why this questionable attribute access was reported as a call of an ���undefined method���. Will any test cases be extended accordingly? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c7 --- Comment #7 from Knut Alejandro Anderssen Gonz��lez <kanderssen@suse.com> --- (In reply to Markus Elfring from comment #6)
(In reply to Knut Alejandro Anderssen Gonz��lez from comment #5)
Ok, I was trying to reproduce the error and was able to raise the same exception in a console:
Thanks for such a constructive feedback.
So apparently the problem is cause by products which do not have the "path" attribute which should be optional:
I would wonder why this questionable attribute access was reported as a call of an ���undefined method���. Will any test cases be extended accordingly?
(In reply to Markus Elfring from comment #4)
I imagine that another source code inspection can help for the desired clarification of the reported issue.
At which code places is it tried so far to call the method ���path��� (eventually also for the class ���Y2Packager::Resolvable���)?
It uses meta-programming to expose the attribute methods, in our case, there is some products data information that is filled here: https://github.com/yast/yast-packager/blob/master/src/lib/y2packager/install... As it is documented in the Resolvable class, not all the attributes are mandatory because resolvable works with different kind of resolvable objects, and that is why path is optional and should exist only with packages and products as stated here: https://github.com/yast/yast-yast2/blob/master/library/packages/src/lib/y2pa... But as the Product mentioned before (openSUSE-Addon-NonOss version 13.2) does not have the path attribute and can not obtain or set the instance variable it calls the method in the line reported (https://github.com/yast/yast-yast2/blob/master/library/packages/src/lib/y2pa...) by the super call. And yep, with the proper fix we will also provide a test covering this case. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c8 --- Comment #8 from Knut Alejandro Anderssen Gonz�lez <kanderssen@suse.com> --- I have created a PBI in order to plan for it during next sprints. Thanks for the bug report. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351 http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c9 --- Comment #9 from Markus Elfring <Markus.Elfring@web.de> --- (In reply to Knut Alejandro Anderssen Gonz�lez from comment #8) How will chances evolve to optimise the dependency resolution any further for the involved components (also for my next software distribution upgrade attempts)? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com