Forum Discussion
iControl Command working w/ v10 but not 11
My apologies if this has been asked already... I searched this forum and didn't find anything, so hopefully this isn't a duplicate question.
I use a VB.NET application to manage nodes and pool members. We've recently implemented a v11 device, and pool member operations that succeed against the v10.2.2 fail against the v11.1.0 device.
Here's what I'm doing...
Dim sessionState As New LocalLBPoolMemberMemberSessionState
sessionState.member.address = memberToManage.MemberIP
sessionState.member.port = memberToManage .Port
sessionState.session_state = CommonEnabledState.STATE_DISABLED
Dim MemberSessionStateAofA(1)() As LocalLBPoolMemberMemberSessionState
Array.Resize(MemberSessionStateAofA(0), 1)
MemberSessionStateAofA(0)(0) = sessionState
iControlClient.LocalLBPoolMember.set_session_enabled_state(New String() { memberToManage.PoolName}, MemberSessionStateAofA)
Obviously memberToManage contains the member details (IP, port, pool name as reported by the BigIP, etc.). In this case, memberToManage.MemberIP = 10.x.x.x and memberToManage.Port = 80. When executing against v10, it completes as expected. Against v11, I get this exception:
Exception caught in LocalLB::urn:iControl:LocalLB/PoolMember::set_session_enabled_state() Exception: Common::OperationFailed primary_error_code : 16908342 (0x01020036) secondary_error_code : 0 error_string : 01020036:3: The requested pool member (/xxPartitionName/xxPoolName /xxPartitionName/10.x.x.x 80) was not found.
(actual names redacted)
The pool name and pool member name returned in the exception are all correct, which leads me to believe it's finding something. Operations against NodeAddresses work as expected on the v11.
Am I doing something wrong?
Thanks in advance,
Matt
- Hi Matt,
- Another issue I just thought of could be a partition issue where you have your objects in a different partition than Common (which is the default). If so, you'll need to call the Management.Partition.set_active_partition() as defined here:
- mconnley_59873
Nimbostratus
Hi Joe, - Todd_Cromwell_9
Nimbostratus
Note also that Management::Partition::set_active_folder was deprecated in version 11.0.0, as stated in the iControl SDK documentation and dev central.
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