Reset Cloud Builder DB for a Fresh Bringup (VCF)

Many of us might have encountered this situation where Cloud Builder UI doesn’t provide a back button after a successful SDDC  bringup. I have written a blog Post in the past where I showed the API method of resetting CB for a new bringup.

This post is an extension of my earlier post. Here I will demonstrate the database hack method to initiate a fresh bringup.

Step 1: Login to Cloud Builder via SSH and switch to root user.

Step 2: Connect to the Database

Step 3: Nuke the Bringup related tables

Refresh the CB UI and you will be returned to the checklist page.

Important Note:

If you get this error “psql: FATAL: no pg_hba.conf entry for host “[local]”, user “postgres”, database “bringup”, SSL off” in step 2, then edit the /data/pgdata/pg_hba.conf file and uncomment below line:

# “local” is for Unix domain socket connections only
local all all trust

And restart postgres service: # systemctl restart postgres.service

And that’s it for this post. 

I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing 🙂

Leave a Reply