Red Hat Bugzilla – Bug 488247
Sat Proxy command line installer can be executed on a client w/o provisioning entitlement
Last modified: 2011-01-14 08:43:13 EST
+++ 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 email@example.com 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 firstname.lastname@example.org on 2009-01-28 09:26:06 EDT ---
Commited as 8836f8d936ee5b320c877112213e4c9c440ed41e
--- Additional comment from email@example.com on 2009-02-04 08:51:06 EDT ---
Mass moving ON_QA
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.
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.'>