Bug 819593 - RFE: Redirect /subscriptions/* to /katello/api/*
Summary: RFE: Redirect /subscriptions/* to /katello/api/*
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Miroslav Suchý
QA Contact: Hayk Hovsepyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-07 16:16 UTC by Devan Goodwin
Modified: 2019-09-25 21:11 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Subscription Manager will allow users to specify a hostname for an on-site subscription service. However, various servers use different prefixes for the web application, which might confuse the user. This enhancement standardizes the various server prefixes to "/subscription". This change unifies all servers to use the "/subscription" prefix.
Clone Of:
Environment:
Last Closed: 2012-12-04 19:45:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1543 0 normal SHIPPED_LIVE Important: CloudForms System Engine 1.1 update 2012-12-05 00:39:57 UTC

Description Devan Goodwin 2012-05-07 16:16:35 UTC
Description of problem:

Subscription Manager is being updated to allow the user to specify a hostname for an on-site subscription service to register against. However the various servers all use different prefixes for the web application, which the user is not likely to know. (i.e. /subscription, /katello/api, /headpin/api) 

We would like to standardize on /subscription being the definitive web app prefix across all our products that subscription manager hits.


Ivan's proposed solution is via apache configuration: https://www.redhat.com/archives/katello-devel/2012-May/msg00028.html

Comment 1 Lukas Zapletal 2012-05-09 20:24:34 UTC
So is my understanding correct; rhsm will ship with /subscription by default.

We should still change the prefix for old clients, right?

Comment 2 Devan Goodwin 2012-05-10 15:19:49 UTC
Any properly configured old client should still be fine, as the previous API URL would still exist. The new redirect would be a default for all new clients, but again can be configured in the rhsm.conf file, or using the new gui/cli tools for selecting a server, port, and webapp prefix.

Comment 4 Miroslav Suchý 2012-09-06 09:29:42 UTC
https://github.com/Katello/katello/pull/595

Comment 6 Devan Goodwin 2012-10-03 15:38:57 UTC
Can be tested by using rhsm.conf prefix of /subscriptions.

i.e. register with subscription-manager-gui, specify the katello server by IP or hostname only (it will default to /subscriptions) Or specify katellohostname:port/subscriptions

registration should work, system should appear in katello.

Comment 7 Devan Goodwin 2012-10-03 15:41:51 UTC
Mistake in my previous comment and the title of this but, it's "subscription", not the plural "subscriptions".

Comment 8 Hayk Hovsepyan 2012-10-04 12:29:52 UTC
Verified in revision:
katello-glue-candlepin-1.1.12-12.el6cf.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-1.1.8-6.el6cf.noarch
katello-configure-1.1.9-6.el6cf.noarch
katello-1.1.12-12.el6cf.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-certs-tools-1.1.8-1.el6cf.noarch
katello-glue-pulp-1.1.12-12.el6cf.noarch
katello-selinux-1.1.1-1.el6cf.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-common-1.1.8-6.el6cf.noarch
katello-common-1.1.12-12.el6cf.noarch
katello-agent-1.1.2-1.el6cf.noarch

Server prefix "/subscription" works OK and it registers system.

Comment 10 errata-xmlrpc 2012-12-04 19:45:15 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.

http://rhn.redhat.com/errata/RHSA-2012-1543.html


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