Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1635532

Summary: python-virtualbmc package doesn't have all dependencies
Product: Red Hat OpenStack Reporter: Sergii Golovatiuk <sgolovat>
Component: python-virtualbmcAssignee: Ilya Etingof <ietingof>
Status: CLOSED DUPLICATE QA Contact: mlammon
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: bfournie, dtantsur, racedoro, smalleni, tvignaud
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-24 14:57:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sergii Golovatiuk 2018-10-03 07:52:49 UTC
Description of problem:

python-virtualbmc doesn't work after installation from RHOSP14 repositories.

How reproducible:

Always.

Steps to Reproduce:

# sudo yum localinstall -y http://download.lab.bos.redhat.com/rcm-guest/puddles/OpenStack/rhos-release/rhos-release-latest.noarch.rpm
# rhos-release -P 14
# yum install python2-virtualbmc-1.4.0
# systemctl enable virtualbmc
# systemctl start virtualbmc

Actual results:
# systemctl status virtualbmc
● virtualbmc.service - Virtual Baseboard Management Controller Emulation service
   Loaded: loaded (/usr/lib/systemd/system/virtualbmc.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Wed 2018-10-03 09:46:20 CEST; 176ms ago
  Process: 7868 ExecStart=/usr/bin/vbmcd --foreground (code=exited, status=1/FAILURE)
 Main PID: 7868 (code=exited, status=1/FAILURE)

Oct 03 09:46:19 systemd[1]: Unit virtualbmc.service entered failed state.
Oct 03 09:46:19 systemd[1]: virtualbmc.service failed.
Oct 03 09:46:20 systemd[1]: virtualbmc.service holdoff time over, scheduling restart.
Oct 03 09:46:20 systemd[1]: start request repeated too quickly for virtualbmc.service
Oct 03 09:46:20 systemd[1]: Failed to start Virtual Baseboard Management Controller Emulation service.
Oct 03 09:46:20 systemd[1]: Unit virtualbmc.service entered failed state.
Oct 03 09:46:20 systemd[1]: virtualbmc.service failed.

vbmcd is not functioning

Expected results:

vbmcd is up and running

Additional info:

When you run vbmcd manually you'll get

#/usr/bin/vbmcd --foreground
Traceback (most recent call last):
  File "/usr/bin/vbmcd", line 6, in <module>
    from virtualbmc.cmd.vbmcd import main
  File "/usr/lib/python2.7/site-packages/virtualbmc/cmd/vbmcd.py", line 22, in <module>
    from virtualbmc import control
  File "/usr/lib/python2.7/site-packages/virtualbmc/control.py", line 20, in <module>
    import zmq
ImportError: No module named zmq

so python2-virtualbmc-1.4.0 doesn't have python-zmq as dependency in package definition. Also, python-zmq as well as zeromq are not present in RHOSP repositories.

To workaround the problem operator may do the following:
# yum localinstall http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install python-zmq zeromq

Then vbmcd starts working as expected

# systemctl start virtualbmc
# systemctl status virtualbmc
● virtualbmc.service - Virtual Baseboard Management Controller Emulation service
   Loaded: loaded (/usr/lib/systemd/system/virtualbmc.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-10-03 09:51:28 CEST; 5s ago
 Main PID: 7900 (vbmcd)
    Tasks: 3
   CGroup: /system.slice/virtualbmc.service
           └─7900 /usr/bin/python2 /usr/bin/vbmcd --foreground

Oct 03 09:51:28 iloveopenstack.lab.eng.brq.redhat.com systemd[1]: Started Virtual Baseboard Management Controller Emulation service.
Oct 03 09:51:28 iloveopenstack.lab.eng.brq.redhat.com systemd[1]: Starting Virtual Baseboard Management Controller Emulation service...

Comment 7 Sai Sindhur Malleni 2018-10-08 17:20:47 UTC
Seeing this when trying to deploy OSP13 with infrared too.

Comment 10 Bob Fournier 2018-10-24 14:57:07 UTC
Bug for removal - https://bugzilla.redhat.com/show_bug.cgi?id=1642466.

I'm marking this as a duplicate.

*** This bug has been marked as a duplicate of bug 1642466 ***