Chef-12.x one-shot --no-fork broken?


#1

Yo,

12.0.x appears to have broken --no-fork? Has anyone seen this anywhere yet?

$ sudo chef-solo -ldebug --force-logger --no-fork
[2014-12-29T21:54:38+00:00] FATAL: NoMethodError: undefined method
`size’ for nil:NilClass

I’m still digging, haven’t tracked down the nil/#size call. I read
something in notes re: Client & interval/daemon; however, these are
non-interval runs, we use many of them at a time like oneshot
converges.

cheers,

–aj


#2

BT @ https://gist.github.com/fujin/f725c336b104d1e282b9

On Tue, Dec 30, 2014 at 10:57 AM, AJ Christensen
aj@junglistheavy.industries wrote:

Yo,

12.0.x appears to have broken --no-fork? Has anyone seen this anywhere yet?

$ sudo chef-solo -ldebug --force-logger --no-fork
[2014-12-29T21:54:38+00:00] FATAL: NoMethodError: undefined method
`size’ for nil:NilClass

I’m still digging, haven’t tracked down the nil/#size call. I read
something in notes re: Client & interval/daemon; however, these are
non-interval runs, we use many of them at a time like oneshot
converges.

cheers,

–aj


#3

Tracked it down and filed a bug here:

cheers,

–aj

On Tue, Dec 30, 2014 at 11:01 AM, AJ Christensen
aj@junglistheavy.industries wrote:

BT @ https://gist.github.com/fujin/f725c336b104d1e282b9

On Tue, Dec 30, 2014 at 10:57 AM, AJ Christensen
aj@junglistheavy.industries wrote:

Yo,

12.0.x appears to have broken --no-fork? Has anyone seen this anywhere yet?

$ sudo chef-solo -ldebug --force-logger --no-fork
[2014-12-29T21:54:38+00:00] FATAL: NoMethodError: undefined method
`size’ for nil:NilClass

I’m still digging, haven’t tracked down the nil/#size call. I read
something in notes re: Client & interval/daemon; however, these are
non-interval runs, we use many of them at a time like oneshot
converges.

cheers,

–aj