F5 provisioning error - Bad Request - source and destination addresses must be of the same type (ipv4 or ipv6)

Problem 

F5 issue during Provisioning.  Provision VIP and add VMs workflow fails and this error is in the server.log on vRO

statusText=Bad Request, bodyString={\"code\":400,\"message\":\"0107028c:3: The source (::) and destination (10.1.2.3) addresses for virtual server (/Common/labf5test) must be be the same type (IPv4 or IPv6).\",\"errorStack\":[],\"apiError\":3}, body={code=400, apiError=3, message=0107028c:3: The source (::) and destination (10.1.2.3) addresses for virtual server

Full error:

Faced error executing Restipe: F5Config-internal on step 'provision' - ERROR: InternalError: Restipe executed and ended in FAILURE state. "{headers={accept-encoding=[gzip], Date=[09 May 2019 20:06:36 UTC], REMOTECONSOLE=[/usr/bin/tmsh], Allow=[], Cache-Control=[no-store, no-cache, must-revalidate], X-Forwarded-Server=[localhost.localdomain], X-Frame-Options=[SAMEORIGIN], X-Forwarded-Host=[pdctestlablb.swacorp.com:443], Pragma=[no-cache], X-Content-Type-Options=[nosniff], Expires=[-1], X-Forwarded-Proto=[http], Content-Type=[application/json], Server=[com.f5.rest.common.RestRequestSender], Local-Ip-From-Httpd=[10.35.91.10], X-XSS-Protection=[1; mode=block], REMOTEROLE=[0], Content-Length=[201], Connection=[close], Set-Cookie=[BIGIPAuthCookie=9F930xxxxxxx42CB775C0A27C611A17EF63033; path=/; Secure; HttpOnly, BIGIPAuthUsernameCookie=OpsAutoMgmt; path=/; Secure; HttpOnly], Strict-Transport-Security=[max-age=16070400; includeSubDomains], Content-Security-Policy=[default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' http://127.4.1.1 http://127.4.2.1]}, statusText=Bad Request, bodyString={\"code\":400,\"message\":\"0107028c:3: The source (::) and destination (10.7.112.12) addresses for virtual server (/Common/labf5test) must be be the same type (IPv4 or IPv6).\",\"errorStack\":[],\"apiError\":3}, body={code=400, apiError=3, message=0107028c:3: The source (::) and destination (10.1.2.3) addresses for virtual server (/Common/labf5test) must be be the same type (IPv4 or IPv6)., errorStack=[]}, status=400}" (Workflow:Provision VIP and add VMs / Create VIP (item10)#5) (Workflow:Provision VIP and add VMs / Create VIP (item10)#10)

Cause

There is an issue with F5 where if the F5 has been upgraded, sometimes the "active" version returned by the API is the incorrect one.  This causes our getF5Version workflow to get the incorrect version back from F5, and the Provision step creates requests in the incorrect format.

Affected Versions

  • SovLabs versions earlier than 2018.3.4.

Workaround or Solution

Overview

Upgrade to the latest SovLabs plugin version and make sure the Restipe gets updated.  The getF5version action and the restipe have been modified to fix this issue.

If the customer is using a custom modified Restipe, they will need to diff their copy with the latest Restipe and incorporate any deltas.


Additional information

https://support.sovlabs.com/a/tickets/1040

https://support.sovlabs.com/a/tickets/1288


Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.