VMware Networking Community
MohamedElkassas
Contributor
Contributor
Jump to solution

Can not add new NSX controller

I am working with NSX 6.2.3 for VCAP-Deploy exam preparation,

after deploying 2 controllers, NSX manager was powered off by me while deploying the third controller and i can not add any other controllers even it shows only 2 controllers in the cluster when i show cluster-control status command that`s because the third controller still showing (deploying status)

controller.PNG

How can this be solved, i did not find any solution in the troubleshooting guide to solve it.

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
rajeevsrikant
Expert
Expert
Jump to solution

Also share us the ouput of the show controller status


Check the status from  the REST API using below

https://NSXManagerIP/api/2.0/vdn/controller

If the status of the 2nd Controller is showing deploying , forcefully delete using the REST API & try redeploying it.

https://NSXManagerIP/api/2.0/vdn/controller/controller-2?forceRemoval=False

View solution in original post

0 Kudos
14 Replies
rajeevsrikant
Expert
Expert
Jump to solution

Just few clarifications. You have mentioned the below.

NSX manager was powered off by me while deploying the third controller


You mean to say that you powered down the NSX Manager by your self knowingly when the controller was getting deployed. Is my understanding right.


There is warning for Disk Alert. Can you click & show what it is indicating ?

0 Kudos
MohamedElkassas
Contributor
Contributor
Jump to solution

Yes you understand it in the right way.

About the Disk alert, there is no relation.

0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

Also share us the ouput of the show controller status


Check the status from  the REST API using below

https://NSXManagerIP/api/2.0/vdn/controller

If the status of the 2nd Controller is showing deploying , forcefully delete using the REST API & try redeploying it.

https://NSXManagerIP/api/2.0/vdn/controller/controller-2?forceRemoval=False

0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

Does it work ? Is it resolved.

0 Kudos
MohamedElkassas
Contributor
Contributor
Jump to solution

Thanks for your support, but how could i use API to delete it and which tool to do it or through NSX Manager shell.

0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

You have to use either Firefox or Chrome browser to use REST API

The REST API allows to connect to the NSX Manager & execute the commands.

Below link will help you in understanding how to use REST API

http://www.routetocloud.com/2014/12/working-with-nsxv-api/

http://www.virtually-limitless.com/vcix-nv-study-guide/deploy-and-successfully-authenticate-an-rest-...

0 Kudos
MohamedElkassas
Contributor
Contributor
Jump to solution

is there is any other way to do this without API , i did not use API before and i could not use it Smiley Sad

0 Kudos
bayupw
Leadership
Leadership
Jump to solution

Open a VMware Support Request if you have active support.

If you would like to do it yourself but new to REST API

- check blog post above or this document: Automation Leveraging NSX REST API Guide

- try VMware Hands on Lab VMware Learning Platform HOL-1725-SDC-1 - VMware NSX Advanced Consumption

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

It is easy.

For your case it just a single command you need to check the status & a single command to delete the Controller.

Give it a try.

0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

What exact problem you are facing using REST API , if you can explain or show with some screen shot we should be able to help it out.

0 Kudos
MohamedElkassas
Contributor
Contributor
Jump to solution

Hey dears, this is the error

Failed to remove controller controller-4 - controller not created by this LDU.835core-services

0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

just rechecking "controller-4" is right controller which you are trying to delete. From the screen shot you shared it was showing "controller-3" so wanted to re-confirm

0 Kudos
MohamedElkassas
Contributor
Contributor
Jump to solution

I have deleted all the controllers but when i go to this controller with this id it gives the mentioned error, any other id give )controller does not exist( as i deleted all.

0 Kudos
rajeevsrikant
Expert
Expert
Jump to solution

so u mean you are deleting the only controller which is available.

Please post the REST API command which you have used.

If this is the last controller please use the below command.

https://NSXManagerIP/api/2.0/vdn/controller/controller-4?forceRemoval=True

0 Kudos