Re: fence_apc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Nov 2007 11:20:27 -0500
jim parsons <jparsons@xxxxxxxxxx> wrote:

> Doh...

Let's take a look at this:

       if o == "-n":
        dex = a.find(":")
        if dex == (-1):
          port = a
        else:
          switchnum = a[:dex]
          port = a[(dex+1):]

Let's say I define only the port, with '-n 3'. Then we get to the part:

    elif i.find(DEVICE_MANAGER) != (-1):
      if switchnum != "":
        res = switchnum + "\r"
      else:
        if FIRMWARE_REV == 2:
          res = "3\r"
        elif FIRMWARE_REV == 3:
          res = "2\r1\r"
        else: #placeholder for future revisions
          res = "3\r"
      return (NOT_COMPLETE, res, "Status Unknown")

And this is very strange to me. On 7920, we are at this stage:

------- Device Manager ---------------------------------

     1- Phase Monitor
     2- Outlet Control
     3- Power Supply Status

     <ESC>- Back, <ENTER>- Refresh

So, clearly, for 'anything' to work, one must define a switch number as
'2'. So, for the sake of the example, I defined it as '-n 2:3'. That
creates another problem. Running command:

fence_apc -a x.x.x.x -l abc -p def -v -n 2:3

I should reboot node number 3. But this is what I get:

------- alias-three ----------------------------------------------

        Name         : alias-three
        Outlet       : 3
        State        : ON

     1- Immediate On              
     2- Immediate Off             
     3- Immediate Reboot          
     4- Delayed On                
     5- Delayed Off               
     6- Delayed Reboot            
     7- Cancel                    

     ?- Help, <ESC>- Back, <ENTER>- Refresh
> 1
        -----------------------------------------------------------------------
        Immediate On              

        This command will immediately turn
        outlet 3 named 'alias-three' ON.

        Enter 'YES' to continue or <ENTER> to cancel : YES
        Command successfully issued.

        Press <ENTER> to continue...

By default, it should reboot, not power on, right?. It was too late for
me to dig more into the code. IMHO 7920 is missing a step that
fence_apc thinks should be there. So, I'm sending full transcript of
the session:

American Power Conversion               Network Management Card
AOS      v2.7.0 (c) Copyright 2004 All Rights Reserved  Rack PDU
APP                     v2.7.3
-------------------------------------------------------------------------------
Name      : r2d2cp0etcbl                              Date : 11/20/2007
Contact   : hostmaster                                Time : 00:04:11
Location  : SomewhereInEurope                         User : Outlet User
Up Time   : 17 Days 10 Hours 57 Minutes Stat : P+ N+ A+

Switched Rack PDU: Communication Established

------- Control Console --------------------------------------------

     1- Device Manager
     2- Network
     3- System
     4- Logout

     <ESC>- Main Menu, <ENTER>- Refresh
> 1

------- Device Manager ---------------------------------------------

     1- Phase Monitor
     2- Outlet Control
     3- Power Supply Status

     <ESC>- Back, <ENTER>- Refresh
> 2

------- Outlet Control --------------------------------------------

     1- aliasname-one               ON
     2- aliasname-two               ON
     3- aliasname-three             ON
     4- ALL Accessible Outlets

     <ESC>- Back, <ENTER>- Refresh
> 3

------- aliasname-three -----------------------------------------------

        Name         : aliasname-three
        Outlet       : 3
        State        : ON

     1- Immediate On              
     2- Immediate Off             
     3- Immediate Reboot          
     4- Delayed On                
     5- Delayed Off               
     6- Delayed Reboot            
     7- Cancel                    

     ?- Help, <ESC>- Back, <ENTER>- Refresh
> 1
        -----------------------------------------------------------------------
        Immediate On              

        This command will immediately turn
        outlet 3 named 'aliasname-three' ON.

        Enter 'YES' to continue or <ENTER> to cancel : YES
        Command successfully issued.

        Press <ENTER> to continue...

Thanks!

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux