VMware Networking Community
Yevgeniy_Gulin
Contributor
Contributor

Cannot Create a Logical Switch at NSX with PowerNSX

Hi,

I have got error when create Logical switch at NSX using PowerNSX CLI

$tz = get-nsxtransportzone "my Transport Zone"

new-nsxlogicalswitch -name "switch_01" -transportzone $tz  -ControlPlaneMode UNICAST_MODE

Error is:

invoke-nsxwebrequest : Invoke-NsxWebRequest : The NSX API response received indicates a failure. 400 : Bad Request : Response Body: <?xml version="1.0" encoding="UTF-8"?>

<error><details>Invalid control plane mode UNICAST_MODE selected for logical switch switch_01. A controller must be connected when creating a unicast/hybrid mode logical switch and the vSphere

Distributed Switch must be version 5.5 or greater.</details><errorCode>824</errorCode><moduleName>core-services</moduleName></error>

At C:\Users\.....\PowerNSX\PowerNSX.psm1:9279 char:21

+ ... $response = invoke-nsxwebrequest -method "post" -uri $URI -body $body ...

+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidResult: (Invoke-NsxWebRequest:String) [Invoke-NsxWebRequest], InternalNsxApiException

    + FullyQualifiedErrorId : NsxAPIFailureResult,Invoke-NsxWebRequest

The variable '$response' cannot be retrieved because it has not been set.

At C:\Users\.......\PowerNSX\PowerNSX.psm1:9282 char:45

+         Get-NsxLogicalSwitch -virtualWireId $response.content -connec ...

+                                             ~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (response:String) [], RuntimeException

    + FullyQualifiedErrorId : VariableIsUndefined

My Distributed Switch version 6.0

Could someone help me what's wrong?

Thanks.

Tags (1)
0 Kudos
3 Replies
bayupw
Leadership
Leadership

Hi, just to double check some basic things

- have you configured a Transport Zone?

- do you have your NSX controller cluster deployed and running?

- try to create a logical switch manually first from the vSphere Web Client to see if everything is setup properly

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
Yevgeniy_Gulin
Contributor
Contributor

1. Yes , Transport Zone is configured( only 1 zone is presented)

2. NSX controller cluster is deployed and running - has 3 controller nodes. version 6.3

3. Logical switch can be created manually from the vSphere Web Client

0 Kudos
Yevgeniy_Gulin
Contributor
Contributor

The problem was with my transport zone.

Question is resolved.

Thanks and sorry.

0 Kudos