Bug 1336540 - Domain name of "undefined" when setting subdomain name for OpenShift deployment
Summary: Domain name of "undefined" when setting subdomain name for OpenShift deployment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: Installation - RHEV
Version: 1.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: ga
: 1.0
Assignee: Dylan Murray
QA Contact: Tasos Papaioannou
Dan Macpherson
URL:
Whiteboard:
Depends On:
Blocks: qci-sprint-17
TreeView+ depends on / blocked
 
Reported: 2016-05-16 19:20 UTC by Tasos Papaioannou
Modified: 2016-09-13 16:29 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-13 16:29:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Full traceback from foreman production log (23.56 KB, text/plain)
2016-05-16 19:22 UTC, Tasos Papaioannou
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1862 0 normal SHIPPED_LIVE Red Hat Quickstart Installer 1.0 2016-09-13 20:18:48 UTC

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


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