rob_carr
Jun 20, 2008Cirrostratus
Trouble obtaining pool members.
Here's my problem:
I'm trying to use iControl to obtain the ip and port information of all members of a specific pool. I'm using Python and the SOAPpy module for my script.
When I connect to the LTM to collect this information, it appears that iControl is returning a list containing an empty list, rather than a list containing a list containing a struct for each pool member.
Below is the code fragment in question, and below that is the output of the fragment.
Script fragment:
db_proxy = SOAPpy.SOAPProxy(url, ICONTROL_POOL_NAMESPACE)
pool_members = db_proxy.get_member(pool_names["http_pool_8633"])
print pool_members
print len(pool_members)
print pool_members[ 0 ]
print len(pool_members[ 0 ])
Script output:
[root@host ~]$ ./GetPoolMembers.py
: [[]]
1
: []
0
Any suggestions?
I've checked the obvious things (I think) like 'are we connecting to the correct LTM', 'is the pool name correct' and 'does the pool contain any members'.