如何使用GCP在Ubuntu 14.04 VM实例上为Chef配置刀插件

时间:2018-03-01 13:15:05

标签: bash google-cloud-platform chef ubuntu-14.04

尝试在Google Cloud Platform上的Ubuntu 14.04实例中为Chef配置刀插件时出现此错误。关于如何解决这个问题的任何想法?

FATAL: Cannot find subcommand for: 'osc_user configure -i' 

有2个虚拟机 - 一个是厨师服务器,另一个是厨师工作站,两者都是相同的操作系统。

来源: - https://cloud.google.com/solutions/google-compute-engine-management-puppet-chef-salt-ansible-appendix#getting-started-with-chef-on-compute-engine

Chef-server VM IP - https://35.227.106.170/ Chef-workstation VM IP - https://35.231.42.82/

这是控制台日志:

anjalithomas_mec@chef-workstation:~/.chef$ knife configure -i  # server: https://[server's external IP address]:443,  cookbook_path = ~/chef-repo
Please enter the chef server URL: [https://chef-workstation.c.chef-gcp-195115.internal/organizations/myorg] https://35.227.80.216  
Please enter a name for the new user: [anjalithomas_mec] any  
Please enter the existing admin name: [admin]   
Please enter the location of the existing admin's private key: [/etc/chef-server/admin.pem]   
Overwrite /home/anjalithomas_mec/.chef/credentials?? (Y/N) Y  
Creating initial API user...  
Please enter a password for the new user:   
WARNING: IF YOU ARE USING CHEF SERVER 12+, PLEASE FOLLOW THE INSTRUCTIONS  
UNDER knife user create --help.  
You only passed a single argument to knife user create.  
For backwards compatibility, when only a single argument is passed,
knife user create assumes you want Open Source 11 Server user creation.
knife user create for Open Source 11 Server is being deprecated.  
Open Source 11 Server user commands now live under the knife osc_user namespace.  
For backwards compatibility, we will forward this request to knife osc_user create.  
If you are using an Open Source 11 Server, please use that command to avoid this warning.  
NOTE: Backwards compatibility for Open Source 11 Server in these commands will be removed  
in Chef 15 which will be released April 2019.  
FATAL: Cannot find subcommand for: 'osc_user configure -i'  

1 个答案:

答案 0 :(得分:0)

看起来这是一个没有修复的未解决问题:

  

厨师客户 - 刀具配置错误-i#4814
  https://github.com/chef/chef/issues/4814