Vagrant: 「間違った要素タイプ」に関するRubyの警告

作成日 2016年11月09日  ·  3コメント  ·  ソース: hashicorp/vagrant

Vagrantバージョン

Vagrant 1.8.7

ホストオペレーティングシステム

Darwin Thrills-iMac 15.6.0 Darwinカーネルバージョン15.6.0:Thu Sep 1 15:01:16 PDT 2016; ルート:xnu-3248.60.11〜2 / RELEASE_X86_64 x86_64

ゲストオペレーティングシステム

Linux localhost.localdomain 3.10.0-327.3.1.el7.x86_64#1 SMP Wed Dec 9 14:09:15 UTC 2015 x86_64 x86_64 x86_64 GNU / Linux

Vagrantfile

(該当なしこれは、Vagrant Upを実行する前に発生します。vagrantplugininstallを使用してプラグインをインストールしているときに発生します)

デバッグ出力

完全なデバッグ出力を含むGitHubGistへのリンクを提供します。
https://www.vagrantup.com/docs/other/debugging.html。 デバッグ出力は
非常に長くなります。 問題にデバッグ出力を貼り付けないでください。貼り付けるだけです。
要旨へのリンク。

[swirsky@Thrills-iMac vm-local-shared (develop)]$ vagrant plugin install salty-vagrant-grains
Installing the 'salty-vagrant-grains' plugin. This can take a few minutes...
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 0 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 1 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 2 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 3 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 4 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 5 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 6 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 7 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 8 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 9 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 10 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: wrong element type String at 11 (expected array)
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: ignoring wrong elements is deprecated, remove them explicitly
/opt/vagrant/embedded/gems/gems/vagrant-1.8.7/plugins/provisioners/salt/provisioner.rb:9: warning: this causes ArgumentError in the next release
Installed the plugin 'salty-vagrant-grains (0.0.2)'!

予想される行動

何が起こったはずですか?

動作しているようですが、これらすべてのルビーエラーメッセージを期待していませんでした

実際の動作

実際に何が起こったのですか?

警告にもかかわらず、すべてが機能しているように見えます

再現する手順

  1. Vagrant1.8.7をインストールします
  2. プラグインインストールコマンドを実行します
  3. ルビーの警告を見る

参考文献

最も参考になるコメント

1.8.6にダウングレードすると、この問題は解消されました(ローカルまたはhashicorpアトラスからボックスを追加できないという他の問題も同様です)

多分1.8.7は撤回されるべきだと思います!

全てのコメント3件

vagrant 1.8.7でも同じ問題が発生します。
Ubuntu 16.04.1 amd64
1) salt-vagrant-demo gitリポジトリをダウンロードします。
2)cd salt-vagrant-demo
3) vagrant statusを実行します(警告が表示されます)。
4) vagrant upを実行します(例外が発生します)。
ここに戻るトレース:
詳細については、要点を参照してください

1.8.6にダウングレードすると、この問題は解消されました(ローカルまたはhashicorpアトラスからボックスを追加できないという他の問題も同様です)

多分1.8.7は撤回されるべきだと思います!

この問題は_30日間_⏳クローズされているため、ロックします。 これは、メンテナがアクティブな問題を見つけて集中するのに役立ちます。

これに似た問題を見つけた場合は、新しい問題を開いて問題テンプレートを完成させてください。これにより、さらに調査するために必要なすべての詳細を取得できます。

このページは役に立ちましたか?
0 / 5 - 0 評価