{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/chef-server/issues/120","repository_url":"https://api.github.com/repos/chef-cookbooks/chef-server","labels_url":"https://api.github.com/repos/chef-cookbooks/chef-server/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/chef-server/issues/120/comments","events_url":"https://api.github.com/repos/chef-cookbooks/chef-server/issues/120/events","html_url":"https://github.com/chef-cookbooks/chef-server/issues/120","id":151738808,"number":120,"title":"Addons that require 'accept_license' passed in chef_ingredient call fail on reconfigure","user":{"login":"mengesb","id":1378071,"avatar_url":"https://avatars.githubusercontent.com/u/1378071?v=3","gravatar_id":"","url":"https://api.github.com/users/mengesb","html_url":"https://github.com/mengesb","followers_url":"https://api.github.com/users/mengesb/followers","following_url":"https://api.github.com/users/mengesb/following{/other_user}","gists_url":"https://api.github.com/users/mengesb/gists{/gist_id}","starred_url":"https://api.github.com/users/mengesb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengesb/subscriptions","organizations_url":"https://api.github.com/users/mengesb/orgs","repos_url":"https://api.github.com/users/mengesb/repos","events_url":"https://api.github.com/users/mengesb/events{/privacy}","received_events_url":"https://api.github.com/users/mengesb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-28T20:44:02Z","updated_at":"2016-04-28T23:15:35Z","closed_at":null,"body":"### Cookbook version\r\n5.0.0\r\n\r\n### Chef-client version\r\n12.8.1-1\r\n\r\n### Platform Details\r\nAWS CentOS 6.6 x86_64 w/updates HVM\r\n\r\n### Scenario:\r\nInstall addons using the `chef-server::addons recipe`\r\n\r\n### Steps to Reproduce:\r\nSetting in the node's attributes the following:\r\n```json\r\n{\r\n  \"fqdn\": \"chef-01.[REDACTED]\",\r\n   \"chef_client\": {\r\n     \"init_style\": \"none\"\r\n   },\r\n  \"chef-server\": {\r\n    \"addons\": [\r\n      \"manage\",\r\n      \"push-jobs-server\",\r\n      \"reporting\"\r\n    ],\r\n    \"api_fqdn\": \"chef-01.[REDACTED]\",\r\n    \"configuration\": \"nginx['ssl_certificate'] = '/var/chef/ssl/chef-01.[REDACTED].pem'\\nnginx['ssl_certificate_key'] = '/var/chef/ssl/chef-01.[REDACTED].key'\",\r\n    \"topology\": \"standalone\"\r\n  },\r\n  \"firewall\": {\r\n    \"allow_established\": true,\r\n    \"allow_ssh\": true\r\n  },\r\n  \"system\": {\r\n    \"delay_network_restart\": false,\r\n    \"domain_name\": \"[REDACTED]\",\r\n    \"manage_hostsfile\": true,\r\n    \"short_hostname\": \"chef-01\"\r\n  },\r\n  \"tags\": []\r\n}\r\n```\r\n### Expected Result:\r\nExpect all addons to be installed without issue during reconfigure\r\n\r\n### Actual Result:\r\nReconfiguration presents an error. This is new starting today (2016/04/28)\r\n```\r\n* chef_ingredient[manage] action reconfigure\r\n  * ingredient_config[manage] action render (skipped due to not_if)\r\n  * execute[chef-manage-reconfigure] action run\r\n\r\n    ================================================================================\r\n    Error executing action `run` on resource 'execute[chef-manage-reconfigure]'\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 chef-manage-ctl reconfigure ----\r\n    STDOUT: To use this software, you must agree to the terms of the software license agreement.\r\n    Please view and accept the software license agreement, or pass --accept-license.\r\n    STDERR:\r\n    ---- End output of chef-manage-ctl reconfigure ----\r\n    Ran chef-manage-ctl reconfigure returned 1\r\n\r\n    Resource Declaration:\r\n    ---------------------\r\n    # In /var/chef/cookbooks/chef-ingredient/libraries/chef_ingredient_provider.rb\r\n\r\n    105:           execute \"#{ingredient_package_name}-reconfigure\" do\r\n    106:             command \"#{ingredient_ctl_command} reconfigure\"\r\n    107:           end\r\n    108:         end\r\n\r\n    Compiled Resource:\r\n    ------------------\r\n    # Declared in /var/chef/cookbooks/chef-ingredient/libraries/chef_ingredient_provider.rb:105:in `block in <class:ChefIngredient>'\r\n\r\n    execute(\"chef-manage-reconfigure\") do\r\n      action [:run]\r\n      retries 0\r\n      retry_delay 2\r\n      default_guard_interpreter :execute\r\n      command \"chef-manage-ctl reconfigure\"\r\n      backup 5\r\n      returns 0\r\n      declared_type :execute\r\n      cookbook_name :\"chef-server\"\r\n    end\r\n\r\n\r\n  ================================================================================\r\n  Error executing action `reconfigure` on resource 'chef_ingredient[manage]'\r\n  ================================================================================\r\n\r\n  Mixlib::ShellOut::ShellCommandFailed\r\n  ------------------------------------\r\n  execute[chef-manage-reconfigure] (/var/chef/cookbooks/chef-ingredient/libraries/chef_ingredient_provider.rb line 105) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'\r\n  ---- Begin output of chef-manage-ctl reconfigure ----\r\n  STDOUT: To use this software, you must agree to the terms of the software license agreement.\r\n  Please view and accept the software license agreement, or pass --accept-license.\r\n  STDERR:\r\n  ---- End output of chef-manage-ctl reconfigure ----\r\n  Ran chef-manage-ctl reconfigure returned 1\r\n\r\n  Resource Declaration:\r\n  ---------------------\r\n  # In /var/chef/cookbooks/chef-server/recipes/addons.rb\r\n\r\n   20:   chef_ingredient addon do\r\n   21:     notifies :reconfigure, \"chef_ingredient[#{addon}]\"\r\n   22:   end\r\n   23: end\r\n\r\n  Compiled Resource:\r\n  ------------------\r\n  # Declared in /var/chef/cookbooks/chef-server/recipes/addons.rb:20:in `block in from_file'\r\n\r\n  chef_ingredient(\"manage\") do\r\n    action [:install]\r\n    updated true\r\n    retries 0\r\n    retry_delay 2\r\n    default_guard_interpreter :default\r\n    declared_type :chef_ingredient\r\n    cookbook_name :\"chef-server\"\r\n    recipe_name \"addons\"\r\n    product_name \"manage\"\r\n  end\r\n```"},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/chef-server/issues/comments/215589926","html_url":"https://github.com/chef-cookbooks/chef-server/issues/120#issuecomment-215589926","issue_url":"https://api.github.com/repos/chef-cookbooks/chef-server/issues/120","id":215589926,"user":{"login":"ChadScott","id":346268,"avatar_url":"https://avatars.githubusercontent.com/u/346268?v=3","gravatar_id":"","url":"https://api.github.com/users/ChadScott","html_url":"https://github.com/ChadScott","followers_url":"https://api.github.com/users/ChadScott/followers","following_url":"https://api.github.com/users/ChadScott/following{/other_user}","gists_url":"https://api.github.com/users/ChadScott/gists{/gist_id}","starred_url":"https://api.github.com/users/ChadScott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChadScott/subscriptions","organizations_url":"https://api.github.com/users/ChadScott/orgs","repos_url":"https://api.github.com/users/ChadScott/repos","events_url":"https://api.github.com/users/ChadScott/events{/privacy}","received_events_url":"https://api.github.com/users/ChadScott/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T23:15:35Z","updated_at":"2016-04-28T23:15:35Z","body":"Until the cookbook handles this properly, set the `['chef-server']['version']` attribute to `12.4.1-1` to go back to a version that doesn't require the license acceptance and use `chef-server` cookbook version `4.1.0`."}}