Bug 157904

Summary: Yast System Update crashes if update installation of new software is selected and no installation sources are available
Product: [openSUSE] openSUSE 10.2 Reporter: Seth Chaiklin <seth>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Enhancement    
Priority: P5 - None CC: suse-beta
Version: unspecified   
Target Milestone: ---   
Hardware: 32bit   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Seth Chaiklin 2006-03-14 12:23:18 UTC
As reported in another bug, I am not able to save installation sources.

However, I started System Update, and then selected:

Update with New Software and Features based on the Selection 
under "Update Mode" 

This crashes "System Update" -- presumably because no sources are found, but I assume that you do not find this to be acceptable behavior.

Here is a relevant piece of y2log, followed by a list of relevant yast2 packages that are installed.


2006-03-14 13:16:49 <1> www(5321) [wfm] Update.ycp:269 Pkg Builtin called: GetSelections
2006-03-14 13:16:49 <1> www(5321) [YCP] Update.ycp:274 available_base_selections []
2006-03-14 13:16:49 <1> www(5321) [YCP] clients/inst_update.ycp:45 available_base_selections [], current_selection nil
2006-03-14 13:16:49 <1> www(5321) [wfm] clients/inst_update.ycp:63 Pkg Builtin called: RestoreState
2006-03-14 13:16:50 <1> www(5321) [qt-ui] YQCheckBox.cc(stateChanged):151 old: 0; new: 0
2006-03-14 13:16:52 <1> www(5321) [wfm] clients/inst_update.ycp:193 Pkg Builtin called: RestoreState
2006-03-14 13:16:52 <1> www(5321) [Interpreter] clients/inst_update.ycp:243 Called YaST client returned: `next
2006-03-14 13:16:52 <1> www(5321) [Interpreter] clients/update_proposal.ycp:309 Called YaST client returned: $["workflow_sequence":`next]
2006-03-14 13:16:52 <2> www(5321) [Parser] clients/update_proposal.ycp:106 Warning: Empty statement after 'if'
2006-03-14 13:16:52 <2> www(5321) [Parser] clients/update_proposal.ycp:119 Warning: Empty statement after 'if'
2006-03-14 13:16:52 <1> www(5321) [wfm] Y2CCWFM.cc(createInLevel):153 Parsing finished
2006-03-14 13:16:52 <1> www(5321) [Interpreter] clients/update_proposal.ycp:309 Calling YaST client update_proposal (arguments: ["MakeProposal", $["force_reset":false, "language_changed":false]])
2006-03-14 13:16:52 <2> www(5321) [YCP] Packages.ycp:472 Packages::Init() already called
2006-03-14 13:16:52 <1> www(5321) [wfm] PackageCallbacks.ycp:1094 Pkg Builtin called: CallbackStartConvertDb
2006-03-14 13:16:52 <1> www(5321) [wfm] Y2WFMComponent.cc(import):696 Y2WFMComponent::import (PackageCallbacks)
2006-03-14 13:16:52 <1> www(5321) [wfm] PackageCallbacks.ycp:1095 Pkg Builtin called: CallbackProgressConvertDb
2006-03-14 13:16:52 <1> www(5321) [wfm] Y2WFMComponent.cc(import):696 Y2WFMComponent::import (PackageCallbacks)
2006-03-14 13:16:52 <1> www(5321) [wfm] PackageCallbacks.ycp:1096 Pkg Builtin called: CallbackStopConvertDb
2006-03-14 13:16:52 <1> www(5321) [wfm] Y2WFMComponent.cc(import):696 Y2WFMComponent::import (PackageCallbacks)
2006-03-14 13:16:52 <1> www(5321) [wfm] PackageCallbacks.ycp:1097 Pkg Builtin called: CallbackNotifyConvertDb
2006-03-14 13:16:52 <1> www(5321) [wfm] Y2WFMComponent.cc(import):696 Y2WFMComponent::import (PackageCallbacks)
2006-03-14 13:16:52 <1> www(5321) [wfm] clients/update_proposal.ycp:85 Pkg Builtin called: TargetInit
2006-03-14 13:16:52 <1> www(5321) [zypp_detail] ZYppImpl.cc(initTarget):190 initTarget( /, 0)
2006-03-14 13:16:52 <1> www(5321) [zypp_detail] ZYppImpl.cc(initTarget):193 Repeated call to initTarget()
2006-03-14 13:16:52 <0> www(5321) [store] XMLFilesBackend.cc(XMLFilesBackend):132 Database already initialized
2006-03-14 13:16:52 <1> www(5321) [wfm] Update.ycp:207 Pkg Builtin called: TargetProducts
2006-03-14 13:16:52 <1> www(5321) [YCP] Update.ycp:209 First installed product $[]
2006-03-14 13:16:52 <2> www(5321) [Interpreter] Update.ycp:182 Cannot convert '?' to an integer
2006-03-14 13:16:52 <3> www(5321) [Interpreter] Update.ycp:183 Nil can be compared only for equality and non-equality
2006-03-14 13:16:52 <3> www(5321) [Interpreter] Update.ycp:183 if condition is nil.
2006-03-14 13:16:52 <3> www(5321) [YCP] Update.ycp:220 No source
2006-03-14 13:16:52 <2> www(5321) [Interpreter] Update.ycp:182 Cannot convert '?' to an integer
2006-03-14 13:16:52 <3> www(5321) [Interpreter] Update.ycp:183 Nil can be compared only for equality and non-equality
2006-03-14 13:16:52 <3> www(5321) [Interpreter] Update.ycp:183 if condition is nil.
2006-03-14 13:16:52 <1> www(5321) [wfm] clients/update_proposal.ycp:95 Pkg Builtin called: PkgReset
2006-03-14 13:16:52 <1> www(5321) [wfm] clients/update_proposal.ycp:96 Pkg Builtin called: ResolvableProperties
2006-03-14 13:16:52 <2> www(5321) [YCP] Packages.ycp:472 Packages::Init() already called
2006-03-14 13:16:52 <1> www(5321) [wfm] Packages.ycp:689 Pkg Builtin called: ResolvableProperties
2006-03-14 13:16:52 <1> www(5321) [YCP] Packages.ycp:692 No product found on media
2006-03-14 13:16:52 <1> www(5321) [wfm] clients/update_proposal.ycp:124 Pkg Builtin called: SetSelection
2006-03-14 13:16:52 <3> www(5321) [Interpreter] clients/update_proposal.ycp:124 Invalid cast of YCP value 'nil'! Should be but is not String!

yast2-core-2.13.17-6
yast2-online-update-2.13.6-4
yast2-instserver-2.13.7-3
yast2-control-center-2.13.2-6
yast2-packager-2.13.41-2
yast2-pkg-bindings-2.13.25-2
yast2-2.13.35-2
yast2-installation-2.13.32-3
yast2-qt-2.13.31-3
yast2-update-2.13.5-2
Comment 1 Lukas Ocilka 2006-03-17 13:21:58 UTC
Seth, which system did you want to update?
SL 10.0 to 10.1 by adding a new installation source and runnning `yast2 update`?
Or some older 10.1 Beta to SL 10.1 Beta6?
Comment 2 Seth Chaiklin 2006-03-17 21:43:31 UTC
I was trying to update an older 10.1 Beta to Beta6.

I started with SL 10.0, and was been updating the betas as they come out (10.0.42). Around beta4, various Yast problems appeared, so that Software Management and System Update were no longer functional, so I have been
using Kpackager to update (from the same /factory directory.

Around beta4, System Update would report "unknown" system.  
Comment 3 Lukas Ocilka 2006-04-21 12:10:55 UTC
Jsrain: Update.ycp fill_version_map() might be problematic with versions finishing "Beta[0-9]"
The function has no comment, so I could only guess :)
Comment 4 Lukas Ocilka 2006-04-21 12:14:12 UTC
This might be the same issue (but another case) as in the bug 157924.
Comment 5 Lukas Ocilka 2006-05-11 16:23:41 UTC
Works well now, but might be problematic in the next Beta phase.
Comment 6 Jiri Srain 2006-08-08 12:30:46 UTC
Fixed in SVN (hopefully, could not find any beta)