VMware NSX

 View Only
  • 1.  Facing problem while preparing vxlan using nsxramlclient

    Posted Sep 05, 2017 10:38 AM

    I am trying to use nsxramlclient for nsx automation. While using vxlanprep.py code, I am getting following error :

    reply: 'HTTP/1.1 400 Bad Request\r\n'

    header: Server:

    header: Cache-Control: no-cache

    header: Date: Tue, 05 Sep 2017 10:30:27 GMT

    header: Connection: close

    header: Strict-Transport-Security: max-age=31536000; includeSubDomains

    header: X-Frame-Options: SAMEORIGIN

    header: Content-Type: application/xml

    receive bad status code 400

    {'error': {'errorCode': '806', 'moduleName': 'core-services', 'details': 'Switch dvs-15718 does not contain all hosts in domain-c14823.'}}

    Although my cluster have one host only in it, also I can see that host is connected to dvs, still I am getting this error.

    On top of that I see this error with one cluster only, my other cluster with switch completely works fine.

    Any pointers what am I missing ?

    Here is the link for the test file shared in nsxramlclient.

    nsxramlclient/vxlanprep.py at master · vmware/nsxramlclient · GitHub



  • 2.  RE: Facing problem while preparing vxlan using nsxramlclient
    Best Answer

    Posted Sep 05, 2017 06:28 PM

    Double check your the VDS 'dvs-15718' and cluster 'domain-c14823' from vCenter MOB (Managed Object Browser) URL: https://<vCenterServerHostnameOrIP>/mob/?moid=<OBJECT_ID>

    https://<vCenterServerHostnameOrIP>/mob/?moid=dvs-15718

    https://<vCenterServerHostnameOrIP>/mob/?moid=domain-c14823

    or RVTools or PowerCLI

    If they are the correct VDS and cluster, try to prepare manually from the vCenter UI see if it's throwing similar error



  • 3.  RE: Facing problem while preparing vxlan using nsxramlclient

    Posted Sep 06, 2017 09:44 AM

    Seems I mixed up domain id, which was causing the error.