Forum Discussion

Ed_Vitale_28327's avatar
Ed_Vitale_28327
Icon for Nimbostratus rankNimbostratus
Feb 07, 2006

error on redirect

Hello citizens of DevCentral:

 

 

I have this irule running (v9.2.2)and cant figure out why

 

i get this error on the redirect. Im hoping its a rookie

 

mistake ive made. :o) Your help is appreciated.

 

 

Thanks

 

 

----------------------

 

when LB_FAILED {

 

log local0. "enter lb-fail logic"

 

if {[LB::status pool f5-test-pool-site-1 member 10.50.68.62 80] eq "down" } {

 

log local0. "LB Status [LB::status pool f5-test-pool-site-1 member 10.50.68.62 80]"

 

log local0. "enter redir"

 

HTTP::redirect "http://www.yahoo.com"

 

log local0. "exit redir"

 

}

 

}

 

----------------------

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : enter lb-fail logic

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : LB Status down

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : enter redir

 

Feb 7 12:27:53 tmm tmm[1012]: 011f0007:3: http_process_state_header_xfer - Invalid action EV_SINK_HEADER during ST_HTTP_XFER_HEADERS

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : exit redir

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : enter lb-fail logic

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : LB Status down

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : enter redir

 

Feb 7 12:27:53 tmm tmm[1012]: Rule ueav-test-redir : exit redir

 

 

- - - - - - - - - - -

 

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    It looks like you're trying to invoke the HTTP::redirect command from an event under which it's not valid.

     

     

    You should be able to accomplish the same functionality that you're producing in that iRule by setting up a fallback host in your profile settings, which would be the preferred method.

     

     

    -Colin