canonical / admission-webhook-operator

Admission Webhook Operator
Apache License 2.0
1 stars 4 forks source link

latest/edge charm stuck in maintenance with `Workload failed health check` #110

Closed NohaIhab closed 1 year ago

NohaIhab commented 1 year ago

Bug Description

there's an issue with the latest/edge charm where it gets stuck in Maintenance with the message Workload failed health check, it came up in this run of kubeflow-profiles-operator CI

To Reproduce

juju deploy admission-webhook --channel=latest/edge --trust

Environment

microk8s 1.25-strict/stable juju 3.1/stable

Relevant Log Output

juju ssh admission-webhook/0

# PEBBLE_SOCKET=/charm/containers/admission-webhook/pebble.socket /charm/bin/pebble checks
Check                 Level  Status  Failures
admission-webhook-up  -      down    33/4
# PEBBLE_SOCKET=/charm/containers/admission-webhook/pebble.socket /charm/bin/pebble changes
ID   Status  Spawn               Ready               Summary
1    Error   today at 09:15 UTC  today at 09:15 UTC  Replan service "admission-webhook"

# PEBBLE_SOCKET=/charm/containers/admission-webhook/pebble.socket /charm/bin/pebble tasks 1
Status  Spawn               Ready               Summary
Error   today at 09:15 UTC  today at 09:15 UTC  Start service "admission-webhook"

......................................................................
Start service "admission-webhook"

2023-09-12T09:15:21Z INFO Most recent service output:
    F0912 09:15:21.267022      14 config.go:46] config=main.Config{CertFile:"/etc/webhook/certs/cert.pem", KeyFile:"/etc/webhook/certs/key.pem"} Error: open /etc/webhook/certs/cert.pem: no such file or directory
2023-09-12T09:15:21Z ERROR cannot start service: exited quickly with code 255

Additional Context

No response