2017-06-23 9 views
0

ローカルceph(バージョン10.2.7)とkubernetes v1.6.5を別々のクラスタで実行しています。 PVとPVMの使用クレームは、rbdデバイスをポッドにマウントすることでした。

動的プロビジョニング用のcephストレージクラスを使用するように設定するとします。そのpvclaimのための以下のエラーを与える。

E0623 00:22:30.520160  1 rbd.go:317] rbd: create volume failed, err: failed to create rbd image: executable file not found in $PATH, command output: 
W0623 00:22:45.513291  1 rbd_util.go:364] failed to create rbd image, output 
E0623 00:22:45.513308  1 rbd.go:317] rbd: create volume failed, err: failed to create rbd image: executable file not found in $PATH, command output: 
W0623 00:22:45.516768  1 rbd_util.go:364] failed to create rbd image, output 
E0623 00:22:45.516830  1 rbd.go:317] rbd: create volume failed, err: failed to create rbd image: executable file not found in $PATH, command output: 

すべてのkuberernetsクラスタノードにceph commanパッケージをインストールしました。すべてのノードがcentos 7 OSを実行しています。

どうすればこのエラーメッセージを修正できますか? SR

答えて

0

Kubeletがrbd create ...を実行しようとしている

感謝。 rbdコマンドは、kubeletバイナリのPATHにある必要があります。 Kubeletは通常rootとして実行されます。 rootとしてrbd createを実行できるかどうかを確認してください。そうでない場合は、ルートのパス、またはKubeletを起動しているスクリプト(systemd?)の環境に追加してください。

+0

私はそこにチェックします。 [root @ cm-02〜]#ls -l/usr/bin/rbd -rwxr-xr-x 1ルートルート4071088 Apr 10 08:39/usr/bin/rbd – sfgroups

関連する問題