[chef] Re: Re: Chef Server Install.


Chronological Thread 
  • From: Douglas Garstang < >
  • To:
  • Subject: [chef] Re: Re: Chef Server Install.
  • Date: Fri, 23 Jan 2015 10:19:52 -0800

Charles,

I found the solution. Someone opened a bug on this. I can't find it right now, but you need to add /organizations/${short_name} to your chef server URL on the client side. I presume that's due to the multi tenancy. Chalk it up to more bad documentation.

Now I can list users with knife, and cookbook list doesn't return an error. I attempted to upload cookbooks with berkshelf, and no error was returned. Attempting to list the cookbooks then returns nothing. I modified the chef_server_url in the berkshelf config file, and updated the URL, no change. Still no cookbooks returned. Upgraded berkshelf to latest version. Still no change.

I might be doing something wrong. I might not. Lack of docs makes it hard to know.

Doug

On Fri, Jan 23, 2015 at 10:03 AM, Charles Betz < " target="_blank"> > wrote:
I am having identical problems. 

On Fri, Jan 23, 2015 at 12:01 PM, Douglas Garstang < " target="_blank"> > wrote:
I just installed the latest version of chef server, and ran these commands:

dpkg -i chef-server-core_12.0.1-1_amd64.deb
chef-server-ctl reconfigure
chef-server-ctl user-create doug Douglas Garstang " target="_blank"> "password" --filename doug.pem
chef-server-ctl org-create slice "Foo Technologies" --association_user doug --filename validator.pem

I then copied the keys to my local system, and configured the client.

Attempting to run a 'knife cookbook list' on the client gets me:

Douglass-MacBook-Pro:.chefvm doug$ knife cookbook list
ERROR: The object you are looking for could not be found
Response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-sransitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <title>Chef - 404 Not Found</title>
  <link media="all" rel="stylesheet" type="text/css" href=""/css/all.css"" />
  <!--[if lt IE 7]><link rel="stylesheet" type="text/css" href=""/css/lt7.css"" /><![endif]-->
</head>
<body>
  <div class="header-block">
    <div id="header">
      <strong class="logo"><a href=""http://www.getchef.com">Chef</a></strong>
    </div>
  </div>
  <div id="wrapper">
    <div id="main">
      <div class="mybox">
        <div id="content">
          <h1>404 - Not Found</h1>
          <p>Sorry, I can't find what you are looking for.</p>
        </div>
      </div>
    </div>
  </div>
  <div class="footer-block">
    <div id="footer">
      <div class="mybox">
      </div>
      <div class="footer-bottom">
        <span>&copy; 2010&thinsp;&ndash;&thinsp;2014 Chef Software, Inc. All Rights Reserved</span>
      </div>
    </div>
  </div>
</body>
</html>

I then tried to a 'knife user list' which resulted in:

Douglass-MacBook-Pro:.chefvm doug$ knife user list
ERROR: You authenticated successfully to https://chef01.dev.slicetest.com:443 as doug but you are not authorized for this action
Response:  missing read permission


which is strange because of the "--association_user doug" above. What am I missing?

Doug




--



Archive powered by MHonArc 2.6.16.

§