I can reproduce it in openstack-ansible all-in-one with tag 17.0.6 using Ubuntu 16.04 Xenial. Here's a detailed output of the failing task: TASK [os_rally : Setup the Rally deployment] *************************************************************************************************************************************************************** task path: /etc/ansible/roles/os_rally/tasks/rally_db_setup.yml:33 Wednesday 18 July 2018 18:03:46 -0300 (0:00:01.374) 0:00:21.409 ******** container_name: "aio1_utility_container-d90e0c62" physical_host: "aio1" Container confirmed Container type "lxc" Using module file /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/modules/commands/command.py container_name: "aio1_utility_container-d90e0c62" physical_host: "aio1" Container confirmed Container type "lxc" <172.29.236.100> ESTABLISH SSH CONNECTION FOR USER: root <172.29.236.100> SSH: ansible.cfg set ssh_args: (-C)(-o)(ControlMaster=auto)(-o)(ControlPersist=60s) <172.29.236.100> SSH: ANSIBLE_HOST_KEY_CHECKING/host_key_checking disabled: (-o)(StrictHostKeyChecking=no) <172.29.236.100> SSH: ansible_password/ansible_ssh_pass not set: (-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no) <172.29.236.100> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u set: (-o)(User=root) <172.29.236.100> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=5) <172.29.236.100> SSH: PlayContext set ssh_extra_args: (-o)(UserKnownHostsFile=/dev/null)(-o)(StrictHostKeyChecking=no)(-o)(ServerAliveInterval=64)(-o)(ServerAliveCountMax=1024)(-o)(Compression=no)(-o)(TCPKeepAlive=yes)(-o)(VerifyHostKeyDNS=no)(-o)(ForwardX11=no)(-o)(ForwardAgent=yes)(-T) <172.29.236.100> SSH: found only ControlPersist; added ControlPath: (-o)(ControlPath=/root/.ansible/cp/53b4b74265) <172.29.236.100> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/53b4b74265 172.29.236.100 'lxc-attach --clear-env --name aio1_utility_container-d90e0c62 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'/usr/bin/python && sleep 0'"'"'"'"'"'"'"'"''"'"'' <172.29.236.100> (1, '\n{"changed": true, "end": "2018-07-18 18:03:47.509716", "stdout": "2018-07-18 18:03:47.426 3596 WARNING rally.common.plugin.discover [-] OpenStack plugins moved to the separate package (see https://pypi.org/project/rally-openstack). In-tree OpenStack plugins will be removed from the Rally main package soon.\\u001b[00m\\nEnv manager got invalid spec: \\n[\\"There is no Platform plugin with name: \'existing@openstack\'\\"]", "cmd": ". /root/openrc\\n . /openstack/venvs/rally-17.0.6/bin/activate\\n /openstack/venvs/rally-17.0.6/bin/rally deployment create --fromenv --name=existing", "failed": true, "delta": "0:00:01.026863", "stderr": "", "rc": 231, "invocation": {"module_args": {"warn": true, "executable": null, "_uses_shell": true, "_raw_params": ". /root/openrc\\n . /openstack/venvs/rally-17.0.6/bin/activate\\n /openstack/venvs/rally-17.0.6/bin/rally deployment create --fromenv --name=existing", "removes": null, "creates": null, "chdir": null, "stdin": null}}, "start": "2018-07-18 18:03:46.482853", "msg": "non-zero return code"}\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar 2016\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 32682\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nmesg: ttyname failed: Inappropriate ioctl for device\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n') fatal: [aio1_utility_container-d90e0c62]: FAILED! => { "changed": true, "cmd": ". /root/openrc\n . /openstack/venvs/rally-17.0.6/bin/activate\n /openstack/venvs/rally-17.0.6/bin/rally deployment create --fromenv --name=existing", "delta": "0:00:01.026863", "end": "2018-07-18 18:03:47.509716", "failed": true, "invocation": { "module_args": { "_raw_params": ". /root/openrc\n . /openstack/venvs/rally-17.0.6/bin/activate\n /openstack/venvs/rally-17.0.6/bin/rally deployment create --fromenv --name=existing", "_uses_shell": true, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "warn": true } }, "msg": "non-zero return code", "rc": 231, "start": "2018-07-18 18:03:46.482853", "stderr": "", "stderr_lines": [], "stdout": "2018-07-18 18:03:47.426 3596 WARNING rally.common.plugin.discover [-] OpenStack plugins moved to the separate package (see https://pypi.org/project/rally-openstack). In-tree OpenStack plugins will be removed from the Rally main package soon.\u001b[00m\nEnv manager got invalid spec: \n[\"There is no Platform plugin with name: 'existing@openstack'\"]", "stdout_lines": [ "2018-07-18 18:03:47.426 3596 WARNING rally.common.plugin.discover [-] OpenStack plugins moved to the separate package (see https://pypi.org/project/rally-openstack). In-tree OpenStack plugins will be removed from the Rally main package soon.\u001b[00m", "Env manager got invalid spec: ", "[\"There is no Platform plugin with name: 'existing@openstack'\"]" ] } PLAY RECAP ************************************************************************************************************************************************************************************************* aio1_utility_container-d90e0c62 : ok=29 changed=0 unreachable=0 failed=1 Wednesday 18 July 2018 18:03:47 -0300 (0:00:01.267) 0:00:22.677 ******** =============================================================================== galera_client : Install pip packages ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.92s /etc/ansible/roles/galera_client/tasks/galera_client_install.yml:41 --------------------------------------------------------------------------------------------------------------------------------------- os_rally : Install requires pip packages ------------------------------------------------------------------------------------------------------------------------------------------------------------ 1.74s /etc/ansible/roles/os_rally/tasks/rally_install.yml:36 ---------------------------------------------------------------------------------------------------------------------------------------------------- os_rally : Check for db ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.58s /etc/ansible/roles/os_rally/tasks/rally_db_setup.yml:16 --------------------------------------------------------------------------------------------------------------------------------------------------- Grant access to the DB for the service -------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.38s /opt/openstack-ansible/playbooks/common-tasks/mysql-db-user.yml:28 ---------------------------------------------------------------------------------------------------------------------------------------- os_rally : Check for existing Rally deployment ------------------------------------------------------------------------------------------------------------------------------------------------------ 1.37s /etc/ansible/roles/os_rally/tasks/rally_db_setup.yml:27 --------------------------------------------------------------------------------------------------------------------------------------------------- os_rally : Setup the Rally deployment --------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.27s /etc/ansible/roles/os_rally/tasks/rally_db_setup.yml:33 --------------------------------------------------------------------------------------------------------------------------------------------------- galera_client : Ensure host can talk to HTTPS apt repos --------------------------------------------------------------------------------------------------------------------------------------------- 1.01s /etc/ansible/roles/galera_client/tasks/galera_client_install_apt.yml:16 ----------------------------------------------------------------------------------------------------------------------------------- apt_package_pinning : Add apt pin preferences ------------------------------------------------------------------------------------------------------------------------------------------------------- 0.97s /etc/ansible/roles/apt_package_pinning/tasks/main.yml:16 -------------------------------------------------------------------------------------------------------------------------------------------------- galera_client : Add keys (primary keyserver) -------------------------------------------------------------------------------------------------------------------------------------------------------- 0.85s /etc/ansible/roles/galera_client/tasks/galera_client_install_apt.yml:27 ----------------------------------------------------------------------------------------------------------------------------------- Create DB for service ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.82s /opt/openstack-ansible/playbooks/common-tasks/mysql-db-user.yml:16 ---------------------------------------------------------------------------------------------------------------------------------------- os_rally : Install distro packages ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.74s /etc/ansible/roles/os_rally/tasks/rally_install.yml:16 ---------------------------------------------------------------------------------------------------------------------------------------------------- galera_client : Install galera distro packages ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.74s /etc/ansible/roles/galera_client/tasks/galera_client_install.yml:24 --------------------------------------------------------------------------------------------------------------------------------------- os_rally : Attempt venv download -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.69s /etc/ansible/roles/os_rally/tasks/rally_install.yml:56 ---------------------------------------------------------------------------------------------------------------------------------------------------- galera_client : Add galera repo --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.67s /etc/ansible/roles/galera_client/tasks/galera_client_install_apt.yml:87 ----------------------------------------------------------------------------------------------------------------------------------- openstack_openrc : Create clouds.yaml file ---------------------------------------------------------------------------------------------------------------------------------------------------------- 0.63s /etc/ansible/roles/openstack_openrc/tasks/main.yml:36 ----------------------------------------------------------------------------------------------------------------------------------------------------- openstack_openrc : Create openrc file --------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.62s /etc/ansible/roles/openstack_openrc/tasks/main.yml:16 ----------------------------------------------------------------------------------------------------------------------------------------------------- galera_client : Drop local .my.cnf file ------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.60s /etc/ansible/roles/galera_client/tasks/galera_client_post_install.yml:16 ---------------------------------------------------------------------------------------------------------------------------------- os_rally : Retrieve checksum for venv download ------------------------------------------------------------------------------------------------------------------------------------------------------ 0.59s /etc/ansible/roles/os_rally/tasks/rally_install.yml:49 ---------------------------------------------------------------------------------------------------------------------------------------------------- os_rally : Create Rally directories ----------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.57s /etc/ansible/roles/os_rally/tasks/rally_pre_install.yml:32 ------------------------------------------------------------------------------------------------------------------------------------------------ os_rally : Create the Rally system user ------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.50s /etc/ansible/roles/os_rally/tasks/rally_pre_install.yml:22 ------------------------------------------------------------------------------------------------------------------------------------------------ EXIT NOTICE [Playbook execution failure] ************************************** =============================================================================== As described in the output, the plugins were moved to https://pypi.org/project/rally-openstack/ To confirm, I installed the plugins inside rally virtualenv and the rest of the playbook worked as expected. workaround: - root@aio1:/opt/openstack-ansible/playbooks# ssh aio1-utility-container-d90e0c62 - root@aio1-utility-container-d90e0c62:~# . /openstack/venvs/rally-17.0.6/bin/activate - root@aio1-utility-container-d90e0c62:~# pip install rally-openstack