salt icon indicating copy to clipboard operation
salt copied to clipboard

3006.6 unresponsive minions

Open SwimGeek opened this issue 1 year ago • 4 comments

Description

Every time there is a new Salt release, I run a salt command to upgrade all my servers:

salt '*' pkg.list_upgrades

About 1/2 the servers fail to get back to a state where the salt minion connects back to the controller.

Then I have to manually log into each server and restart the salt minion.

Please can this be tested and improved.

Setup

  • [x] classic packaging
  • [x] onedir packaging

Debian 12, with packages from the Salt repo.

SwimGeek avatar Feb 11 '24 15:02 SwimGeek

@SwimGeek Can you please try setting request_channel_timeout: 60 in your minions' config? I believe that timeout un-intentionally got changed from 60 to 30.

dwoz avatar Feb 11 '24 21:02 dwoz

Hi

Did a web search for 'request_channel_timeout' and searched through some config files. Did not find much.

Added to config and restarted. Seems to work.

Where do I read about this config option?

SwimGeek avatar Feb 13 '24 05:02 SwimGeek

Hi

Did a web search for 'request_channel_timeout' and searched through some config files. Did not find much.

Added to config and restarted. Seems to work.

Where do I read about this config option?

https://docs.saltproject.io/en/latest/ref/configuration/minion.html#request-channel-timeout

whytewolf avatar Feb 16 '24 22:02 whytewolf

Thanks. Will test this when the next round of Salt upgrades are available.

SwimGeek avatar Feb 17 '24 10:02 SwimGeek

Related to #66061, closing this as it sounds like it's resolved for now.

dwoz avatar Feb 20 '24 06:02 dwoz

Hi, I tested by upgrading to 3006.7.

Upgraded 4 minions, all had minion config with 'request_channel_timeout: 60'

They did not connect to the controller after I sent upgrade with: salt '*' pkg.upgrade

Minion logs show:

2024-02-22 18:35:03,556 [salt.utils.parsers:1065][WARNING ][529109] Minion received a SIGTERM. Exiting.

SwimGeek avatar Feb 22 '24 16:02 SwimGeek

if a salt-minion is one of the things in a pkg.upgrade it normally is not a good idea to do a pkg.upgrade. it will break the upgrade partway through the upgrade because the minion running the upgrade will be stopped.

upgrading a minion should be separate. something along the lines of salt <minion> cmd.run_bg 'salt-call --local pkg.install salt-minion' this command will separate the call from the running minion daemon, you won't get back a response. but will keep the minion from breaking cause it is trying to upgrade a running process which it stops.

whytewolf avatar Feb 22 '24 17:02 whytewolf