Skip to content

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

Open
@garlicNova

Description

@garlicNova

Code of Conduct

  • I have read and agree to the Code of Conduct.
  • Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
  • Do not leave "+1" or other comments that do not add relevant information or questions.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

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 [email protected] -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 [email protected] -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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions