Le mercredi 4 juillet 2007 08:22, Jure Pečar a écrit :
> As I mentioned in the "stonith setup" thread, I'm having problems with
> stonith on iLo2 device. Poweroff works if I use iLo web ui, but not if I
> use external/riloe stonith script.
>
> I modified it to write the dialogue into a file, which is attached. I see
> no reason why this doesn't work, apart from <inform> tag, which is harmless
> according to documentation.
>
> Any iLo experts around?

The inform tag itself maybe harmless, but it would seem all the commands are 
silently ignored if the client doesn't seem recent enough...

Apparently, the latest CPQLOCFG.EXE command sends a new thing right after the 
initial <?xml version="1.0"?>. Try adding <LOCFG VERSION="2.22"> to the 
script. Also, the RIBCL version needs to be set to 2.0. I made these small 
changes a few minutes ago and it now works again for me. Maybe a RI_VERSION 
parameter should be added to the script?

Here's a context diff (from heartbeat 2.0.7):

*** riloe       Wed Jul  4 17:07:39 2007
--- riloe.new   Wed Jul  4 17:19:34 2007
***************
*** 60,66 ****
                  reset_ok = None
  except KeyError:
          reset_ok = None
! login = [ '<RIBCL VERSION="1.2">',
            '<LOGIN USER_LOGIN="Administrator" PASSWORD="'
          + password + '">' ]

--- 60,66 ----
                  reset_ok = None
  except KeyError:
          reset_ok = None
! login = [ '<RIBCL VERSION="2.0">',
            '<LOGIN USER_LOGIN="Administrator" PASSWORD="'
          + password + '">' ]

***************
*** 148,153 ****
--- 148,155 ----
                  c=HTTPSConnection(rihost)
                  c.send('<?xml version="1.0"?>\r\n')
                  c.sock.recv(1024)
+                 c.send('<LOCFG VERSION="2.22"\r\n>')
+                 c.sock.recv(1024)


                  for line in cmds:

Alain.

-- 
Alain St-Denis
Supercomputing, Systems and Storage
Canadian Meteorological Centre
Meteorological Service of Canada
Environment Canada
Tel: +1 514 421 4697
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to