-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
pkg module and state not working in Arch Linux #37044
Comments
Given |
Thanks for pointing that out, I don't have the skills to debug this but I think I must look in grains/core.py, is this correct? This is confusing since the grains are set correctly according to grains.get os etc. |
Also to mention you should be able to work around this by specifying the following:
But in your instance replace pkg with the name of the package manager you are using. Also which exact version of arch are you using? Can you paste a version here? And I will see if I can replicate the behavior. thanks |
Hi @Ch3LL , Thanks for the feedback, after manually adding that line things are working again, there is something wrong with the os detection, this issue happens on 3 other servers too.
Arch version
I rolled back updated packages (glib2, python2-setuptools, python2-pyparsing, python2-psutil) to see if things recovered, but no show. As damon-atkins pointed out, there is an issue on Arch notable in the empty --versions output |
Try this please
It's bits of the code from /usr/lib/python2.7/site-packages/salt/version.py |
Bingo?
|
Need you to do all of the above esp.
/usr/lib/python2.7/platform.py comes with python i.e. your OS vendor. I suspect platform.py has not change but something calls or reads has changed. You can also try |
Can you post a before and after one of these |
My bad;
|
You can also try |
Since Arch runs Python2 and 3 aside I had to change a bit Python2
Please let me know if I can help further, this is getting stranger and stranger. |
Whats in this /etc/.installed on a box which works. |
Run this on a box which works |
Hi, /etc/.installed is not available on any server, a working CentOS server shows this;
None of the Arch servers work at the moment. Inspecting /usr/lib/python2.7/platform.py I noticed no support for Arch, leading me to https://bugs.python.org/issue20454 But this is weird, since it was working last week... |
I suggest you build a VM with the old version of Arch which was working. And try and work out the difference. Interesting is the comment in https://bugs.python.org/issue20454
Seems they are telling everyone to use https://pypi.python.org/pypi/distro instead of linux_distribution() |
I have raised an issue for linux_distribution() being left out of future version of python. |
Great, weird thing that this worked at all :) |
hmmm nice find guys. Thanks for all the great investigation work. I'm wondering if your old arch boxes if it had a different python version since that python bug report specifically called out python27 and arch returning empty value for linux_distribution(). Can you check that on your old arch boxes? Either way we need to make sure we can work around this in salt for arch as well. I will label as a bug. Thanks |
I manage 3 Arch instances with Salt, a x64 and 2 ARM architectures, within 1 week I noticed this bug, looking for changes to my systems I noticed the following packages were upgraded usgins Salt.
I reverted the python2 updates, restarted salt, but no results. What's strange is that the os grains etc are detected correctly. |
@githubcdr so i understand correctly this is only occurring on one arch box? not all of them? Is tere differences in python versions between them? |
@Ch3LL no this happens on all Arch boxes, python version is the same. |
An update, after extensive debugging I noticed that running Hubblestack (see hubblestack.io) on an Arch machine causes this problem. After disabling nebula_osquery.py in /var/cache/sat/modules things started working again. @basepi, as maintener of nebula_osquery.py, can you perhaps explain this behaviour? |
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
The pkg state and module won't work on latest Arch Linux. This might be related to an Arch upgrade, since it was working before in current version.
Setup
Latest Arch Linux x64, running salt-zmq 2016.3.3
Steps to Reproduce Issue
The module is loaded and the docs confirm this.
Versions Report
The text was updated successfully, but these errors were encountered: