VMware Networking Community
TillK
Contributor
Contributor
Jump to solution

Remove napp failed

Hi all,

Is it possible to force uninstall NSX Application Platform from NSX Manager?

At one point, all Features down and I decided to remove them and reinstall them. But the removal process is stuck.

Followed the points of the manual (https://docs.vmware.com/en/VMware-NSX/4.0/nsx-application-platform/GUID-836D6E37-BA43-4FEE-A7C2-3146...) And now when I open the NSX Application Platform I get - "Something went wrong
Failed to load. Please try again or contact support, if the problem persists.
TRY AGAIN"

how can i reinstall napp without reinstalling manager?

Thanks.

0 Kudos
1 Solution

Accepted Solutions
shank89
Expert
Expert
Jump to solution

First curl -sku admin:enterpassword -X PATCH 'https://nsxfqdn/policy/api/v1/infra/sites/default/napp/deployment/platform' -H "Content-Type: application/json" -d '{"deployment_action":{"action": "FORCE_UNDEPLOY"}}'

Shashank Mohan

VCIX-NV 2022 | VCP-DCV2019 | CCNP Specialist

https://lab2prod.com.au
LinkedIn https://www.linkedin.com/in/shankmohan/
Twitter @ShankMohan
Author of NSX-T Logical Routing: https://link.springer.com/book/10.1007/978-1-4842-7458-3

View solution in original post

9 Replies
schnm
Contributor
Contributor
Jump to solution

The same problem at my test environment. I lost my k8s cluster and can't disable NAPP 

It's possible to disable napp from cli?  

0 Kudos
shank89
Expert
Expert
Jump to solution

First curl -sku admin:enterpassword -X PATCH 'https://nsxfqdn/policy/api/v1/infra/sites/default/napp/deployment/upgrade-coordinator' -H "Content-Type: application/json" -d '{"deployment_action":{"action": "FORCE_UNDEPLOY"}}'

 

Then the same command but replace upgrade-coordinator with platform. You may only need the second command, you can try with it first, if it complains about upgrade coordinator then you can run the first one.

 

 

Shashank Mohan

VCIX-NV 2022 | VCP-DCV2019 | CCNP Specialist

https://lab2prod.com.au
LinkedIn https://www.linkedin.com/in/shankmohan/
Twitter @ShankMohan
Author of NSX-T Logical Routing: https://link.springer.com/book/10.1007/978-1-4842-7458-3
0 Kudos
schnm
Contributor
Contributor
Jump to solution

Got error when run this command:

{
"httpStatus" : "BAD_REQUEST",
"error_code" : 46054,
"module_name" : "NAPP",
"error_message" : "Deployment action FORCE_UNDEPLOY is not allowed as Upgrade Coordinator is NOT_DEPLOYED."

0 Kudos
shank89
Expert
Expert
Jump to solution

Looks like you tried to run the remove for upgrade coordinator, try to remove the platform directly.

Shashank Mohan

VCIX-NV 2022 | VCP-DCV2019 | CCNP Specialist

https://lab2prod.com.au
LinkedIn https://www.linkedin.com/in/shankmohan/
Twitter @ShankMohan
Author of NSX-T Logical Routing: https://link.springer.com/book/10.1007/978-1-4842-7458-3
0 Kudos
schnm
Contributor
Contributor
Jump to solution

how i can remove platform directly?

When i try it from UI i got error: 

Something went wrong. Failed to load. Please try again or contact support, if the problem persists.

Is any way to make it via cli or api?

 

0 Kudos
shank89
Expert
Expert
Jump to solution

In my first response I mentioned how to do it. Run the exact same command but replace the part of the command from upgrade-coordinator with platform.

Shashank Mohan

VCIX-NV 2022 | VCP-DCV2019 | CCNP Specialist

https://lab2prod.com.au
LinkedIn https://www.linkedin.com/in/shankmohan/
Twitter @ShankMohan
Author of NSX-T Logical Routing: https://link.springer.com/book/10.1007/978-1-4842-7458-3
0 Kudos
schnm
Contributor
Contributor
Jump to solution

Thank you for response

Can you show me example for it?

0 Kudos
shank89
Expert
Expert
Jump to solution

First curl -sku admin:enterpassword -X PATCH 'https://nsxfqdn/policy/api/v1/infra/sites/default/napp/deployment/platform' -H "Content-Type: application/json" -d '{"deployment_action":{"action": "FORCE_UNDEPLOY"}}'

Shashank Mohan

VCIX-NV 2022 | VCP-DCV2019 | CCNP Specialist

https://lab2prod.com.au
LinkedIn https://www.linkedin.com/in/shankmohan/
Twitter @ShankMohan
Author of NSX-T Logical Routing: https://link.springer.com/book/10.1007/978-1-4842-7458-3
schnm
Contributor
Contributor
Jump to solution

Thank you very match!!!!

It's resolve my problem 

Thank you again

 

0 Kudos