kiranchavala commented on issue #8681:
URL: https://github.com/apache/cloudstack/issues/8681#issuecomment-1953702392

   @nxsbi Thanks
   
   Could you try replacing with the Ip Address and cross check.
   
   Also what is the Mangement server OS and the Hypervisor OS you are currently 
 
   
   Please perform these steps to get the logs 
   
   1. Login to the management server
   
   Login to the control node
   
   ssh -i <ssh-private.key > -p 2222 cloud@<Public ip address of Virtual Router>
   
   Example
   
   ssh -i /var/lib/cloudstack/management/.ssh/id_rsa   -p 2222 
[[email protected]](mailto:[email protected])
   
   
   2. Switch to root user
   
   cloud@k1-control-18d9cc9f10d:~$ sudo su -
   root@k1-control-18d9cc9f10d:~#
   
   3. Execute the Kubectl command
   
   root@k1-control-18d9cc9f10d:~# cd /opt/cloud/bin
   
   Make sure the  nodes are in running state
   
   ```
   
   root@k1-control-18d9cc9f10d:/opt/cloud/bin# kubectl get nodes
   
   NAME                     STATUS   ROLES           AGE     VERSION
   k1-control-18d9cc9f10d   Ready    control-plane   8m37s   v1.28.4
   k1-node-18d9cca4fad      Ready    <none>          8m22s   v1.28.4
   
   ```
   Make sure all pods are in running state
   
   ```
   root@k1-control-18d9cc9f10d:/opt/cloud/bin# kubectl get pods --all-namespaces
   NAMESPACE              NAME                                             
READY   STATUS    RESTARTS       AGE
   kube-system            cloud-controller-manager-574bcb86c-tz9cj         1/1  
   Running   0              8m36s
   kube-system            coredns-5dd5756b68-245tn                         1/1  
   Running   0              9m12s
   kube-system            coredns-5dd5756b68-jplbr                         1/1  
   Running   0              9m12s
   kube-system            etcd-k1-control-18d9cc9f10d                      1/1  
   Running   0              9m19s
   kube-system            kube-apiserver-k1-control-18d9cc9f10d            1/1  
   Running   0              9m15s
   kube-system            kube-controller-manager-k1-control-18d9cc9f10d   1/1  
   Running   0              9m15s
   kube-system            kube-proxy-4qq2h                                 1/1  
   Running   0              9m5s
   kube-system            kube-proxy-jfq7k                                 1/1  
   Running   0              9m12s
   kube-system            kube-scheduler-k1-control-18d9cc9f10d            1/1  
   Running   0              9m19s
   kube-system            weave-net-77lcj                                  2/2  
   Running   1 (9m9s ago)   9m12s
   kube-system            weave-net-k8cnk                                  2/2  
   Running   0              9m5s
   kubernetes-dashboard   dashboard-metrics-scraper-5657497c4c-gmt6m       1/1  
   Running   0              9m12s
   kubernetes-dashboard   kubernetes-dashboard-5b749d9495-vth8j            1/1  
   Running   0              9m12s
   ```
   
   
   4. Please provide the following logs to investigate which step its failing
   
   cat /var/log/daemon.log
   
   cat /var/log/messages
   
   
   ----
   
   Similarly, log into the worker node from the management server change the 
port to 2223
   
   ssh -i <ssh-private.key > -p 222 cloud@<Public ip address of Virtual Router>
   
   ssh -i /var/lib/cloudstack/management/.ssh/id_rsa   -p 2223 
[[email protected]](mailto:[email protected])
   
   cat /var/log/daemon.log
   
   cat /var/log/messages


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to