Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1193671 - 24 hour guest subscription should be hidden from user
Summary: 24 hour guest subscription should be hidden from user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tom McKay
QA Contact: Li Bin Liu
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-17 21:00 UTC by Tom McKay
Modified: 2017-02-23 20:29 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 05:26:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9422 0 None None None 2016-04-22 16:18:23 UTC
Red Hat Product Errata RHSA-2015:1592 0 normal SHIPPED_LIVE Important: Red Hat Satellite 6.1.1 on RHEL 6 2015-08-12 09:04:35 UTC

Description Tom McKay 2015-02-17 21:00:41 UTC
Built in both katello-koji and brew:

candlepin-common-1.0.21-1.el6
candlepin-common-1.0.21-1.el7
candlepin-0.9.42-1.el7
candlepin-0.9.42-1.el6
gutterball-1.0.11-1.el6
gutterball-1.0.11-1.el7


These builds introduce a fairly major new feature to ease the pain of
virt-who users struggling with guests that can't subscribe after
creation because virt-who hasn't reported their host yet.

Now, when a manifest is imported (upgrading customers will have to
re-import their manifest to use this feature), a temporary pool for
"unmapped guests" will be created. This pool can only be used by guests
whose host is not known, and are less than 24 hours old. They can then
get a 24 hour entitlement from this pool giving virt-who time to report,
at which point the guest will be automatically moved to a suitable
subscription.

Katello action is required due to these new pools that will be
appearing. They effectively should be hidden, and excluded from any
dashboard style totals. This can be done by including this query
parameter in the API call to list pools:

GET
https://localhost:8443/candlepin/owners/test/pools?attribute=unmapped_guests_only:!true

This should be done for 6.1 to avoid customer confusion.

Comment 1 Tom McKay 2015-02-17 21:00:42 UTC
Created from redmine issue http://projects.theforeman.org/issues/9422

Comment 2 Bryan Kearney 2015-03-03 21:05:09 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9422 has been closed
-------------
Thomas McKay
Applied in changeset commit:katello|749c15a3128480592f9e2d6d639bc17802cc6038.

Comment 5 gaoshang 2015-04-07 02:50:44 UTC
This bug has been verified and passed, thanks!

1, Install latest satellite, import manifest with 24Hour subscription
2, In host, make sure virt-who is stoped
3, Register guest to satellite, check 24Hour subscription is available and can be attached.
	# subscription-manager subscribe --pool=8a90c5e64c6903d9014c690fcc1305ce
	Successfully attached a subscription for: Red Hat Enterprise Linux for SAP applications, Premium (8 sockets) (Up to 4 guests)

	# subscription-manager list --consumed
	+-------------------------------------------+
	   Consumed Subscriptions
	+-------------------------------------------+
	Subscription Name:   Red Hat Enterprise Linux for SAP applications, Premium (8 sockets) (Up to 4 guests)
	Provides:            Oracle Java (for RHEL Server)
		             Red Hat Enterprise Linux for SAP
		             Red Hat Enterprise Linux Server
		             Red Hat Beta
	SKU:                 RH0274447
	Contract:            10697951
	Account:             5501040
	Serial:              3754399522345018838
	Pool ID:             8a90c5e64c6903d9014c690fcc1305ce
	Provides Management: No
	Active:              True
	Quantity Used:       1
	Service Level:       PREMIUM
	Service Type:        L1-L3
	Status Details:      Guest has not been reported on any host and is using a temporary unmapped guest subscription.
	Subscription Type:   Standard (Temporary)
	Starts:              12/31/2014
	Ends:                03/31/2015
	System Type:         Virtual

4, Unsubscribe guest, register host to satellite, start virt-who service, check 24Hour subscription is not available

5, In Step 3, change both Satellite server and guest time to 24 Hours later(or just wait 24 hours), check 24 Hour subscription expired, and restart rhsmcertd service and wait minutes, check expired 24 Hour subscription has been removed

Comment 6 Bryan Kearney 2015-08-11 13:37:25 UTC
This bug is slated to be released with Satellite 6.1.

Comment 7 errata-xmlrpc 2015-08-12 05:26:18 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, 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/RHSA-2015:1592


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