Service Engine (se_dp) crash occurs in function "ngx_http_vh_app_add_host_paths" during Virtual Service update operations
search cancel

Service Engine (se_dp) crash occurs in function "ngx_http_vh_app_add_host_paths" during Virtual Service update operations

book

Article ID: 433064

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

  • When a hostname combination (Host + Path match rule) is duplicated across multiple child Virtual Services under a single EVH parent  Virtual Service, a Service Engine failure may occur during configuration updates or automated events on one of the child Virtual Services
  • When the SE crashes, a stack trace similar to the one below can be seen under Administration -> Support -> Crash reports
#0  0x00007fab5d12e265 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x000055f6d653f698 in ngx_http_vh_app_add_host_paths (ep_vs_obj=###### app_vs_obj=#####)
#2  ngx_http_vh_create_app_vs (app_vs_obj=####### is_vs_updated=NGX_TRUE)
  • Crashes are typically triggered during Virtual Service updates, such as HTTP Policy Set updates or periodic TLS key rotations performed by the Controller.

Environment

  • VMware Avi Load Balancer 
  • Affected Versions:
    • 22.1.x
    • 30.1.x
    • 30.2.1-30.2.6
    • 31.1.x
    • 31.2.1-31.2.2

Cause

  • When duplicate hostnames and paths are configured across multiple child Virtual Services under the same EVH parent VS, an internal hash table mapping hostnames to Virtual Hosting match rule configurations becomes corrupted.
  • During subsequent updates, Avi attempts to tear down and recreate Virtual Service configurations, causing the crash.

Resolution

  • The issue is fixed in the following releases:
    • 30.2.7
    • 31.2.3
    • 32.1.x
  • Upgrade to one of the above releases to permanently resolve the underlying hash table issue.
  • AV-264107: When a hostname is duplicated across multiple child Virtual Services under a single Enhanced Virtual Hosting parent VS, there may be a Service Engine failure during an config update on one of the child Virtual Services.
  • Workaround:
    • Remove the duplicate configuration.
    • Disable and then re-enable the EVH parent VS after removing the configuration 
    • Please reach out to support for assistance with the workaround

Note: While removing the duplicated host+path rule prevents future VS updates from generating corrupted (freed memory) entries in the hash table, it does not clear existing corrupted data in the system. The presence of this freed memory causes the SE to crash during updates to a child VS. The only way to reset this entirely is by disabling and re-enabling the parent VS. Disabling the parent VS automatically disables its child Virtual Services as well.

Additional Information