Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
devstack fails with vagrant-1.8.5 (current) #3385
Comments
|
@nedbat This seems interesting for you |
regisb
commented
Sep 22, 2016
|
I encountered this bug as well; it's easier to solve by patching the Vagrantfile itself, as suggested in this issue comment, than by patching
I can open a PR to patch all |
|
Hi @regisb! Thanks for your talk at the Open edX conf 2016. I watched the video and it was very helpful! Could you explain the effect of that combination of parameters? It's not clear how Unfortunately even if it works for Virtualbox, it won't help my situation. I'm running devstack on a multi-tenant libvirt/KVM host. For the most part, this works the same as Virtualbox except that vagrant-libvirt requires DHCP for its management address, which then depends on In fact, I just use the management address to access the guest rather than the static IP which isn't routable because it assumes the default Virtualbox subnet. It made me wonder why the static IP is configured at all, especially since it's trivial to find the dynamic IP from the host:
The only purpose I've found of the static IP is so it can added to /etc/hosts for preview, but that could also be done using the snippet above. I'm pretty new to Open edX though, so maybe the static IP is used in other ways I haven't discovered yet. In any case, I know this is a bit of a detour, so thanks for bearing with me. :-) It seems like there are three things, any or all of which could be done:
Now that I've thought of it (duh) I'll probably do (3) locally. But if I can find time, or if someone else wants to do it, then a PR for (2) might be nice too |
|
Here's what I did for (3):
and it's working great now:
so... it seems like if the Vagrantfile tweak you suggested works for Virtualbox users, then this quick fix does the trick for me and there's probably no need to put |
|
I did some quick tests and I can answer my own question from earlier. Given this line:
both however if you ever reboot your laptop and need to therefore I don't think the Vagrantfile hack is really sufficient even for Virtualbox users. It just helps for the first boot and then breaks later. I think this means we're back to patching vagrant and/or adding |
|
@agriffis thanks so much for the extra legwork! I can add the os-release file to the next box file. |
regisb
commented
Sep 23, 2016
|
@agriffis thanks, glad you liked my talk :) |
|
For comparison, here is the 16.04.1 os-release file:
|
vmendoza
commented
Sep 28, 2016
•
|
For ubuntu 12, only the patch works, os-release and network settings don't work. Vagrant needs to fix this issue. |
|
@vmendoza can you show what you tried? The os-release file seemed really promising, and it is specifically for Ubuntu 12.04. |
|
FYI vagrant 1.8.6 released yesterday with the fix. https://github.com/mitchellh/vagrant/blob/master/CHANGELOG.md#186-september-27-2016 |
agriffis commentedSep 18, 2016
Bringing up devstack with vagrant-1.8.5 (the current version) fails:
The problem is actually a bug in vagrant that was introduced just before 1.8.5 shipped (hashicorp/vagrant@05782f1), and has already been fixed but not yet released (hashicorp/vagrant@00fa491).
It's possible to work around the problem locally using this sequence to add the
/etc/os-releasefile so that vagrant can detect Ubuntu:Would it make sense to add this file to the box so vagrant-1.8.5 works directly?