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

virtualbmc errors #337

Closed tliron closed 5 years ago

tliron commented 5 years ago

There are two problems. First, is that virtualbmc cannot be installed from PyPI as is because InfraRed tries to install the latest version, and the latest version (1.4.0 from August 9 2018) conflicts with existing Python libraries in the undercloud.

This first problem can be fixed by patching the vbmc role, in the pip command, to install "virtualbmc==1.3.0" instead of plain "virtualbmc".

With that, the Python library can be installed. However, now there is a second problem:

Unable to start service virtualbmc: Job for virtualbmc.service failed because the control process exited with error code. See "systemctl status virtualbmc.service" and "journalctl -xe" for details.

I suspect it might be related to this issue. Meaning that perhaps it's necessary to upgrade to 1.4.0.

What can we do?

tliron commented 5 years ago

Related: the role mentioned above first tries to install python-virtualbmc from the "repo's" (that's a typo, by the way, should be "repos"). But in CentOS the package is called python2-virtualbmc. Perhaps both names should be attempted?

Note: in CentOS, python2-virtualbmc is version 1.2.0 of the library.

tliron commented 5 years ago

I see this commit as related., but it doesn't actually address the first issue I raise here.

rusichen commented 5 years ago

Hi @tliron , Thank you for created issue. This is known issue and has been fixed in infrared master branch , but not propagated into stable branch yet. Please try to use master branch, meantime we'll backport fixes to stable branch. Thanks!

rusichen commented 5 years ago

Hi @tliron if issue resolved for you, please close it. Thanks!