Bug #19514
closedMake sure services pick up config changes when the salt installer is run
Description
Customer made a change to the config file (adding cloud instance types) and re-ran the installer. The config file was updated on the nodes, but the services did not pick up the config change.
The solution was to manually restart arvados-controller, nginx and arvados-dispatch-cloud, but the expectation was that these services should have been restarted by salt (and/or we implement the ability to detect and respond to config changes automatically).
Updated by Peter Amstutz over 2 years ago
- Subject changed from Make sure services pick up config changes when the installer is run to Make sure services pick up config changes when the salt installer is run
Updated by Peter Amstutz over 2 years ago
- Target version changed from 2022-10-12 sprint to 2022-10-26 sprint
Updated by Peter Amstutz about 2 years ago
Check to see what it does now -- difference between reload/restart, check what the systemd unit files do.
Updated by Lucas Di Pentima about 2 years ago
- Assigned To set to Lucas Di Pentima
Updated by Lucas Di Pentima about 2 years ago
- Status changed from New to In Progress
Updated by Lucas Di Pentima about 2 years ago
- Target version changed from 2022-10-26 sprint to 2022-11-09 sprint
Updated by Lucas Di Pentima about 2 years ago
- Target version changed from 2022-11-09 sprint to 2022-11-23 sprint
Updated by Peter Amstutz about 2 years ago
- Target version changed from 2022-11-23 sprint to 2022-12-07 Sprint
Updated by Peter Amstutz about 2 years ago
- Target version changed from 2022-12-07 Sprint to 2022-12-21 Sprint
Updated by Peter Amstutz about 2 years ago
- Target version changed from 2022-12-21 Sprint to 2023-01-18 sprint
Updated by Peter Amstutz about 2 years ago
- Target version changed from 2023-01-18 sprint to 2023-02-01 sprint
Updated by Lucas Di Pentima about 2 years ago
I have been doing manual tests, both on single and multi host installations, and both arvados-controller
and arvados-dispatch-cloud
get restarted correctly after a config change.
The config change that I did was just setting up a custom message in Workbench.WelcomePageHTML
at the local_config_dir/pillars/arvados.sls
file.
Without being able to reproduce the issue, it's difficult to know what was the problem.
In the arvados salt formula, every service has a running.sls
file that describes each running services, for example arvados/dispatcher/service/running.sls
:
arvados-dispatcher-service-running-service-running:
service.running:
- name: {{ arvados.dispatcher.service.name }}
- enable: true
- watch:
- sls: {{ sls_config_file }}
- require:
- pkg: arvados-dispatcher-package-install-pkg-installed
The service.running.watch.sls
parameter makes the service restart when the config file changes. Service reload doesn't happen unless a service.running.reload: true
is set, and it isn't the case in our formula.
Updated by Lucas Di Pentima about 2 years ago
- Story points set to 1.0
- Target version changed from 2023-02-01 sprint to 2022-12-07 Sprint
Updated by Lucas Di Pentima about 2 years ago
- Status changed from In Progress to Closed