Bug 858759 - Product and Subscription getting Added and Removed automaticaly
Summary: Product and Subscription getting Added and Removed automaticaly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Michael Stead
QA Contact: Entitlement Bugs
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2012-09-19 15:40 UTC by Paresh Mutha
Modified: 2018-12-02 19:06 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-11-22 22:28:09 UTC
Embargoed:


Attachments (Terms of Use)
rhsm logs from 00737365 - demo55 is the hypervisor (4.08 KB, application/x-gzip)
2012-12-11 16:29 UTC, Jonathan Meeks
no flags Details
rhsm logs from 00737365 - demo57 is the guest w/rhsm issues (3.90 KB, application/x-gzip)
2012-12-11 16:30 UTC, Jonathan Meeks
no flags Details
actual hypervisor from case 0073765 (9.33 KB, application/x-gzip)
2012-12-17 23:13 UTC, Jonathan Meeks
no flags Details
ch-silver sosreport (3.29 MB, application/x-xz)
2013-01-18 21:26 UTC, Jonathan Meeks
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 220163 0 None None None Never

Description Paresh Mutha 2012-09-19 15:40:12 UTC
Description of problem:
After registering the system on RHSM Hosted (subscription.rhn.redhat.com), Products and Subscriptions are automatically Added and Removed. In /var/log/messages we see :

Sep 13 03:21:02 compiler rhsmd: This system is missing one or more valid entitlement certificates. Please run subscription-manager for more information.


Sep 13 18:35:53 compiler subscription-manager: Added subscription for 'Red Hat Enterprise Linux Server, Premium (4 
sockets) (Unlimited guests)' contract '2978570'
Sep 13 18:35:53 compiler subscription-manager: Added subscription for product 'Red Hat Beta'
Sep 13 18:35:53 compiler subscription-manager: Added subscription for product 'Red Hat Enterprise Linux Server'

Sep 13 22:35:57 compiler subscription-manager: Removed subscription for 'Red Hat Enterprise Linux Server, Premium (4 sockets) (Unlimited guests)' contract '2978570'
Sep 13 22:35:57 compiler subscription-manager: Removed subscription for product 'Red Hat Beta'
Sep 13 22:35:57 compiler subscription-manager: Removed subscription for product 'Red Hat Enterprise Linux Server'


Version-Release number of selected component (if applicable):
RHEL 6.3
subscription-manager-0.99.19.4-1.el6_3.x86_64

How reproducible:
Not internally but always reproducible for customer

Steps to Reproduce:
1. Register the guest system (on KVM) on RHSM 
2. Auto Subscribe to products/subscriptions using "subscription-manager register --username=<RHN username> --password=<RHN password> --autosubscribe"

  
Actual results:
Product and Subscription is automatically Removed

Expected results:
Subscribed Products and Subscriptions should persist

Additional info:
Automatic Add and Remove happens everyday for all VMs with host KVM.

Comment 7 Michael Stead 2012-09-20 14:08:53 UTC

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

Comment 8 Michael Stead 2012-09-20 14:13:30 UTC
May have jumped the gun on marking this as a duplicate as the serial numbers appear to change here.

Comment 23 Michael Stead 2012-12-10 14:45:13 UTC
Steps to reproduce the issue with local setup:

This BZ is caused when virt-who updates host's guestIds in a candlepin instance that is running in hosted mode. When reproducing, please be sure to set up a candlepin instance that is configured with: candlepin.standalone = false (in /etc/candlepin/candlepin.conf)

1. Install virt-who on host system
2. Register host consumer via subscription-manager.
3. Register guest consumer via subscription-manager.
4. Subscribe the guest to a 'virtual' entitlement.
5. On the host system, run virt-who to update the hosts guestIds.

I run virt-who as follows so that it will only run once:
sudo virt-who -d -o

The host's entitlement should be revoked when the call completes.

Comment 25 Jonathan Meeks 2012-12-10 22:34:19 UTC
Customer in 00737365 is claiming to not have virt-who installed or running:

virt-who is not installed and is not running:

[root@demo55 ~]# rpm -q virt-who
package virt-who is not installed
[root@demo55 ~]# ps -elf | grep virt-who
0 S root      7615  7377  0  80   0 - 25811 pipe_w 10:28 pts/5    00:00:00 grep virt-who

[root@demo57 ~]# rpm -q virt-who
package virt-who is not installed
[root@demo57 ~]# ps -elf | grep virt-who
0 S root     16289 16124  0  80   0 - 25811 pipe_w 10:28 pts/0    00:00:00 grep virt-who

we did get his RHSM logs in the case, however.

Comment 27 Jonathan Meeks 2012-12-11 16:29:35 UTC
Created attachment 661538 [details]
rhsm logs from 00737365 - demo55 is the hypervisor

Comment 28 Jonathan Meeks 2012-12-11 16:30:32 UTC
Created attachment 661539 [details]
rhsm logs from 00737365 - demo57 is the guest w/rhsm issues

Comment 31 Jonathan Meeks 2012-12-17 23:13:00 UTC
Created attachment 665163 [details]
actual hypervisor from case 0073765

Comment 33 Jonathan Meeks 2013-01-18 21:26:27 UTC
Created attachment 682739 [details]
ch-silver sosreport

Comment 37 Michael Stead 2013-05-02 18:01:15 UTC
This has been fixed by 8c26d506eedc14bd03fa58b15886853e848fa7b9 and is available in candlepin-0.7.24-1+

Comment 40 John Sefler 2013-11-22 22:27:23 UTC
Based on comment 24 and comment 37, this bug belongs to Candlepin, not subscription-manager. Moreover, all the external trackers have been CLOSED and the current candlepin deployed in production is newer than candlepin-0.7.24.


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