Not possible to install mysql-server-wsrep-5.6 with salt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Committed
|
High
|
Dmitry Teselkin |
Bug Description
There is an issue with mysql init.d script that redirects stdout of a process run in the background. This leads to subprocess.Popen process with file descriptor that was piped to a stream from child process existing after child process has exited with 0. Because it's state wasn't checked by parent (it tries to read from that file descriptor) we have one process hanged and another one in defunct state
How to reproduce:
#!/usr/bin/python
import os
import subprocess
args = [
'apt-get', '-q', '-y',
'-o', 'DPkg::
'-o', 'DPkg::
'install', 'mysql-
kwargs = {
'shell': False,
'env': {
'LC_CTYPE': 'C',
'LC_PAPER': 'C',
'PATH': '/usr/local/
'TERM': 'linux',
'PWD': '/',
'LC_NAME': 'C',
'LC_TIME': 'C',
},
'close_fds': True,
'stdout': -1,
'stderr': -1,
'cwd': '/root',
}
print('Creating process')
process = subprocess.
print('
stdout, stderr = process.
Changed in mos: | |
assignee: | nobody → Dmitry Teselkin (teselkin-d) |
tags: | added: non-release |
Couldn't reproduce into clean docker image. Need more data.