Bug 2125402

Summary: [RHOSP 17.1] Install of openstack-ceilometer-ipmi results in an error message
Product: Red Hat OpenStack Reporter: Jason Joyce <jjoyce>
Component: openstack-ceilometerAssignee: Leif Madsen <lmadsen>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: high Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: apevec, jschluet, lmadsen, mmagr, mrunge
Target Milestone: gaKeywords: Triaged
Target Release: 17.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-ceilometer-16.0.2-1.20221116071130.2569c99.el9ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2141092 (view as bug list) Environment:
Last Closed: 2023-08-16 01:12:09 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:
Bug Depends On:    
Bug Blocks: 2141092    

Description Jason Joyce 2022-09-08 20:44:20 UTC
Description of problem:
When installing openstack-ceilometer-ipmi the following error message is emited:

Failed to preset unit: Unit file openstack-ceilometer-alarm-ipmi.service does not exist.

Version-Release number of selected component (if applicable):
This appears in the 17.0 version of the package: openstack-ceilometer-ipmi-16.0.2-0.20220610070417.2569c99.el9ost

How reproducible:

Steps to Reproduce:
1. dnf install openstack-ceilometer-ipmi or rpm -i openstack-ceilometer-ipmi-16.0.2-0.20220610070417.2569c99.el9ost.rpm

Actual results:
"Failed to preset unit: Unit file openstack-ceilometer-alarm-ipmi.service does not exist." is emitted from the command-line

Expected results:
No warnings or failures are emitted.

Additional info:
This looks like a packaging issue. https://pkgs.devel.redhat.com/cgit/rpms/openstack-ceilometer/tree/openstack-ceilometer.spec?h=rhos-17.0-rhel-9#n393 is where that unit is being preset. This was found during 17.0 packaging checks and appears to impact releases all the way back to OSP 10.

Comment 1 Martin Magr 2022-09-14 15:14:23 UTC
Please verify that this result for all supported releases.

Comment 2 Leif Madsen 2022-10-26 20:33:44 UTC
I was looking through this and I think the fix is that https://pkgs.devel.redhat.com/cgit/rpms/openstack-ceilometer/tree/openstack-ceilometer.spec?h=rhos-17.0-rhel-9#n393 just needs to remove the word "alarm" here.

Will need to test this to verify, but it's looking like maybe one line got lost in a component rename.

Comment 4 Leif Madsen 2022-11-08 18:22:42 UTC
Working this via midstream RDO at https://review.rdoproject.org/r/c/openstack/ceilometer-distgit/+/46029 with cherry-picks targeting wallaby and train once reviewed and merged.

Comment 5 Leif Madsen 2022-11-15 15:55:46 UTC
All changes merged upstream. Just needs import for RHOSP 17.1.

Comment 10 Leonid Natapov 2023-05-07 15:34:09 UTC
from the openstack-ceilometer.spec file

# Collector service has been removed but not replaced
Provides:         openstack-ceilometer-collector = %{epoch}:%{version}-%{release}
Obsoletes:        openstack-ceilometer-collector < %{epoch}:%{version}-%{release}

ceilometer API obsolete reference has been removed.

Comment 18 errata-xmlrpc 2023-08-16 01:12:09 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 (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), 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-2023:4577