Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 10.14.0
-
Fix Version/s: 10.14.0
-
Component/s: None
-
Labels:None
-
Environment:
Ubuntu 12.04, Chef 10.14.0.beta.3
Description
The provider should use the "service" command to start the upstart service, per service(8) man page.
================================================================================ Error executing action `start` on resource 'service[smbd]' ================================================================================ Chef::Exceptions::Service ------------------------- #<Chef::Provider::Service::Upstart:0x00000004323dc8> requires that start_command be set Resource Declaration: --------------------- # In /var/cache/chef/cookbooks/samba/recipes/server.rb 48: svcs.each do |s| 49: service s do 50: pattern "smbd|nmbd" if node["platform"] =~ /^arch$/ 51: provider Chef::Provider::Service::Upstart if platform?("ubuntu") 52: action [:enable, :start] 53: end 54: end Compiled Resource: ------------------ # Declared in /var/cache/chef/cookbooks/samba/recipes/server.rb:49:in `block in from_file' service("smbd") do provider Chef::Provider::Service::Upstart action [:enable, :start] supports {:restart=>false, :reload=>false, :status=>false} retries 0 retry_delay 2 service_name "smbd" pattern "smbd" startup_type :automatic cookbook_name "samba" recipe_name "server" end [Thu, 26 Jul 2012 18:57:14 -0600] ERROR: Running exception handlers [Thu, 26 Jul 2012 18:57:14 -0600] INFO: Resources updated this run: [Thu, 26 Jul 2012 18:57:14 -0600] INFO: bash[build emacs24] [Thu, 26 Jul 2012 18:57:15 -0600] FATAL: Saving node information to /var/cache/chef/failed-run-data.json [Thu, 26 Jul 2012 18:57:15 -0600] ERROR: Exception handlers complete [Thu, 26 Jul 2012 18:57:15 -0600] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out [Thu, 26 Jul 2012 18:57:15 -0600] FATAL: Chef::Exceptions::Service: service[smbd] (samba::server line 49) had an error: Chef::Exceptions::Service: #<Chef::Provider::Service::Upstart:0x00000004323dc8> requires that start_command be set
Issue Links
- duplicates
-
CHEF-3410
Upstart provider erroneously requires start_command, stop_command, and restart_command to be manually set
-
I believe I have resolved this in
CHEF-3410.