You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vote on this issue by adding a 👍 reaction to the original issue initial description to help the maintainers prioritize.
Do not leave "+1" or other comments that do not add relevant information or questions.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Terraform
1.10.5
Terraform Provider
2.11.1
VMware vSphere
8.0.2
Description
We replicate virtual machines between datacenters using Veeam. By design, when a VM replica is created, it acquires the same MAC address and UUID as the original VM, see https://www.veeam.com/kb1669
As the same UUID is shared for both production VM and replica, when I create some snapshots for these VMs using vsphere_virtual_machine_snapshot, sometimes the snapshot is made on the replica instead of the production VM .
I'd appreciate there was some mechanisms to avoid that.
I thought of some:
Either an optional argument for the vsphere_virtual_machine_snapshot, like "virtual_machine_name", where I could specify the name of the VM that should be snapshotted. So the provider make sure the snapshotted one bears this name.
Either some euristichs: "when two VM share the same UUID , snapshot the one with the shortest name (replicas names based on original names but longer)", or "when two VM share the same UUID , and only one of the is powered on, snapshot the powered one".
Maybe I could help ? Could take some time as I am not a seasoned dev and I'm unfamiliar with this source code.
Community Guidelines
Terraform
1.10.5
Terraform Provider
2.11.1
VMware vSphere
8.0.2
Description
We replicate virtual machines between datacenters using Veeam. By design, when a VM replica is created, it acquires the same MAC address and UUID as the original VM, see https://www.veeam.com/kb1669
As the same UUID is shared for both production VM and replica, when I create some snapshots for these VMs using vsphere_virtual_machine_snapshot, sometimes the snapshot is made on the replica instead of the production VM .
I'd appreciate there was some mechanisms to avoid that.
I thought of some:
Either an optional argument for the vsphere_virtual_machine_snapshot, like "virtual_machine_name", where I could specify the name of the VM that should be snapshotted. So the provider make sure the snapshotted one bears this name.
Either some euristichs: "when two VM share the same UUID , snapshot the one with the shortest name (replicas names based on original names but longer)", or "when two VM share the same UUID , and only one of the is powered on, snapshot the powered one".
Maybe I could help ? Could take some time as I am not a seasoned dev and I'm unfamiliar with this source code.
Affected Resources or Data Sources
vsphere_virtual_machine_snapshot
Terraform Configuration
resource "vsphere_virtual_machine_snapshot" "snapshots_LVM {
virtual_machine_uuid = some_uuid_that_is_used_on_several_VMS
snapshot_name = "TEST"
description = "for reproducing bug"
memory = false
quiesce = true
consolidate = true
}
Debug Output
.
Panic Output
No response
Expected Behavior
the production VM is snapshotted
Actual Behavior
the replica is snapshotted
Steps to Reproduce
Use veeam to replicate some VMs.
Create a snapshot of these VM using the vsphere provider.
Environment Details
No response
Screenshots
No response
References
No response
The text was updated successfully, but these errors were encountered: