Doing a simple stop and start on a service in a container with container.stop(services) and container.start(services) getting the following stacktrace:
File “/var/lib/juju/agents/unit-smokeping-k8s-0/charm/venv/ops/model.py”, line 1050, in stop
self._pebble.stop_services(service_names)
File “/var/lib/juju/agents/unit-smokeping-k8s-0/charm/venv/ops/pebble.py”, line 813, in stop_services
return self._services_action(‘stop’, services, timeout, delay)
File “/var/lib/juju/agents/unit-smokeping-k8s-0/charm/venv/ops/pebble.py”, line 831, in _services_action
raise ChangeError(change.err, change)
ops.pebble.ChangeError: cannot perform the following tasks:
- Stop service “smokeping” (process still runs after SIGTERM and SIGKILL)
Using Docker Hub