{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/users/issues/354","repository_url":"https://api.github.com/repos/chef-cookbooks/users","labels_url":"https://api.github.com/repos/chef-cookbooks/users/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/users/issues/354/comments","events_url":"https://api.github.com/repos/chef-cookbooks/users/issues/354/events","html_url":"https://github.com/chef-cookbooks/users/issues/354","id":177086816,"number":354,"title":"Break with Chef version 12.14.60","user":{"login":"chrisduong","id":1848882,"avatar_url":"https://avatars.githubusercontent.com/u/1848882?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisduong","html_url":"https://github.com/chrisduong","followers_url":"https://api.github.com/users/chrisduong/followers","following_url":"https://api.github.com/users/chrisduong/following{/other_user}","gists_url":"https://api.github.com/users/chrisduong/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisduong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisduong/subscriptions","organizations_url":"https://api.github.com/users/chrisduong/orgs","repos_url":"https://api.github.com/users/chrisduong/repos","events_url":"https://api.github.com/users/chrisduong/events{/privacy}","received_events_url":"https://api.github.com/users/chrisduong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-15T04:39:12Z","updated_at":"2016-09-15T09:28:06Z","closed_at":null,"body":"### Cookbook version\r\n2.x and 3.x\r\n\r\n### Chef-client version\r\n12.14.60\r\n\r\n### Platform Details\r\nUbuntu 14.04\r\n\r\n### Scenario:\r\nRun test-kitchen with suite `sysadmin`\r\n\r\n### Expected Result:\r\ntest-kitchen run successfully.\r\n\r\n### Actual Result:\r\ntest-kitchen failed, please the below log.\r\n\r\nI notice that `user` resource has become to `linux_user` in the latest Chef version. I haven't figured out the different between them.\r\n\r\n```\r\n Recipe: users::sysadmins\r\n         * users_manage[sysadmin] action remove (up to date)\r\n         * users_manage[sysadmin] action create\r\n           * group[sysadmin] action create (skipped due to only_if)\r\n           * linux_user[sysadmin] action create\r\n             - create user sysadmin\r\n* Parent directory /home/sysadmin does not exist, cannot create /home/sysadmin/.ssh\r\n             ================================================================================\r\n             Error executing action `create` on resource 'directory[/home/sysadmin/.ssh]'\r\n             ================================================================================\r\n\r\n             Chef::Exceptions::EnclosingDirectoryDoesNotExist\r\n             ------------------------------------------------\r\n             Parent directory /home/sysadmin does not exist, cannot create /home/sysadmin/.ssh\r\n\r\n             Resource Declaration:\r\n             ---------------------\r\n             # In /tmp/kitchen/cache/cookbooks/users/providers/manage.rb\r\n\r\n       99:       directory \"#{home_dir}/.ssh\" do\r\n             100:         owner u['uid'] ? validate_id(u['uid']) : u['username']\r\n             101:         group validate_id(u['gid']) if u['gid']\r\n             102:         mode '0700'\r\n             103:         only_if { u['ssh_keys'] || u['ssh_private_key'] || u['ssh_public_key'] }\r\n             104:       end\r\n             105:\r\n\r\n             Compiled Resource:\r\n             ------------------\r\n             # Declared in /tmp/kitchen/cache/cookbooks/users/providers/manage.rb:99:in `block (2 levels) in class_from_file'\r\n\r\n             directory(\"/home/sysadmin/.ssh\") do\r\n        action [:create]\r\n        retries 0\r\n        retry_delay 2\r\n        default_guard_interpreter :default\r\n        path \"/home/sysadmin/.ssh\"\r\n        declared_type :directory\r\n        cookbook_name \"users\"\r\n        owner \"sysadmin\"\r\n        mode \"0700\"\r\n        only_if { #code block }\r\n             end\r\n\r\n             Platform:\r\n             ---------\r\n             x86_64-linux\r\n\r\n\r\n           ================================================================================\r\n           Error executing action `create` on resource 'users_manage[sysadmin]'\r\n           ================================================================================\r\n\r\n           Chef::Exceptions::EnclosingDirectoryDoesNotExist\r\n           ------------------------------------------------\r\n           directory[/home/sysadmin/.ssh] (/tmp/kitchen/cache/cookbooks/users/providers/manage.rb line 99) had an error: Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory /home/sysadmin does not exist, cannot create /home/sysadmin/.ssh\r\n\r\n           Resource Declaration:\r\n           ---------------------\r\n           # In /tmp/kitchen/cache/cookbooks/users/recipes/sysadmins.rb\r\n\r\n            23: users_manage 'sysadmin' do\r\n            24:   group_id 2300\r\n            25:   action [:remove, :create]\r\n            26: end\r\n\r\n           Compiled Resource:\r\n           ------------------\r\n           # Declared in /tmp/kitchen/cache/cookbooks/users/recipes/sysadmins.rb:23:in `from_file'\r\n\r\n           users_manage(\"sysadmin\") do\r\n             action [:remove, :create]\r\n             updated true\r\n             updated_by_last_action true\r\n             retries 0\r\n             retry_delay 2\r\n             default_guard_interpreter :default\r\n             declared_type :users_manage\r\n             cookbook_name \"users\"\r\n             recipe_name \"sysadmins\"\r\n             group_id 2300\r\n             data_bag \"users\"\r\n             search_group \"sysadmin\"\r\n             group_name \"sysadmin\"\r\n             cookbook \"users\"\r\n           end\r\n\r\n           Platform:\r\n           ---------\r\n           x86_64-linux\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/users/issues/comments/247280312","html_url":"https://github.com/chef-cookbooks/users/issues/354#issuecomment-247280312","issue_url":"https://api.github.com/repos/chef-cookbooks/users/issues/354","id":247280312,"user":{"login":"Hoverbear","id":130903,"avatar_url":"https://avatars.githubusercontent.com/u/130903?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoverbear","html_url":"https://github.com/Hoverbear","followers_url":"https://api.github.com/users/Hoverbear/followers","following_url":"https://api.github.com/users/Hoverbear/following{/other_user}","gists_url":"https://api.github.com/users/Hoverbear/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoverbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoverbear/subscriptions","organizations_url":"https://api.github.com/users/Hoverbear/orgs","repos_url":"https://api.github.com/users/Hoverbear/repos","events_url":"https://api.github.com/users/Hoverbear/events{/privacy}","received_events_url":"https://api.github.com/users/Hoverbear/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T09:28:06Z","updated_at":"2016-09-15T09:28:06Z","body":"Also affecting Ubuntu 16.04."}}
{"actor":{"display_login":"Hoverbear"}}