BOSH Deployment Failure at Post-VM Creation - AVI LB Plugin "No such file or directory" Error
search cancel

BOSH Deployment Failure at Post-VM Creation - AVI LB Plugin "No such file or directory" Error

book

Article ID: 453151

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

After turning on "Operations Manager > vCenter Config > Enables AVI Load Balancer", BOSH deployments fail post-VM creation with the following error in the CPI logs:

AVI LB Plugin: Error while reading or parsing config file '/var/vcap/jobs//avi/config/avi.yml'. Error: No such file or directory @ rb_sysopen - /var/vcap/jobs//avi/config/avi.yml
backtrace: 
/var/vcap/data/packages/avi/258e17db7327b4a4efbdd32f0f1810f058471746/lib/avi.rb:71:in `rescue in create_avi_client'
/var/vcap/data/packages/avi/258e17db7327b4a4efbdd32f0f1810f058471746/lib/avi.rb:63:in `create_avi_client'
/var/vcap/data/packages/avi/258e17db7327b4a4efbdd32f0f1810f058471746/lib/avi.rb:14:in `create_vm_post'

 

Environment

  • Operations Manager versions prior to 3.3.5
  • BOSH Director with AVI Load Balancer enabled via vCenter configuration
  • Environment utilizing BOSH Process Manager (BPM)

Cause

This issue occurs in environments where the BOSH Director manages jobs via BPM (BOSH Process Manager). In affected versions of Operations Manager (up to and including 3.3.4), jobs managed by BPM fail to correctly read the configuration file from /var/vcap/jobs/avi/config/avi.yml, despite the file being present on the filesystem.

Resolution

This issue is resolved in Operations Manager v3.3.5 and later releases.