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

Bug 508334

Summary: checking for available subscriptions with a guest that has no host causes an ISE
Product: [Retired] Red Hat Network Reporter: James Bowes <jbowes>
Component: RHN/RegistrationAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Network Quality Assurance <rhn-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: rhn511CC: acarter, bkearney, dhughes, ggainey, liko, rhn-bugs
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: us=111264 US153
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-16 20:24:00 UTC Type: ---
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:    
Bug Blocks: 510541, 527511    

Description James Bowes 2009-06-26 16:19:15 UTC
If you have no free physical entitlements, and no free FVEs, and you are trying to register a virtual guest that has no host known to RHN, then during the remaining subscriptions call, RHN will ISE, instead of returning 0.

Comment 1 James Bowes 2009-07-17 13:25:15 UTC
FWIW, this has to be a kvm guest, it seems.

Comment 2 Denise Hughes 2009-07-17 20:18:13 UTC
Verified in webdev.

Steps for Testing:
1. ssh root.redhat.com
2. ssh -p 1111 localhost
3. Run rhn_register
4. tail the logs and verify no errors
5. Verify the system is registered in RHN

Comment 3 Denise Hughes 2009-07-30 19:46:41 UTC
Cannot be verified in webqa.  No access to the machine for testing.  Setting status to verified.

Comment 4 James Bowes 2009-09-15 11:42:56 UTC
The change I made for this bug is causing tracebacks in production. Should be an easy fix; the SQL is just plain wrong (see commit 530479)

Comment 6 Grant Gainey 2009-10-20 18:10:20 UTC
TEST PLAN:
=========

* THERE EXISTS an account with NO entitlements remaining
* THERE EXISTS a 5.4 KVM Host system, "HOST"
* THERE EXISTS on that system a KVM guest, "GUEST"
* HOST is NOT REGISTERED to RHN

1) Log in to GUEST
2) Run rhn_register

EXPECTED:
========
Registration fails cleanly, due to no remaining entitlements.  No errors in the logs on the rhnxml box or on GUEST.

3) Give the account entitlements
4) Login to GUEST
5) Run rhn_register

EXPECTED:
========
GUEST registers with hosted

6) Log in to HOST
7) Run rhn_register
8) Give HOST Virtualization entitlement

EXPECTED:
========
HOST shows GUEST as one of its guest systems in WEBUI

Comment 8 Denise Hughes 2009-10-22 16:20:21 UTC
Verified on webdev.

Testopia ID:
https://testopia.devel.redhat.com/bugzilla/tr_show_case.cgi?case_id=13085

Comment 9 Stephen Herr 2009-12-09 18:03:58 UTC
verified on webqa

Note that I can't reproduce the failure on any environment now, so I'll just trust that the test plan in this bz is accurate.

Comment 10 Denise Hughes 2009-12-16 20:24:00 UTC
Fix in production.