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

Bug 1571439

Summary: "subscription-manager list" shows Ceph OSD after updating overcloud compute nodes
Product: Red Hat OpenStack Reporter: Alan Bishop <abishop>
Component: openstack-tripleo-heat-templatesAssignee: Alan Bishop <abishop>
Status: CLOSED CURRENTRELEASE QA Contact: Yogev Rabl <yrabl>
Severity: high Docs Contact:
Priority: high    
Version: 10.0 (Newton)CC: abishop, acanan, ahecox, aschultz, athomas, bcourt, bkearney, csnyder, cylopez, dbecker, elicohen, emacchi, gfidente, hfukumot, jdurgin, joboyer, jschluet, lhh, mburns, morazi, nbarcet, pgrist, rhel-osp-director-maint, scohen, slinaber, srevivo, yrabl
Target Milestone: zstreamKeywords: TestOnly, Triaged, ZStream
Target Release: 9.0 (Mitaka)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-2.0.0-64.el7ost Doc Type: Bug Fix
Doc Text:
When removing the ceph-osd RPM from overcloud nodes that do not require the package, the corresponding Ceph OSD product key was not removed. The subscription manager incorrectly reported that the Ceph OSD product was still installed. The script that handles removing the ceph-osd RPM now also removes the Ceph OSD product key. Note: The script that removes the RPM and product key executes only during the overcloud update procedure. In other words, the product key is removed only when the overcloud node is updated. After removing the ceph-osd RPM, the subscription-manager no longer reports the Ceph OSD product is installed.
Story Points: ---
Clone Of: 1571438 Environment:
Last Closed: 2019-08-29 11:55:59 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: 1571438    
Bug Blocks:    

Description Alan Bishop 2018-04-24 19:27:00 UTC
+++ This bug was initially created as a clone of Bug #1571438 +++

+++ This bug was initially created as a clone of Bug #1571436 +++

+++ This bug was initially created as a clone of Bug #1571435 +++

+++ This bug was initially created as a clone of Bug #1500594 +++

After deploying overcloud compute nodes, "subscription-manager list" shows following message.
It indicates absence of a license for Ceph OSD.

=======================================================================
# subscription-manager list
+-------------------------------------------+
    Installed Product Status
+-------------------------------------------+

Product Name:   Red Hat Enterprise Linux Server
Product Name:   Red Hat Enterprise Linux High Availability (for RHEL Server)
Product ID:     83
Version:        7.1
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:         03/03/17
Ends:           03/03/18

Product Name:   Red Hat Ceph Storage OSD
Product ID:     288
Version:        2.0
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:
=======================================================================

But as you know, there is no need to subscribe Ceph OSD on compute nodes.

We think this is a side effect that director deploys same image for all nodes.
So there is ceph-osd package nevertheless whether the nodes actually need it or not.

Therefore, customer removed ceph-osd package from the node and remove
/etc/pki/product/288.pem file.
After that, "subscription-manager list" does not inform Ceph OSD.

1. Does it a software bug?
   If so, please fix this issue. I think unnecessary packages and pem file should
   be removed automatically during the installation process.

2. Please provide how to fix this issue by hand, publish it as a solution article.

--- Additional comment from Hideshi Fukumoto on 2017-10-11 22:21:14 EDT ---

Additional information:

Customer noticed that there is same problem on OSD nodes.
He thinks OSD nodes should be available with only Ceph license.
But subscription-manager shows lack of "Red Hat Enterprise Linux High Availability" license such as follows.

-------------------------------------------------------------------------------------
Product Name:	Red Hat Enterprise Linux High Availability (for RHEL Server) (★)
Product ID:     83
Version:        7.1
Arch:           x86_64
Status:         Not Subscribed
Status Details: Not supported by a valid subscription.
Starts:
Ends:

Product Name:   Red Hat Ceph Storage OSD
Product ID:     288
Version:        2.0
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:		08/22/17
Ends:           08/22/18

Product Name:   Red Hat Enterprise Linux Server
Product ID:     69
Version:        7.3
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:		08/22/17
Ends:           08/22/18

Product Name:   Red Hat Ceph Storage MON
Product ID:     286
Version:        2.0
Arch:           x86_64
Status:         Subscribed
Status Details:
Starts:		08/22/17
Ends:           08/22/18
--------------------------------------------------------------------------------------------------------

He thinks the problem undering controller/compute and ceph is same.
Director deploys all packages for all role nodes without considering subscription is not same
between OpenStack nodes and Ceph OSD nodes.

Comment 10 Yogev Rabl 2018-09-25 19:09:39 UTC
Verification failed

The update process was completed with the OSD repository set on all of the compute nodes

Comment 11 Alan Bishop 2018-09-27 10:36:49 UTC
Moving back to ON_QA for retest after clarifying test procedure with Yogev.

Comment 13 Yogev Rabl 2019-02-26 19:23:49 UTC
verified with openstack-tripleo-heat-templates-2.0.0-70.el7ost

Comment 15 Lon Hohberger 2019-08-28 10:45:45 UTC
According to our records, this should be resolved by openstack-tripleo-heat-templates-2.0.0-69.el7ost.  This build is available now.