RHSM product certificate gets deleted on yum update
Issue
- we have several RHEL 6.6 installations and use Red Hat Subscription Management.
-
On many systems we also have installed JBoss EAP 6.x via the RPM repository.
-
So under /etc/pki/product we have the following two certificates:
[root@localhost ~]# ls -l /etc/pki/product
-rw-r--r--. 1 root root 2167 Oct 16 12:43 183.pem
-rw-r--r--. 1 root root 2159 Oct 16 11:21 69.pem
[root@localhost ~]# subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: JBoss Enterprise Application Platform
Product ID: 183
Version: 6.0
Arch: x86_64
Status: Subscribed
Status Details:
Starts: ...
Ends: ...
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.6
Arch: x86_64
Status: Subscribed
Status Details:
Starts: ...
Ends: ...
-
In order to install OS patches monthly we have the need to just install updates from rhel-6-server-rpms and not the ones from jb-eap-6-for-rhel-6-server-rpms.
-
Therefore we use:
[root@localhost ~]# yum update --disablerepo=jb-eap-6-for-rhel-6-server-rpms
Loaded plugins: product-id, protectbase, subscription-manager
However after installing updates with this command, the product certificate from JBoss EAP gets deleted:
[root@localhost ~]# ll /etc/pki/product
-rw-r--r--. 1 root root 2159 Oct 16 11:21 69.pem
[root@localhost ~]# subscription-manager list
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.6
Arch: x86_64
Status: Subscribed
Status Details:
Starts: ...
Ends: ...
- But this is not desired, since the subscription needs to stay attached! And the JBoss EAP is obviously still installed!
- Do you have a solution to this problem? We think it might be cause by the product-id yum plugin?
Environment
- Red Hat Enterprise Linux
- 6
- 7
- subscription-manager
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.