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

Check all VMs for MAC collision #801

Merged
merged 2 commits into from
Apr 25, 2024
Merged

Check all VMs for MAC collision #801

merged 2 commits into from
Apr 25, 2024

Conversation

fkorotkov
Copy link
Contributor

Before only suspendable VMs were getting checked. Not sure why. It makes sense to check all.

Before only suspendable VMs were getting checked. Not sure why. It makes sense to check all.
@edigaryev
Copy link
Collaborator

Before only suspendable VMs were getting checked. Not sure why.

Because for the rest of the VMs we do this in tart clone:

let generateMAC = try localStorage.hasVMsWithMACAddress(macAddress: sourceVM.macAddress())
&& sourceVM.state() != .Suspended
try sourceVM.clone(to: tmpVMDir, generateMAC: generateMAC)

@fkorotkov
Copy link
Contributor Author

There was a report when a person just scped the same VM twice. 🤷 Seems like an improvement.

@edigaryev
Copy link
Collaborator

edigaryev commented Apr 25, 2024

There was a report when a person just scped the same VM twice. 🤷 Seems like an improvement.

Let's acquire the global lock unconditionally then to simplify things up.

@fkorotkov
Copy link
Contributor Author

SGTM. PTAL 2af05de

@fkorotkov fkorotkov merged commit 755aad4 into main Apr 25, 2024
6 checks passed
@fkorotkov fkorotkov deleted the collisions-for-all-vms branch April 25, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants