Rule not failing back to default pool

I am not able to get the following rule to fail back to the default pool if the widget_pool does not work. Any tips on where I am going wrong?

when CLIENT_ACCEPTED {

set default_pool [LB::server pool]

set default_snatpool [getfield [LB::snat] " " 2]

}

when HTTP_REQUEST {

set cache_pool “widget_pool”

set snat_pool “web_internal”

set used_cache 0

if { ([HTTP::uri] starts_with “/euf/”) and not [HTTP::cookie exists “location”] }{

if { ${snat_pool} ne “none” }{

snatpool ${snat_pool}

}

pool ${cache_pool}

set used_cache 1

} elseif { ([HTTP::uri] starts_with “/gfe”) and not ([HTTP::uri]

starts_with “/gfe/startup/”)}{

if { ${snat_pool} ne “none” }{

snatpool ${snat_pool}

}

pool ${cache_pool}

set used_cache 1

}

}

when LB_FAILED {

if { ${used_cache} eq 1 }{

log local0. “[IP::client_addr] LB_FAILED for cache pool: ‘${cache_pool}’ attempting to reselect on default: ‘${default_pool}’ snatpool: ‘${default_snatpool}’”

if { ${default_snatpool} eq “none” }{

snat none

} else {

snatpool ${default_snatpool}

}

pool ${default_pool}

LB::reselect

}

}

Hi Pippin,

Can you post anonymized logs from /var/log/ltm for a failure?

Thanks, Aaron