kubernetes-vagrant-coreos-cluster icon indicating copy to clipboard operation
kubernetes-vagrant-coreos-cluster copied to clipboard

fix empty coredns-deployment.yaml (and freeze on master: SSH auth method: private key)

Open ikyatov opened this issue 7 years ago • 4 comments

  • WIndows 10 Home,
  • VirtualBox 5.2.8,
  • Vagrant 2.0.2.

Note that:

  1. v.customize ["modifyvm", :id, "--paravirtprovider", "minimal"] # fix freeze "vagrant up" on master: SSH auth method: private key
  2. system "cp #{__dir__}/coredns-deployment.yaml #{__dir__}/temp/coredns-deployment.yaml" # copying a manually compiled file plugins/dns/coredns/deploy.sh don't work, result is empty temp/coredns-deployment.yaml

Patch:

@@ -166,6 +166,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
     # in CoreOS, so tell Vagrant that so it can be smarter.
     v.check_guest_additions = false
     v.functional_vboxsf     = false
+       v.customize ["modifyvm", :id, "--paravirtprovider", "minimal"] # fox fix freeze "vagrant up" on master: SSH auth method: private key
   end
   config.vm.provider :parallels do |p|
     p.update_guest_tools = false
@@ -270,7 +271,9 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
                 f.write(dnsData)
               end
           else if DNS_PROVIDER == "coredns"
-                system "#{__dir__}/plugins/dns/coredns/deploy.sh 10.100.0.10/24 #{DNS_DOMAIN} #{__dir__}/plugins/dns/coredns/coredns.yaml.sed > #{__dir__}/temp/coredns-deployment.yaml"
+                               system "cp #{__dir__}/coredns-deployment.yaml #{__dir__}/temp/coredns-deployment.yaml" # copying a manually compiled file
+                               # don't work, why?? Result is empty file
+                #system "#{__dir__}/plugins/dns/coredns/deploy.sh 10.100.0.10/24 #{DNS_DOMAIN} #{__dir__}/plugins/dns/coredns/coredns.yaml.sed > #{__dir__}/temp/coredns-deployment.yaml"
                end
           end
         end
@@ -485,6 +488,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
         kHost.vm.provider :virtualbox do |vb, override|
           vb.customize ["modifyvm", :id, "--uart1", "0x3F8", "4"]
           vb.customize ["modifyvm", :id, "--uartmode1", serialFile]

ikyatov avatar Mar 08 '18 21:03 ikyatov

Please, open a PR so I can test.

pires avatar Mar 09 '18 08:03 pires

Actually, I don't have Windows so I can't test properly. But for as long as it doesn't break on my Mac, it should be fine.

pires avatar Mar 09 '18 08:03 pires

@pires Fixes for me, PR: https://github.com/pires/kubernetes-vagrant-coreos-cluster/pull/284/files

Integrates solutions for https://github.com/pires/kubernetes-vagrant-coreos-cluster/issues/281 https://github.com/pires/kubernetes-vagrant-coreos-cluster/issues/282

ikyatov avatar Mar 09 '18 10:03 ikyatov

I ran into theses issues and just test it. It works fine. Vagrant 2.1.1 VB 5.1.x (tested on VB 5.2 too) Windows 10

gkoudjou avatar Jun 22 '18 20:06 gkoudjou