vmware / vmware/pyvmomi

Is there API could help to get datastore file's lock info?

Open
#708 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

I found that the file on vmfs datastore may be locked when I tired to download it via the API. It could only be downloaded from the host who is the lock owner. Although the command on esxi host "vmfsfilelockinfo" could help lock owner's hostname, but it's an internal command.

So, is there any API could help to get vmfs datastore file's lock info?

Thanks so much.

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 reviewing the vSphere API areas exposed by pyvmomi for VMFS datastore files and compare them with the ESXi vmfsfilelockinfo command mentioned in the issue. Done means identifying a supported API that returns the lock owner for a datastore file, or documenting that no such API is available.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.