canonical / resource-dispatcher

Kubernetes resource dispatcher is responsible for populating namespaces with desired default resurces
Apache License 2.0
3 stars 0 forks source link

Charm waiting "Container is not ready" stuck forever #29

Closed gustavosr98 closed 1 year ago

gustavosr98 commented 1 year ago

Versions

Microk8s: snap 1.24/stable (v1.24.16) Juju: Controller 2.9.43 / CLI 2.9.44-ubuntu-amd64 resource-dispatcher: charm edge rev 78

Reproduce

Following https://discourse.charmhub.io/t/get-started-with-charmed-mlflow-v2-and-charmed-kubeflow/10782#heading--deploy-mlflow

juju deploy resource-dispatcher --channel edge --trust

juju relate mlflow-server:secrets resource-dispatcher:secrets
juju relate mlflow-server:pod-defaults resource-dispatcher:pod-defaults

microk8s.kubectl label ns admin user.kubeflow.org/enabled="true"
microk8s.kubectl label ns gustavosr98 user.kubeflow.org/enabled="true"

Logs

Juju

$ juju status --relations
juju status --relations
Model     Controller          Cloud/Region        Version  SLA          Timestamp
kubeflow  microk8s-localhost  microk8s/localhost  2.9.43   unsupported  19:35:14Z

SAAS                Status  Store               URL
grafana-dashboards  active  microk8s-localhost  admin/cos.grafana-dashboards
prometheus-scrape   active  microk8s-localhost  admin/cos.prometheus-scrape

App                        Version                  Status   Scale  Charm                    Channel         Rev  Address         Exposed  Message
admission-webhook          res:oci-image@2d74d1b    active       1  admission-webhook        1.7/stable      205  10.152.183.68   no       
argo-controller            res:oci-image@669ebd5    active       1  argo-controller          3.3/stable      236                  no       
argo-server                res:oci-image@576d038    active       1  argo-server              3.3/stable      185                  no       
dex-auth                                            active       1  dex-auth                 2.31/stable     224  10.152.183.210  no       
istio-ingressgateway                                active       1  istio-gateway            1.16/stable     551  10.152.183.30   no       
istio-pilot                                         active       1  istio-pilot              1.16/stable     551  10.152.183.92   no       
jupyter-controller         res:oci-image@1167186    active       1  jupyter-controller       1.7/stable      607                  no       
jupyter-ui                                          active       1  jupyter-ui               1.7/stable      534  10.152.183.230  no       
katib-controller           res:oci-image@111495a    active       1  katib-controller         0.15/stable     282  10.152.183.102  no       
katib-db                   8.0.32-0ubuntu0.22.04.2  active       1  mysql-k8s                8.0/stable       75  10.152.183.41   no       Primary
katib-db-manager                                    waiting      1  katib-db-manager         0.15/stable     253  10.152.183.246  no       installing agent
katib-ui                                            active       1  katib-ui                 0.15/stable     267  10.152.183.169  no       
kfp-api                                             active       1  kfp-api                  2.0/stable      413  10.152.183.48   no       
kfp-db                     8.0.32-0ubuntu0.22.04.2  active       1  mysql-k8s                8.0/stable       75  10.152.183.224  no       Primary
kfp-persistence            res:oci-image@516e6b8    active       1  kfp-persistence          2.0/stable      407                  no       
kfp-profile-controller     res:oci-image@03ace9b    active       1  kfp-profile-controller   2.0/stable      388  10.152.183.147  no       
kfp-schedwf                res:oci-image@90ddd63    active       1  kfp-schedwf              2.0/stable      424                  no       
kfp-ui                     res:oci-image@ae72602    active       1  kfp-ui                   2.0/stable      412  10.152.183.141  no       
kfp-viewer                 res:oci-image@fcfe0d8    active       1  kfp-viewer               2.0/stable      424                  no       
kfp-viz                    res:oci-image@3de6f3c    active       1  kfp-viz                  2.0/stable      394  10.152.183.197  no       
knative-eventing                                    active       1  knative-eventing         1.8/stable      224  10.152.183.100  no       
knative-operator                                    active       1  knative-operator         1.8/stable      199  10.152.183.54   no       
knative-serving                                     active       1  knative-serving          1.8/stable      224  10.152.183.219  no       
kserve-controller                                   active       1  kserve-controller        0.10/stable     267  10.152.183.105  no       
kubeflow-dashboard                                  active       1  kubeflow-dashboard       1.7/stable      307  10.152.183.39   no       
kubeflow-profiles                                   active       1  kubeflow-profiles        1.7/stable      269  10.152.183.50   no       
kubeflow-roles                                      active       1  kubeflow-roles           1.7/stable      113  10.152.183.94   no       
kubeflow-volumes           res:oci-image@d261609    active       1  kubeflow-volumes         1.7/stable      178  10.152.183.21   no       
metacontroller-operator                             active       1  metacontroller-operator  2.0/stable      117  10.152.183.119  no       
minio                      res:oci-image@1755999    active       1  minio                    ckf-1.7/stable  186  10.152.183.165  no       
mlflow-minio               res:oci-image@1755999    active       1  minio                    ckf-1.7/edge    186  10.152.183.108  no       
mlflow-mysql               8.0.32-0ubuntu0.22.04.2  active       1  mysql-k8s                8.0/stable       75  10.152.183.132  no       Primary
mlflow-server                                       waiting      1  mlflow-server            latest/edge     346  10.152.183.229  no       installing agent
oidc-gatekeeper            res:oci-image@6b720b8    active       1  oidc-gatekeeper          ckf-1.7/stable  176  10.152.183.140  no       
postgresql-k8s             14.7                     waiting      1  postgresql-k8s           14/stable        73  10.152.183.11   no       installing agent
resource-dispatcher                                 waiting      1  resource-dispatcher      edge             78  10.152.183.116  no       installing agent
seldon-controller-manager                           active       1  seldon-core              1.15/stable     354  10.152.183.95   no       
tensorboard-controller     res:oci-image@c52f7c2    active       1  tensorboard-controller   1.7/stable      156  10.152.183.166  no       
tensorboards-web-app       res:oci-image@929f55b    active       1  tensorboards-web-app     1.7/stable      158  10.152.183.87   no       
training-operator                                   active       1  training-operator        1.6/stable      190  10.152.183.101  no       

Unit                          Workload  Agent  Address       Ports              Message
admission-webhook/0*          active    idle   10.1.149.253  4443/TCP           
argo-controller/0*            active    idle   10.1.149.234                     
argo-server/0*                active    idle   10.1.150.51   2746/TCP           
dex-auth/0*                   active    idle   10.1.149.220                     
istio-ingressgateway/0*       active    idle   10.1.149.224                     
istio-pilot/0*                active    idle   10.1.150.25                      
jupyter-controller/0*         active    idle   10.1.149.254                     
jupyter-ui/0*                 active    idle   10.1.149.210                     
katib-controller/0*           active    idle   10.1.150.52   443/TCP,8080/TCP   
katib-db-manager/0*           error     idle   10.1.149.207                     hook failed: "update-status"
katib-db/0*                   active    idle   10.1.149.233                     Primary
katib-ui/0*                   active    idle   10.1.149.217                     
kfp-api/0*                    active    idle   10.1.149.236                     
kfp-db/0*                     active    idle   10.1.150.49                      Primary
kfp-persistence/0*            active    idle   10.1.150.17                      
kfp-profile-controller/0*     active    idle   10.1.149.198  80/TCP             
kfp-schedwf/0*                active    idle   10.1.149.239                     
kfp-ui/0*                     active    idle   10.1.149.202  3000/TCP           
kfp-viewer/0*                 active    idle   10.1.149.242                     
kfp-viz/0*                    active    idle   10.1.150.36   8888/TCP           
knative-eventing/0*           active    idle   10.1.149.229                     
knative-operator/0*           active    idle   10.1.150.41                      
knative-serving/0*            active    idle   10.1.149.216                     
kserve-controller/0*          active    idle   10.1.149.246                     
kubeflow-dashboard/0*         active    idle   10.1.149.248                     
kubeflow-profiles/0*          active    idle   10.1.149.200                     
kubeflow-roles/0*             active    idle   10.1.149.226                     
kubeflow-volumes/0*           active    idle   10.1.149.193  5000/TCP           
metacontroller-operator/0*    active    idle   10.1.150.32                      
minio/0*                      active    idle   10.1.149.196  9000/TCP,9001/TCP  
mlflow-minio/0*               active    idle   10.1.149.214  9000/TCP,9001/TCP  
mlflow-mysql/0*               active    idle   10.1.149.250                     Primary
mlflow-server/0*              waiting   idle   10.1.149.232                     List of <ops.model.Relation secrets:45> versions not found for apps: resource-dispatcher
oidc-gatekeeper/2*            active    idle   10.1.149.208  8080/TCP           
postgresql-k8s/0*             waiting   idle   10.1.149.238                     awaiting for cluster to start
resource-dispatcher/0*        waiting   idle   10.1.150.9                       Container is not ready
seldon-controller-manager/0*  active    idle   10.1.150.28                      
tensorboard-controller/0*     active    idle   10.1.150.57   9443/TCP           
tensorboards-web-app/0*       active    idle   10.1.150.39   5000/TCP           
training-operator/0*          active    idle   10.1.149.247                     

Relation provider                            Requirer                               Interface           Type     Message
argo-controller:grafana-dashboard            grafana-dashboards:grafana-dashboard   grafana_dashboard   regular  
argo-controller:metrics-endpoint             prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
dex-auth:metrics-endpoint                    prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
istio-pilot:gateway-info                     kserve-controller:ingress-gateway      istio-gateway-info  regular  
istio-pilot:gateway-info                     tensorboard-controller:gateway-info    istio-gateway-info  regular  
istio-pilot:ingress                          dex-auth:ingress                       ingress             regular  
istio-pilot:ingress                          jupyter-ui:ingress                     ingress             regular  
istio-pilot:ingress                          katib-ui:ingress                       ingress             regular  
istio-pilot:ingress                          kfp-ui:ingress                         ingress             regular  
istio-pilot:ingress                          kubeflow-dashboard:ingress             ingress             regular  
istio-pilot:ingress                          kubeflow-volumes:ingress               ingress             regular  
istio-pilot:ingress                          oidc-gatekeeper:ingress                ingress             regular  
istio-pilot:ingress                          tensorboards-web-app:ingress           ingress             regular  
istio-pilot:ingress-auth                     oidc-gatekeeper:ingress-auth           ingress-auth        regular  
istio-pilot:istio-pilot                      istio-ingressgateway:istio-pilot       k8s-service         regular  
jupyter-controller:grafana-dashboard         grafana-dashboards:grafana-dashboard   grafana_dashboard   regular  
jupyter-controller:metrics-endpoint          prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
katib-controller:metrics-endpoint            prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
katib-db:database                            katib-db-manager:relational-db         mysql_client        regular  
katib-db:database-peers                      katib-db:database-peers                mysql_peers         peer     
kfp-api:kfp-api                              kfp-persistence:kfp-api                k8s-service         regular  
kfp-api:kfp-api                              kfp-ui:kfp-api                         k8s-service         regular  
kfp-api:metrics-endpoint                     prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
kfp-db:database                              kfp-api:relational-db                  mysql_client        regular  
kfp-db:database-peers                        kfp-db:database-peers                  mysql_peers         peer     
kfp-viz:kfp-viz                              kfp-api:kfp-viz                        k8s-service         regular  
kubeflow-profiles:kubeflow-profiles          kubeflow-dashboard:kubeflow-profiles   k8s-service         regular  
metacontroller-operator:metrics-endpoint     prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
minio:metrics-endpoint                       prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
minio:object-storage                         argo-controller:object-storage         object-storage      regular  
minio:object-storage                         kfp-api:object-storage                 object-storage      regular  
minio:object-storage                         kfp-profile-controller:object-storage  object-storage      regular  
minio:object-storage                         kfp-ui:object-storage                  object-storage      regular  
mlflow-minio:object-storage                  mlflow-server:object-storage           object-storage      regular  
mlflow-mysql:database                        mlflow-server:relational-db            mysql_client        regular  
mlflow-mysql:database-peers                  mlflow-mysql:database-peers            mysql_peers         peer     
mlflow-server:pod-defaults                   resource-dispatcher:pod-defaults       pod-defaults        regular  
mlflow-server:secrets                        resource-dispatcher:secrets            secrets             regular  
oidc-gatekeeper:client-secret                oidc-gatekeeper:client-secret          client-secret       peer     
oidc-gatekeeper:oidc-client                  dex-auth:oidc-client                   oidc-client         regular  
postgresql-k8s:database-peers                postgresql-k8s:database-peers          postgresql_peers    peer     
postgresql-k8s:restart                       postgresql-k8s:restart                 rolling_op          peer     
seldon-controller-manager:grafana-dashboard  grafana-dashboards:grafana-dashboard   grafana_dashboard   regular  
seldon-controller-manager:metrics-endpoint   prometheus-scrape:metrics-endpoint     prometheus_scrape   regular  
training-operator:metrics-endpoint           prometheus-scrape:metrics-endpoint     prometheus_scrape   regular 
$ juju show-status-log resource-dispatcher/0
Time                   Type       Status       Message
02 Aug 2023 18:37:13Z  workload   waiting      agent initializing
02 Aug 2023 18:37:16Z  workload   maintenance  installing charm software
02 Aug 2023 18:37:16Z  juju-unit  executing    running install hook
02 Aug 2023 18:37:18Z  workload   maintenance  Creating K8S resources
02 Aug 2023 18:37:19Z  workload   waiting      K8s resources created. Waiting for charm to be active
02 Aug 2023 18:37:19Z  juju-unit  executing    running secrets-relation-created hook
02 Aug 2023 18:37:20Z  juju-unit  executing    running leader-elected hook
02 Aug 2023 18:37:21Z  juju-unit  executing    running config-changed hook
02 Aug 2023 18:37:23Z  juju-unit  executing    running start hook
02 Aug 2023 18:37:24Z  juju-unit  executing    running secrets-relation-changed hook
02 Aug 2023 18:37:25Z  juju-unit  executing    running secrets-relation-joined hook for mlflow-server/0
02 Aug 2023 18:37:26Z  juju-unit  executing    running secrets-relation-changed hook for mlflow-server/0
02 Aug 2023 18:37:28Z  juju-unit  idle         
02 Aug 2023 18:37:41Z  juju-unit  executing    running pod-defaults-relation-created hook
02 Aug 2023 18:37:42Z  juju-unit  executing    running pod-defaults-relation-joined hook for mlflow-server/0
02 Aug 2023 18:37:43Z  juju-unit  executing    running pod-defaults-relation-changed hook for mlflow-server/0
02 Aug 2023 18:37:44Z  juju-unit  idle         
02 Aug 2023 18:37:51Z  juju-unit  executing    running resource-dispatcher-pebble-ready hook
02 Aug 2023 18:38:27Z  juju-unit  idle         
02 Aug 2023 18:38:27Z  workload   waiting      Container is not ready

$ date
Wed Aug  2 19:40:44 UTC 2023

K8s

$ microk8s.kubectl get pods -n kubeflow | grep disp
resource-dispatcher-0                           2/2     Running   0               58m
microk8s.kubectl logs -n kubeflow resource-dispatcher-0
Defaulted container "charm" out of: charm, resource-dispatcher, charm-init (init)
2023-08-02T18:37:13.428Z [pebble] HTTP API server listening on ":38812".
2023-08-02T18:37:13.429Z [pebble] Started daemon.
2023-08-02T18:37:13.431Z [pebble] POST /v1/services 2.029056ms 202
2023-08-02T18:37:13.431Z [pebble] Started default services with change 1.
2023-08-02T18:37:13.433Z [pebble] Service "container-agent" starting: /charm/bin/containeragent unit --data-dir /var/lib/juju --append-env "PATH=$PATH:/charm/bin" --show-log --charm-modified-version 0
2023-08-02T18:37:13.507Z [container-agent] 2023-08-02 18:37:13 INFO juju.cmd supercommand.go:56 running containerAgent [2.9.43 3cb3f8beac4a0b05e10bdfb8014f5666118a269d gc go1.20.4]
2023-08-02T18:37:13.507Z [container-agent] starting containeragent unit command
2023-08-02T18:37:13.507Z [container-agent] containeragent unit "unit-resource-dispatcher-0" start (2.9.43 [gc])
2023-08-02T18:37:13.507Z [container-agent] 2023-08-02 18:37:13 INFO juju.cmd.containeragent.unit runner.go:556 start "unit"
2023-08-02T18:37:13.507Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.upgradesteps worker.go:60 upgrade steps for 2.9.43 have already been run.
2023-08-02T18:37:13.508Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.probehttpserver server.go:157 starting http server on [::]:65301
2023-08-02T18:37:13.542Z [container-agent] 2023-08-02 18:37:13 INFO juju.api apiclient.go:687 connection established to "wss://controller-service.controller-microk8s-localhost.svc.cluster.local:17070/model/ae7a86b2-19d4-483d-8ccc-2bcd21bdad79/api"
2023-08-02T18:37:13.546Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.apicaller connect.go:163 [ae7a86] "unit-resource-dispatcher-0" successfully connected to "controller-service.controller-microk8s-localhost.svc.cluster.local:17070"
2023-08-02T18:37:13.569Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.migrationminion worker.go:142 migration phase is now: NONE
2023-08-02T18:37:13.570Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.logger logger.go:120 logger worker started
2023-08-02T18:37:13.572Z [container-agent] 2023-08-02 18:37:13 WARNING juju.worker.proxyupdater proxyupdater.go:282 unable to set snap core settings [proxy.http= proxy.https= proxy.store=]: exec: "snap": executable file not found in $PATH, output: ""
2023-08-02T18:37:13.589Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.leadership tracker.go:194 resource-dispatcher/0 promoted to leadership of resource-dispatcher
2023-08-02T18:37:13.596Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.caasupgrader upgrader.go:113 abort check blocked until version event received
2023-08-02T18:37:13.596Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.caasupgrader upgrader.go:119 unblocking abort check
2023-08-02T18:37:13.606Z [container-agent] 2023-08-02 18:37:13 INFO juju.agent.tools symlinks.go:20 ensure jujuc symlinks in /var/lib/juju/tools/unit-resource-dispatcher-0
2023-08-02T18:37:13.620Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.uniter uniter.go:326 unit "resource-dispatcher/0" started
2023-08-02T18:37:13.621Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.uniter uniter.go:634 resuming charm install
2023-08-02T18:37:13.623Z [container-agent] 2023-08-02 18:37:13 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/focal/resource-dispatcher-78 from API server
2023-08-02T18:37:13.623Z [container-agent] 2023-08-02 18:37:13 INFO juju.downloader download.go:110 downloading from ch:amd64/focal/resource-dispatcher-78
2023-08-02T18:37:13.731Z [container-agent] 2023-08-02 18:37:13 INFO juju.downloader download.go:93 download complete ("ch:amd64/focal/resource-dispatcher-78")
2023-08-02T18:37:13.795Z [container-agent] 2023-08-02 18:37:13 INFO juju.downloader download.go:173 download verified ("ch:amd64/focal/resource-dispatcher-78")
2023-08-02T18:37:16.198Z [container-agent] 2023-08-02 18:37:16 INFO juju.worker.uniter uniter.go:344 hooks are retried true
2023-08-02T18:37:16.266Z [container-agent] 2023-08-02 18:37:16 INFO juju.worker.uniter resolver.go:159 found queued "install" hook
2023-08-02T18:37:17.498Z [container-agent] 2023-08-02 18:37:17 INFO juju-log Running legacy hooks/install.
2023-08-02T18:37:18.764Z [container-agent] 2023-08-02 18:37:18 INFO juju-log HTTP Request: GET https://10.152.183.1/apis/apiextensions.k8s.io/v1/customresourcedefinitions "HTTP/1.1 200 OK"
2023-08-02T18:37:18.946Z [container-agent] 2023-08-02 18:37:18 INFO juju-log Rendering manifests
2023-08-02T18:37:19.035Z [container-agent] 2023-08-02 18:37:19 INFO juju-log HTTP Request: PATCH https://10.152.183.1/apis/metacontroller.k8s.io/v1alpha1/decoratorcontrollers/kubeflow-resource-dispatcher-controller?fieldManager=lightkube "HTTP/1.1 201 Created"
2023-08-02T18:37:19.066Z [container-agent] 2023-08-02 18:37:19 INFO juju-log Reconcile completed successfully
2023-08-02T18:37:19.194Z [container-agent] 2023-08-02 18:37:19 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:37:19.277Z [container-agent] 2023-08-02 18:37:19 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:37:19.346Z [container-agent] 2023-08-02 18:37:19 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T18:37:19.677Z [container-agent] 2023-08-02 18:37:19 INFO juju.worker.uniter.operation runhook.go:159 ran "install" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:20.703Z [container-agent] 2023-08-02 18:37:20 INFO juju.worker.uniter.operation runhook.go:159 ran "secrets-relation-created" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:20.761Z [container-agent] 2023-08-02 18:37:20 INFO juju.worker.uniter resolver.go:159 found queued "leader-elected" hook
2023-08-02T18:37:21.692Z [container-agent] 2023-08-02 18:37:21 INFO juju.worker.uniter.operation runhook.go:159 ran "leader-elected" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:22.477Z [container-agent] 2023-08-02 18:37:22 INFO juju-log Event <ConfigChangedEvent via ResourceDispatcherOperator/on/config_changed[10]> stopped early with message: Container is not ready
2023-08-02T18:37:22.579Z [container-agent] 2023-08-02 18:37:22 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:37:22.707Z [container-agent] 2023-08-02 18:37:22 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:37:22.741Z [container-agent] 2023-08-02 18:37:22 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T18:37:23.026Z [container-agent] 2023-08-02 18:37:23 INFO juju.worker.uniter.operation runhook.go:159 ran "config-changed" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:23.069Z [container-agent] 2023-08-02 18:37:23 INFO juju.worker.uniter resolver.go:159 found queued "start" hook
2023-08-02T18:37:23.432Z [pebble] Check "readiness" failure 1 (threshold 3): received non-20x status code 418
2023-08-02T18:37:23.824Z [container-agent] 2023-08-02 18:37:23 INFO juju-log Running legacy hooks/start.
2023-08-02T18:37:24.849Z [container-agent] 2023-08-02 18:37:24 INFO juju.worker.uniter.operation runhook.go:159 ran "start" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:25.606Z [container-agent] 2023-08-02 18:37:25 INFO juju-log secrets:45: Event <RelationChangedEvent via ResourceDispatcherOperator/on/secrets_relation_changed[16]> stopped early with message: Container is not ready
2023-08-02T18:37:25.868Z [container-agent] 2023-08-02 18:37:25 INFO juju.worker.uniter.operation runhook.go:159 ran "secrets-relation-changed" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:26.904Z [container-agent] 2023-08-02 18:37:26 INFO juju.worker.uniter.operation runhook.go:159 ran "secrets-relation-joined" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:27.804Z [container-agent] 2023-08-02 18:37:27 INFO juju-log secrets:45: Event <RelationChangedEvent via ResourceDispatcherOperator/on/secrets_relation_changed[22]> stopped early with message: Container is not ready
2023-08-02T18:37:28.073Z [container-agent] 2023-08-02 18:37:28 INFO juju.worker.uniter.operation runhook.go:159 ran "secrets-relation-changed" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:42.658Z [container-agent] 2023-08-02 18:37:42 INFO juju.worker.uniter.operation runhook.go:159 ran "pod-defaults-relation-created" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:43.732Z [container-agent] 2023-08-02 18:37:43 INFO juju.worker.uniter.operation runhook.go:159 ran "pod-defaults-relation-joined" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:44.474Z [container-agent] 2023-08-02 18:37:44 INFO juju-log pod-defaults:46: Event <RelationChangedEvent via ResourceDispatcherOperator/on/pod_defaults_relation_changed[31]> stopped early with message: Container is not ready
2023-08-02T18:37:44.740Z [container-agent] 2023-08-02 18:37:44 INFO juju.worker.uniter.operation runhook.go:159 ran "pod-defaults-relation-changed" hook (via hook dispatching script: dispatch)
2023-08-02T18:37:52.029Z [container-agent] 2023-08-02 18:37:52 INFO juju.worker.uniter.operation runhook.go:159 ran "resource-dispatcher-pebble-ready" hook (via hook dispatching script: dispatch)
2023-08-02T18:41:48.235Z [container-agent] 2023-08-02 18:41:48 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:41:48.308Z [container-agent] 2023-08-02 18:41:48 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:41:48.338Z [container-agent] 2023-08-02 18:41:48 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T18:41:48.600Z [container-agent] 2023-08-02 18:41:48 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T18:47:39.981Z [container-agent] 2023-08-02 18:47:39 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:47:40.050Z [container-agent] 2023-08-02 18:47:40 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:47:40.078Z [container-agent] 2023-08-02 18:47:40 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T18:47:40.340Z [container-agent] 2023-08-02 18:47:40 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T18:52:40.260Z [container-agent] 2023-08-02 18:52:40 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:52:40.332Z [container-agent] 2023-08-02 18:52:40 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:52:40.363Z [container-agent] 2023-08-02 18:52:40 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T18:52:40.624Z [container-agent] 2023-08-02 18:52:40 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T18:58:14.741Z [container-agent] 2023-08-02 18:58:14 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:58:14.822Z [container-agent] 2023-08-02 18:58:14 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T18:58:14.857Z [container-agent] 2023-08-02 18:58:14 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T18:58:15.137Z [container-agent] 2023-08-02 18:58:15 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:03:11.479Z [container-agent] 2023-08-02 19:03:11 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:03:11.549Z [container-agent] 2023-08-02 19:03:11 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:03:11.578Z [container-agent] 2023-08-02 19:03:11 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:03:11.834Z [container-agent] 2023-08-02 19:03:11 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:07:32.602Z [container-agent] 2023-08-02 19:07:32 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:07:32.671Z [container-agent] 2023-08-02 19:07:32 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:07:32.699Z [container-agent] 2023-08-02 19:07:32 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:07:32.958Z [container-agent] 2023-08-02 19:07:32 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:11:48.210Z [container-agent] 2023-08-02 19:11:48 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:11:48.277Z [container-agent] 2023-08-02 19:11:48 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:11:48.306Z [container-agent] 2023-08-02 19:11:48 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:11:48.572Z [container-agent] 2023-08-02 19:11:48 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:17:29.177Z [container-agent] 2023-08-02 19:17:29 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:17:29.254Z [container-agent] 2023-08-02 19:17:29 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:17:29.286Z [container-agent] 2023-08-02 19:17:29 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:17:29.558Z [container-agent] 2023-08-02 19:17:29 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:21:38.074Z [container-agent] 2023-08-02 19:21:38 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:21:38.146Z [container-agent] 2023-08-02 19:21:38 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:21:38.175Z [container-agent] 2023-08-02 19:21:38 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:21:38.445Z [container-agent] 2023-08-02 19:21:38 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:26:19.881Z [container-agent] 2023-08-02 19:26:19 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:26:19.953Z [container-agent] 2023-08-02 19:26:19 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:26:19.982Z [container-agent] 2023-08-02 19:26:19 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:26:20.238Z [container-agent] 2023-08-02 19:26:20 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:30:34.167Z [container-agent] 2023-08-02 19:30:34 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:30:34.237Z [container-agent] 2023-08-02 19:30:34 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:30:34.271Z [container-agent] 2023-08-02 19:30:34 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:30:34.551Z [container-agent] 2023-08-02 19:30:34 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
2023-08-02T19:35:28.253Z [container-agent] 2023-08-02 19:35:28 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:35:28.322Z [container-agent] 2023-08-02 19:35:28 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/kubeflow/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-02T19:35:28.354Z [container-agent] 2023-08-02 19:35:28 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-02T19:35:28.618Z [container-agent] 2023-08-02 19:35:28 INFO juju.worker.uniter.operation runhook.go:159 ran "update-status" hook (via hook dispatching script: dispatch)
gustavosr98 commented 1 year ago

Seems a workaround for it to remove the application, re-deploy and re-add relations

juju remove-application resource-dispatcher

juju deploy resource-dispatcher --channel edge --trust

juju relate mlflow-server:secrets resource-dispatcher:secrets
juju relate mlflow-server:pod-defaults resource-dispatcher:pod-defaults
i-chvets commented 1 year ago

@gustavosr98 I could not reproduce your issue, but I got similar results. After deploying resource-dispatcher:

juju deploy resource-dispatcher --channel edge --trust

I waited until it went into state you describe Container is not ready, only after that I added the required mlflow-server:* relations and resource-dispatcher came up successfully.

This is not expected behaviour.

Could you please confirm same behaviour? I.e. successful deployment of resource-dispatcher if relations are added after it is goes into Container is not ready state. It is very tricky to test, because once resource-dispatcher successfully deployed once, it always comes up afterwards, regardless when relations are added.

i-chvets commented 1 year ago

Just re-run tests exactly as originally outlined by @gustavosr98 and could not reproduce the issue.

i-chvets commented 1 year ago

Logs for resource-dispatcher in Container is not ready:

$ microk8s.kubectl -n test1 logs resource-dispatcher-0
Defaulted container "charm" out of: charm, resource-dispatcher, charm-init (init)
2023-08-16T21:37:09.708Z [pebble] HTTP API server listening on ":38812".
2023-08-16T21:37:09.708Z [pebble] Started daemon.
2023-08-16T21:37:09.714Z [pebble] POST /v1/services 5.706092ms 202
2023-08-16T21:37:09.715Z [pebble] Started default services with change 1.
2023-08-16T21:37:09.721Z [pebble] Service "container-agent" starting: /charm/bin/containeragent unit --data-dir /var/lib/juju --append-env "PATH=$PATH:/charm/bin" --show-log --charm-modified-version 0
2023-08-16T21:37:09.761Z [container-agent] 2023-08-16 21:37:09 INFO juju.cmd supercommand.go:56 running containerAgent [2.9.44 02d498631e196f2a37f9b7c3b5c31bdcb1dad333 gc go1.20.5]
2023-08-16T21:37:09.761Z [container-agent] starting containeragent unit command
2023-08-16T21:37:09.761Z [container-agent] containeragent unit "unit-resource-dispatcher-0" start (2.9.44 [gc])
2023-08-16T21:37:09.761Z [container-agent] 2023-08-16 21:37:09 INFO juju.cmd.containeragent.unit runner.go:556 start "unit"
2023-08-16T21:37:09.761Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.upgradesteps worker.go:60 upgrade steps for 2.9.44 have already been run.
2023-08-16T21:37:09.762Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.probehttpserver server.go:157 starting http server on [::]:65301
2023-08-16T21:37:09.787Z [container-agent] 2023-08-16 21:37:09 INFO juju.api apiclient.go:1054 cannot resolve "controller-service.controller-uk8s.svc.cluster.local": lookup controller-service.controller-uk8s.svc.cluster.local: operation was canceled
2023-08-16T21:37:09.787Z [container-agent] 2023-08-16 21:37:09 INFO juju.api apiclient.go:687 connection established to "wss://10.152.183.156:17070/model/5027f823-e089-4fc5-87c4-0dd3e6361a92/api"
2023-08-16T21:37:09.792Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.apicaller connect.go:163 [5027f8] "unit-resource-dispatcher-0" successfully connected to "10.152.183.156:17070"
2023-08-16T21:37:09.815Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.migrationminion worker.go:142 migration phase is now: NONE
2023-08-16T21:37:09.816Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.logger logger.go:120 logger worker started
2023-08-16T21:37:09.821Z [container-agent] 2023-08-16 21:37:09 WARNING juju.worker.proxyupdater proxyupdater.go:282 unable to set snap core settings [proxy.http= proxy.https= proxy.store=]: exec: "snap": executable file not found in $PATH, output: ""
2023-08-16T21:37:09.847Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.leadership tracker.go:194 resource-dispatcher/0 promoted to leadership of resource-dispatcher
2023-08-16T21:37:09.850Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.caasupgrader upgrader.go:113 abort check blocked until version event received
2023-08-16T21:37:09.850Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.caasupgrader upgrader.go:119 unblocking abort check
2023-08-16T21:37:09.866Z [container-agent] 2023-08-16 21:37:09 INFO juju.agent.tools symlinks.go:20 ensure jujuc symlinks in /var/lib/juju/tools/unit-resource-dispatcher-0
2023-08-16T21:37:09.885Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.uniter uniter.go:326 unit "resource-dispatcher/0" started
2023-08-16T21:37:09.890Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.uniter uniter.go:642 resuming charm install
2023-08-16T21:37:09.893Z [container-agent] 2023-08-16 21:37:09 INFO juju.worker.uniter.charm bundles.go:81 downloading ch:amd64/focal/resource-dispatcher-78 from API server
2023-08-16T21:37:09.893Z [container-agent] 2023-08-16 21:37:09 INFO juju.downloader download.go:110 downloading from ch:amd64/focal/resource-dispatcher-78
2023-08-16T21:37:10.011Z [container-agent] 2023-08-16 21:37:10 INFO juju.downloader download.go:93 download complete ("ch:amd64/focal/resource-dispatcher-78")
2023-08-16T21:37:10.054Z [container-agent] 2023-08-16 21:37:10 INFO juju.downloader download.go:173 download verified ("ch:amd64/focal/resource-dispatcher-78")
2023-08-16T21:37:18.400Z [container-agent] 2023-08-16 21:37:18 INFO juju.worker.uniter uniter.go:352 hooks are retried true
2023-08-16T21:37:18.480Z [container-agent] 2023-08-16 21:37:18 INFO juju.worker.uniter resolver.go:159 found queued "install" hook
2023-08-16T21:37:19.712Z [pebble] Check "readiness" failure 1 (threshold 3): received non-20x status code 418
2023-08-16T21:37:19.753Z [container-agent] 2023-08-16 21:37:19 INFO juju-log Running legacy hooks/install.
2023-08-16T21:37:20.734Z [container-agent] 2023-08-16 21:37:20 INFO juju-log HTTP Request: GET https://10.152.183.1/apis/apiextensions.k8s.io/v1/customresourcedefinitions "HTTP/1.1 200 OK"
2023-08-16T21:37:20.792Z [container-agent] 2023-08-16 21:37:20 INFO juju-log Rendering manifests
2023-08-16T21:37:20.904Z [container-agent] 2023-08-16 21:37:20 INFO juju-log HTTP Request: PATCH https://10.152.183.1/apis/metacontroller.k8s.io/v1alpha1/decoratorcontrollers/kubeflow-resource-dispatcher-controller?fieldManager=lightkube "HTTP/1.1 201 Created"
2023-08-16T21:37:20.951Z [container-agent] 2023-08-16 21:37:20 INFO juju-log Reconcile completed successfully
2023-08-16T21:37:21.112Z [container-agent] 2023-08-16 21:37:21 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/test1/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-16T21:37:21.219Z [container-agent] 2023-08-16 21:37:21 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/test1/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-16T21:37:21.269Z [container-agent] 2023-08-16 21:37:21 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-16T21:37:21.589Z [container-agent] 2023-08-16 21:37:21 INFO juju.worker.uniter.operation runhook.go:159 ran "install" hook (via hook dispatching script: dispatch)
2023-08-16T21:37:21.658Z [container-agent] 2023-08-16 21:37:21 INFO juju.worker.uniter resolver.go:159 found queued "leader-elected" hook
2023-08-16T21:37:22.619Z [container-agent] 2023-08-16 21:37:22 INFO juju.worker.uniter.operation runhook.go:159 ran "leader-elected" hook (via hook dispatching script: dispatch)
2023-08-16T21:37:23.423Z [container-agent] 2023-08-16 21:37:23 INFO juju-log Event <ConfigChangedEvent via ResourceDispatcherOperator/on/config_changed[7]> stopped early with message: Container is not ready
2023-08-16T21:37:23.555Z [container-agent] 2023-08-16 21:37:23 INFO juju-log HTTP Request: GET https://10.152.183.1/api/v1/namespaces/test1/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-16T21:37:23.663Z [container-agent] 2023-08-16 21:37:23 INFO juju-log HTTP Request: PATCH https://10.152.183.1/api/v1/namespaces/test1/services/resource-dispatcher "HTTP/1.1 200 OK"
2023-08-16T21:37:23.708Z [container-agent] 2023-08-16 21:37:23 INFO juju-log Kubernetes service 'resource-dispatcher' patched successfully
2023-08-16T21:37:24.009Z [container-agent] 2023-08-16 21:37:24 INFO juju.worker.uniter.operation runhook.go:159 ran "config-changed" hook (via hook dispatching script: dispatch)
2023-08-16T21:37:24.048Z [container-agent] 2023-08-16 21:37:24 INFO juju.worker.uniter resolver.go:159 found queued "start" hook
2023-08-16T21:37:24.691Z [container-agent] 2023-08-16 21:37:24 INFO juju-log Running legacy hooks/start.
2023-08-16T21:37:25.699Z [container-agent] 2023-08-16 21:37:25 INFO juju.worker.uniter.operation runhook.go:159 ran "start" hook (via hook dispatching script: dispatch)
2023-08-16T21:37:37.578Z [container-agent] 2023-08-16 21:37:37 INFO juju.worker.uniter.operation runhook.go:159 ran "resource-dispatcher-pebble-ready" hook (via hook dispatching script: dispatch)
i-chvets commented 1 year ago

Looks like service in resource-dispatcher container is not started when initially deployed. Or started and failed. MInimal steps to reproduce (on clean microk8s cluser and Juju controller):

juju add-model test1
juju deploy metacontroller-operator --channel 2.0/stable --trust

Wait till metacontroller-operator is installed and in idle/active state and deploy resource-dispatcher:

juju deploy resource-dispatcher --channel edge --trust

The above should result in the following state:

Model  Controller  Cloud/Region        Version  SLA          Timestamp
test1  uk8s        microk8s/localhost  2.9.44   unsupported  21:38:12Z

App                      Version  Status   Scale  Charm                    Channel     Rev  Address         Exposed  Message
metacontroller-operator           active       1  metacontroller-operator  2.0/stable  117  10.152.183.84   no       
resource-dispatcher               waiting      1  resource-dispatcher      edge         78  10.152.183.121  no       installing agent

Unit                        Workload  Agent  Address      Ports  Message
metacontroller-operator/0*  active    idle   10.1.45.202         
resource-dispatcher/0*      waiting   idle   10.1.45.204         Container is not ready

Command python3 main.py for container based on resource-dispatcher-image is not running:

$ microk8s.kubectl -n test1 exec -c resource-dispatcher  resource-dispatcher-0 -- ps -ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ssl    0:00 /charm/bin/pebble run --create-dirs --hold --http :38813 --verbose
     16 ?        Rs     0:00 ps -ax
i-chvets commented 1 year ago

When properly started, command should be running:

$ microk8s.kubectl -n test1 exec -c resource-dispatcher  resource-dispatcher-0 -- ps -ax
    PID TTY      STAT   TIME COMMAND
      1 ?        Ssl    0:00 /charm/bin/pebble run --create-dirs --hold --http :38813 --verbose
     16 ?        S      0:00 python3 main.py --port 80 --label user.kubeflow.org/enabled
     17 ?        Rs     0:00 ps -ax
i-chvets commented 1 year ago

Candidate for fix in 1.8

misohu commented 1 year ago

Resolved in https://github.com/canonical/resource-dispatcher/pull/35