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')
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.