You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When delegating a dataset into a non-global zone, certain properties cannot be modified. zoned is one of those, as it's managed by the global zone exclusively.
The zfs cookbook sets a default of zoned: off, which causes convergence to fail when executed inside a zone:
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of zfs set zoned=off zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data ----
STDOUT:
STDERR: cannot set property for 'zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data': permission denied
---- End output of zfs set zoned=off zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data ----
Ran zfs set zoned=off zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data returned 1
Attempting to modify the property at all is disallowed (and causes Chef to fail):
zfs set zoned=on zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data
cannot set property for 'zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data': permission denied
Is there a specific reason a default is defined?
Simply setting default to nil doesn't solve the problem:
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of zfs set zoned= zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data ----
STDOUT:
STDERR: cannot set property for 'zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data': 'zoned' must be one of 'on | off'
---- End output of zfs set zoned= zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data ----
Ran zfs set zoned= zones/b0ea2503-c8c5-68d4-a6a3-d55d0f526faa/data returned 1
The text was updated successfully, but these errors were encountered:
When delegating a dataset into a non-global zone, certain properties cannot be modified.
zoned
is one of those, as it's managed by the global zone exclusively.The
zfs
cookbook sets a default ofzoned: off
, which causes convergence to fail when executed inside a zone:https://github.com/marthag8/zfs/blob/master/resources/default.rb#L5
Attempting to modify the property at all is disallowed (and causes Chef to fail):
Is there a specific reason a default is defined?
Simply setting default to
nil
doesn't solve the problem:The text was updated successfully, but these errors were encountered: