Chef server 12 issues (Sorry, I can't find what you are looking for)

I have been successfully using Chef with a non-hosted Chef Server for quite some time. I recently installed a new Chef Server 12 server and the latest ChefDK. Now, I’m unable to use the “knife cookbook upload” command to upload cookbooks to the new Chef server. Knife displays the HTML (ugh) response from the server, which includes the 404 HTTP status code and helpful message: Sorry, I can’t find what you are look for.

In fact, the server appears to return 404 for lots of knife commands (e.g. “knife role list”, “knife role create ROLE”, “knife cookbook list”, “knife client list”, etc.). It appears to work fine for “knife user show USER” (returning my user entry) and appears to be access checking fine, for commands like “knife user list”, which tells me I’m not the pivotal user. But why is it not allowing me to create roles and upload cookbooks, etc?

I’d like to not have to revert to Chef 11.

Note: I installed the bare (no premium features) of Chef Server 12. As far as I can tell, this is all that should be required.

Did you update your *.pem files and knife.rb to make your chef workstation compatible with your Chef 12 server? The format is totally different.

Chris

-----Original Message-----
From: Eric Swenson [mailto:eswenson@intertrust.com]
Sent: Wednesday, December 03, 2014 3:51 PM
To: chef@lists.opscode.com
Subject: [chef] chef server 12 issues (Sorry, I can’t find what you are looking for)

I have been successfully using Chef with a non-hosted Chef Server for quite some time. I recently installed a new Chef Server 12 server and the latest ChefDK. Now, I’m unable to use the “knife cookbook upload” command to upload cookbooks to the new Chef server. Knife displays the HTML (ugh) response from the server, which includes the 404 HTTP status code and helpful message: Sorry, I can’t find what you are look for.

In fact, the server appears to return 404 for lots of knife commands (e.g. “knife role list”, “knife role create ROLE”, “knife cookbook list”, “knife client list”, etc.). It appears to work fine for “knife user show USER” (returning my user entry) and appears to be access checking fine, for commands like “knife user list”, which tells me I’m not the pivotal user. But why is it not allowing me to create roles and upload cookbooks, etc?

I’d like to not have to revert to Chef 11.

Note: I installed the bare (no premium features) of Chef Server 12. As far as I can tell, this is all that should be required.

On Wednesday, December 3, 2014 at 12:57 PM, Fouts, Chris wrote:

Did you update your *.pem files and knife.rb to make your chef workstation compatible with your Chef 12 server? The format is totally different.

pem files and knife.rb should generally be the same. What is different is that you have multi-tennancy, which means you need to create an organization and reference it in your chef_server_url, e.g. it should look like https://chef-server.example/organizations/ORGNAME/

Chris

-----Original Message-----
From: Eric Swenson [mailto:eswenson@intertrust.com]
Sent: Wednesday, December 03, 2014 3:51 PM
To: chef@lists.opscode.com (mailto:chef@lists.opscode.com)
Subject: [chef] chef server 12 issues (Sorry, I can't find what you are looking for)

I have been successfully using Chef with a non-hosted Chef Server for quite some time. I recently installed a new Chef Server 12 server and the latest ChefDK. Now, I'm unable to use the "knife cookbook upload" command to upload cookbooks to the new Chef server. Knife displays the HTML (ugh) response from the server, which includes the 404 HTTP status code and helpful message: Sorry, I can't find what you are look for.

In fact, the server appears to return 404 for lots of knife commands (e.g. "knife role list", "knife role create ROLE", "knife cookbook list", "knife client list", etc.). It appears to work fine for "knife user show USER" (returning my user entry) and appears to be access checking fine, for commands like "knife user list", which tells me I'm not the pivotal user. But why is it not allowing me to create roles and upload cookbooks, etc?

I'd like to not have to revert to Chef 11.

Note: I installed the bare (no premium features) of Chef Server 12. As far as I can tell, this is all that should be required.
--
Daniel DeLeo

Thanks Daniel. Yes the server URL is the format difference I was talking about.

Chris

-----Original Message-----
From: Daniel DeLeo [mailto:ddeleo@kallistec.com] On Behalf Of Daniel DeLeo
Sent: Wednesday, December 03, 2014 4:18 PM
To: chef@lists.opscode.com
Subject: [chef] Re: RE: chef server 12 issues (Sorry, I can't find what you are looking for)

On Wednesday, December 3, 2014 at 12:57 PM, Fouts, Chris wrote:

Did you update your *.pem files and knife.rb to make your chef workstation compatible with your Chef 12 server? The format is totally different.

pem files and knife.rb should generally be the same. What is different is that you have multi-tennancy, which means you need to create an organization and reference it in your chef_server_url, e.g. it should look like https://chef-server.example/organizations/ORGNAME/

Chris

-----Original Message-----
From: Eric Swenson [mailto:eswenson@intertrust.com]
Sent: Wednesday, December 03, 2014 3:51 PM
To: chef@lists.opscode.com (mailto:chef@lists.opscode.com)
Subject: [chef] chef server 12 issues (Sorry, I can't find what you are looking for)

I have been successfully using Chef with a non-hosted Chef Server for quite some time. I recently installed a new Chef Server 12 server and the latest ChefDK. Now, I'm unable to use the "knife cookbook upload" command to upload cookbooks to the new Chef server. Knife displays the HTML (ugh) response from the server, which includes the 404 HTTP status code and helpful message: Sorry, I can't find what you are look for.

In fact, the server appears to return 404 for lots of knife commands (e.g. "knife role list", "knife role create ROLE", "knife cookbook list", "knife client list", etc.). It appears to work fine for "knife user show USER" (returning my user entry) and appears to be access checking fine, for commands like "knife user list", which tells me I'm not the pivotal user. But why is it not allowing me to create roles and upload cookbooks, etc?

I'd like to not have to revert to Chef 11.

Note: I installed the bare (no premium features) of Chef Server 12. As far as I can tell, this is all that should be required.
--
Daniel DeLeo

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this under
the documentation for chef_server_url.

‹ Eric

On 12/3/14, 1:17 PM, "Daniel DeLeo" dan@kallistec.com wrote:

On Wednesday, December 3, 2014 at 12:57 PM, Fouts, Chris wrote:

Did you update your *.pem files and knife.rb to make your chef
workstation compatible with your Chef 12 server? The format is totally
different.

pem files and knife.rb should generally be the same. What is different is
that you have multi-tennancy, which means you need to create an
organization and reference it in your chef_server_url, e.g. it should
look like https://chef-server.example/organizations/ORGNAME/

Chris

-----Original Message-----
From: Eric Swenson [mailto:eswenson@intertrust.com]
Sent: Wednesday, December 03, 2014 3:51 PM
To: chef@lists.opscode.com (mailto:chef@lists.opscode.com)
Subject: [chef] chef server 12 issues (Sorry, I can't find what you are
looking for)

I have been successfully using Chef with a non-hosted Chef Server for
quite some time. I recently installed a new Chef Server 12 server and
the latest ChefDK. Now, I'm unable to use the "knife cookbook upload"
command to upload cookbooks to the new Chef server. Knife displays the
HTML (ugh) response from the server, which includes the 404 HTTP status
code and helpful message: Sorry, I can't find what you are look for.

In fact, the server appears to return 404 for lots of knife commands
(e.g. "knife role list", "knife role create ROLE", "knife cookbook
list", "knife client list", etc.). It appears to work fine for "knife
user show USER" (returning my user entry) and appears to be access
checking fine, for commands like "knife user list", which tells me I'm
not the pivotal user. But why is it not allowing me to create roles and
upload cookbooks, etc?

I'd like to not have to revert to Chef 11.

Note: I installed the bare (no premium features) of Chef Server 12. As
far as I can tell, this is all that should be required.
--
Daniel DeLeo

On Wednesday, December 3, 2014 at 1:34 PM, Eric Swenson wrote:

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this under
the documentation for chef_server_url.

‹ Eric

It’s mentioned here but not very clearly: http://docs.getchef.com/server/upgrade_server.html#from-chef-server-osc

I’ll file an issue to make that section clearer.

--
Daniel DeLeo

Now that I know what to look for, I found
http://docs.getchef.com/migrate_to_hosted.html. This also describes the
updated chef_server_url. Perhaps the new Chef Server 12 documentation
should make clear that for those who had been using open source Chef prior
to chef server 12, that they must follow the instructions for upgrading to
Enterprise Chef (since, Chef Server 12 incorporates the previous
Enterprise Chef functionality.

On 12/3/14, 1:36 PM, "Daniel DeLeo" dan@kallistec.com wrote:

On Wednesday, December 3, 2014 at 1:34 PM, Eric Swenson wrote:

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this
under
the documentation for chef_server_url.

‹ Eric

It’s mentioned here but not very clearly:
http://docs.getchef.com/server/upgrade_server.html#from-chef-server-osc

I’ll file an issue to make that section clearer.

--
Daniel DeLeo

I’ve notified our docs writer.

--
Daniel DeLeo

On Wednesday, December 3, 2014 at 1:44 PM, Eric Swenson wrote:

Now that I know what to look for, I found
http://docs.getchef.com/migrate_to_hosted.html. This also describes the
updated chef_server_url. Perhaps the new Chef Server 12 documentation
should make clear that for those who had been using open source Chef prior
to chef server 12, that they must follow the instructions for upgrading to
Enterprise Chef (since, Chef Server 12 incorporates the previous
Enterprise Chef functionality.

On 12/3/14, 1:36 PM, "Daniel DeLeo" <dan@kallistec.com (mailto:dan@kallistec.com)> wrote:

On Wednesday, December 3, 2014 at 1:34 PM, Eric Swenson wrote:

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this
under
the documentation for chef_server_url.

‹ Eric

It’s mentioned here but not very clearly:
http://docs.getchef.com/server/upgrade_server.html#from-chef-server-osc

I’ll file an issue to make that section clearer.

--
Daniel DeLeo

Eric, you can also install the Chef 12 premium features (opscode-manager), and as long as you have <= 25 nodes you should be ok.

Chris

-----Original Message-----
From: Eric Swenson [mailto:eswenson@intertrust.com]
Sent: Wednesday, December 03, 2014 4:44 PM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Re: Re: RE: chef server 12 issues (Sorry, I can't find what you are looking for)

Now that I know what to look for, I found http://docs.getchef.com/migrate_to_hosted.html. This also describes the updated chef_server_url. Perhaps the new Chef Server 12 documentation should make clear that for those who had been using open source Chef prior to chef server 12, that they must follow the instructions for upgrading to Enterprise Chef (since, Chef Server 12 incorporates the previous Enterprise Chef functionality.

On 12/3/14, 1:36 PM, "Daniel DeLeo" dan@kallistec.com wrote:

On Wednesday, December 3, 2014 at 1:34 PM, Eric Swenson wrote:

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this
under the documentation for chef_server_url.

‹ Eric

It’s mentioned here but not very clearly:
http://docs.getchef.com/server/upgrade_server.html#from-chef-server-osc

I’ll file an issue to make that section clearer.

--
Daniel DeLeo

Thanks, Chris. In my case, I didn’t need the premium features, but I am
aware of their existence. — Eric

On 12/3/14, 4:22 PM, "Fouts, Chris" Chris.Fouts@Sensus.com wrote:

Eric, you can also install the Chef 12 premium features
(opscode-manager), and as long as you have <= 25 nodes you should be ok.

Chris

-----Original Message-----
From: Eric Swenson [mailto:eswenson@intertrust.com]
Sent: Wednesday, December 03, 2014 4:44 PM
To: chef@lists.opscode.com
Subject: [chef] Re: Re: Re: Re: RE: chef server 12 issues (Sorry, I can't
find what you are looking for)

Now that I know what to look for, I found
http://docs.getchef.com/migrate_to_hosted.html. This also describes the
updated chef_server_url. Perhaps the new Chef Server 12 documentation
should make clear that for those who had been using open source Chef
prior to chef server 12, that they must follow the instructions for
upgrading to Enterprise Chef (since, Chef Server 12 incorporates the
previous Enterprise Chef functionality.

On 12/3/14, 1:36 PM, "Daniel DeLeo" dan@kallistec.com wrote:

On Wednesday, December 3, 2014 at 1:34 PM, Eric Swenson wrote:

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this
under the documentation for chef_server_url.

‹ Eric

It’s mentioned here but not very clearly:
http://docs.getchef.com/server/upgrade_server.html#from-chef-server-osc

I’ll file an issue to make that section clearer.

--
Daniel DeLeo

The link https://docs.chef.io/migrate_to_hosted.html is no longer
available. Does anyone know what is the correct url?

Cheers, Tony

On Thu, Dec 4, 2014 at 8:44 AM, Eric Swenson eswenson@intertrust.com
wrote:

Now that I know what to look for, I found
http://docs.getchef.com/migrate_to_hosted.html. This also describes the
updated chef_server_url. Perhaps the new Chef Server 12 documentation
should make clear that for those who had been using open source Chef prior
to chef server 12, that they must follow the instructions for upgrading to
Enterprise Chef (since, Chef Server 12 incorporates the previous
Enterprise Chef functionality.

On 12/3/14, 1:36 PM, "Daniel DeLeo" dan@kallistec.com wrote:

On Wednesday, December 3, 2014 at 1:34 PM, Eric Swenson wrote:

Thanks, Dan.

That worked fine. I changed chef_server_url to include
organizations/ORGNAME and everything works fine now.

Where would I have found this documented? The current knife.rb doc
(config.rb) does not mention this
under
the documentation for chef_server_url.

‹ Eric

It’s mentioned here but not very clearly:
http://docs.getchef.com/server/upgrade_server.html#from-chef-server-osc

I’ll file an issue to make that section clearer.

--
Daniel DeLeo