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

This plugin breaks the vagrant-libvirt hostnames #107

Closed
purpleidea opened this issue Jul 23, 2014 · 6 comments
Closed

This plugin breaks the vagrant-libvirt hostnames #107

purpleidea opened this issue Jul 23, 2014 · 6 comments

Comments

@purpleidea
Copy link

I just tried this out with vagrant-libvirt. It mostly seems to work great. The biggest issue:

When using this, it changes the host name (as seen from the vagrant-libvirt perspective) from hostname to

Example:

hosts_1406096813_626657195ee18d615f84

$ vup host1
Bringing machine 'host1' up with 'libvirt' provider...
==> host1: Creating image (snapshot of base box volume).
==> host1: Creating domain with the following settings...
==> host1:  -- Name:          hosts_1406096813_626657195ee18d615f84
==> host1:  -- Domain type:   kvm
==> host1:  -- Cpus:          1
==> host1:  -- Memory:        512M
==> host1:  -- Base box:      centos-6
==> host1:  -- Storage pool:  default
==> host1:  -- Image:         /var/lib/libvirt/images/hosts_1406096813_626657195ee18d615f84.img
==> host1:  -- Volume Cache:  default
==> host1:  -- Kernel:        
==> host1:  -- Initrd:        
==> host1:  -- Command line : 
==> host1: Starting domain.
==> host1: Waiting for domain to get an IP address...
==> host1: Waiting for SSH to become available...
==> host1: Starting domain.
==> host1: Waiting for domain to get an IP address...
==> host1: Waiting for SSH to become available...
==> host1: Creating shared folders metadata...
==> host1: Setting hostname...
==> host1: Rsyncing folder: /home/james/tmp/vagrant/hosts-hacking/ => /vagrant
==> host1: Configuring and enabling network interfaces...
==> host1: Updating /etc/hosts file on active guest machines...
==> host1: Updating /etc/hosts file on host machine (password may be required)...

I'm not entirely sure who's fault this is, if it's vagrant-libvirt or this plugin, but whatever the case, if someone can help me understand why / how this happens, and point me in the right direction, then I'll patch it.

Thanks,
James

@purpleidea
Copy link
Author

Tracked in vagrant-libvirt as: vagrant-libvirt/vagrant-libvirt#215

@purpleidea
Copy link
Author

Not vagrant-hostmanager's fault. I incorrectly thought it was a change this plugin did, when really it was vagrant-libvirt that changed without me realizing.

Sorry for the noise.

@pbitty
Copy link
Contributor

pbitty commented Jul 23, 2014

No problem. I was just starting to look at it. Good timing. 😃

@purpleidea
Copy link
Author

@pbitty I just wrote two patches, but I didn't hear back from the main committer... I'm guessing you're the new maintainer? If you have a chance, please have a look:
First: #109
Second: #111
(Merge in that order)

Cheers!

@pbitty
Copy link
Contributor

pbitty commented Jul 26, 2014

Hi James. Thanks for contributing.
I am out of town, with no computer for the weekend. I will take a look at
the PRs early this week, k?

@purpleidea
Copy link
Author

On Sat, Jul 26, 2014 at 9:34 AM, Paulo Bittencourt <[email protected]

wrote:

Hi James. Thanks for contributing.
I am out of town, with no computer for the weekend. I will take a look at
the PRs early this week, k?

Sounds good. I might have one subsequent change to one of those patches to
go along with a third patch coming up, but they are a good start. Cheers

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

No branches or pull requests

2 participants