[Bug 386633] New: YaST2 Piwo doesn't work - clients/online_update. ycp calls Commandline from UI (?)
https://bugzilla.novell.com/show_bug.cgi?id=386633 Summary: YaST2 Piwo doesn't work - clients/online_update.ycp calls Commandline from UI (?) Product: openSUSE 11.0 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: lslezak@novell.com ReportedBy: locilka@novell.com QAContact: jsrain@novell.com CC: jsuchome@novell.com, aschnell@novell.com Found By: --- Created an attachment (id=212242) --> (https://bugzilla.novell.com/attachment.cgi?id=212242) YaST logs I tried to run the on-line update from KDE4. It called yast2 piwo, after configuring repositories on-line update is called which fails: [Interpreter] clients/online_update.ycp:313 Calling YaST client online_update (arguments: [$["enable_back":true, "enable_next":true]]) CommandLine.ycp:1215 Command line interface started (why?) [Parser] ag_tty:1 Unexpected char 'ESC' [liby2] Y2ProgramComponent.cc(receiveFromExternal):358 External program returned invalid data. .. after that CommandLine keeps failing with several errors. Finally, online update script fails and UI returns that calling online-update has failed because client returned invalid data. clients/online_update.ycp:313 Can't convert value '1' to type 'symbol' 1.) Why commandline? 2.) Client should not fail on that. 3. ) YaST Piwo is a very strange and non-obvious workflow. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c1
Jiří Suchomel
[Interpreter] clients/online_update.ycp:313 Calling YaST client online_update (arguments: [$["enable_back":true, "enable_next":true]]) CommandLine.ycp:1215 Command line interface started (why?)
This is usual every time you call client that has CLI support. But it should not hurt if the arguments would be correct. Daniel, why is 'yast2 online-update called with the map argument ($["enable_back":true, "enable_next":true]) ? It doesn't seem to have any sense. (Or, Ladislav, maybe such argument should be correctly discarded by CommandLine.ycp?)
Finally, online update script fails and UI returns that calling online-update has failed because client returned invalid data. clients/online_update.ycp:313 Can't convert value '1' to type 'symbol'
online_update.ycp returns integer, not symbol, this is intentional. The caller of this client should not expect symbol. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386633
User locilka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c2
--- Comment #2 from Lukas Ocilka
Finally, online update script fails and UI returns that calling online-update has failed because client returned invalid data. clients/online_update.ycp:313 Can't convert value '1' to type 'symbol'
online_update.ycp returns integer, not symbol, this is intentional. The caller of this client should not expect symbol.
So it seems piwo needs some handler script. ProductControl just expects and will expect symbol because using this symbol is vitally important to control the dialog flow `back, `next, `abort, `cancel, `auto. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386633
User lslezak@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c3
--- Comment #3 from Ladislav Slezak
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c4
--- Comment #4 from Jiří Suchomel
(In reply to comment #3 from Ladislav Slezak)
The CommandLine module thinks that the command line mode is active because there were passed 2 arguments. Run time clients should not be used by this way.
online_update.ycp already checks for some parameters (like .simple_mode) which do not start the command line mode. There could be one more exception.
Yes, the map parameter could be handled in the online_update.ycp as another exception, but not the return value.
But think the right solution is to have an installation client and a runtime client (GUI/CLI).
Well, there is an installation client (inst_you) and runtime client (online_update), and inst_you should be used in the sequence. But it was designed for installation and I have no idea if it would work on installed system. IMHO the "piwo" concept of using the part of control file and calling the files from installation sequence is wrong. Why can't you use the usual Sequencer as in all other modules used on installed system? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386633
User locilka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c5
--- Comment #5 from Lukas Ocilka
IMHO the "piwo" concept of using the part of control file and calling the files from installation sequence is wrong. Why can't you use the usual Sequencer as in all other modules used on installed system?
I wouldn't say that it is wrong. Sequences has been designed to call dialogs, functions. Piwo design is really workflow-based, so using ProductControl sounds like a good idea (and/or WorkflowManager). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c6
--- Comment #6 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c7
--- Comment #7 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c8
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c9
--- Comment #9 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jdsn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c10
J. Daniel Schmidt
Can't you just call if from the applet when the previous sequence is successful?
Regarding the possible solutions this idea sounds quiet reasonable. I will clarify that. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jdsn@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c11
J. Daniel Schmidt
https://bugzilla.novell.com/show_bug.cgi?id=386633
User jsuchome@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=386633#c12
--- Comment #12 from Jiří Suchomel
participants (1)
-
bugzilla_noreply@novell.com