Am attempting to deploy an iApp using a customer build of the appsvcs template v2.0_001. The only inclusion are 3 iRules that we use on a consistent basis. 2 of these iRules are extremely simple but when you try to use them via the vs__BundledItems table we receive this error:
Error reported by BigIP: {"code":400,"message":"script did not successfully complete: (can't parse TCL script beginning with\nwhen HTTP_REQUEST {\n if { [HTTP::uri] contains "debug=" } {\n HTTP::res\n\n while executing\n"tmsh::create $bundled_irule_cmd"\n ("foreach" body line 44)\n invoked from within\n"foreach bundled_irule $bundled_irules {\n debug [list virtual_server bundled_irule create_irule] [format "deploying bundled iRule %s" $bundled_irule..."\n invoked from within\n"if { [llength $bundled_irules] > 0 } {\n set bundled_irule_map [list %APP_PATH% $app_path \\n %APP_NAME% $app \\n ..." line:2377)","errorStack":[]}
/Library/Ruby/Gems/2.0.0/gems/rest-client-2.0.0/lib/restclient/abstract_response.rb:223:in `exception_with_response': 400 Bad Request (RestClient::BadRequest)
when HTTP_REQUEST {
if {[HTTP::uri] contains "debug=" } {
HTTP::respond 500 content { We are sorry, but the URL you requested is ILLEGAL.}
log local0. "Request from [IP::client_addr] for [HTTP::uri] has been rejected."
}
}
We have a much more complex and longer iRule that works just fine however. I've been unable to troubleshoot why this does not work. Any thoughts?