Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Increase the re-tries amount #426

Merged
merged 3 commits into from
Nov 11, 2016
Merged

Increase the re-tries amount #426

merged 3 commits into from
Nov 11, 2016

Conversation

fonsecas72
Copy link
Contributor

It seems that on slower systems, 30 seconds is not enough to properly get the ip address.

@fonsecas72
Copy link
Contributor Author

fonsecas72 commented Nov 7, 2016

btw, from what I understand, vagrant-lxc should fallback to use "FetchIpFromDnsmasqLeases" which it seems not to be properly working. I still get an "There was an error executing lxc-attach" exception.

@fonsecas72
Copy link
Contributor Author

Vagrant-lxc seems to try to the dns masq leases and it all seems fine but the exception is still thrown.

@ccope
Copy link
Contributor

ccope commented Nov 8, 2016

Yeah I recall that section of code being kind of messy.
Rather than just bumping the timeout, could you make that configurable?

@fonsecas72
Copy link
Contributor Author

Sure, just give me a hint how

@fgrehm
Copy link
Owner

fgrehm commented Nov 8, 2016

Oh yeah, you guys are looking at code that has been hardly changed since 2013 😄

@fonsecas72 you should probably make that a config option on https://github.com/fgrehm/vagrant-lxc/blob/master/lib/vagrant-lxc/config.rb. @ccope WDYT?

@fonsecas72
Copy link
Contributor Author

@ccope @fgrehm Something like this?

def initialize
@customizations = []
@backingstore = UNSET_VALUE
@backingstore_options = []
@sudo_wrapper = UNSET_VALUE
@container_name = UNSET_VALUE
@fetch_ip_tries = 10
Copy link
Contributor

Choose a reason for hiding this comment

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

Close, I think the default values go in the finalize! method.

@fonsecas72
Copy link
Contributor Author

@ccope there you go, thanks!

@ccope ccope merged commit ae18c05 into fgrehm:master Nov 11, 2016
@fonsecas72 fonsecas72 deleted the patch-1 branch November 14, 2016 10:06
@fonsecas72
Copy link
Contributor Author

@ccope do you know when will you release it?

@ccope
Copy link
Contributor

ccope commented Nov 14, 2016

I don't have access to the rubygems account. @globin would you guys be up for cutting a release?

@fonsecas72
Copy link
Contributor Author

Please can anyone release it? @fgrehm @globin

@fgrehm
Copy link
Owner

fgrehm commented Nov 22, 2016

@ccope please shoot me your rubygems email either as a comment here or to the email on my GH profile and I'll get that sorted out 🍻

@fonsecas72
Copy link
Contributor Author

@fgrehm I'm sorry but can I do something for this to be released? My rubygems username is fonsecas72 (I could not find your email).

@ccope
Copy link
Contributor

ccope commented Dec 19, 2016

Sorry, I got swamped with work stuff the last two weeks. I'll figure out how to do the release tonight.

@fonsecas72
Copy link
Contributor Author

friendly reminder @ccope

@ccope
Copy link
Contributor

ccope commented Dec 21, 2016

Done! @fonsecas72

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

Successfully merging this pull request may close these issues.

3 participants