"Unknown CPI error 'Unknown'" error and IP Conflict during BOSH Health Check in Ops Manager
search cancel

"Unknown CPI error 'Unknown'" error and IP Conflict during BOSH Health Check in Ops Manager

book

Article ID: 293831

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

BOSH tasks fails because of an IP address conflict. The IP address is not found in the IAAS or in BOSH via an orphaned VM.
Error: Unknown CPI error 'Unknown' with message 'Address 10.238.83.84 is in use.' in 'create_vm' CPI method (CPI request ID: 'cpi-466029')


Environment

Product Version: 2.10

Resolution

To avoid this error, remove the unknown IP address from ip_addresses table.

1. Log into the BOSH Database:

ssh -i bosh.key [email protected] (SSh to bosh- bbg creds from OpsMan)


2. Connect to the database:

cd /var/vcap/packages/postgres-10bin/
./psql -U vcap -h 127.0.0.1 -d bosh


3. Convert the IP addresses to a decimals and remove the IP address from the ip_addresses table. Use this convert tool if needed: https://www.ipaddressguide.com/ip

Select * from ip_addresses;

# Find the IP address decimal and its id

Delete FROM ip_addresses where id=150649;


4. Run Apply changes.