[Bug 1191351] New: Fix missing methods for software installation process
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
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.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c3
--- Comment #3 from Markus Elfring
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c4
--- Comment #4 from Markus Elfring
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c5
Knut Alejandro Anderssen Gonz��lez
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:
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
Knut Alejandro Anderssen Gonz�lez
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
Knut Alejandro Anderssen Gonz�lez
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c6
--- Comment #6 from Markus Elfring
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.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
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
(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.
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351
http://bugzilla.opensuse.org/show_bug.cgi?id=1191351#c9
--- Comment #9 from Markus Elfring
participants (1)
-
bugzilla_noreply@suse.com