It does seem that the bug you're reporting is valid.  I'm not very familiar at 
all with chef, though.
Had I looked at this code, I would have just expected that something would run 
that automatically in the other install paths (packages or omnibus).

It really looks like we're expecting for the install path to hook up the
running of chef-client.  I just verified that the package install of
'chef' from the ubuntu archive will install a /etc/init.d/chef-client
script.  That script will then either run at the appropriate time later
in boot (if cloud-init does nothing) or via the package's postinst
script (if cloud-init installs something).

So heres the table of conditions as I see them, looking at the current trunk 
version of cloudinit/config/cc_chef.py:
1.) /usr/bin/chef-client exists and force_install not set
     packages's /etc/init.d/chef-client will run chef-client.
     for other install path, generally *assumed* that there is some mechanism 
for running on boot.
2.) /usr/bin/chef-client does not exist or force-install set.
 2A) gems:
 cloud-init runs chef-client -d -i 1800 -s 20

 2B) packages:
 package's postinst script will run chef-client via /etc/init.d/chef-client

 2C) omnibus:
 assumption is that executing 'omnibus_url' would result in chef-client
 being executed *or* setting up execution to work on first boot that would
 happen later.

So which of those cases is wrong?

Sorry its taken so long to get a look at this, but the code generally
seems sane to me at this point.  Theres no reason to run chef-client
if its going to be run elsewhere.

Please answer and set this back to 'new' or 'triaged' .  Thanks.


** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

** Changed in: cloud-init (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1257435

Title:
  Chef does not run with all install types

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1257435/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to