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

virtualbmc installation fails with "libvirt-python requires Python 3.x to build" #382

Closed valleedelisle closed 4 years ago

valleedelisle commented 4 years ago

This issue [1] started today, yesterday it was working fine. I suspect that this commit is the root cause.

[1]

TASK [vbmc : Install python-virtualbmc with pip] *******************************
10:10:03 |   | task path: /usr/local/lib/python3.5/dist-packages/infrared/common/roles/vbmc/tasks/install.yml:39
10:10:08 |   | ERROR   Playbook "/home/rundeck/.infrared/plugins/tripleo-overcloud/main.yml" failed!
10:10:08 |   | fatal: [undercloud-0 -> dell-r740-2.gsslab.rdu2.redhat.com.]: FAILED! => {"changed": false, "cmd": ["/root/.virtualenvs/vbmc/bin/pip2", "install", "virtualbmc==1.6.0"], "msg": "stdout:   No LICENSE.txt / LICENSE found in source\nNew python executable in /root/.virtualenvs/vbmc/bin/python\nInstalling setuptools, pip, wheel...\ndone.\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  Using cached pyghmi-1.5.3-py2.py3-none-any.whl (206 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-xb0Xyu/libvirt-python/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-xb0Xyu/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-xb0Xyu/libvirt-python/pip-egg-info\n         cwd: /tmp/pip-install-xb0Xyu/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"}
valleedelisle commented 4 years ago

Works for me.