← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1385860] Re: Chef omnibus installer on CentOS broken

 

Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/2493

** Bug watch added: github.com/canonical/cloud-init/issues #2493
   https://github.com/canonical/cloud-init/issues/2493

** Changed in: cloud-init
       Status: Confirmed => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1385860

Title:
  Chef omnibus installer on CentOS broken

Status in cloud-init:
  Expired

Bug description:
  Omnibus installer fails on CentOS:

  - util.py[WARNING]: Running cc_chef (<module 'cloudinit.config.cc_chef' from '/usr/lib/python2.7/site-packages/cloudinit/config/cc_chef.pyc'>) failed
  - cloud-init[WARNING]: Ran cc_chef but it failed!

  The reason is that /var/run/chef is symlink to /run/chef and
  ensure_dir() fails on selinux.restorecon(). Quick fix would be:

  --- cloud-init-0.7.6/cloudinit/util.py  2014-10-10 18:26:25.000000000 +0300
  +++ /root/cloud-init-0.7.6/cloudinit/util.py    2014-10-26 14:16:01.022089307 +0200
  @@ -160,7 +160,10 @@

           LOG.debug("Restoring selinux mode for %s (recursive=%s)",
                     path, self.recursive)
  -        self.selinux.restorecon(path, recursive=self.recursive)
  +        try:
  +            self.selinux.restorecon(path, recursive=self.recursive)
  +        except OSError:
  +            return

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



References