Chef server upgrade to the latest 12 version

Hi!

I have a following versions of chef server components installed on my system:

chef.x86_64 11.16.4-1.el6 installed
chef-server-core.x86_64 12.2.0-1.el6 @/chef-server-core-12.2.0-1.el6.x86_64
opscode-manage.x86_64 1.21.0-1.el6 @chef-stable

I am going to upgrade chef server till latest 12 version. Is any recommendations for prior backup of server data ( databases , so on ) so that I could easy back to the old state in case something goes wrong after update. Also if chef-server latest version compatible with data from prior chef server versions (12.* )?

Best idea coming to my mind: https://docs.chef.io/upgrade_server.html

Thanks @Tensibai will have a look

Yeah I read the docs. But still have no idea if chef databases will be compatible with the latest version of chef-server ? ( see my chef server versions at the top this thread )

I really don’t get your question in fact, chef-server-ctl reconfigure (part of the upgrade process) will do changes to the database if needed…


The idea of the backup is being able to restore this backup with the version it has been made for.

I don’t think databases alterations are documented anywhere, they usually go smooth, specially between minor versions but I can’t swear, hence the backup need (and just in case something highly wrong happens, kernel panic of the sytem, power cut, etc.).

If you don’t want to take any risk, knife backup your actual server content and knife restore it on a fresh new up-to-date server. And then move your nodes to the new server (maybe using a cname in DNS).

We recently completed a migration from chef server 11 to chef server 12 using this method. Something to be aware of is you will still need to create an organization and create new users (knife restore does not restore users in chef server 12), and distribute the new knife and validation keys. Additionally, we had to update the ACLs for the clients to allow them to update.

One really useful point with this method is it allows you to point a couple clients to the new server and use them as a test bed to find if there are any issues.

Are you aware most of your post doesn’t apply to the original question ? 12.2 to latest 12.x.

And for what it worth, that’s exactly what is pointed in the doc when migrating from 11 to 12…

Whoops! Sorry, I missed that it was chef-server 12.2, I saw chef 11 and my mind went there.

No problem, reading my post again I should have refrain, it’s late and I’m rude, sorry

Hi guys! Thanks for your input. So hopefully migration from 12.02 to the latest version will be easy and won’t require me to tweak databases after …