horizon unit blocked on healthcheck failure

Bug #2025200 reported by Hemanth Nakkina
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juju Charmed Operator - Horizon K8S

Bug Description

Deployed sunbeam edge channel and horizon unit is in blocked state

juju status shows:

horizon waiting 1 horizon-k8s 2023.1/edge 46 no installing agent

horizon/0* blocked idle (container:horizon) healthcheck failed: online

Looking into the logs:

1. sudo microk8s.kubectl -n openstack logs horizon-0 -c horizon

2023-06-27T12:18:03.528Z [wsgi-horizon] - - [27/Jun/2023:12:17:32 +0000] "GET /openstack-horizon/auth/login/ HTTP/1.1" 200 3728 "-" "Go-http-client/1.1"
2023-06-27T12:18:10.458Z [pebble] Check "online" failure 5 (threshold 3): Get "http://localhost:80/openstack-horizon/auth/login/": context deadline exceeded
2023-06-27T12:18:20.487Z [pebble] Check "online" failure 6 (threshold 3): Get "http://localhost:80/openstack-horizon/auth/login/": context deadline exceeded
2023-06-27T12:18:24.431Z [wsgi-horizon] - - [27/Jun/2023:12:17:42 +0000] "GET /openstack-horizon/auth/login/ HTTP/1.1" 200 3738 "-" "Go-http-client/1.1"
2023-06-27T12:18:28.692Z [wsgi-horizon] - - [27/Jun/2023:12:18:02 +0000] "GET /openstack-horizon/auth/login/ HTTP/1.1" 200 3729 "-" "Go-http-client/1.1"
2023-06-27T12:18:30.453Z [pebble] Check "online" failure 7 (threshold 3): Get "http://localhost:80/openstack-horizon/auth/login/": context deadline exceeded
2023-06-27T12:18:33.468Z [wsgi-horizon] - - [27/Jun/2023:12:17:52 +0000] "GET /openstack-horizon/auth/login/ HTTP/1.1" 200 3731 "-" "Go-http-client/1.1"
2023-06-27T12:18:36.431Z [wsgi-horizon] - - [27/Jun/2023:12:18:12 +0000] "GET /openstack-horizon/auth/login/ HTTP/1.1" 200 3729 "-" "Go-http-client/1.1"
2023-06-27T12:18:40.453Z [pebble] Check "online" failure 8 (threshold 3): Get "http://localhost:80/openstack-horizon/auth/login/": context deadline exceeded

2. root@horizon-0:/# charm/bin/pebble checks
Check Level Status Failures
online ready down 4743/3
up alive up 0/3

Seems like 8s timeout for pebble ready check is not sufficient enough (takes around 9s for http call on my VM - 16GB/4vcpu ).

time curl http://localhost:80/openstack-horizon/auth/login/
real 0m8.995s
user 0m0.004s
sys 0m0.015s

Revision history for this message
Hemanth Nakkina (hemanth-n) wrote :
affects: snap-openstack → charm-horizon-k8s
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.