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
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
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
Seems I mixed up domain id, which was causing the error.