Forum Discussion

Nina_Forsyth_67's avatar
Nina_Forsyth_67
Historic F5 Account
Feb 03, 2006

Error on LB_FAILED rule

I came across this rule which is causing an error message. The syntax with the HTML doesn't look correct however I am not sure. The rule was accepted and loaded as expected.

 

 

[code

 

rule blah {

 

when LB_FAILED {

 

pool http_vip

 

log local0. "begin: pool [LB::server pool], active mbrs = [active_members [LB::server pool]]"

 

if { ( [LB::server pool] eq "http_vip" ) and ( [active_members http_vip] == 0 ) } {

 

HTTP::respond 200 content "

 

 

 

 

LB FAILED

 

 

"

 

}

 

}

 

}

 

 

 

Any help is appreciated.
  • What error message are you receiving? You might need to have your HTML all on one line.

     

     

    -Joe
  • Nina_Forsyth_67's avatar
    Nina_Forsyth_67
    Historic F5 Account
    It appears that HTTP::response isn't allowed in LB_FAILED which is the cause of the error.

     

     

    Invalid action EV_SINK_HEADER during ST_HTTP_PREPEND¬_HEADERS

     

     

    Are there any other options for giving a warning to the client when there are no other nodes up?
  • bl0ndie_127134's avatar
    bl0ndie_127134
    Historic F5 Account
    This is being fixed on the next release. For now, you can use the http profile 'fallback host'. You don't have the ability to send the response payload but it does send a 302 redirect.