Forum Discussion
Zuke
Cirrostratus
Apr 28, 2021BIG-IQ : Error when adding device
I'm standing up a new pair of APM/LTM guests on a BIG-IQ CM. When I add the guests, the standby APM guest fails to import. From the BIG-IQ GUI, I get this message: Trust establishment fail...
- May 06, 2021
curl --verbose -sku "admin:<redacted>" https://bigip2/mgmt/shared/identified-devices/config/device-info | jq -r > GET /mgmt/shared/identified-devices/config/device-info HTTP/1.1 > Authorization: Basic YWRtaW46XmlhTCpSXlBCaC54ajgzOHVLLzhA > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1l zlib/1.2.3 libidn/1.18 > Host: <redacted> > Accept: */* > < HTTP/1.1 400 Bad Request < Date: Wed, 05 May 2021 15:02:27 GMT < Server: Jetty(9.2.22.v20170606) < Set-Cookie: BIGIPAuthCookie=SN8F4Fr0VS8JJ4KZDAobOZ4BkXkfRKADH22x2Hpa; path=/; Secure; HttpOnly < Set-Cookie: BIGIPAuthUsernameCookie=admin; path=/; Secure; HttpOnly < X-Frame-Options: SAMEORIGIN < Strict-Transport-Security: max-age=16070400; includeSubDomains < Content-Type: application/json; charset=UTF-8 < Pragma: no-cache < Cache-Control: no-store < Cache-Control: no-cache < Cache-Control: must-revalidate < Expires: -1 < Content-Length: 0 < X-Content-Type-Options: nosniff < X-XSS-Protection: 1; mode=block < Content-Security-Policy: default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; img-src 'self' data: http://127.4.1.1 http://127.4.2.1 < Connection: close < * Closing connection #0 * SSLv3, TLS alert, Client hello (1): } [data not shown]
The issue was related to RPM processes being stuck on the guest. I ran the above curl command (per F5 support) from both BIG-IQ and the guest itself and the results were the same. Running a filesystems check and rebooting the guest fixed the issue. Thanks Lucy.
Hi Claire,
I think the main cause of that error is that a redirect has already been triggered for that request/response. Do you have another iRule on the same VIP which could be redirecting before this one runs?
Else, can you save the request details in HTTP_REQUEST and log them in each response before doing the header updates? This might give you more information on when the TCL error is happening.
Aaron
- fita_30888Jul 27, 2009
Nimbostratus
Cheers for the reassurance! The confguide says "re-encrypting a decrypted request" so I was in doubts. As for the replace would an iRule with switch do the job? - Re-encrypting a decrypted request is the most common (not not only) use case for server SSL. If you need to rewrite the response headers, you could use 'HTTP::header replace'. For response content, you could use a blank stream profile and a STREAM::expression iRule.
when HTTP_RESPONSE { Check if server response is a redirect if { [HTTP::header is_redirect]} { Log original and updated values log local0. "Original Location header value: [HTTP::header value Location],\ updated: [string map -nocase "https:// http://" [HTTP::header value Location]]" Do the update, replacing https:// with http:// HTTP::header replace Location [string map -nocase "https:// http://" [HTTP::header value Location]] } }
when HTTP_RESPONSE { Disable the stream filter by default STREAM::disable Check if response type is text if {[HTTP::header value Content-Type] contains "text"}{ Replace https:// with http:// STREAM::expression "@https://@http://@" Enable the stream filter for this response only STREAM::enable } }
- fita_30888Jul 29, 2009
Nimbostratus
Hello again, - fita_30888Jul 29, 2009
Nimbostratus
Hi, - fita_30888Jul 31, 2009
Nimbostratus
Aaron,
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects