Forum Discussion
Created a new F5 partition -- now I'm getting an exception with my iControl automation (java api)
Hi folks -- I wrote a java program that uses iControl to 'toggle' certain nodes off and on (set_session_enabled_state) to direct network flow for test cases. On our F5, I was using the 'Common' partition.
Recently I created a new partition for a different test effort, called "PC3". But now that I have this new partition, I'm getting an exception when I attempt to run the automation. Searching the KB, it's not entirely clear how I can work around this problem....I'm not sure why the "current update partition" is now the new one. Thx!
Here's the exception:
Building array from a list of 2 entries.AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: Exception caught in LocalLB::urn:iControl:LocalLB/NodeAddress::set_session_enabled_state()Exception: Common::OperationFailed
primary_error_code : 17238054 (0x01070826) secondary_error_code : 0 error_string : 01070826:3: Current Update Partition Error: The current update partition (PC3) does not match the object's partition (Common) (node address) (10.10.40.16)
2 Replies
- David__Pasch
Altostratus
I don't know what you code looks like, or java that well, but it appears you are trying to utilize a node that was created in Common and you are in PC3. You will need to specify the partition of the Node in your code if you plan to make these changes from the PC partition. /$partition/$node_ip
Or create all nodes in the partition they will be used in.
Hopefully, you created partitions for a good reason. I have found them to be something you use only when you must, as they increase operational complexity greatly.
Hope it helps!
D
- boo_radley_1114
Nimbostratus
Thanks David - I created the 2nd partition because we have some objects that use almost identical hostnames, and I figured it would be easier to keep them straight....Now I'm not so sure.
I supposed I could fix the code to add the partition name, but what I'm not understanding is why I'm suddenly "in" the newly created partition, instead of Common by default? I wonder if there's an F5 setting to make users interact with Common by default. Certainly when I log into the GUI I see Common as the active partition.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com