Failure in haproxy setup
mmprabhu-kudla opened this issue · comments
Describe the bug
Service node fails to come up in a setup with 1 controller, 1 compute, 1 service and 1 extranode. Using the below command for setup.
To Reproduce
Run the ansible-playbook command
TASK [kubeinit.kubeinit.kubeinit_okd : Display final debug info] **************************************************************************************************************************************************
ok: [localhost -> service-01] => {
"_result_cluster_info": {
"changed": false,
"cmd": "set -eo pipefail\necho \"show stat\" | socat unix-connect:/var/lib/haproxy/stats stdio\nexport KUBECONFIG=~/install_dir/auth/kubeconfig\noc get nodes\n",
"delta": "0:00:00.004592",
"end": "2021-09-30 13:38:39.539266",
"failed": true,
"msg": "non-zero return code",
"rc": 1,
"start": "2021-09-30 13:38:39.534674",
"stderr": "2021/09/30 13:38:39 socat[4123] E connect(5, AF=1 \"/var/lib/haproxy/stats\", 24): No such file or directory",
"stderr_lines": [
"2021/09/30 13:38:39 socat[4123] E connect(5, AF=1 \"/var/lib/haproxy/stats\", 24): No such file or directory"
],
"stdout": "",
"stdout_lines": []
}
}
Expected behavior
sudo virsh list should have seen 4 nodes including service and bootstrap
Instead seeing this
user @nyctea kubeinit]$ sudo virsh list
Id Name State
------------------------------------------
4 okdcluster-controller-01 running
6 okdcluster-compute-01 running
Infrastructure
- Hypervisors OS: Centos8
- Version: Linux nyctea 4.18.0-338.el8.x86_64 #1 SMP Fri Aug 27 17:32:14 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Deployment command
ansible-playbook \
--user root \
-v -i ./hosts/okd/inventory \
-e kubeinit_common_docker_username=user \
-e kubeinit_common_docker_password=pass \
--become \
--become-user root \
./playbooks/okd.yml
Inventory file diff
Run the following command:
diff --git a/kubeinit/hosts/okd/inventory b/kubeinit/hosts/okd/inventory
index 2cc2490..5411dbe 100644
--- a/kubeinit/hosts/okd/inventory
+++ b/kubeinit/hosts/okd/inventory
@@ -31,27 +31,31 @@ kubeinit_inventory_hosted_deployment=false
[controller_nodes:vars]
os=coreos
disk=25G
-ram=25165824
-vcpus=8
-maxvcpus=16
+ram=12582912
+vcpus=4
+maxvcpus=4
[compute_nodes:vars]
os=coreos
disk=30G
ram=8388608
-vcpus=8
-maxvcpus=16
+vcpus=4
+maxvcpus=4
[service_nodes:vars]
os=centos
+disk=100G
+ram=12582912
+vcpus=4
+maxvcpus=4
services="bind,dnsmasq,haproxy,apache,registry" # nexus
[extra_nodes:vars]
os=coreos
disk=20G
ram=16777216
-vcpus=8
-maxvcpus=16
+vcpus=2
+maxvcpus=4
#
# Hosts definitions
@@ -88,15 +92,15 @@ hypervisor-01 ansible_host=nyctea
[controller_nodes]
controller-01 ansible_host=10.0.0.1 mac=52:54:00:34:84:26 interfaceid=47f2be09-9cde-49d5-bc7b-76189dfcb8a9 target=hypervisor-01 type=virtual
-controller-02 ansible_host=10.0.0.2 mac=52:54:00:53:75:61 interfaceid=fb2028cf-dfb9-4d17-827d-3fae36cb3e98 target=hypervisor-01 type=virtual
-controller-03 ansible_host=10.0.0.3 mac=52:54:00:96:67:20 interfaceid=d43b705e-86ce-4955-bbf4-3888210af82e target=hypervisor-01 type=virtual
+#controller-02 ansible_host=10.0.0.2 mac=52:54:00:53:75:61 interfaceid=fb2028cf-dfb9-4d17-827d-3fae36cb3e98 target=hypervisor-01 type=virtual
+#controller-03 ansible_host=10.0.0.3 mac=52:54:00:96:67:20 interfaceid=d43b705e-86ce-4955-bbf4-3888210af82e target=hypervisor-01 type=virtual
# controller-04 ansible_host=10.0.0.4 mac=52:54:00:60:38:79 interfaceid=782d5b7b-893e-44b7-8d2c-c0b30b3c76be target=hypervisor-01 type=virtual
# controller-05 ansible_host=10.0.0.5 mac=52:54:00:62:48:94 interfaceid=79391844-779b-4440-8b1c-209ade0be551 target=hypervisor-01 type=virtual
# From .6 to .99 compute nodes
[compute_nodes]
compute-01 ansible_host=10.0.0.6 mac=52:54:00:10:64:16 interfaceid=4aa70bce-a99d-4142-8bfc-61c06f710d64 target=hypervisor-01 type=virtual
-compute-02 ansible_host=10.0.0.7 mac=52:54:00:33:75:35 interfaceid=a9cc79f3-0892-47af-9195-6c28c718c2a0 target=hypervisor-01 type=virtual
+#compute-02 ansible_host=10.0.0.7 mac=52:54:00:33:75:35 interfaceid=a9cc79f3-0892-47af-9195-6c28c718c2a0 target=hypervisor-01 type=virtual
# compute-03 ansible_host=10.0.0.8 mac=52:54:00:51:64:75 interfaceid=889e6b2d-f4af-4747-aeb5-2e82d136873b target=hypervisor-01 type=virtual
# compute-04 ansible_host=10.0.0.9 mac=52:54:00:58:69:54 interfaceid=1a0dc524-6e85-4d2e-9498-aa86c2ac2c9f target=hypervisor-01 type=virtual
# compute-05 ansible_host=10.0.0.10 mac=52:54:00:95:95:18 interfaceid=cc90a978-9d3c-4fe7-8a7e-df072d9411b4 target=hypervisor-01 type=virtual
@@ -121,3 +125,4 @@ bootstrap ansible_host=10.0.0.200 mac=52:54:00:30:69:71 interfaceid=c9e9b095-ab1
[all_controller_nodes]
[all_compute_nodes]
[all_service_nodes]
+[all_extra_nodes]
@ccamacho - Gentle reminder. Let me know if I need to try something here.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days