Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade/downgrade should restart services #52

Open
kplimack opened this issue Mar 15, 2017 · 3 comments
Open

upgrade/downgrade should restart services #52

kplimack opened this issue Mar 15, 2017 · 3 comments
Labels
Triage: Feature Request Indicates an issue requesting new functionality.

Comments

@kplimack
Copy link

kplimack commented Mar 15, 2017

I just installed that lastest version via supermarket-omnibus-cookbook and it did not restart the processes. I could still see the ddtrace errors until I ran supermarket-ctl restart. This should be automatic.

Cookbook version

supermarket-omnibus-cookbook 2.0.1

Chef-client version

chef-12.13.37-1.el6.x86_64

Platform Details

CentOS 6.8

Steps to Reproduce:

perform an upgrade via cookbook by setting version.

default['supermarket_omnibus']['package_version'] = '2.9.15'

Expected Result:

supermarket restarts and runs on the desired version without manual restart

Actual Result:

old version of code is still running

@iennae iennae added Type: Feature Request Type: Bug Does not work as expected. and removed Type: Feature Request labels Mar 31, 2017
@iennae
Copy link

iennae commented Mar 31, 2017

Based on looking at the code, this looks like a problem with the chef_ingredient resource as this action is to upgrade and reconfigure in this cookbook. We'll need to confirm. Thanks for reporting.

@robbkidd
Copy link
Contributor

Because a restart causes a brief outage on a Supermarket node, we have so far not made the restart automatic. Certainly open to feedback about use cases and maybe providing a flag for enabling/disabling auto-restart.

Also, we're considering a move to encouraging folks installing private Supermarkets to use chef-ingredient directly in their wrapper cookbooks which would (1) expose the hooks for restarting directly at the discretion of the wrapper authors and (2) remove one layer of abstraction/indirection.

@iennae iennae added Type: Feature Request and removed Status: Blocked Type: Bug Does not work as expected. labels Mar 31, 2017
@iennae
Copy link

iennae commented Mar 31, 2017

After syncing up with @robbkidd realized that it's intentionally not calling for a restart. As @robbkidd mentions in previous comment with regards to restart, it is intentionally not restarting because folks might not want to have their Supermarket go down at a random time based on their configuration. The process of upgrading a particular service can have many meanings depending on who is doing the installation/upgrading. We'll get this better documented so folks understand what is happening here. Thanks for filing this issue.

@tas50 tas50 added Triage: Feature Request Indicates an issue requesting new functionality. and removed Type: Feature Request labels Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Feature Request Indicates an issue requesting new functionality.
Projects
None yet
Development

No branches or pull requests

4 participants