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

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

Open
4 tasks done
garlicNova opened this issue Jun 14, 2024 · 1 comment
Open
4 tasks done
Assignees
Labels
bug Bug
Milestone

Comments

@garlicNova
Copy link
Contributor

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

@garlicNova garlicNova added bug Bug needs-triage Needs Triage labels Jun 14, 2024
@github-actions github-actions bot added the pending-review Pending Review label Jun 14, 2024
@garlicNova
Copy link
Contributor Author

please assign this to me

@tenthirtyam tenthirtyam removed needs-triage Needs Triage pending-review Pending Review labels Jul 15, 2024
@tenthirtyam tenthirtyam added this to the Backlog milestone Jul 24, 2024
@tenthirtyam tenthirtyam modified the milestones: Backlog, .Next Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug
Projects
None yet
Development

No branches or pull requests

3 participants