0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

NomadのClient起動時に`client unexpected keys host_volume`

Last updated at Posted at 2019-10-04

遭遇時のバージョン

  • Nomad: 0.9.5

状況

導入

Nomad Clientにhost_volumeを付けて、永続ストレージを使いたかった。
そのため、以下のような設定ファイルを作った。

client {
  ...
  host_volume "volume" {
    path = "/tmp/volume"
  }
  ...
}

Nomad Clientの実行は、特に難しくなく設定ファイルのみを指定した。

sudo nomad agent -config ./client.hcl

現象

上記Nomad Clientの実行時に、以下のエラーが出る。

===> Error loading configuration from ./client.hcl: Error loading client.hcl: client unexpected keys host_volume

Nomadの公式サイトの仕様や、GitHubのソースコード、テストコードでもclient { host_volume [] }があるのに、なぜか解析エラー扱いになる。
また、ACLのhost_volume節も同じように、期待されていないキー扱いになる。

解決

最新版は0.10.0-beta1だったので、このバイナリをインストールしてみたら、解析エラーは出なくなった。
→ソースコードを見るときに、きちんとgitでcloneしとけば、コミットログから違いをもう少し追えたはず。。反省。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?