Red Hat Bugzilla – Bug 1276086
[libvirt-lxc] process at bootup, which outputs to console, gets stuck
Last modified: 2016-04-26 07:16:36 EDT
Description of problem:
I am creating containers using libvirt-lxc. A process at bootup gets stuck at some point. My usecase is Puppet, but I can reproduce with a loop in bash.
I noticed it is stuck until I connect to the console of the container (virsh -c lxc:/// console id). Then after disconnecting the console, waiting some times, the process gets stuck again.
The more the process outputs to the console, the quicker it becomes stuck.
Version-Release number of selected component (if applicable):
Host and container are CentOS 7.1
Steps to Reproduce:
1. Create an LXC container. For example with the following libvirt.xml
2. Run a server that the container will contact. For example, I use Python simple http server
python -m SimpleHTTPServer
3. Create a task that will run on bootup. For example,
echo "while true ; do date ; curl my-server:8000 ; sleep 1 ; done" >> rootfs/etc/rc.local
chmod +x rootfs/etc/rc.local
echo "StandardOutput=journal+console" >> rootfs/usr/lib/systemd/system/rc-local.service
4. Observe logs on server. They stop after 20-30 requests
Logs on server stop, meaning the process is stuck
Process not stuck
- If connecting to the console, the process gets unstuck for some time
- Services on container seem to work fine. For example I can ping and ssh the container
I would bet on software flow control, but don't know where to begin with that
Are you still seeing this with centos 7.2 packages?
I am not working on it anymore, so I don't have the setup and cannot test
Closing then, if anyone else is still hitting this issue please feel free to reopen