2016-09-28 4 views
0

V11의 Chef 서버를 V12의 Chef 서버를 실행중인 새 상자로 마이그레이션하려고합니다. chef11에서 chef12로 마이그레이션 할 나이프 백업

은 내가 다음 새 상자 실행 chefserverv12에 백업을 복원 knife backup restore chefbackup을 사용 checkbackup 디렉토리

에 백업 할 chefserverv11을 knife backup export -D chefbackup을 사용했다. 복원 과정에서

는, 나는 사용자가 새로운 요리사 서버로 마이그레이션 취득에 실패하는 이유는 다음

=== 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

Chef Server 11과 12 사이의 API가 일부 변경되었습니다. 12 서버를 복원하려면 https://github.com/chef/knife-ec-backup을 사용해야합니다. 업그레이드의 경우 일반적으로 기존 11 서버를 복사하고 설치 프로세스의 일부로 전체 업그레이드를 사용합니다.