Bug 1624411 - Unable to start service virtualbmc@compute_0 with virtualbmc>=1.4
Summary: Unable to start service virtualbmc@compute_0 with virtualbmc>=1.4
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-virtualbmc
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Ilya Etingof
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-31 13:42 UTC by Bob Fournier
Modified: 2019-01-11 11:53 UTC (History)
6 users (show)

Fixed In Version: python-virtualbmc-1.4.0-0.20180903195742.4e6e901.el7ost
Doc Type: Bug Fix
Doc Text:
During package installation, a bug in the RPM spec for the virtualbmc package caused special users or groups that run the virtualbmc service to not be created. This update fixes the RPC spec to ensure successful user management operations. The virtualbmc service can be successfully started upon package installation.
Clone Of:
Environment:
Last Closed: 2019-01-11 11:51:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gerrithub.io 424564 0 None None None 2018-09-05 07:06:36 UTC
OpenStack gerrit 598095 0 None MERGED Handle VirtualBMC 1.4.0+ setup 2020-12-15 17:54:56 UTC
RDO 16111 0 None None None 2018-09-27 19:23:27 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:53:01 UTC

Description Bob Fournier 2018-08-31 13:42:09 UTC
Description of problem:

With the new virtualbmc 1.4 package different setup steps are required.

Installing it can result in error like the following:

TASK [virtbmc : Create VirtualBMC directories (virtualbmc >= 1.4.0)] **********************************************************************************************************************************************
task path: /home/cgoncalves/dev/repos/openstack/tripleo-quickstart/roles/virtbmc/tasks/configure-vbmc.yml:24
Friday 31 August 2018  11:53:04 +0200 (0:00:00.070)       0:07:20.057 ********* 
failed: [undercloud] (item=/etc/virtualbmc) => {"changed": false, "gid": 0, "group": "root", "item": "/etc/virtualbmc", "mode": "0755", "msg": "chown failed: failed to look up user virtualbmc", "owner": "root", "path": "/etc/virtualbmc", "secontext": "unconfined_u:object_r:etc_t:s0", "size": 6, "state": "directory", "uid": 0}
failed: [undercloud] (item=/var/log/virtualbmc) => {"changed": false, "gid": 0, "group": "root", "item": "/var/log/virtualbmc", "mode": "0755", "msg": "chown failed: failed to look up user virtualbmc", "owner": "root", "path": "/var/log/virtualbmc", "secontext": "unconfined_u:object_r:var_log_t:s0", "size": 6, "state": "directory", "uid": 0}

Comment 1 Ilya Etingof 2018-09-01 20:16:26 UTC
Update: with the latest versions of the linked patches, vbmc issues seem to be resolved.

Comment 2 Ilya Etingof 2018-09-05 07:06:36 UTC
Update: RDO & tripleo-quickstart patches have been merged. Infrared patch has been proposed.

Comment 3 Ilya Etingof 2018-09-27 17:02:56 UTC
Infrared patch has been merged. \o/

Comment 4 Bob Fournier 2018-09-27 19:23:28 UTC
> Infrared patch has been merged. \o/

Great!  Do the patches

Comment 5 Bob Fournier 2018-09-27 19:24:58 UTC
Moving to POST until patches are in a puddle.

Comment 9 Alexander Chuzhoy 2018-10-18 15:26:00 UTC
Verified:

Environment:
python2-virtualbmc-1.4.0-0.20180903195742.4e6e901.el7ost.noarch


root@sealusa34 ~]# yum install python2-virtualbmc
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
rhelosp-14.0-image-build-override                                                                                                                                      | 2.9 kB  00:00:00     
rhelosp-14.0-optools-puddle                                                                                                                                            | 1.2 kB  00:00:00     
rhelosp-14.0-puddle                                                                                                                                                    | 1.3 kB  00:00:00     
rhelosp-rhel-7.5-extras                                                                                                                                                | 3.4 kB  00:00:00     
rhelosp-rhel-7.5-ha                                                                                                                                                    | 3.4 kB  00:00:00     
rhelosp-rhel-7.5-image-build-override                                                                                                                                  | 2.9 kB  00:00:00     
rhelosp-rhel-7.5-server                                                                                                                                                | 3.5 kB  00:00:00     
rhos-release                                                                                                                                                           | 2.9 kB  00:00:00     
rhos-release-extras                                                                                                                                                    | 2.9 kB  00:00:00     
(1/3): rhelosp-14.0-puddle/x86_64/primary                                                                                                                              | 232 kB  00:00:00     
(2/3): rhelosp-rhel-7.5-server/x86_64/updateinfo                                                                                                                       | 2.9 MB  00:00:01     
(3/3): rhelosp-rhel-7.5-server/x86_64/primary_db                                                                                                                       |  50 MB  00:00:22     
rhelosp-14.0-puddle                                                                                                                                                                   850/850
Resolving Dependencies
--> Running transaction check
---> Package python2-virtualbmc.noarch 0:1.4.0-0.20180903195742.4e6e901.el7ost will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                    Arch                           Version                                                          Repository                                   Size
==============================================================================================================================================================================================
Installing:
 python2-virtualbmc                         noarch                         1.4.0-0.20180903195742.4e6e901.el7ost                            rhelosp-14.0-puddle                          37 k

Transaction Summary
==============================================================================================================================================================================================
Install  1 Package

Total download size: 37 k
Installed size: 110 k
Is this ok [y/d/N]: y
Downloading packages:
python2-virtualbmc-1.4.0-0.20180903195742.4e6e901.el7ost.noarch.rpm                                                                                                    |  37 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python2-virtualbmc-1.4.0-0.20180903195742.4e6e901.el7ost.noarch                                                                                                            1/1 
  Verifying  : python2-virtualbmc-1.4.0-0.20180903195742.4e6e901.el7ost.noarch                                                                                                            1/1 

Installed:
  python2-virtualbmc.noarch 0:1.4.0-0.20180903195742.4e6e901.el7ost                                                                                                                           

Complete!

[root@sealusa34 ~]# systemctl start virtualbmc
[root@sealusa34 ~]# systemctl status virtualbmc
● virtualbmc.service - Virtual Baseboard Management Controller Emulation service
   Loaded: loaded (/etc/systemd/system/virtualbmc.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2018-10-18 11:24:39 EDT; 1ms ago
 Main PID: 71303 ((python))
    Tasks: 0
   CGroup: /system.slice/virtualbmc.service

Oct 18 11:24:39 sealusa34.mobius.lab.eng.rdu2.redhat.com systemd[1]: Started Virtual Baseboard Management Controller Emulation service.
Oct 18 11:24:39 sealusa34.mobius.lab.eng.rdu2.redhat.com systemd[1]: Starting Virtual Baseboard Management Controller Emulation service...

Comment 11 Ilya Etingof 2018-11-21 14:13:56 UTC
This bug actually covers at least two bugs: one in virtualbmc service packaging and the other in tripleo quickstart playbook (affecting virtualbmc-based undercloud).

I've proposed a doctext for the first bug. Let me know if you think we should also document the other bug.

Comment 13 errata-xmlrpc 2019-01-11 11:51:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045


Note You need to log in before you can comment on or make changes to this bug.