Size: a a a

2020 March 05

GG

George Gaál in Saltstack
Можно в айпимиай засунвть
источник

B

Bandikoot in Saltstack
можно сделать токен для autosign'а миньонов. для бареметал использовать PXE и подготовленные iso (packer, например), для виртуалок — cloud config
источник

n

n3 in Saltstack
Хорошо, а такой вопрос, что-то вроде сервер-дискавери есть? Например автозаполнялка ростера?
источник

GG

George Gaál in Saltstack
ты можешь ростер из консула тянуть
источник

GG

George Gaál in Saltstack
я попросту обожаю статью https://ahus1.github.io/saltconsul-examples/tutorial.html но это немного про другое, конечно
источник

n

n3 in Saltstack
А вот это очень интересно
источник

n

n3 in Saltstack
Консул есть
источник
2020 March 06

MK

Maksim Kavpush in Saltstack
Никто не сталкивался с тем, что salt при test.ping на группу миньонов из 40 шт стабильно возвращает 6-10 NoResponse?
источник

GG

George Gaál in Saltstack
нет
источник

GG

George Gaál in Saltstack
проблем с сетью нет ?
источник

MK

Maksim Kavpush in Saltstack
Нет.
источник

MK

Maksim Kavpush in Saltstack
Причем если по job.lookup_jid смотреть джобу вывод полный
источник

GG

George Gaál in Saltstack
Таймауты крутил ?
источник

MK

Maksim Kavpush in Saltstack
Делаешь cmd.run на два миньона. В трети запусков один возращает отвал по таймауту. В джобе есть ответ обоих всегда
источник

MK

Maksim Kavpush in Saltstack
George Gaál
Таймауты крутил ?
Который крутить?
источник

GG

George Gaál in Saltstack
источник

GG

George Gaál in Saltstack
предполагаю, что эти
источник

MK

Maksim Kavpush in Saltstack
Спасибо. Покручу
источник

KP

Kirill Proskurin in Saltstack
Salt features two timeout parameters called timeout and gather_job_timeout that are relevant during the execution of Salt commands and jobs - it does not matter whether they are triggered using the command line interface or API. These two parameters are explained in the following article.

This is a normal workflow when all minions are well reachable:

A salt command or job is executed:

salt '*' test.ping
Salt master publishes the job with the targeted minions into the Salt PUB channel.

Minions take that job and start working on it.

Salt master is looking at the Salt RET channel to gather responses from the minions.

If Salt master gets all responses from targeted minions, then everything is completed and Salt master will return a response containing all the minion responses.

If some of the minions are down during this process, the workflow continues as follows:

If timeout is reached before getting all expected responses from the minions, then Salt master would trigger an additional job (a Salt find_job job) targeting only pending minions to check whether the job is already running on the minion.

Now gather_job_timeout is evaluated. A new counter is now triggered.

If this new find_job job responses that the original job is actually running on the minion, then Salt master will wait for that minion’s response.

In case of reaching gather_job_timeout without having any response from the minion (neither for the initial test.ping nor for the find_job job), Salt master will return with only the gathered responses from the responding minions.
источник

KP

Kirill Proskurin in Saltstack
Но вообще я почти убежден что где-то в соли есть какие-то проблемы с gather_job_timeout.
источник