Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not establish trust relationship error get-vsanversion #82

Open
mmohr1 opened this issue Jul 9, 2019 · 2 comments
Open

Could not establish trust relationship error get-vsanversion #82

mmohr1 opened this issue Jul 9, 2019 · 2 comments

Comments

@mmohr1
Copy link

mmohr1 commented Jul 9, 2019

Hey William, when running the Get-VSANVersion function I'm getting the error below. I checked to make sure the PowerCli Config was set to Ignore for InvalidCertificateAction. Is this something you've seen before?

$results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluster_view)

Exception calling "VsanVcClusterQueryVerifyHealthSystemVersions" with "1" argument(s): "Could not establish trust
relationship for the SSL/TLS secure channel with authority 'VC_NAME'."
At line:1 char:1

  • $results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluste ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : SecurityNegotiationException
    
@mmohr1 mmohr1 changed the title Could not establish trust relation error get-vsanversion Could not establish trust relationship error get-vsanversion Jul 9, 2019
@lamw
Copy link
Owner

lamw commented Jul 10, 2019

Hm, I've not seen this before. Is the TLS certificate on your vCenter Server valid and not having any issues? Are you able to run the default vSAN cmdlets w/o issue or just using the function?

@mmohr1
Copy link
Author

mmohr1 commented Jul 11, 2019

Yes, get-vsanview works just fine. I tried running the script example for getting the vsan version from your blog one command at a time.

PS C:> get-vsanview

VsanClient MoRef


VMware.Vsan65.Views.VsanClientImpl VsanVcClusterConfigSystem-vsan-cluster-config-system
VMware.Vsan65.Views.VsanClientImpl VimClusterVsanVcStretchedClusterSystem-vsan-stretched-cluster-system
VMware.Vsan65.Views.VsanClientImpl VimClusterVsanVcDiskManagementSystem-vsan-disk-management-system
VMware.Vsan65.Views.VsanClientImpl VsanVcClusterHealthSystem-vsan-cluster-health-system
VMware.Vsan65.Views.VsanClientImpl VsanUpgradeSystemEx-vsan-upgrade-systemex
VMware.Vsan65.Views.VsanClientImpl VsanSpaceReportSystem-vsan-cluster-space-report-system
VMware.Vsan65.Views.VsanClientImpl VsanIscsiTargetSystem-vsan-cluster-iscsi-target-system
VMware.Vsan65.Views.VsanClientImpl VsanObjectSystem-vsan-cluster-object-system
VMware.Vsan65.Views.VsanClientImpl VsanPerformanceManager-vsan-performance-manager

PS C:> $vchs = get-vsanview -Id "VsanVcClusterHealthSystem-vsan-cluster-health-system"
PS C:> $cluster_view = (Get-Cluster -name Management).ExtensionData.MoRef
PS C:> $results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluster_view)
Exception calling "VsanVcClusterQueryVerifyHealthSystemVersions" with "1" argument(s): "Could not establish trust
relationship for the SSL/TLS secure channel with authority 'VC_Name'."
At line:1 char:1

  • $results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluste ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : SecurityNegotiationException
    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants