[Pacemaker] Announce: Hawk (HA Web Konsole) 0.2.0

Tim Serong tserong at novell.com
Tue Feb 9 23:38:14 UTC 2010


On 2/10/2010 at 03:40 AM, <Darren.Mansell at opengi.co.uk> wrote: 
> On Tue, 2010-02-09 at 06:44 -0700, Tim Serong wrote: 
> > On 2/9/2010 at 11:05 PM, <Darren.Mansell at opengi.co.uk> wrote:=20 
> > > It's pacemaker-1.0.3-4.1=20 
> > > =20 
> > > No output for cluster-infrastructure.=20 
> > > =20 
> > > But the HTML source does contain information, just display: none hides=20 
> > > it:=20 
> > > =20 
> > > <div id=3D"summary" style=3D"display: none">=20 
> > >   <table>=20 
> > >     <tr><th>Stack:</th>     <td><span=20 
> > > id=3D"summary::stack"></span></td></tr>=20 
> > >     ... 
> > >   </table>=20 
> > > </div>=20 
> >=20 
> > It was keying the display off the cluster-infrastructure parameter, 
> > which first appeared in Pacemaker 1.0.4.  I've since fixed this, and 
> > OBS packages for hawk-0.2.1 have been built.  They should thus appear 
> > in the repos on download.opensuse.org in the fullness of time.  Once 
> > said time has elapsed, please install the new packages and let me know 
> > how you go. 
> >=20 
> > Regards, 
> >=20 
> > Tim 
> >=20 
>  
> This is great thanks. The only problem now is that in FF 3.5 and Google 
> Chrome in Linux it displays for about 5 seconds then the screen goes 
> blank. Is it this bit of JS? 
>  
> Event.observe(window, 'load', function() { do_update(); }); 
>  

So, by "fixed" I clearly meant "fixed in only one of the two places that
require fixing".  Please try the following change (the relevant file will
be /srv/www/hawk/public/javascripts/application.js):

diff -r ed8bf3b8be26 hawk/public/javascripts/application.js
--- a/hawk/public/javascripts/application.js	Tue Feb 09 23:27:49 2010 +1100
+++ b/hawk/public/javascripts/application.js	Wed Feb 10 10:35:23 2010 +1100
@@ -35,7 +35,7 @@
 }
 
 function update_summary(summary) {
-  if (summary.stack) {
+  if (summary.version) {
     for (var e in summary) {
       $("summary::" + e).update(summary[e]);
     }
@@ -101,7 +101,7 @@
     update_errors(request.responseJSON.errors);
     update_summary(request.responseJSON.summary);
 
-    if (request.responseJSON.summary.stack) {
+    if (request.responseJSON.summary.version) {
       $("nodelist").show();
       if (update_panel(request.responseJSON.nodes)) {
         if ($("nodelist::children").hasClassName("closed")) {


Regards,

Tim


-- 
Tim Serong <tserong at novell.com>
Senior Clustering Engineer, Novell Inc.







More information about the Pacemaker mailing list