Bug 1336540

Summary: Domain name of "undefined" when setting subdomain name for OpenShift deployment
Product: Red Hat Quickstart Cloud Installer Reporter: Tasos Papaioannou <tpapaioa>
Component: Installation - RHEVAssignee: Dylan Murray <dymurray>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: medium Docs Contact: Dan Macpherson <dmacpher>
Priority: unspecified    
Version: 1.0CC: bthurber, dymurray
Target Milestone: gaKeywords: Triaged
Target Release: 1.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-13 16:29:18 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:
Bug Depends On:    
Bug Blocks: 1342594    
Attachments:
Description Flags
Full traceback from foreman production log none

Description Tasos Papaioannou 2016-05-16 19:20:07 UTC
Description of problem:

When creating a deployment for RHEV + OSE, the OpenShift > Configuration tab shows "undefined" for the domain name:

Set subdomain name for a wildcard entry to point to the OpenShift router.
* Subdomain      *.<entry field>.undefined


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

QCI-1.2-RHEL-7-20160513.t.0

How reproducible:

100%

Steps to Reproduce:
1.) Create new RHEV + OSE deployment.
2.) See "undefined" used as domain name on OpenShift > Configuration tab.

Actual results:

OpenShift router domain name ends in "undefined".

Expected results:

Correct domain name used.

Additional info:

Foreman logs show NoMethError: undefined method `hosts_count' for #<Domain:XXXX>":

==> /var/log/foreman/production.log <==
2016-05-16 14:54:58 [app] [I] Processing by Api::V21::HostgroupsController#index as JSON
2016-05-16 14:54:58 [app] [I]   Parameters: {"apiv"=>"v21"}
2016-05-16 14:54:58 [app] [W] Action failed
 | NoMethodError: undefined method `hosts_count' for #<Domain:0x00000010110c28>
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activemodel-4.1.5/lib/active_model/attribute_methods.rb:435:in `method_missing'
 | /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/attribute_methods.rb:208:in `method_missing'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:88:in `block (2 levels) in attributes'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/active_model_serializers-0.9.3/lib/active_model/serializer.rb:160:in `block in attributes'

Comment 1 Tasos Papaioannou 2016-05-16 19:22:06 UTC
Created attachment 1158083 [details]
Full traceback from foreman production log

Full foreman production.log traceback attached.

Comment 2 Tasos Papaioannou 2016-05-16 20:57:32 UTC
It looks like this is fixed by https://github.com/fusor/foretello_api_v21/commit/7d4de941ddf0dd7ae4ca06afaf34ce721d57dedd , which hasn't made it into a new compose yet.

Comment 3 John Matthews 2016-06-03 17:35:23 UTC
Dylan,

Please check if we are set to move this to ON_QA.
I did a compose on 6/2/2016, assume this was picked up.

Comment 4 Dylan Murray 2016-06-03 17:49:24 UTC
John,

I can confirm this has been fixed and not seen in the latest ISO builds. Moving to ON_QA.

Comment 5 Tasos Papaioannou 2016-06-10 20:18:55 UTC
Verified on QCI-1.2-RHEL-7-20160608.t.0.

Comment 11 errata-xmlrpc 2016-09-13 16:29:18 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/RHEA-2016:1862