Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Network configuration remains after disabling landrush #306

Open
jojoob opened this issue Jan 24, 2017 · 2 comments
Open

Network configuration remains after disabling landrush #306

jojoob opened this issue Jan 24, 2017 · 2 comments

Comments

@jojoob
Copy link

jojoob commented Jan 24, 2017

If I disable landrush (config.landrush.enabled = false or removing the line completely from Vagrantfile) for a machine that had landrush previously enabled and then load the configuration with vagrant reload it takes about 3 minutes to boot the machine.

This is caused by the configuration created by landrush in /etc/network/interfaces remaining after disabling landrush:

#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet dhcp
    post-up route del default dev $IFACE || true
#VAGRANT-END

This causes the machine to searching for the configured network interface that does not longer exists (the additional network interface added to the machine by landrush was removed by disabling landrush):

cloud-init-nonet[3.68]: waiting 10 seconds for network device
cloud-init-nonet[13.69]: waiting 120 seconds for network device
cloud-init-nonet[123.69]: gave up waiting for a network device.
[...]
Waiting for network configuration...
Waiting up to 60 more seconds for network configuration...

Vagrant keeps showing default: Warning: Remote connection disconnect. Retrying... lines until the machine finished booting.

Is there a way to automatically remove the network configuration that landrush added?

Environment

Host: Mac OS X 10.11.6
Vagrant version: 1.8.7
Guest: Ubuntu 14.04
landrush plugin version: 1.2.0

@hferentschik hferentschik changed the title network configuration remains after disabling landrush (causes long boot time) Network configuration remains after disabling landrush Feb 5, 2017
@hferentschik
Copy link
Contributor

This is caused by the configuration created by landrush in /etc/network/interfaces remaining after disabling landrush:

To be clear, you are talking about config on the guest, right? A couple of things here. The network configuration is really a provisioning thing, so I would not expect vagrant reload to touch this out of the box, since it does not run provisioning, unless explicitly requested.

That said, even with vagrant reload --provision the entry will persist. There is atm no inversion of this operation. You basically have to destroy and re-create the VM.

@jojoob
Copy link
Author

jojoob commented Feb 6, 2017

To be clear, you are talking about config on the guest, right?

Yes.

Ok, thanks for the explanation.

You basically have to destroy and re-create the VM.

Or may it help to explicit specify the network configuration in the Vagrantfile and do vagrant reload --provision?

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

No branches or pull requests

2 participants