[Bug 550934] New: It takes minutes to refresh "system is up to date" and "system is healthy"

http://bugzilla.novell.com/show_bug.cgi?id=550934 Summary: It takes minutes to refresh "system is up to date" and "system is healthy" Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: i586 OS/Version: Windows XP Status: NEW Severity: Normal Priority: P5 - None Component: WebYaST AssignedTo: kkaempf@novell.com ReportedBy: aguo@novell.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-1.14 Firefox/3.0.6 OS: both Linux and Windows Browser: FireFox 2.5/3 IE 7/8 Phenomenon: It takes minutes to refresh "system is up to date" and "system is healthy" when start webyast or just return to "control panel" page. Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Found By|--- |Development AssignedTo|kkaempf@novell.com |schubi@novell.com Target Milestone|--- |RC 1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User kkaempf@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c1 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |llwang@novell.com --- Comment #1 from Klaus Kämpf <kkaempf@novell.com> 2009-11-02 02:49:51 MST --- *** Bug 550945 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=550945 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c2 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lslezak@novell.com --- Comment #2 from Ladislav Slezak <lslezak@novell.com> 2009-11-04 06:29:42 MST --- I have implemented some caching in the patches module so the patches should be evaluated only when metadata changes (a new patch may be available) or when installed RPMs are changed (a new patch may be applicable) or after a timeout of 5 minutes (to check the remote repositories and probably refresh the repository cache). On my machine the first request to get the list of patches takes about 5.6seconds: Processing PatchesController#index to xml (for 127.0.0.1 at 2009-11-04 14:18:44) [GET] Parameters: {"format"=>"xml", "action"=>"index", "controller"=>"patches"} Account Load (0.5ms) SELECT * FROM "accounts" WHERE ("accounts"."remember_token" = '32faf20594c95f7d7735261ac8d9f8cb7fa43803') LIMIT 1 Cache read: patches:timestamp #### Patch cache expired Expired fragment: views/localhost:8080/patches.xml (0.1ms) Cache write: patches:timestamp Cached fragment hit: views/localhost:8080/patches.xml (0.1ms) Cached fragment miss: views/localhost:8080/patches.xml (0.1ms) Completed in 5636ms (View: 5, DB: 0) | 200 OK [http://localhost/patches.xml] The next request (just reloading the page) is way faster, about 0.03s: Processing PatchesController#index to xml (for 127.0.0.1 at 2009-11-04 14:19:19) [GET] Parameters: {"format"=>"xml", "action"=>"index", "controller"=>"patches"} Account Load (0.5ms) SELECT * FROM "accounts" WHERE ("accounts"."remember_token" = '32faf20594c95f7d7735261ac8d9f8cb7fa43803') LIMIT 1 Cache read: patches:timestamp Cached fragment hit: views/localhost:8080/patches.xml (0.0ms) Filter chain halted as [#<ActionController::Filters::AroundFilter:0x7f7aaef82480 @identifier=nil, @kind=:filter, @options={:if=>nil, :only=>#<Set: {"index"}>, :unless=>nil}, @method=#<Proc:0x00007f7ab02f9e28@/usr/lib64/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/caching/actions.rb:64>>] did_not_yield. Completed in 34ms (View: 4, DB: 1) | 200 OK [http://localhost/patches.xml] But the cache messages are printed only when running from GIT (via Mongrel server), I cannot see the messages in the appliance (running via lighttpd). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c3 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|schubi@novell.com |lslezak@novell.com --- Comment #3 from Ladislav Slezak <lslezak@novell.com> 2009-11-04 06:37:10 MST --- I'll look at it... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c4 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |aguo@novell.com --- Comment #4 from Ladislav Slezak <lslezak@novell.com> 2009-11-04 09:24:45 MST --- Actually caching works correctly in Beta4 appliance: Processing PatchesController#index to xml (for 127.0.0.1 at 2009-11-04 17:16:37) [GET] Parameters: {"format"=>"xml", "action"=>"index", "controller"=>"patches"} Account Load (1.4ms) SELECT * FROM "accounts" WHERE ("accounts"."remember_token" = '9301274196a783f4f2d79912c777f5c6455b6210') LIMIT 1 Cache read: patches:timestamp Cached fragment hit: views/localhost:4984/patches.xml (0.1ms) Filter chain halted as [#<ActionController::Filters::AroundFilter:0xb70d0ba8 @kind=:filter, @method=#<Proc:0xb756a7f4@/usr/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/caching/actions.rb:64>, @identifier=nil, @options={:only=>#<Set: {"index"}>, :if=>nil, :unless=>nil}>] did_not_yield. Completed in 9ms (View: 1, DB: 1) | 200 OK [http://localhost/patches.xml] Please attach yastws log: - enable debug logging (uncomment "config.log_level = :debug" line in /srv/www/yastws/config/environment.rb file - restart yastws service (or reboot the appliance) - reproduce the problem - attach /srv/www/yastws/log/production.log -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User aguo@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c5 --- Comment #5 from Arthur Guo <aguo@novell.com> 2009-11-04 19:14:55 MST --- Created an attachment (id=325625) --> (http://bugzilla.novell.com/attachment.cgi?id=325625) /srv/www/yastws/log/production.log The symptom reproduced. What have been done: 1. uncomment "config.log_level = :debug" line in /srv/www/yastws/config/environment.rb 2. restart yastws and yastwc services by "rcyastws restart" and "rcyastwc restart" 3. open IE8 browser and access WebYaST; 4. tar /srv/www/yastws/log/production.log and upload to this bug. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User aguo@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c6 Arthur Guo <aguo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|aguo@novell.com | --- Comment #6 from Arthur Guo <aguo@novell.com> 2009-11-04 19:20:22 MST --- Addition: After about 2 minutes, "Your system is healthy" is shown, but "patch information" still keep loading in IE8 browser. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c7 --- Comment #7 from Ladislav Slezak <lslezak@novell.com> 2009-11-05 03:38:12 MST --- I have found the reason: the AJAX request for patch status returns "500 Internal Server Error" response and the progress is not updated correctly. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c8 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #8 from Ladislav Slezak <lslezak@novell.com> 2009-11-05 08:23:41 MST --- Actually it's a duplicate of bug#550717. But I have improved the exception handling code - added nil and method checks so it should be more error proof. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User llwang@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c9 Leon Wang <llwang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #9 from Leon Wang <llwang@novell.com> 2009-11-05 21:29:16 MST --- I checked bug#550717, which has been marked as fixed. That fix doesn't make any improvement on loading "update" and "status". Even more, It is much slower to load modules than before. Seems it wait "Loading patch information" and "Working Loading system information". I think it is not necessary to show them on main page, because they can be shown in "Updates" and "Status" page already. Why not just delete "system is up to date" and "system is healthy." check on the main page? Reopen this bug because the slowness makes the customer feeling bad. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c10 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #10 from Ladislav Slezak <lslezak@novell.com> 2009-11-06 06:51:17 MST --- The reason why the statuses are on the first page is that if something is going wrong (e.g. running out of free space on a disk) or an important (security) update is available then the user should know that immediately without going into the relevant modules. The problem is that both actions are very time consuming (that's why they are loaded via AJAX requests when the page is loaded). The patches module contains caching so the available patches are not evaluated/searched in every page reload, but the status module doesn't have any caching yet. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c11 --- Comment #11 from Ladislav Slezak <lslezak@novell.com> 2009-11-09 06:23:36 MST --- I think the main problem is that the first patch status request triggers repository metadata download and cache rebuild which in case of slow/bad/overloaded network connection can take several minutes (as reported). I'll discuss possible solutions on the ML. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 User lslezak@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=550934#c12 Ladislav Slezak <lslezak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|RC 1 |Future 11.3 --- Comment #12 from Ladislav Slezak <lslezak@novell.com> 2009-11-13 09:09:34 MST --- I have a solution for the patches problem (reading patches in a background thread), but the change is quite big (from single threaded app to multithreaded) and we are very close to the final release. Therefore I'm postponing the fix to the future. (It's already in GIT in a separate branch.) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 http://bugzilla.novell.com/show_bug.cgi?id=550934#c13 Josef Reidinger <jreidinger@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jreidinger@novell.com --- Comment #13 from Josef Reidinger <jreidinger@novell.com> 2009-11-20 10:21:50 UTC --- Lado - what if we increase number of rails instances for appliance? it is not such big change and should solve our problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 http://bugzilla.novell.com/show_bug.cgi?id=550934#c14 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 - Medium |P4 - Low CC| |kkaempf@novell.com --- Comment #14 from Klaus Kämpf <kkaempf@novell.com> 2009-11-20 10:28:49 UTC --- I cant reproduce excessive slowness running WebYaST + IE8 in VirtualBox -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 http://bugzilla.novell.com/show_bug.cgi?id=550934#c15 --- Comment #15 from Ladislav Slezak <lslezak@novell.com> 2009-11-20 10:31:39 UTC --- To comment #13: Yes, that could help, but I'm afraid of possible race conditions. And it even could slowdown some things - I don't know if the cached data would be shared between the running instances. (We would have to probably run memcached daemon or something like that.) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 http://bugzilla.novell.com/show_bug.cgi?id=550934#c16 --- Comment #16 from Klaus Kämpf <kkaempf@novell.com> 2009-11-24 12:06:16 UTC --- comment #14 still holds with build 0.0.40 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=550934 http://bugzilla.novell.com/show_bug.cgi?id=550934#c17 --- Comment #17 from Leon Wang <llwang@novell.com> 2009-12-01 08:32:52 UTC --- (In reply to comment #14)
I cant reproduce excessive slowness running WebYaST + IE8 in VirtualBox
In order to compare, I tested WebYaST + FF3.5 in VirtualBox IE 8 and IE7 perform well on this issue. (take 1-3 seconds), while Firefox 3.5 performs bad (takes 3-10 seconds). Hope to fix this issue on Firefox 3.5 on later build -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com