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

Mutex change #255

Merged
merged 33 commits into from
Jun 7, 2019
Merged

Mutex change #255

merged 33 commits into from
Jun 7, 2019

Conversation

vbauzys
Copy link
Contributor

@vbauzys vbauzys commented May 31, 2019

This initial change which allows us come from retrycall approach to mutex one.

Notes:

  • Remove rectrycall's
  • Add k,v mutex
  • Add locking/unlocking helper functions
  • remove locking where isn't needed - now isolated/direct networks works faster

Spotted issues:

  • for a moment vm.changeName fails without rectrycall - looks like function initiated to soon, though vm creation task completed
  • Test TestAccVcdVApp_PowerOff failing on my env. Seems that in test's terraform dependencies isn't working - if HCL runned with binary - everything is fine. Still looking for solution

Signed-off-by: Vaidotas Bauzys <[email protected]>
@ghost ghost added the size/XL label May 31, 2019
@vbauzys vbauzys requested review from Didainius, lvirbalas and dataclouder and removed request for Didainius and lvirbalas May 31, 2019 13:26
@vbauzys vbauzys self-assigned this May 31, 2019
@vbauzys vbauzys requested a review from lvirbalas May 31, 2019 13:26
Copy link
Collaborator

@Didainius Didainius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So happy to see getting rid of the retry calls :) 🥇 🙇
This is round one and I'm going for further testing and second review.

vcd/provider.go Outdated Show resolved Hide resolved
vcd/resource_vcd_network_direct.go Show resolved Hide resolved
vcd/resource_vcd_network_routed.go Outdated Show resolved Hide resolved
vcd/resource_vcd_snat.go Outdated Show resolved Hide resolved
vcd/resource_vcd_vapp.go Show resolved Hide resolved
vcd/provider.go Outdated Show resolved Hide resolved
vcd/provider.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add an antry in CHANGELOG.md for this feature.

vcd/provider.go Outdated Show resolved Hide resolved
vcd/provider.go Outdated Show resolved Hide resolved
vbauzys added 3 commits June 3, 2019 13:45
Signed-off-by: Vaidotas Bauzys <[email protected]>
Signed-off-by: Vaidotas Bauzys <[email protected]>
vcd/provider.go Outdated Show resolved Hide resolved
vcd/provider.go Outdated Show resolved Hide resolved
vbauzys added 2 commits June 3, 2019 15:02
Signed-off-by: Vaidotas Bauzys <[email protected]>
Signed-off-by: Vaidotas Bauzys <[email protected]>
CHANGELOG.md Outdated Show resolved Hide resolved
vcd/provider.go Outdated Show resolved Hide resolved
vcd/resource_vcd_network_routed.go Outdated Show resolved Hide resolved
@ghost ghost added size/XXL and removed size/XL labels Jun 7, 2019
@vbauzys
Copy link
Contributor Author

vbauzys commented Jun 7, 2019

resource_vcd_vapp_vm.g

Comment updated to moved to better place

vcd/config.go Outdated Show resolved Hide resolved
vcd/config.go Outdated Show resolved Hide resolved
vbauzys added 2 commits June 7, 2019 12:08
Signed-off-by: Vaidotas Bauzys <[email protected]>
Signed-off-by: Vaidotas Bauzys <[email protected]>
Copy link
Contributor

@dataclouder dataclouder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@lvirbalas lvirbalas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants