Skip to content

[BUG] Unable to run govc disk.ls or govc disk.ls -R #3639

@jespinosaitrs

Description

@jespinosaitrs

Describe the bug
I am unable to run govc disk.ls or govc disk.ls -R. Both fail with the same error:

$ govc disk.ls
govc: 0b5dfeb3-3b76-44c0-a183-6e082734eba5 not found: use 'disk.ls -R' to reconcile datastore inventory

$ govc disk.ls -R
govc: 0b5dfeb3-3b76-44c0-a183-6e082734eba5 not found: use 'disk.ls -R' to reconcile datastore inventory

To Reproduce
Steps to reproduce the behavior:

  1. Run govc disk.ls or govc disk-ls -R.
  2. Wait a few moments.
  3. The error govc: 0b5dfeb3-3b76-44c0-a183-6e082734eba5 not found: use 'disk.ls -R' to reconcile datastore inventory is shown.

Expected behavior
The commands should finish without errors and display the disks or reconcile the disks.

Affected version

$ brew info govc
==> govc: stable 0.46.2 (bottled)
Command-line tool for VMware vSphere

Screenshots/Debug Output

types.RetrieveVStorageObject{
    This: types.ManagedObjectReference{Type:"VcenterVStorageObjectManager", Value:"VStorageObjectManager", ServerGUID:""},
    Id:   types.ID{
        Id: "0b5dfeb3-3b76-44c0-a183-6e082734eba5",
    },
    Datastore:     types.ManagedObjectReference{Type:"Datastore", Value:"datastore-24", ServerGUID:""},
    DiskInfoFlags: nil,
}
&soap.Fault{
    XMLName: xml.Name{Space:"http://schemas.xmlsoap.org/soap/envelope/", Local:"Fault"},
    Code:    "ServerFaultCode",
    String:  "The object or item referred to could not be found.",
    Detail:  struct { Fault types.AnyType "xml:\",any,typeattr\"" }{},
}

Additional context
There are two other identical issues in the repository that were marked as closed:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions