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.
*** This bug has been marked as a duplicate of bug 854312 ***
May have jumped the gun on marking this as a duplicate as the serial numbers appear to change here.
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.
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.
Created attachment 661538 [details] rhsm logs from 00737365 - demo55 is the hypervisor
Created attachment 661539 [details] rhsm logs from 00737365 - demo57 is the guest w/rhsm issues
Created attachment 665163 [details] actual hypervisor from case 0073765
Created attachment 682739 [details] ch-silver sosreport
This has been fixed by 8c26d506eedc14bd03fa58b15886853e848fa7b9 and is available in candlepin-0.7.24-1+
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.