How to change the owner of the NSX Manager Cluster VIP
search cancel

How to change the owner of the NSX Manager Cluster VIP

book

Article ID: 376679

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • The NSX Manager cluster VIP is owned by whichever node is the leader of the HTTPS group.
  • There is no UI or API option to change the VIP owner.
  • The node which owns the VIP can be seen on the NSX UI, System > Appliances.
  • The current HTTPS leader can also be checked from admin cli

> get cluster status verbose

Group Type: HTTPS
Group Status: STABLE

Members:
    UUID                                       FQDN                  IP               STATUS          
    cdb93642-####-####-####-####018cd727       nsx1       192.196.197.84        UP              
    51a13642-####-####-####-####6cc2a7ae       nsx2       192.196.198.156       UP              
    d0de3642-####-####-####-####d22e486b       nsx3       192.196.198.54        UP              

Leaders:
    SERVICE                                    LEADER                                     LEASE VERSION                   
    api                                        cdb93642-####-####-####-####018cd727       8

 

Environment

VMware NSX

Resolution

Temporarily stopping the http service on the NSX Manager that currently owns the VIP will prompt a failover.
One of the other 2 NSX Managers will then be elected the HTTPS leader. This may take a few minutes to complete.

  1. On the NSX Manager owning the VIP, ssh as admin and run
    #stop service http
  2. UI or API requests directed directly at this node will no longer be served.
    Until the VIP fails over it will also be inaccessible.
  3. Monitor for the HTTPS leader to change
    #get cluster status verbose
  4. Confirm the NSX UI is again accessible via the VIP 
  5. The http service can now be restarted on the NSX Manager
    #start service http