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

govc: adding RDM mapping stored in VMDK fails when using vm.disk.attach and vm.rdm.attach does not provide vmdk option #3577

Open
etosan opened this issue Oct 6, 2024 · 2 comments

Comments

@etosan
Copy link

etosan commented Oct 6, 2024

Describe the bug
When adding RDM encoded in VMDK mapping file, or so called "Physical Compatibility Mode Raw Device Mapping" disk, the operation fails with error: Incompatible device backing specified for device '0'.

To Reproduce
Create RDM as VMDK and try to attach it as VMDK disk:

  1. Create LUN on SAN storage system
  2. Refresh the hosts and rescan the storage systems through vsphere WebGUI to get LUN address
  3. Create Physical Compatibility Mode Raw Device Mapping as discussed here to get situation like here
  4. Try to add resulting vmdk using govc like this: govc vm.disk.attach -vm dbcluster-c01.infra.environment -ds ds-c01-rdm01 -disk ds-c01-dbcluster-sbd-1.vmdk -link=false
  5. Operation fails with error: Incompatible device backing specified for device '0'.

Expected behavior
RDM VMDK disk should be added as normal. Adding said VMDK works fine through vsphere webgui.

Affected version
govc does not provide -version flag so I don't know what to report, binary is sufficiently recent, but I have no problem to retry with newest version if instructed.

Screenshots/Debug Output
N/A

Additional context
Same issue, but misidentified, recorded here. Reporter does not realize there is difference between raw LUN based RDM and RDM "symlinks"/mapping files.
Affects terraform provider here as well, although it has other issues not directly caused by this BUG.

Copy link
Contributor

github-actions bot commented Oct 6, 2024

Howdy 🖐   etosan ! 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.

@tenthirtyam tenthirtyam changed the title [BUG] govc: adding RDM mapping stored in VMDK fails when using vm.disk.attach and vm.rdm.attach does not provide vmdk option govc: adding RDM mapping stored in VMDK fails when using vm.disk.attach and vm.rdm.attach does not provide vmdk option Oct 7, 2024
Copy link
Contributor

github-actions bot commented Jan 6, 2025

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.

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