Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uppermission denied since kernel upgrade from kernel-3.10.0-514.16.1.el7.x86_64 to kernel-3.10.0-514.21.1.el7.x86_64 #25193
Comments
ansibot
added
affects_2.3
bug_report
needs_triage
labels
May 31, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
robbmanes
May 31, 2017
In the event it helps, feel free to ignore:
# ansible --version
ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.5 (default, Aug 2 2016, 04:20:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]
# uname -r
3.10.0-514.21.1.el7.x86_64
# getenforce
Enforcing
Although it seems like mine works (I tried from EPEL and built from git both):
# ansible -i hosts webservers -m setup
[works]
I don't have the facts module handy though so I just used setup. Judging from the calltrace ansible is just creating a workqueue using the multiprocessing module so I'd suspect that ansible isn't at fault here.
# python
Python 2.7.5 (default, Aug 2 2016, 04:20:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import multiprocessing
>>> _final_q = multiprocessing.Queue()
>>> type(_final_q)
<class 'multiprocessing.queues.Queue'>
Note this is creating the queue which does use a semaphore in the multiprocessing module, here:
class SemLock(object):
def __init__(self, kind, value, maxvalue):
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
debug('created semlock with handle %s' % sl.handle)
self._make_methods()
Long shot, but perhaps something changed with your semaphore permissions? I note this person had similar problems. Note mine, which is working, is like this:
# ls -ld /dev/shm
drwxrwxrwt. 2 root root 40 May 31 11:33 /dev/shm
That being said, I am not sure why one kernel would be affected and the other wouldn't if the above is true. Maybe the ramdisks are different when you reboot between kernels and you can rebuild them with dracut -f?
If it keeps happening despite right semaphore permissions perhaps someone else can chime in with a better idea. Sorry if this perhaps veers us off course.
robbmanes
commented
May 31, 2017
•
|
In the event it helps, feel free to ignore:
Although it seems like mine works (I tried from EPEL and built from git both):
I don't have the facts module handy though so I just used setup. Judging from the calltrace ansible is just creating a workqueue using the multiprocessing module so I'd suspect that ansible isn't at fault here.
Note this is creating the queue which does use a semaphore in the multiprocessing module, here:
Long shot, but perhaps something changed with your semaphore permissions? I note this person had similar problems. Note mine, which is working, is like this:
That being said, I am not sure why one kernel would be affected and the other wouldn't if the above is true. Maybe the ramdisks are different when you reboot between kernels and you can rebuild them with If it keeps happening despite right semaphore permissions perhaps someone else can chime in with a better idea. Sorry if this perhaps veers us off course. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ledzepp4eva
Jun 1, 2017
Hey @robbmanes
liam@folk: ~/cdn-ddos ls -ld /dev/shm
drwxr-xr-t. 2 root root 60 Jun 1 06:52 /dev/shm
liam@folk: ~/cdn-ddos sudo chmod 1777 /dev/shm
liam@folk: ~/cdn-ddos ls -ld /dev/shm
drwxrwxrwt. 2 root root 60 Jun 1 06:52 /dev/shm
and now it runs.
I will have a look through the kernel change logs to see what has changed there, but thank you very much for your help.
Liam
ledzepp4eva
commented
Jun 1, 2017
|
Hey @robbmanes
and now it runs. I will have a look through the kernel change logs to see what has changed there, but thank you very much for your help. Liam |
ledzepp4eva commentedMay 31, 2017
•
edited
ISSUE TYPE
COMPONENT NAME
ansible
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Red Hat Enterprise Linux Server release 7.3 (Maipo)
3.10.0-514.21.1.el7.x86_64
SUMMARY
STEPS TO REPRODUCE
Since the kernel update all playbooks I try to run through the error below
Running any ansible commands for example:
ansible -i playbooks/staging.hosts example.org -m factsEXPECTED RESULTS
I would get facts back from the server
ACTUAL RESULTS
However if I do downgrade the kernel back it works fine. Please let me know if you believe this isn't any ansible issue and I can speak to redhat about this.
I do run selinux, but setting this to permissive still ends in the same result.
Thanks,
Liam