Closed
Description
Description
I am cross-posting saltstack/salt#62891 because I'm not sure what's happening, but it is related to PHP 8.1.11 and 8.0.24, previous versions worked fine.
I tested on Ubuntu with Python 3.10 and FreeBSD with Python 3.9. Running
salt-call -l all cmd.run 'php-fpm8.1'
on Ubuntu or the equivalent on FreeBSD just hangs. It didn't use to do that.
To reproduce:
- start an Ubuntu instance
- install PHP 8.1:
apt-get install software-properties-common
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php8.1-fpm
- install SaltStack:
sudo apt install python3-pip
sudo pip3 install --upgrade salt
sudo salt-minion
<- run once. it will set up /etc, then it's not needed any more
- run some random command with SaltStack, just to see how it should work:
sudo salt-call -l all cmd.run 'ls'
- run php-fpm with SaltStack, this should just hang, although php-fpm does start:
sudo salt-call -l all cmd.run 'php-fpm8.1'
SaltStack hangs when it gets to this line: https://github.com/saltstack/salt/blob/427718c5aed40b376785ebc4813f5ccd18e07272/salt/utils/timed_subprocess.py#L90 . At that point php-fpm is already running, Salt is just trying to interact with php-fpm.
I wasn't able to reproduce in Python directly.
PHP Version
PHP 8.1.11 and PHP 8.0.24
Operating System
FreeBSD 13.1 and Ubuntu 22.04