vmware / powershell-module-for-vmware-cloud-foundation-power-management

PowerShell Module for VMware Cloud Foundation Power Management
https://vmware.github.io/powershell-module-for-vmware-cloud-foundation-power-management/
BSD 2-Clause "Simplified" License
10 stars 8 forks source link

script failed on startup due to service unavailable in CISserver. #103

Open garlicNova opened 3 months ago

garlicNova commented 3 months ago

Code of Conduct

VMware Cloud Foundation

5.2

PowerShell Version

Power core 7.4

PowerCLI Version

13.2.0

Module Version

1.4.1

PowerVCF Version

2.4.1

Guest Operating System

windows server 2019

Environment Details

No response

Description

when pulling for service vsphere-UI, the server is returning unavailable, the cmdlet is pulling from CISserver, alternatively there is the naive powercli method in vsphere.7.x the script should change to support the new method.

Error or Debug Output

PS F:> Connect-CisServer -Server sfo-w01-vc01.sfo.rainpole.io -User administrator@sfo-w01.local -Password xxxx

Name User Port


sfo-w01-vc01.sfo.rainpole.io SFO-W01.LOCAL\Administrator 443

PS F:> $vMonAPI = Get-CisService 'com.vmware.appliance.vmon.service' PS F:> $vMonAPI.get("vsphere-ui", 0) OperationStopped: A server error occurred: 'com.vmware.vapi.std.errors.service_unavailable': Service unavailable. (Server error id: 'com.vmware.vapi.endpoint.cis.ServiceUnavailable'). Check $Error[0].Exception.ServerError for more details.

Expected Behavior

PS F:> $vMonAPI.get("vsphere-ui", 0) should return vsphere-ui service status

Actual Behavior

A server error occurred: 'com.vmware.vapi.std.errors.service_unavailable': Service unavailable. (Server error id: 'com.vmware.vapi.endpoint.cis.ServiceUnavailable'). Check $Error[0].Exception.ServerError for more details.

Steps to Reproduce

Connect-CisServer -Server $vCenterFqdn -User administrator@vsphere.local -Password xxxx PS F:> $vMonAPI = Get-CisService 'com.vmware.appliance.vmon.service' PS F:> $vMonAPI.get("vsphere-ui", 0)

Log Fragments and Files

No response

Screenshots

No response

References

No response

garlicNova commented 3 months ago

please assign this to me