Convert a VVF 9.1 deployment to VCF Fleet Primary Instance
search cancel

Convert a VVF 9.1 deployment to VCF Fleet Primary Instance

book

Article ID: 463865

calendar_today

Updated On:

Products

VCF Operations

Issue/Introduction

When attempting to convert a VMware vSphere Foundation (VVF) 9.1 deployment with VCF Management Services to VMware Cloud Foundation (VCF) using the VCF Installer it fails validation with: "VCF Operations with address <FQDN> is already registered with VCF services runtime". To complete the conversion, the existing VVF VCF Management Services and VCF Operations registrations must be removed prior to deploying the new VCF Fleet.

Environment

VMware vSphere Foundation (VVF) 9.1
VMware Cloud Foundation (VCF) 9.1
VCF Operations 9.1 

Resolution

The VVF-to-VCF Primary Instance conversion consists of two main parts:
 
1.Run cleanup_vvf_management_services.py to remove the VVF VCF Management Services.
2.Use the VCF Installer wizard to deploy a new VCF Fleet on top of the existing vCenter and VCF Operations.
 
 
Prerequisites:

1.All VCF prerequisites are met. VCF brings extra components that need DNS records and extra resources, so check this before you clean up VVF.
2.A machine with Python 3.6 or later and network access to VCF Operations, the VCF services runtime and vCenter.
3.If Log management is deployed: turn off log collection first. Removing its VCF Operations registration does not tell the component to unconfigure, so the syslog configuration and log agent would otherwise stay behind. Turn off the log collection log sources and wait until the log collection configuration shows Unconfigured.
 
 
Part 1: Run the cleanup script
 
Download the cleanup_vvf_management_services.py from the attachments tab to a machine with Python 3.6 or later (standard library only) and network access to VCF Operations, the VCF services runtime and vCenter.
 
1. Dry run:

The dry run checks everything and prints the planned steps.
 
python3 cleanup_vvf_management_services.py \
    --vcf-operations-fqdn [vcf-operations-fqdn] \
    --vcf-services-runtime-fqdn [vcf-services-runtime-fqdn] \
    --dry-run

Once completed, Review the plan

Warning: The script permanently deletes the VCF Management Services cluster and all of its data, including the logs stored by Log management unless they were archived. This can't be undone. Take backups before you run it.

To export existing logs - Log import and export
 
2. Run the cleanup

The script asks for the passwords of the VCF Operations admin user, the VCF services runtime [email protected] user and the vCenter [email protected] user, and asks you to confirm (y/n) before it deletes anything. Before step 1 it saves the settings of the removed VCF Management Services (FQDNs and virtual IPs, network settings, vSphere placement and the Log management FQDN) to a …config-dump.json file next to the script; keep it for the new deployment. After the conversion, deploy Log management again if you need it. A new Log management deployment only replaces the old configuration if it uses the same FQDN.
 
python3 cleanup_vvf_management_services.py \
    --vcf-operations-fqdn [vcf-operations-fqdn] \
    --vcf-services-runtime-fqdn [vcf-services-runtime-fqdn]

(Note: The script shuts down Fleet lifecycle, removes VCF Operations registrations—taking approximately 5 minutes if Log management is present—powers off and deletes cluster node VMs, deletes associated container volumes, removes vCenter service accounts/global permissions, and verifies VCF Operations readiness.)

If the script ends with "The cleanup finished with errors" (exit code 1), it lists the items it could not remove. Remove them manually in vCenter, then run the same command again. The script continues from where it stopped and finishes with "Cleanup completed."

Before you start the VCF Installer wizard, make sure a VCF license is assigned in VCF Operations.

Part 2: Deploy a new VCF Fleet through the wizard

1.Open the VCF Installer and start the wizard.
2.Choose Deploy a new VCF Fleet.
3.Select the existing vCenter option.
4.Select the existing VCF Operations option.
5.Follow the wizard and run the validation.
6.Review the summary and start the deployment.


Note:

You can reuse the DNS records and IPs of the removed VCF Management Services.

Attachments

cleanup_vvf_management_services.py get_app