vmware / vmware/pyvmomi

GuestOS is missing on vm which was shut down

Open
#1,014 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

We have some VMs, which are in shut-down state some times. On these VMs no guestOS Informations was given by this pyvmomi tool. I had taken the credentials and SOAP requests from the SoapAdapter.py and pasted it into Postman to check, if there is an issue with pyvmomi or the vSphere API itself. If i send the SOAP requests directly to the vSphere API, i receive the GuetOS information in the response (tested it with the same VM which which was shut down). The pyvmomi response doesn't contain the guestOS information - it is empty.

I don't can find anything else instead of the shut-down-state, what could make an issue there.

I am not sure, if this is a wanted case, that a shut down vm doesn't can contain a vm.

Reproduction steps
  1. shut down a vm
  2. try to get the guestOS information via pyvmomi tool of the vm in shut-down-state
  3. try to make a manual SOAP request to the same vm via another tool (like Postman or SOAP-UI)
Expected behavior

The guestOS information should be also available with shut down vm's.

Additional context

I tried the pyvmomi versions 7.0, 7.0.3 and 8.0.0.1.2 - same issue on each version.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report with a shut-down VM, then compare the pyvmomi response with the direct SOAP response described in the issue. Done means pyvmomi exposes the guestOS information for shut-down VMs, with the behavior verified across the reported versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.