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

[BUG] govc 0.37.3 datastore.create cannot add nfs41 storage #3471

Closed
redhat-demo opened this issue Jun 17, 2024 · 3 comments
Closed

[BUG] govc 0.37.3 datastore.create cannot add nfs41 storage #3471

redhat-demo opened this issue Jun 17, 2024 · 3 comments

Comments

@redhat-demo
Copy link

redhat-demo commented Jun 17, 2024

Describe the bug
hello
I want to use govc datastore.create to add a nfs v4.1 datastore into a vcenter cluster
I have confirm that storage is worked because i use vcenter web console to add successfully

To Reproduce
Steps to reproduce the behavior:

My NFS Server is 192.168.12.11
My NFS Path is /data/nfs/vsphere
My ESXi Host is 192.168.12.21

the full command line as following:

govc datastore.create
-type NFS41
-name datastore-nfs
-remote-host 192.168.12.11
-remote-path /data/nfs/vsphere
192.168.12.21

but this command line get a error:
govc: /Datacenter-1/host/Cluster-1/192.168.12.21: ServerFaultCode: A specified parameter was not correct:

there are some cluster information as following

govc ls /Datacenter-1/host/Cluster-1
/Datacenter-1/host/Cluster-1/Resources
/Datacenter-1/host/Cluster-1/VM Network
/Datacenter-1/host/Cluster-1/192.168.12.22
/Datacenter-1/host/Cluster-1/192.168.12.21

Expected behavior
Add a NFS v4 datastore into vCenter Cluster and ESXi hosts

Affected version
govc version
govc 0.37.3

I have also tried govc 0.37.2, the issue was same

Copy link
Contributor

Howdy 🖐   redhat-demo ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

@dougm
Copy link
Member

dougm commented Jul 3, 2024

The command hasn't been changed in 4+ years, I'm not able to reproduce. Are you able to add it from GUI?
Can you add the -trace flag and check the output for more details.
You can also check ESX host logs govc logs -host 192.168.12.21

Copy link
Contributor

github-actions bot commented Oct 2, 2024

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Mark as fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants