-
Notifications
You must be signed in to change notification settings - Fork 132
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
Dynamic IP address #35
Comments
Sure thing -- so, that should be OK. Just make sure you update the inventory file to match the IP addresses for the hosts to match the DHCP assigned addresses, in the clone it's https://github.com/dougbtv/docker-asterisk/blob/master/high-availability/ansible/inventory/coreos And then... Also update the variables to reflect that subnet, in this file https://github.com/dougbtv/docker-asterisk/blob/master/high-availability/ansible/vars/coreos.yml But if you're using the Which should set a static IP address in the subnet you set the in the variables, so it's setup to create 5 boxes, and for boxes numbered 1-5 it should assign them IPs like Are you using the |
Yes, I'm using the I get few SELINUX AVC Denial messages while running the cluster creator, but I'm not sure what is the reason for it, so I uploaded a log for you. Thanks |
Hrmmm, yeah I definitely have developed it with SELinux disabled. I wonder if the two are related? It's possible. Unfortunately, I'm not too interested in debugging it with SELinux compatibility at the moment. If you are however -- I'd be more than happy to accept a PR that makes it SELinux friendly. Any chance you'd want to try it again with SELinux disabled? I wondering if it might be an issue with the VM not having privileges enough to set it's IP statically? I'm unsure, tbh. |
As it is a VM it should not be affected by any host networking settings, because this 192.168.122 range only exists in the VM itself. I turned off selinux for qemu with this SVirt can be disabled for the libvirt QEMU driver by editting Now I can't see SELinux errors, but my core boxes still receiving static IPs... I don't need selinux, as I just want to try it out. |
OK, cool, that takes selinux out of the equation. Interesting, I wonder For kicks, can you log into one of the CoreOS machines and cat the Good chance I can try it on Fedora 23 this weekend and see but on two On Fri, Jan 8, 2016, 10:21 AM Zoltan Burgermeiszter <
|
I can connect to the dynamic ips of the boxes with ssh, but can not log in as it is asking for a password which does not exists as it should authenticate with the SSH key. If it works for you on F21, then I'll try it with that. Thanks, |
Should be totally OK within vmware, I think. Hrmmm, with sshing in, you On Fri, Jan 8, 2016 at 11:02 AM Zoltan Burgermeiszter <
|
OK, I think I have found something. I managed to SSH in to the boxes with core@192.168.122.x So in the following file:
On the Fedora host: The correct And now I can SSH to the correct IPs. So I done some more investigation. This shows the random IPs and the correct static IPs from the range of 200-205. So now I can SSH in to for example to the core0 box with both the Weird. So maybe I was misinformed, because initially, when I got the SELinux errors, I was unable to SSH into the boxes via the 200-205 range, and when I opened the box from the QEMU Manager it showed the dynamic IP above the login prompt, and then after I disabled SELinux, it still showed a dynamic IP. Now the bootstrap_ansible_coreos.yml ran without any issues :) Thanks for your help so far. |
Nice find!! Cool, happy to help, getting CoreOS up and running and etcd On Fri, Jan 8, 2016, 5:48 PM Zoltan Burgermeiszter notifications@github.com
|
Thanks for all your help. |
No prob zoltan, thanks for closing er out. On Wed, Jan 13, 2016, 7:15 AM Zoltan Burgermeiszter <
|
Hi Doug,
I'm trying to run it on Fedora 23, but the coreos boxes always get a random IP from the 192.168.122.x range.
My ansible version is 1.9.4
I hope you can help.
Kind regards,
Zoltan
The text was updated successfully, but these errors were encountered: