Forum Discussion

Amy_Allen_570's avatar
Amy_Allen_570
Icon for Nimbostratus rankNimbostratus
Feb 14, 2007

Problem with state status after toggle

Hello all,

 

 

I am having problem when I use togglePoolMember.pl to change status of member's state. For example, when I run togglePoolMember.pl, state status change to DISABLE from ENABLE. But, when I run getMemberInfo.pl for the same pool and member, I got state ENABLE. Is there anybody else seen this problem? I am not sure where the problem is. Need help. Thanks!

 

 

 

6 Replies

  • After some more testing, I found that togglePoolMember.pl doesn't change the status of the state.
  • Could you post the output when the SOAP debugging is turned on?

    use SOAP::Lite + trace => qw(method debug);

    This will output all the SOAP messages and their responses. You can omit any connection info that you deem confidential. I'm primarily concerned with the SOAPRequests and SOAPResponses. Also, if you could provide the command line arguments you passed in (minus address/username/password) that would help as well.

    -Joe
  • The command I use is

    togglePoolMember.pl xxx.xxx.xxx 443 username passwd poolname 192.x.x.1

    Here is the SOAP debug:

    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     >
        >
        xmlns:namesp1="urn:iControl:LocalLB/PoolMember"
        >
          SOAP-ENC:arrayType="xsd:string[1]"
          >
                    
     >amytest.usg-http
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x8630d30)
    SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
    Connection: close
    Date: Wed, 14 Feb 2007 19:42:38 GMT
    Server: Apache
    Content-Type: text/xml; charset="UTF-8"
    Client-Date: Wed, 14 Feb 2007 19:42:39 GMT
    Client-Peer: x.x.x.x:443
    Client-Response-Num: 1
    Client-SSL-Cert-Issuer: 
    /C=US/ST=TX/L=Denton/O=xxxxx/OU=xxxxxx/CN=xxx.xxx.xxx/emailAddress=xxxx@xxxx.xxx
    Client-SSL-Cert-Subject: /C=US/ST=TX/L=Denton/O=xxxxxx/OU=xxxxxx
    Group/CN=xxx.xxx.xxx/emailAddress=xxx@xxxx.xxx
    Client-SSL-Cipher: DHE-RSA-AES256-SHA
    Client-SSL-Warning: Peer certificate not verified
    Client-Transfer-Encoding: chunked
    Set-Cookie: BIGIPAuthCookie=BD685D5053281572914BAA28AAE59C0C764846F8;
    path=/; Secure;
    SOAPServer: EasySoap++/0.6        xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:s="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:y="http://www.w3.org/2001/XMLSchema"
            xmlns:iControl="urn:iControl"
            E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">        xmlns:m="urn:iControl:LocalLB/PoolMember">        s:type="A:Array"
            A:arrayType="iControl:LocalLB.PoolMember.MemberSessionState[][1]">        A:arrayType="iControl:LocalLB.PoolMember.MemberSessionState[4]">        s:type="iControl:LocalLB.PoolMember.MemberSessionState">        s:type="iControl:Common.IPPortDefinition">        s:type="y:string">192.x.x.1        s:type="y:long">80        s:type="iControl:Common.EnabledState">STATE_ENABLED        s:type="iControl:LocalLB.PoolMember.MemberSessionState">        s:type="iControl:Common.IPPortDefinition">        s:type="y:string">192.x.x.4        s:type="y:long">80        s:type="iControl:Common.EnabledState">STATE_DISABLED        s:type="iControl:LocalLB.PoolMember.MemberSessionState">        s:type="iControl:Common.IPPortDefinition">        s:type="y:string">192.x.x.2        s:type="y:long">80        s:type="iControl:Common.EnabledState">STATE_DISABLED        s:type="iControl:LocalLB.PoolMember.MemberSessionState">        s:type="iControl:Common.IPPortDefinition">        s:type="y:string">192.x.x.81        s:type="y:long">80        s:type="iControl:Common.EnabledState">STATE_ENABLED
    SOAP::Deserializer::deserialize: ()
    ...
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Data::new: ()
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x8736984)
    SOAP::Transport::HTTP::Client::send_receive: POST https://xxx.xxx.xxx:443/iControl/iControlPortal.cgi HTTP/1.1
    Accept: text/xml
    Accept: multipart/*
    Content-Length: 1319
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "urn:iControl:LocalLB/PoolMemberset_session_enabled_state"xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:namesp3="http://namespaces.soaplite.com/perl" 
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" 
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" 
    xmlns:xsd="http://www.w3.org/1999/XMLSchema" 
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
     >
        >
        xmlns:namesp2="urn:iControl:LocalLB/PoolMember"
        >
          SOAP-ENC:arrayType="xsd:string[1]"
          >
                    >amytest.usg-http
          SOAP-ENC:arrayType="SOAP-ENC:Array[1]"
          >
                    >
                        >
                            >
                                >192.x.x.81
                                >80
                            
     >STATE_DISABLED
    SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x8735814)
    SOAP::Transport::HTTP::Client::send_receive: HTTP/1.1 200 OK
    Connection: close
    Date: Wed, 14 Feb 2007 19:42:39 GMT
    Server: Apache
    Content-Type: text/xml; charset="UTF-8"
    Client-Date: Wed, 14 Feb 2007 19:42:39 GMT
    Client-Peer: x.x.x.x:443
    Client-Response-Num: 1
    ...
    Client-SSL-Cipher: DHE-RSA-AES256-SHA
    Client-SSL-Warning: Peer certificate not verified
    Client-Transfer-Encoding: chunked
    Set-Cookie: BIGIPAuthCookie=BD685D5053281572914BAA28AAE59C0C764846F8;
    path=/; Secure;
    SOAPServer: EasySoap++/0.6        xmlns:E="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:A="http://schemas.xmlsoap.org/soap/encoding/"
            xmlns:s="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:y="http://www.w3.org/2001/XMLSchema"
            xmlns:iControl="urn:iControl"
            E:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">        
    xmlns:m="urn:iControl:LocalLB/PoolMember">
    SOAP::Deserializer::deserialize: ()
    SOAP::Parser::decode: ()
    SOAP::SOM::new: ()
    SOAP::SOM::DESTROY: ()
    Pool Member poolname {192.x.x.1:80} state set from 'STATE_ENABLED' to 'STATE_DISABLED'
    SOAP::Data::DESTROY: ()
    ...

    I have 4 member in this pool.

    Available pool members

    ======================

    pool poolname {

    192.x.x.1:80 (STATE_ENABLED)

    192.x.x.4:80 (STATE_DISABLED)

    192.x.x.2:80 (STATE_DISABLED)

    192.x.x.81:80 (STATE_ENABLED)

    }

    It looks like it is only toggle the last member in the pool.
  • Looks like there is a bug in the logic in that sample. I'll take a look and see if I can get a fix posted.

     

     

    -Joe