-
Notifications
You must be signed in to change notification settings - Fork 48
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
vmpooler doesn't seem to recognize ready VMs #218
Comments
VMPooler will also need to be able to resolve the hostnames as well. Also what git SHA is this running on? |
SHA1: e3cda9d
As VMPooler generates its hostnames, how do you get this information to the DNS? Updated again Instructions for setting up your template VM, DHCP and DNS:
|
Correct. The DHCP server can do the DNS updates on the client's behalf. Getting the IP address from guest via Tools will also work and I can definitely see that as a use-case. I didn't write the original code so I'm taking a bit of a guess at the reason why this is the way it is:
Point 4 seems to be the strongest argument, in my mind. The bulk of those calls is to ensure the VM is in a ready state, so it makes sense that the VM is ready from the point of view of a user/client. That said. The VMPooler documentation needs to be updated (or even created!) to state this is a requirement. |
I've updated to your PR head (b0b7fef), the wacky VM cloning/trashing behaviour is gone, as expected from a total rewrite. I've moved the config, cloning VMs and connecting with SSH works with the test my setup, as evidenced by a few extra logging statements. Nonetheless, it doesn't seem that the VM is running, it continuously tries to connect to it despite the connection working. |
You need that anyway if I'm not mistaken, as you need to be able to query the hostname vmpooler generated in the VM to update your DNS. |
Oh yeah...forgot about that hostname check. Oh I wonder if it's a FQDN issue. I had a problem in my setup where the FQDN was registered in DNS, but the shortname wasn't (or my DNS search suffix list was incomplete) Pooler only queries DNS for the short name. |
Oh while my PR does look like a total rewrite, it's not. It's mainly a mass refactor. Most of the vSphere and Pool_Manager code is intact, but segregated into more siloed areas of concern. |
Ok, so I got it to work. What should be checked for by vmpooler:
What to note when setting this up:
Example dnsmasq config:
|
Found a small bug making the API choke on hostnames containing a dash: lib/vmpooler/api/helpers.rb:120 reads:
but should be:
|
Moved API hostname regex bug to a new issue and will close this one. I'm happy to review a fix for #282 if you'd like to put up a PR. |
Vmpooler doesn't seem to correctly find VMware VMs:
As far as I can tell, it doesn't even attempt to verify if a VM was successfully cloned and is accessible
on the net.
The docs don't go into detail on how the template VM should be set up and what should be provided to make this work.
What I gathered:
Here's the (redacted) config I used:
vmpooler.yaml
The text was updated successfully, but these errors were encountered: