2017-08-31 4 views
0

私の目標は、Bluemix CLIを使用してコンテナクラスタの作成をスクリプト化することです。そこに私は混乱して/立ち往生していますBluemix CLIクラスタ作成時のE0126エラー

Creating cluster... 
The machine-type flag was not specified. So free cluster will be created 
FAILED 

Your Bluemix space must be specified. If you are using the API, include the headers 
X-Auth-Resource-Space header. To get the list of orgs run 'bx iam orgs'. To get the 
list of spaces run 'bx iam spaces'. (E0126) 
Incident ID: 421d4577-4873-433d-adff-a870fe0983a3 

メッセージが、私は私のBluemixスペースを指定することを言っているようだということですが、私は戻って取得メッセージがある

$ bx cs cluster-create --name mycluster --workers 1 

:私は実行しているコマンドがありますこのコマンドでスペースを指定するオプションではありません。

答えて

1

答えは、別のコマンドを使用して環境に組織とスペースの両方を指定する必要があるということです。具体的に:あなたはCLIを使用してbluemixにログインした後に、これらの値を見つけることができます

$ bx target -o <yourOrganization> -s <yourSpace> 

コマンド:

$ bx iam orgs 

$ bx iam spaces 

をあなたはbx targetコマンドを実行したら、再できますbx cs create-clusterコマンドを実行します。

関連する問題