Forum Discussion
Octopus Deploy integration with F5
Hi,
Using the "F5 - Enable, Disable, or Force Offline Member with optional wait for connections to drop" step in Octopus, I'm trying to disable a member in a pool.
The disabling itself works, but the "get_statistics()" call to determine when there are no more active connections to the member is failing.
The code:
$pool_name = "path to my pool"
$member = "member:port"
$vals = $member.Split( (, ':'));
$member_addr = $vals[0];
$member_port = $vals[1];
$MemberDef = New-Object -TypeName iControl.CommonIPPortDefinition;
$MemberDef.address = $member_addr;
$MemberDef.port = $member_port;
$MemberDefAofA = New-Object -TypeName "iControl.CommonIPPortDefinition[][]" 1,1
$MemberDefAofA[0][0] = $MemberDef;
$F5.LocalLBPoolMember.get_statistics( (, $pool_name), $MemberDefAofA);
The error:
Exception calling "get_statistics" with "2" argument(s): "Exception caught in
LocalLB::urn:iControl:LocalLB/PoolMember::get_statistics()
Exception: Common::OperationFailed
primary_error_code : 16908336 (0x01020030)
secondary_error_code : 0
error_string : "
At line:19 char:1
+ $F5.LocalLBPoolMember.get_statistics( (, $pool_name), $MemberDefAofA) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : SoapHeaderException
We're running BIG-IP 12.1.2.
Any help or advice will be greatly appreciated!
Thanks, Sean
So I found the problem.
The $member variable also needed to contain the path to my partition.
In other words: $member = "/PARTITION/IP_ADDRESS:PORT"
Hope this helps someone in the future :)
Sean
- SeanR922_340356Nimbostratus
So I found the problem.
The $member variable also needed to contain the path to my partition.
In other words: $member = "/PARTITION/IP_ADDRESS:PORT"
Hope this helps someone in the future :)
Sean
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