edge/community/salt: salt-minion error
Thanks you for bridging alpine linux and salt stack, very appreciated.
Trying to start salt-minion from edge/community give an error.
Steps to reproduce:
(This is tested with lxd, but playing the inline demo.sh on a fresh alpine 3.4 would give the same error)
#!/bin/bash
LOG=alpbug.log
VM=alpbug
cat << EOF > demo.sh
#!/bin/sh
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories
echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
apk update
apk add salt-minion@edge
salt-minion -l debug
EOF
lxc stop $VM > $LOG 2>&1
lxc delete $VM >> $LOG 2>&1
lxc launch images:alpine/3.4 $VM|tee -a $LOG
lxc file push demo.sh $VM/root/demo.sh|tee -a $LOG
lxc exec $VM ash demo.sh |tee -a $LOG
And here is the log:
Creating alpbug
Starting alpbug
fetch http://mirror.yandex.ru/mirrors/alpine//v3.4/main/x86_64/APKINDEX.tar.gz
ERROR: http://mirror.yandex.ru/mirrors/alpine//v3.4/main: temporary error (try again later)
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.4.5 [http://mirror.yandex.ru/mirrors/alpine//v3.4/main]
v3.4.0-4397-g3c1b945 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v3.4.0-4389-g43fc7cb [http://dl-cdn.alpinelinux.org/alpine/edge/community]
1 errors; 12896 distinct packages available
(1/44) Installing libbz2 (1.0.6-r5)
(2/44) Installing libressl2.4-libcrypto@edge (2.4.3-r1)
(3/44) Installing expat (2.1.1-r1)
(4/44) Installing libffi (3.2.1-r2)
(5/44) Installing gdbm (1.11-r1)
(6/44) Installing ncurses-terminfo-base (6.0-r7)
(7/44) Installing ncurses-terminfo (6.0-r7)
(8/44) Installing ncurses-libs (6.0-r7)
(9/44) Installing readline (6.3.008-r4)
(10/44) Installing sqlite-libs (3.13.0-r0)
(11/44) Installing libressl2.4-libssl@edge (2.4.3-r1)
(12/44) Installing python2@edge (2.7.12-r5)
(13/44) Installing py2-backports_abc@edge (0.4-r1)
(14/44) Installing py2-certifi@edge (2016.9.26-r0)
(15/44) Installing py2-singledispatch@edge (3.4.0.3-r0)
(16/44) Installing py2-tornado@edge (4.4.2-r0)
(17/44) Installing yaml (0.1.6-r1)
(18/44) Installing py2-yaml@edge (3.12-r0)
(19/44) Installing py2-markupsafe@edge (0.23-r3)
(20/44) Installing py2-jinja2@edge (2.8-r1)
(21/44) Installing py2-msgpack@edge (0.4.8-r1)
(22/44) Installing gmp (6.1.0-r0)
(23/44) Installing py2-crypto@edge (2.6.1-r1)
(24/44) Installing libgcc (5.3.0-r0)
(25/44) Installing libsodium (1.0.9-r0)
(26/44) Installing libstdc++ (5.3.0-r0)
(27/44) Installing libzmq (4.1.4-r0)
(28/44) Installing py2-zmq@edge (15.4.0-r0)
(29/44) Installing py2-six@edge (1.10.0-r5)
(30/44) Installing py2-requests@edge (2.11.1-r1)
(31/44) Installing py2-futures@edge (3.0.5-r0)
(32/44) Installing py2-cparser@edge (2.14-r2)
(33/44) Installing py2-cffi@edge (1.8.3-r0)
(34/44) Installing ca-certificates (20160104-r4)
(35/44) Installing libssh2 (1.7.0-r0)
(36/44) Installing libcurl (7.50.3-r0)
(37/44) Installing libgit2-libs (0.24.1-r0)
(38/44) Installing libgit2 (0.24.1-r0)
(39/44) Installing py2-pygit2@edge (0.24.1-r3)
(40/44) Installing py2-dateutil@edge (2.5.3-r0)
(41/44) Installing libproc (3.3.9-r3)
(42/44) Installing procps (3.3.9-r3)
(43/44) Installing salt@edge (2016.3.3-r9)
(44/44) Installing salt-minion@edge (2016.3.3-r9)
Executing busybox-1.24.2-r11.trigger
Executing ca-certificates-20160104-r4.trigger
OK: 125 MiB in 60 packages
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Guessing ID. The id can be explicitly set in /etc/salt/minion
[DEBUG ] Found minion id from generate_minion_id(): alpbug.local
[ERROR ] [Errno 2] No such file or directory
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 210, in parse_args
mixin_after_parsed_func(self)
File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 791, in _setup_mp_logging_listener
self._get_mp_logging_listener_queue()
File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 785, in _get_mp_logging_listener_queue
return log.get_multiprocessing_logging_queue()
File "/usr/lib/python2.7/site-packages/salt/log/setup.py", line 776, in get_multiprocessing_logging_queue
__MP_LOGGING_QUEUE = multiprocessing.Queue()
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 218, in Queue
return Queue(maxsize)
File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
self._rlock = Lock()
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 2] No such file or directory
Usage: salt-minion
salt-minion: error: Error while processing <bound method Minion._setup_mp_logging_listener of <salt.cli.daemons.Minion object at 0x7f97f8b68a90>>: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 210, in parse_args
mixin_after_parsed_func(self)
File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 791, in _setup_mp_logging_listener
self._get_mp_logging_listener_queue()
File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 785, in _get_mp_logging_listener_queue
return log.get_multiprocessing_logging_queue()
File "/usr/lib/python2.7/site-packages/salt/log/setup.py", line 776, in get_multiprocessing_logging_queue
__MP_LOGGING_QUEUE = multiprocessing.Queue()
File "/usr/lib/python2.7/multiprocessing/__init__.py", line 218, in Queue
return Queue(maxsize)
File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
self._rlock = Lock()
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 2] No such file or directory
Let me know if you want/need more stuff to help resolve this issue
(from redmine: issue id 6407, created on 2016-10-29)