Upgrading Cloud Director 10.4.1 to 10.5

With the release of VMware Cloud Director 10.5 to VMware Cloud Providers, I wanted to jump on it early and get a blog post about the upgrade process and new features. Except, I’ve been battling a small issue getting the upgrade through in my lab! Enjoy the read.

My environment consists of:

  • Cloud Director 10.4.1 (single cell)
  • Container Service Extension 4.0.3
  • App LaunchPad 2.1.2

For this post, I’ll only be upgrading Cloud Director to 10.5. The rest of the extensions will come in future posts. All steps from the Cloud Director 10.5 Upgrade Procedure (Online) were followed for this post.

Note: This is a single cell deployment.

  1. SSH to your VCD cell with the root account. new-ssh-session
  2. Shut down VMware Cloud Director by running the following command:
    1
    
    /opt/vmware/vcloud-director/bin/cell-management-tool -u <admin_username> cell --shutdown
    
    Note: The “<admin_username>” is the System Administrator user for your Cloud Director instance. You’ll see this message: Cell successfully deactivated and all tasks cleared in preparation for shutdown vcd-shutdown
  3. Make sure your update repository is pointing to the online VMware source:
    1
    
    vamicli update --repo ""
    
    set-repo
  4. Check the online repo for updates:
    1
    
    vamicli update --check
    
    check-repo The vamicli will report a new update available
  5. Log into the VCD cell’s VAMI and create a backup. Create a new backup in the VAMI backup-confirm The backup can take some time depending on your DB size backup-finished
  6. Once the backup is complete, go back to your SSH session and install the available upgrade.
    1
    
    vamicli update --install latest
    
    This will take a little while. The bundle is around 1GB in download size, then it will be installed. vamicli-install-start vamicli-update-install
  7. In your active SSH session, run the VCD DB upgrade utility.
    1
    
    /opt/vmware/vcloud-director/bin/upgrade
    
    db-upgrade-start upgrade-now
  8. You may see active cells reported. Make sure all cells in your Server Group have been shutdown (see step 1). active-cells-1 active-cells-2 I rolled the dice and continued with the upgrade even though I shutdown the VCD services. db-upgrade-running
  9. When prompted to start the service, enter N and restart the cell manually:
    1
    
    shutdown -r now
    
    skip
  10. Once the services have restarted, log into your VCD Provider portal and confirm the version: about-10-5

I mentioned at the beginning that I hit a small issue. The above is what happens during a normal, perfect upgrade experience. But that’s not always the case: Unable to upgrade the database: org.postgresql.util.PSQLException: ERROR: could not open shared memory segment: No such file or directory

References

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy