Forum Discussion
Use iRules-LX to Blue/Green Deployment
Hello everyone My Irules is below:
when HTTP_REQUEST { if { [HTTP::username] ne "" } { log local0. "User [HTTP::username] has been authorized to access virtual server [virtual name]" Client supplied a valid username, so initialize the iRulesLX extension
set RPC_HANDLE [ILX::init "iruleslx_mysql_plugin" "mysql_extension"] set username [HTTP::username] set rpc_response [ILX::call $RPC_HANDLE myql_nodejs $username $static::mysql_debug]
set rpc_response [ILX::call $RPC_HANDLE myql_nodejs $username]
Send an HTTP 200 response with the groups retrieved from the iRulesLX plugin
HTTP::respond 200 content "\nGroup(s) for '$username' are '$rpc_response'\n"
HTTP::respond 200 content "User Database$rpc_response "
log local0. "Looked up \$username=$username and matched group(s): $rpc_response" } else { HTTP::respond 401 WWW-Authenticate "Basic realm=\"Secured Area\"" } }
But My /var/log/ltm desplay erro log :Jun 21 15:22:12 v13 err tmm[28004]: 01220001:3: TCL error: /Common/iruleslx_mysql_plugin/mysql_irulelx - Could not find ILX extension mysql_extension in path iruleslx_mysql_plugin (line 4) invoked from within "ILX::init "iruleslx_mysql_plugin" "mysql_extension"" How to troubleshotting ?
Thanks
@Niels van Sluis Thanks for you help : )
I've solved the problem. I rewrite my code then don't have display error log.
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