Forum Discussion

Rowelax_121150's avatar
Rowelax_121150
Icon for Nimbostratus rankNimbostratus
Dec 18, 2012

Null Values comming from IControl

I had a script that was running until a few days ago and now all of a sudden it doesn't output anything. When I run it against the active node it doesn't work but when I put it to the standby node it does. Also when I change the username to a different username it works but when I leave it as foo on the active node it doesn't return anything. Here is bascally what my python script dos

 

c = pycontrol.BIGIP(

 

hostname='1.2.3.4',

 

username='foo',

 

password='bar',

 

fromurl=True,

 

debug=True,

 

wsdls=['LocalLB.Class']).LocalLB.Class

 

 

for data in c.get_address_class_list():

 

print data

 

 

Now this is what it spits out

 

DEBUG:suds.client:headers = {'SOAPAction': u'"urn:iControl:LocalLB/Class"', 'Content-Type': 'text/xml'}

 

DEBUG:suds.client:http succeeded:

 

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/Class">

 

s:type="A:Array"

 

A:arrayType="y:string[0]">

 

 

 

 

 

Is there any reason this would not work on the active node with username foo but works with a different username or on the standby node?

 

 

 

 

 

1 Reply

  • Totally random guess, but perhaps the partition/folder context is different when you perform your iControl call with a different user or target load balancer. If you don't use sessions, I believe you inherit that last folder/partition context that was set with that account.