File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ Vagrant.configure("2") do |config|
8989 end
9090
9191 node . vm . provision "shell" , inline : <<-SHELL
92+ # Setting hostname manually to prevent "Could not find csr for nodes" error
93+ # Issue: https://github.com/eliu/openshift-vagrant/issues/12
94+ # Workaround: https://bugzilla.redhat.com/show_bug.cgi?id=1625911#c43
95+ hostnamectl set-hostname master.example.com
96+
97+ # Trick to acclerate the cloning speed from GitHub
98+ # echo "151.101.72.249 github.global.ssl.fastly.net" >> /etc/hosts
99+ # echo "192.30.253.113 github.com" >> /etc/hosts
100+
92101 /vagrant/master.sh #{ OPENSHIFT_RELEASE } #{ OPENSHIFT_ANSIBLE_BRANCH } #{ NETWORK_BASE }
93102 SHELL
94103
Original file line number Diff line number Diff line change @@ -91,7 +91,16 @@ master.example.com openshift_ip={{NETWORK_BASE}}.101 openshift_host={{NETWORK_BA
9191# override the default values of openshift_router_selector and openshift_registry_selector
9292# from 'region=infra' to 'node-role.kubernetes.io/infra=true'
9393#
94+ # @update on 2019/06/27
95+ # Somehow, the etcd is forced to deployed as container form, which caused
96+ # "Wait for control plane pods to appear" issue and resulted in failures at last.
97+ # For more details about this discussions, please visit:
98+ # https://github.com/eliu/openshift-vagrant/issues/10
99+ # Advice has been taken from the issue discussion above and thanks to @Voronenko !
100+ # The trick is to add ansible variables "ontainerized=false etcd_ip={ip}" to force
101+ # master node use traditional way to install ECTD instead of containerization.
102+ #
94103[nodes]
95- master.example.com openshift_ip={{NETWORK_BASE}}.101 openshift_host={{NETWORK_BASE}}.101 ansible_ssh_private_key_file="/home/vagrant/.ssh/master.key" openshift_schedulable=true {{NODE_GROUP_MASTER_INFRA}}
104+ master.example.com containerized=false etcd_ip={{NETWORK_BASE}}.101 openshift_ip={{NETWORK_BASE}}.101 openshift_host={{NETWORK_BASE}}.101 ansible_ssh_private_key_file="/home/vagrant/.ssh/master.key" openshift_schedulable=true {{NODE_GROUP_MASTER_INFRA}}
96105node01.example.com openshift_ip={{NETWORK_BASE}}.102 openshift_host={{NETWORK_BASE}}.102 ansible_ssh_private_key_file="/home/vagrant/.ssh/node01.key" openshift_schedulable=true {{NODE_GROUP_COMPUTE}}
97106node02.example.com openshift_ip={{NETWORK_BASE}}.103 openshift_host={{NETWORK_BASE}}.103 ansible_ssh_private_key_file="/home/vagrant/.ssh/node02.key" openshift_schedulable=true {{NODE_GROUP_COMPUTE}}
You can’t perform that action at this time.
0 commit comments