2016-09-28 72 views
0

我正尝试将V11上的厨师服务器迁移到在V12上运行厨师服务器的新框。刀备份从chef11迁移到chef12

我以前knife backup export -D chefbackup来备份chefserverv11到checkbackup目录

然后我用knife backup restore chefbackup将备份还原到新的运行框中chefserverv12。

在还原过程中,我看到了下面

=== Restoring users === 
ERROR: Failed to create user[admin]: #<Net::HTTPBadRequest:0x00000003858a38>; skipping 
ERROR: Failed to create user[user1]: #<Net::HTTPBadRequest:0x0000000386cd30>; skipping 
ERROR: Failed to create user[user2]: #<Net::HTTPBadRequest:0x00000003881078>; skipping 
=== Restoring nodes === 
Restoring nodes from ../chefbackup/nodes/node1.example.com.json 
=== Restoring roles === 
Restoring roles from ../chefbackup/roles/role1.json 
Restoring roles from ../chefbackup/roles/role2.json 
Restoring roles from ../chefbackup/roles/role3.json 

任何想法,为什么我的用户无法获得迁移到新服务器的厨师?

而且当我做了knife node show node1.example.com我看到下面的

Node Name: node1.example.com 
Environment: _default 
FQDN: 
IP: 
Run List: role[role1] 
Roles: 
Recipes: 
Platform: 
Tags: 

的FQDN和IP细节似乎从出口失踪?丢失的细节也使得随后的失败

knife ssh "name:node1*" "chef-client" -x root -P secretpass

FATAL: 1 node found, but does not have the required attribute to establish the connection. Try setting another attribute to open the connection using --attribute 任何帮助这个将非常感激。

回答

0

厨师服务器11和12之间的API改变了一些东西。您需要使用https://github.com/chef/knife-ec-backup来恢复12台服务器。对于升级,您通常会复制现有的11服务器,并使用就地升级作为安装过程的一部分。