【发布时间】:2018-03-08 21:12:03
【问题描述】:
我在 Google Cloud Platform 上的 Ubuntu 14.04 实例中尝试为 Chef 配置刀插件时遇到此错误。有关如何解决此问题的任何想法?
FATAL: Cannot find subcommand for: 'osc_user configure -i'
有 2 个虚拟机 - 一个是 chef-server,另一个是 chef-workstation,它们都是相同的操作系统。
主厨-服务器虚拟机 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'
【问题讨论】:
-
在较早的一个问题中,给出了创建 pem 文件,但制作自签名 pem 仍然无法正常工作,并且刀客户端列表命令没有给出所需的命令 -
-
你用的是哪个刀插件?确切的问题是什么?您能否编辑问题并给我们一个解释,以便我们为您提供帮助?
-
我正在尝试根据cloud.google.com/solutions/… 上给出的说明配置knife - google 命令,使用knife configure 命令的地方就是我卡住的地方
标签: bash google-cloud-platform chef-infra ubuntu-14.04