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 97 forks source link

virtualenv vbmc issue installing overcloud #355

Closed mrVectorz closed 5 years ago

mrVectorz commented 5 years ago

Facing an issue where it's not using the virtual env[0] 1) it fails to find the package in the repos setup[1] 2) Then sets up a virtualenv in "/home/stack/.virtualenvs/vbmc" 3) Installs vbmc via pip

All vbmc operations after that fail since it does not use the virtenv. Workaround:

[0]

TASK [vbmc : Remove existing Virtual BMCs] ************************************************************************************************************************************************************************
failed: [undercloud-0 -> dell-r640-002.dsal.lab.eng.tlv2.redhat.com] (item=controller-2) => {"changed": true, "cmd": "vbmc stop controller-2\n vbmc delete controller-2", "delta": "0:00:00.005366", "end": "2019-03-12 23:25:56.800305", "item": "controller-2", "msg": "non-zero return code", "rc": 127, "start": "2019-03-12 23:25:56.794939", "stderr": "/bin/sh: vbmc: command not found\n/bin/sh: line 1: vbmc: command not found", "stderr_lines": ["/bin/sh: vbmc: command not found", "/bin/sh: line 1: vbmc: command not found"], "stdout": "", "stdout_lines": []}
failed: [undercloud-0 -> dell-r640-002.dsal.lab.eng.tlv2.redhat.com] (item=controller-1) => {"changed": true, "cmd": "vbmc stop controller-1\n vbmc delete controller-1", "delta": "0:00:00.005169", "end": "2019-03-12 23:26:03.221388", "item": "controller-1", "msg": "non-zero return code", "rc": 127, "start": "2019-03-12 23:26:03.216219", "stderr": "/bin/sh: vbmc: command not found\n/bin/sh: line 1: vbmc: command not found", "stderr_lines": ["/bin/sh: vbmc: command not found", "/bin/sh: line 1: vbmc: command not found"], "stdout": "", "stdout_lines": []}
failed: [undercloud-0 -> dell-r640-002.dsal.lab.eng.tlv2.redhat.com] (item=controller-0) => {"changed": true, "cmd": "vbmc stop controller-0\n vbmc delete controller-0", "delta": "0:00:00.005238", "end": "2019-03-12 23:26:10.221778", "item": "controller-0", "msg": "non-zero return code", "rc": 127, "start": "2019-03-12 23:26:10.216540", "stderr": "/bin/sh: vbmc: command not found\n/bin/sh: line 1: vbmc: command not found", "stderr_lines": ["/bin/sh: vbmc: command not found", "/bin/sh: line 1: vbmc: command not found"], "stdout": "", "stdout_lines": []}
...ignoring

[1]

TASK [vbmc : Install python-virtualbmc from repo's] ***************************************************************************************************************************************************************
fatal: [undercloud-0 -> dell-r640-002.dsal.lab.eng.tlv2.redhat.com]: FAILED! => {"changed": false, "msg": "No package matching 'python-virtualbmc' found available, installed or updated", "rc": 126, "results": ["No package matching 'python-virtualbmc' found available, installed or updated"]}
...ignoring
avishaymahluf commented 5 years ago

Hi @mrVectorz

It seems that you're using an old version of Infrared. The task "Install python-virtualbmc from repo's" does not exist for a while now. It was fixed by the following commit (and had some more fixes since then): https://github.com/redhat-openstack/infrared/commit/2ac1b4ec3fa41bb817fc0c396e37732438a3a7c6

Please try to update your local Infrared version (and perhaps re-install your virtual env) and try again.

Thanks, Avishay