How to monitor progress of salt-minion

780 views
Skip to first unread message

Flavio Castelli

unread,
Jun 16, 2014, 4:31:35 PM6/16/14
to salt-...@googlegroups.com
I'm using salt to configure a bunch of machines which are provisioned using kickstart. Once the minion is registered I immediately trigger the execution of state.highstate. This causes the minion to install tons of packages, configuration files and even handle some service.

Is there a way to know what is going on a certain minion? Right now I have just to ssh into the minion and guess what is going on by looking at the output of top...

Cheers
Flavio

Thomas Jackson

unread,
Jun 17, 2014, 11:37:13 AM6/17/14
to salt-...@googlegroups.com
Yes there is! Most everything in salt fires an event. During high state all steps within it fire an event on the minion and master that says which step it was (and how many total). With this you can create a progress bar and/or see where in the execution you are.

Flavio Castelli

unread,
Jun 18, 2014, 4:43:22 PM6/18/14
to salt-...@googlegroups.com
On Tuesday, June 17, 2014 5:37:13 PM UTC+2, Thomas Jackson wrote:
Yes there is! Most everything in salt fires an event. During high state all steps within it fire an event on the minion and master that says which step it was (and how many total). With this you can create a progress bar and/or see where in the execution you are.

I attached to the ZMQ bus on the master and I looked at all the events passing through it while the hightstate was performed. I saw several events, but I didn't see anything you mentioned. Did I look in the wrong place?

Cheers
Flavio

Mike Place

unread,
Jun 18, 2014, 4:50:44 PM6/18/14
to salt-...@googlegroups.com
I think you still need to have 'state_events: True' in the master and minion config. I haven't looked lately to ensure that's still the case, but it probably still is.

-mp


--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages