1

SaltStackウォークスルーを実行して、ec2 クラスターにソルトをセットアップしています。/etc/salt/minionソルト マスターのパブリック DNS を編集して追加しました。

master: ec2-54-201-153-192.us-west-2.compute.amazonaws.com

その後、ミニオンを再起動しました。デバッグモードでは、これにより次が出力されます

$ sudo salt-minion -l debug
[DEBUG   ] Reading configuration from /etc/salt/minion
[INFO    ] Using cached minion ID: localhost.localdomain
[DEBUG   ] loading log_handlers in ['/var/cache/salt/minion/extmods/log_handlers', '/usr/lib/python2.6/site-packages/salt/log/handlers']
[DEBUG   ] Skipping /var/cache/salt/minion/extmods/log_handlers, it is not a directory
[DEBUG   ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG   ] Configuration file path: /etc/salt/minion
[INFO    ] Setting up the Salt Minion "localhost.localdomain"
[DEBUG   ] Created pidfile: /var/run/salt-minion.pid
[DEBUG   ] Chowned pidfile: /var/run/salt-minion.pid to user: root
[DEBUG   ] Reading configuration from /etc/salt/minion
[DEBUG   ] loading grain in ['/var/cache/salt/minion/extmods/grains', '/usr/lib/python2.6/site-packages/salt/grains']
[DEBUG   ] Skipping /var/cache/salt/minion/extmods/grains, it is not a directory
[DEBUG   ] Attempting to authenticate with the Salt Master at 172.31.21.27
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG   ] Loaded minion key: /etc/salt/pki/minion/minion.pem

案の定172.31.21.27、マスターのプライベート IP です。これまでのところ、これは問題ないようです。ウォークスルーによると、次のステップは、マスターでミニオン キーを受け入れることです。

"Now that the minion is started it will generate cryptographic keys and attempt to 
connect to the master. The next step is to venture back to the master server and 
accept the new minion's public key."

ただし、マスター ノードに移動して新しいキーを探すと、保留中の要求が表示されません。

$ sudo salt-key -L
Accepted Keys:
Unaccepted Keys:
Rejected Keys:

また、ping テストでもミニオンは検出されません。

$ sudo salt '*' test.ping

ここで立ち往生しています。起動して実行するには次に何をすればよいですか?

4

2 に答える 2

1

iptables をオフにしsalt-key -Lて、キーが表示されるかどうかを確認します。その場合、ミニオンがマスターに接続できるようにするには、マスターでポート 4505 と 4506 を開く必要があります。lokkit -p tcp:4505 -p tcp:4506これらのポートを開くことができます。

于 2014-05-22T18:51:26.180 に答える