Bug 488247

Summary: Sat Proxy command line installer can be executed on a client w/o provisioning entitlement
Product: [Retired] Red Hat Network Reporter: Miroslav Suchý <msuchy>
Component: RHN/BackendAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Network Quality Assurance <rhn-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: RHN DevelCC: cperry, rhn-bugs, vambati
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
URL: na
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 468052 Environment:
Last Closed: 2011-01-14 13:43:13 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: 646890    

Description Miroslav Suchý 2009-03-03 14:35:17 UTC
+++ This bug was initially created as a clone of Bug #468052 +++

Description of problem:

The configure-proxy.sh can be executed on a machine w/o a provisioning entitlement.  The script appears to complete successfully w/o provisioning.  The webui will NOT list any of the needed proxy links w/o provisioning enabled.

So for 5.3 the command line proxy installer should check that the server is provisioning entitled before it proceeds to install. This would be consistent w/ the webui proxy installer.

--- Additional comment from bperkins on 2008-10-29 13:00:38 EDT ---

Seems this was an oversight in original implementation.  This and config managment pieces are all missing (another bug).

--- Additional comment from msuchy on 2009-01-28 09:26:06 EDT ---

Commited as 8836f8d936ee5b320c877112213e4c9c440ed41e

--- Additional comment from msuchy on 2009-02-04 08:51:06 EDT ---

Mass moving ON_QA

Comment 4 Stephen Herr 2010-10-29 19:38:37 UTC
Now that I know how this is actually pretty easy to test.

1) start with an activated and installed proxy server
2) subscribe proxy to the rhn-tools channel
3) yum install spacewalk-proxy-installer
4) deactivate using /usr/bin/rhn-proxy-activate, for example:
"/usr/bin/rhn-proxy-activate --ca-cert /usr/share/rhn/RHNS-CA-CERT --no-ssl --server xmlrpc.rhn.webdev.redhat.com --deactivate"
5) take away provisioning entitlement from server
6) activate using /usr/bin/rhn-proxy-activate: take off the "--deactivate" from the command above

Step 6 should throw a "Proxy needs provisioning entitlements" error. In any environment that does not have this fix yet the proxy will successfully activate.

Comment 5 venkat 2010-11-09 19:27:26 UTC
Verified in webdev.

this is the error we are getting now:

There was a problem activating the RHN Proxy entitlement:
ERROR: upon entitlement/activation attempt: unknown error - <Fault 1047: 'Proxy need provisioning entitlements.'>