redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
99 stars 96 forks source link

Infra based deployment-Command errored out with exit status #383

Open vivek076 opened 4 years ago

vivek076 commented 4 years ago

Hi team,

I am trying to deploy OSP13z9 with the help of Infra but stuck with the below error.Any pointer to overcome this?

TASK [vbmc : Install python-virtualbmc with pip] *********************************************************************************************************************************************
fatal: [undercloud-0 -> 127.0.0.2]: FAILED! => {"changed": false, "cmd": ["/root/.virtualenvs/vbmc/bin/pip2", "install", "virtualbmc==1.6.0"], "msg": "stdout: created virtual environment in 152ms CPython2Posix(dest=/root/.virtualenvs/vbmc, clear=False, global=False) with seeder FromAppData pip=latest setuptools=latest wheel=latest app_data_dir=/root/.local/share/virtualenv/seed-v1 via=copy\nCollecting virtualbmc==1.6.0\n  Using cached virtualbmc-1.6.0-py2.py3-none-any.whl (38 kB)\nCollecting pyghmi>=1.0.22\n  Downloading pyghmi-1.5.6.tar.gz (197 kB)\nCollecting pbr!=2.1.0,>=2.0.0\n  Using cached pbr-5.4.4-py2.py3-none-any.whl (110 kB)\nCollecting libvirt-python!=4.1.0,>=3.7.0\n  Downloading libvirt-python-6.0.0.tar.gz (196 kB)\n\n:stderr: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support\n    ERROR: Command errored out with exit status 1:\n     command: /root/.virtualenvs/vbmc/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-kv43hv/libvirt-python/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-kv43hv/libvirt-python/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-kv43hv/libvirt-python/pip-egg-info\n         cwd: /tmp/pip-install-kv43hv/libvirt-python/\n    Complete output (1 lines):\n    libvirt-python requires Python 3.x to build\n    ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\n"}