Chef solo launch without sudo reports config file missing - then runs it


#1

Hi,
When you run chef-solo -c solo.rb as an ordinary user, Chef finds
and processes the config file, but claims it cannot even find the
file.

[Mon, 27 Jun 2011 22:29:45 +0000] WARN:


[Mon, 27 Jun 2011 22:29:45 +0000] WARN: Can not find config file:
chef-solo.rb, using defaults.
[Mon, 27 Jun 2011 22:29:45 +0000] WARN: Permission denied -
/var/log/chef-solo/chef-solo.log
[Mon, 27 Jun 2011 22:29:45 +0000] WARN:


[Mon, 27 Jun 2011 22:29:45 +0000] INFO: *** Chef 0.10.0 ***

Of course later the Chef run fails if it needs sudo permissions, but
not before.
To be clear, I’m not suggesting an early exit is the desired behavior,
rather the false-error report is the issue.
Chef processing the solo.rb file is what I desire, I want to test that
what is contained in the solo.rb file is executed without the whole
Chef run being done.
Nonetheless, the file not found error report is a bug.

HTH


πόλλ’ οἶδ ἀλώπηξ, ἀλλ’ ἐχῖνος ἓν μέγα
[The fox knows many things, but the hedgehog knows one big thing.]
Archilochus, Greek poet (c. 680 BC – c. 645 BC)
http://hedgehogshiatus.com