{"action":"closed","issue":{"url":"https://api.github.com/repos/chef-cookbooks/chef-ingredient/issues/111","repository_url":"https://api.github.com/repos/chef-cookbooks/chef-ingredient","labels_url":"https://api.github.com/repos/chef-cookbooks/chef-ingredient/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/chef-ingredient/issues/111/comments","events_url":"https://api.github.com/repos/chef-cookbooks/chef-ingredient/issues/111/events","html_url":"https://github.com/chef-cookbooks/chef-ingredient/issues/111","id":162001814,"number":111,"title":"Restart after chef-client upgrade does not work with systemd on RedHat 7","user":{"login":"agperson","id":171105,"avatar_url":"https://avatars.githubusercontent.com/u/171105?v=3","gravatar_id":"","url":"https://api.github.com/users/agperson","html_url":"https://github.com/agperson","followers_url":"https://api.github.com/users/agperson/followers","following_url":"https://api.github.com/users/agperson/following{/other_user}","gists_url":"https://api.github.com/users/agperson/gists{/gist_id}","starred_url":"https://api.github.com/users/agperson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agperson/subscriptions","organizations_url":"https://api.github.com/users/agperson/orgs","repos_url":"https://api.github.com/users/agperson/repos","events_url":"https://api.github.com/users/agperson/events{/privacy}","received_events_url":"https://api.github.com/users/agperson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-06-23T19:17:48Z","updated_at":"2016-08-29T23:04:55Z","closed_at":"2016-08-29T23:04:55Z","body":"When `chef-client` is updated there is a non-optional ruby_block executed that raises a `Chef::Application.fatal!`.  This stops the convergence, but -- in newer Chef versions under systemd -- does not actually kill the service.  The next scheduled Chef run proceeds with the old client version, resulting in problems.\r\n\r\nIn contrast the chef-client cookbook simply [uses a service restart](https://github.com/chef-cookbooks/chef-client/blob/master/recipes/systemd_service.rb#L19), which does work as expected.\r\n\r\n------\r\n\r\nRun stopped by ruby_block:\r\n```\r\n[2016-06-23T19:00:44+00:00] FATAL: Chef version has changed during the run. Stopping the current Chef run. Please run chef again.\r\n```\r\nNext run (here manually triggered with USR1 signal to avoid time delay):\r\n```\r\n[2016-06-23T19:01:17+00:00] INFO: SIGUSR1 received, waking up\r\n[2016-06-23T19:01:17+00:00] INFO: Forking chef instance to converge...\r\n[2016-06-23T19:01:17+00:00] INFO: *** Chef 12.8.1 ***\r\n[2016-06-23T19:01:17+00:00] INFO: Chef-client pid: 25947\r\n[2016-06-23T19:01:17+00:00] ERROR: Running exception handlers\r\n[2016-06-23T19:01:17+00:00] ERROR: Exception handlers complete\r\n[2016-06-23T19:01:17+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out\r\n[2016-06-23T19:01:17+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report\r\n[2016-06-23T19:01:17+00:00] ERROR: Unable to determine node name: configure node_name or configure the system's hostname and fqdn\r\n[2016-06-23T19:01:17+00:00] ERROR: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)\r\n```\r\nBut a `systemctl restart chef-client` loads the new version and succeeds:\r\n```\r\n[2016-06-23T19:12:18+00:00] FATAL: SIGTERM received, stopping\r\n[2016-06-23T19:12:35+00:00] INFO: SIGUSR1 received, waking up\r\n[2016-06-23T19:12:35+00:00] INFO: Forking chef instance to converge...\r\n[2016-06-23T19:12:35+00:00] INFO: *** Chef 12.10.24 ***\r\n[2016-06-23T19:12:35+00:00] INFO: Platform: x86_64-linux\r\n[2016-06-23T19:12:35+00:00] INFO: Chef-client pid: 30513\r\n```"}}
{"actor":{"display_login":"wrightp"}}