{"action":"created","issue":{"url":"https://api.github.com/repos/atrull/ephemeral_raid_cookbook/issues/3","labels_url":"https://api.github.com/repos/atrull/ephemeral_raid_cookbook/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/atrull/ephemeral_raid_cookbook/issues/3/comments","events_url":"https://api.github.com/repos/atrull/ephemeral_raid_cookbook/issues/3/events","html_url":"https://github.com/atrull/ephemeral_raid_cookbook/issues/3","id":122993479,"number":3,"title":"instances of MonoLogger passed to call of mdadm","user":{"login":"gretel","id":80815,"avatar_url":"https://avatars.githubusercontent.com/u/80815?v=3","gravatar_id":"","url":"https://api.github.com/users/gretel","html_url":"https://github.com/gretel","followers_url":"https://api.github.com/users/gretel/followers","following_url":"https://api.github.com/users/gretel/following{/other_user}","gists_url":"https://api.github.com/users/gretel/gists{/gist_id}","starred_url":"https://api.github.com/users/gretel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gretel/subscriptions","organizations_url":"https://api.github.com/users/gretel/orgs","repos_url":"https://api.github.com/users/gretel/repos","events_url":"https://api.github.com/users/gretel/events{/privacy}","received_events_url":"https://api.github.com/users/gretel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-12-18T17:36:07Z","updated_at":"2016-01-03T15:14:53Z","closed_at":null,"body":"cookbook `0.0.9` on `chef-12.5.1` on `ubuntu-12.04` on `EC2 c3.4xlarge`: seems like something goes really wrong\r\n\r\n```\r\n           Error executing action `create` on resource 'mdadm[/dev/md0]'\r\n           ================================================================================\r\n\r\n           Mixlib::ShellOut::ShellCommandFailed\r\n           ------------------------------------\r\n           Expected process to exit with [0], but received '1'\r\n           ---- Begin output of yes | mdadm --create /dev/md0 --level 0 --chunk=256 --metadata=0.90 --raid-devices 4 /dev/xvdb /dev/xvdc #<MonoLogger:0x000000046e5358> #<MonoLogger:0x000000046e5358> ----\r\n       STDOUT:\r\n           STDERR: mdadm: You haven't given enough devices (real or missing) to create this array\r\n           ---- End output of yes | mdadm --create /dev/md0 --level 0 --chunk=256 --metadata=0.90 --raid-devices 4 /dev/xvdb /dev/xvdc #<MonoLogger:0x000000046e5358> #<MonoLogger:0x000000046e5358> ----\r\n       Ran yes | mdadm --create /dev/md0 --level 0 --chunk=256 --metadata=0.90 --raid-devices 4 /dev/xvdb /dev/xvdc #<MonoLogger:0x000000046e5358> #<MonoLogger:0x000000046e5358> returned 1\r\n\r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/ephemeral_raid/recipes/makeraid.rb\r\n\r\n            36:   mdadm \"#{node[:ephemeral][:raid][:device]}\" do\r\n            37:     devices ephemeral_devices\r\n            38:     chunk node[:ephemeral][:raid][:chunk_size] if node[:ephemeral][:raid][:chunk_size]\r\n        39:     level 0\r\n            40:     action :create\r\n        41:     notifies :run, \"execute[set_readahead_on_device_after_creation]\", :immediately\r\n        42:     only_if \"which mdadm\"\r\n            43:   end\r\n            44: else\r\n\r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cache/cookbooks/ephemeral_raid/recipes/makeraid.rb:36:in `from_file'\r\n\r\n           mdadm(\"/dev/md0\") do\r\n             action [:create]\r\n             retries 0\r\n         retry_delay 2\r\n             default_guard_interpreter :default\r\n             chunk 256\r\n         devices [\"/dev/xvdb\", \"/dev/xvdc\", [#<MonoLogger:0x000000046e5358 @progname=nil, @level=2, @default_formatter=#<Logger::Formatter:0x000000046e5560 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000046e7b30 @datetime_format=nil>, @logdev=#<MonoLogger::LocklessLogDevice:0x000000046e5628 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>>>], [#<MonoLogger:0x000000046e5358 @progname=nil, @level=2, @default_formatter=#<Logger::Formatter:0x000000046e5560 @datetime_format=nil>, @formatter=#<Mixlib::Log::Formatter:0x000000046e7b30 @datetime_format=nil>, @logdev=#<MonoLogger::LocklessLogDevice:0x000000046e5628 @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#<IO:<STDOUT>>>>]]\r\n         level 0\r\n             metadata \"0.90\"\r\n             raid_device \"/dev/md0\"\r\n         declared_type :mdadm\r\n             cookbook_name \"ephemeral_raid\"\r\n             recipe_name \"makeraid\"\r\n         only_if \"which mdadm\"\r\n           end\r\n```"},"comment":{"url":"https://api.github.com/repos/atrull/ephemeral_raid_cookbook/issues/comments/168504889","html_url":"https://github.com/atrull/ephemeral_raid_cookbook/issues/3#issuecomment-168504889","issue_url":"https://api.github.com/repos/atrull/ephemeral_raid_cookbook/issues/3","id":168504889,"user":{"login":"atrull","id":4817255,"avatar_url":"https://avatars.githubusercontent.com/u/4817255?v=3","gravatar_id":"","url":"https://api.github.com/users/atrull","html_url":"https://github.com/atrull","followers_url":"https://api.github.com/users/atrull/followers","following_url":"https://api.github.com/users/atrull/following{/other_user}","gists_url":"https://api.github.com/users/atrull/gists{/gist_id}","starred_url":"https://api.github.com/users/atrull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrull/subscriptions","organizations_url":"https://api.github.com/users/atrull/orgs","repos_url":"https://api.github.com/users/atrull/repos","events_url":"https://api.github.com/users/atrull/events{/privacy}","received_events_url":"https://api.github.com/users/atrull/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T15:14:53Z","updated_at":"2016-01-03T15:14:53Z","body":"Hi Tom - just a reminder that this issue is open :-)"}}