Comment 3 for bug 1524347

Revision history for this message
Dmytro Dovbii (ddovbii) wrote :

Unfortunately, this is not a bug of murano. Murano-agent uses `subprocess` module in order to execute shell scripts [1]
I tried to run the same command locally without murano-agent, but just using subprocess module and ipython:

```
import subprocess
cmd = "cat /dev/urandom | tr -dc 'a-z0-9' | fold -w ${1:-12} | head -n 1"
subprocess.call(cmd, shell=True)

```
and faced this the same problem - hanging of execution. I also tried to use another modules such as `os` or `pexpect` and tried to experiment with different parameters of subprocess functions, but allways saw this behaviour. So, looks like this we can't fix it right now. Please, use another methods of generating a random strings.

1. https://github.com/openstack/murano-agent/blob/master/muranoagent/executors/application/__init__.py#L55-L62