Red Hat Bugzilla – Bug 1463555
rhsm subscription broken if 'register to' is set to sat6
Last modified: 2018-05-18 01:51:11 EDT
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):126.96.36.199
Steps to Reproduce:
2.nav to configuration-settings-region-Red Hat Updates
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: , 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
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.
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.