devstack plugin - timeout waiting for k8s api server

Bug #1786307 reported by Michal Rostecki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kuryr-kubernetes
New
Undecided
Michal Rostecki

Bug Description

.+++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:534 : date +%s
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:534 : local curr_time=1533824031
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:535 : local time_diff=1179
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:536 : [[ 1179 -le 1200 ]]
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:537 : sleep 1
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:532 : curl -o /dev/null -s --cacert /opt/stack/data/hyperkube/kuryr-ca.crt https://10.0.0.129:443
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:533 : echo -n .
.+++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:534 : date +%s
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:534 : local curr_time=1533824162
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:535 : local time_diff=1310
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:536 : [[ 1310 -le 1200 ]]
++ /opt/stack/kuryr-kubernetes/devstack/plugin.sh:wait_for:536 : die 'Timed out waiting for Kubernetes API Server'
++ functions-common:die:187 : local exitcode=1
[Call Trace]
./stack.sh:1450:run_phase
/opt/stack/devstack/functions-common:1705:run_plugins
/opt/stack/devstack/functions-common:1672:source
/opt/stack/kuryr-kubernetes/devstack/plugin.sh:924:run_kuryr_kubernetes
/opt/stack/kuryr-kubernetes/devstack/plugin.sh:711:wait_for
/opt/stack/kuryr-kubernetes/devstack/plugin.sh:536:die
[ERROR] /opt/stack/kuryr-kubernetes/devstack/plugin.sh:Timed out
Error on exit
neutron-dhcp-agent: no process found
neutron-l3-agent: no process found
neutron-openvswitch-agent: no process found

The OS in the VM in which this error occured is openSUSE Leap 15.0.

Changed in kuryr-kubernetes:
assignee: nobody → Michal Rostecki (mrostecki)
Revision history for this message
Michal Rostecki (mrostecki) wrote :

hint:

Kubeapi server is working perfectly, it is accessible by kubectl:

stack@linux-4ntu:~/devstack> kubectl get all
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
svc/kubernetes ClusterIP 10.0.0.129 <none> 443/TCP 3d

But for some reason, `curl` command from devstack plugin is failing:

stack@linux-4ntu:~/devstack> curl -o /dev/null -s --cacert /opt/stack/data/hyperkube/kuryr-ca.crt https://10.0.0.129:443
stack@linux-4ntu:~/devstack> echo $?
7

Revision history for this message
Michal Rostecki (mrostecki) wrote :

The addess in kubeconfig differs from the one which `curl` command tries to access:

apiVersion: v1
clusters:
- cluster:
    server: http://192.168.122.225:8080
  name: devstack-cluster
contexts:
- context:
    cluster: devstack-cluster
    user: ""
  name: devstack
current-context: devstack
kind: Config
preferences: {}
users: []

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.