lamw / vsphere-with-tanzu-nsxt-automated-lab-deployment

vSphere with Tanzu using NSX-T Automated Lab Deployment
212 stars 79 forks source link

Issue with Getting NSXT Policy Service #14

Closed doddatpivotal closed 4 years ago

doddatpivotal commented 4 years ago

I've gotten through to creating the edge cluster, but then keep hitting this issue. I've torn it down and retried several times. Not sure why these services would not be able to be found. Can you point me in the right direction?

[08-21-2020_02:48:16] Creating Edge Cluster Edge-Cluster-01 and adding Edge Hosts ...
[08-21-2020_02:48:16] Edge Cluster has not been realized, sleeping for 10 seconds ...
Get-NsxtPolicyService: C:\Users\administrator\workspace\vghetto-vsphere-with-kubernetes-external-nsxt-automated-lab-deployment\vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:1333:22
Line |
1333 |  … reloadOp = (Get-NsxtPolicyService -Name "com.vmware.nsx_policy.infra. …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | 8/21/2020 2:48:26 PM Get-NsxtPolicyService  NsxtPolicyService with name 'com.vmware.nsx_policy.infra.sites.enforcement_points' was not found using the specified filter(s).
InvalidOperation: C:\Users\administrator\workspace\vghetto-vsphere-with-kubernetes-external-nsxt-automated-lab-deployment\vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:1333:9
Line |
1333 |          $reloadOp = (Get-NsxtPolicyService -Name "com.vmware.nsx_poli …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.
[08-21-2020_02:48:26] Edge Cluster has been realized
[08-21-2020_02:48:26] Creating Network Segment Pacific-Segment ...
Get-NsxtPolicyService: C:\Users\administrator\workspace\vghetto-vsphere-with-kubernetes-external-nsxt-automated-lab-deployment\vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:1340:39
Line |
1340 |  … cyService = Get-NsxtPolicyService -Name "com.vmware.nsx_policy.infra. …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | 8/21/2020 2:48:26 PM Get-NsxtPolicyService  NsxtPolicyService with name 'com.vmware.nsx_policy.infra.sites.enforcement_points.transport_zones' was not found using the specified
     | filter(s).
Get-NsxtPolicyService: C:\Users\administrator\workspace\vghetto-vsphere-with-kubernetes-external-nsxt-automated-lab-deployment\vghetto-vsphere-with-kubernetes-external-nsxt-lab-deployment.ps1:1341:33
Line |
1341 |  … cyService = Get-NsxtPolicyService -Name "com.vmware.nsx_policy.infra. …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | 8/21/2020 2:48:26 PM Get-NsxtPolicyService  NsxtPolicyService with name 'com.vmware.nsx_po
doddatpivotal commented 4 years ago

Very odd. It looks like it may have been a issue with the powercli configuration. I attempted to run the script on another computer and it worked fine. I would like to know what configuration I had wrong in the first powercli, but we can close the issue.