New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mine_collection not working via pillar in 2018.3 #47911
Comments
@aesposito91 was this working previously and if so what version? There was this issue: #39775 which was fixed in 2017.7.3 by this PR: #41547 but that requires an extra setting. So I'm wondering if you are setting minion_interval in the pillar but its not being set correctly. If you check your minion scheduler does it show the correct amount of minutes you would expect? |
I had success with this same layout in 2017.7.4 and confirmed with a friend on slack that is working on 2017.7.5 via same method. It does appear to properly update the mine_interval on the proxy - schedule: |
ping @mirceaulinic are you seeing this behavior as well? also @saltstack/team-network any ideas here as well? |
Any movement on this issue? I'm seeing similar problems with my proxy minions on |
i have a proxy setup now. Can you clarify the exact steps you run to see this issue? |
Hey @Ch3LL, thanks for the quick reply! For my environment, my proxy host has the following configured:
...and here's a snippet of my minion pillar:
If I run a If I do a
Please let me know if I can provide any additional details. |
thanks for the use case :) unfortunately i do not have access to a device that uses the I did test with my proxy that uses a rest interface with this mine configuration:
and it worked just fine:
This might be related to this issue: #48020 but I feel that might be a longshot. if you can comment out the lines here: #48020 (comment) that was the cause of that issue and see if you still are seeing the issue. Like i said this might be a long shot though. Can you see if you add a different mine configuration if it works? I just want to see if its just these specific Also is there anything in the debug logs when this occurs? |
I was able to get this working manually with mine.update, though I'm not sure why it suddenly started behaving. I'm going to assume it was an issue on my end, but scheduled collection is definitely still not working. No helpful errors when I run the proxy/master in debug mode either, and commenting out the lines in #48020 didn't have any effect. |
and if you use a different mine setting like Also do you see it attempting to run the schedule in the debug logs? |
Just using I never see the
I do periodically see the following at the expected 1m interval:
...but never for |
so i did a bit more trying to replicate this and the closest i could get was I am seeing this error in the proxy log:
and i bisected it to this b23e5a7 using this pillar data:
but it seems its still trying to schedule the job, but can't because of this error on 2018.3 ping @ngrundler do you see this error at all when setting the same pillar data above? Heres a docker container to easy replicate:
ping @garethgreenaway any ideas why i'm seeing this error? |
Confirmed. mine_interval is not updated.
I have a lot of 'Added new job __mine_interval to scheduler' messages in minion log (I changed pillar value). |
i know there was some work in 2018.3.3 around the mine any chance you can try that version? |
We are using stable 2018.3.3 |
im not able to replicate this on 2018.3.3. ping @garethgreenaway do you see anything obvious on the scheduler side of things? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
@### Description of Issue/Question
After migrating to 2018.3 I am not longer able to get mine collection to work automatically, it only works with a manual call of mine.update. It appears others are successful when putting mine_interval and mine_functions inside the proxy file whereas mine (as in me) are declared inside of pillar.
Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Proxy cfg -
Relevant pillar -
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Wait the mine_interval, and see that no mine data has been collected.
Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)Proxy minion and master are both 2018.3.0
$salt --versions-report
Salt Version:
Salt: 2018.3.0
Dependency Versions:
cffi: 1.11.5
cherrypy: Not Installed
dateutil: 2.5.3
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.10
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.8
mysql-python: Not Installed
pycparser: 2.18
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.13 (default, Nov 24 2017, 17:33:09)
python-gnupg: Not Installed
PyYAML: 3.12
PyZMQ: 17.0.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.4.3
ZMQ: 4.1.6
System Versions:
dist: debian 9.3
locale: ANSI_X3.4-1968
machine: x86_64
release: 4.7.1-coreos
system: Linux
version: debian 9.3
The text was updated successfully, but these errors were encountered: