Bug 1463555

Summary: rhsm subscription broken if 'register to' is set to sat6
Product: Red Hat CloudForms Management Engine Reporter: luke couzens <lcouzens>
Component: UI - OPSAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: abellott, dajohnso, greartes, hkataria, jhardy, lavenel, mpovolny, ncarboni, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: webui
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 23:02:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description luke couzens 2017-06-21 08:44:54 UTC
Description of problem:If you select sat6 for 'Register to' but fill in normal rhsm details validation is successful and it pulls the org name from the server, after clicking save rhsm registration fails.


Version-Release number of selected component (if applicable):5.8.0.17


How reproducible:100%


Steps to Reproduce:
1.provision appliance
2.nav to configuration-settings-region-Red Hat Updates
3.edit registration
4.set 'register to' Red Hat Satellite 6
5.fill in usual rhsm details
6.click validate and save
7.try to register

Actual results:registration hangs, last message shows registering

evm log shows

[----] E, [2017-06-21T03:53:29.472491 #2847:fc9130] ERROR -- : AwesomeSpawn: subscription-manager register exit code: 69
[----] E, [2017-06-21T03:53:29.472614 #2847:fc9130] ERROR -- : AwesomeSpawn: Error: Server does not support environments.
[----] E, [2017-06-21T03:53:29.473033 #2847:fc9130] ERROR -- : MIQ(MiqQueue#deliver) Message id: [12392], Error: [subscription-manager register exit code: 69]
[----] E, [2017-06-21T03:53:29.473174 #2847:fc9130] ERROR -- : [AwesomeSpawn::CommandResultError]: subscription-manager register exit code: 69  Method:[rescue in deliver]
[----] E, [2017-06-21T03:53:29.473241 #2847:fc9130] ERROR -- : /opt/rh/cfme-gemset/gems/awesome_spawn-1.4.1/lib/awesome_spawn.rb:105:in `run!'


Expected results:Validation fails


Additional info:
I don't think we do any validation on whether the host is actually sat6 or not, but when we change the 'register to' drop down to sat6 perhaps the address should change to something like <sat6 hostname>.

Currently the address field name changes from Red Hat Subscription Management Address to Red Hat Satellite 6 Address but the actual hostname itself stays on subscription.rhn.redhat.com

If this changed I would expect validation to fail as it would not be able to authenticate with the server, but checking this that is not the case, if you are using valid rhsm login details everything set to 'bogus' above is ignored during validation.

Comment 2 Nick Carboni 2018-05-07 14:09:31 UTC
If the fix we want here is to change the hostname value in the form when the dropdown for type is changed, I think that would be a UI change.

Reassigning.

Comment 4 CFME Bot 2018-05-22 17:28:03 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/8c1eb1af86b43a1fc530b471b6b3980fbec8cf9a
commit 8c1eb1af86b43a1fc530b471b6b3980fbec8cf9a
Author:     Milan Zazrivec <mzazrivec>
AuthorDate: Tue May 15 08:43:10 2018 -0400
Commit:     Milan Zazrivec <mzazrivec>
CommitDate: Tue May 15 08:43:10 2018 -0400

    Void serverl url input field when switching form to Sat6

    https://bugzilla.redhat.com/show_bug.cgi?id=1463555

 app/controllers/ops_controller/settings/common.rb | 9 +
 1 file changed, 9 insertions(+)

Comment 5 luke couzens 2018-06-15 14:27:48 UTC
Verified in 5.10

Comment 6 errata-xmlrpc 2019-02-07 23:02:34 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-2019:0212