Skip to content

Unable to list FCD's in a Tanzu environment with "govc disk.ls" #3143

@saravanansubbiah1

Description

@saravanansubbiah1

Problem Statement:

I am following [blog] (https://cormachogan.com/2021/04/06/task-delete-a-virtual-storage-object-reports-a-specified-parameter-was-not-correct/), to clear out stranded snapshots and when I run govc disk.ls against the datastore, I see the following message.
govc: 2eb9985d-c091-xx-xx-xxf857 not found: use 'disk.ls -R' to reconcile datastore inventory

Steps to reproduce the behavior:

  1. Copy govc binary to a linux machine and set export GOVC_URL to vCenter
  2. Establish an insecure connection to the vCenter as well
  3. "govc volume.ls" returns all the volumes with "pvc-xx" identifier
  4. "govc disk.ls -ds | grep pvc" returns the above error. (Same behavior without grep as well)

Expected behavior
govc disk.ls should have listed the first class disks as shown in the blog.

Affected version
~]$govc version
govc 0.30.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions