Bug 1180313 - ose_installer fails with missing nameserver role for oo-installer
Summary: ose_installer fails with missing nameserver role for oo-installer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: GA
: 5.4.0
Assignee: Tina Fitzgerald
QA Contact: Milan Falešník
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-08 19:56 UTC by Josh Carter
Modified: 2015-06-16 12:47 UTC (History)
5 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 12:47:21 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Josh Carter 2015-01-08 19:56:40 UTC
Description of problem:

ose_installer fails with missing nameserver role for oo-installer 

Choose a target host for the nameserver role:
1. skynet-ose1.usersys.redhat.com (Broker, Node)
2. Add a new host
Type a selection and press <return>: oo-install exited; removing temporary assets.


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

How reproducible:
very

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Requirement/Fix is to  create a nameserver tag within the osepolicy group and tag one of the ose templates.

Comment 2 Josh Carter 2015-01-08 21:27:51 UTC
The ose installer log in /tmp/ will show the following error. 

Deployment error: There must be at least one nameserver in the deployment configuration.
Deployment error: The installer is configured to deploy DNS, but no host has been selected as the DNS host.

Fix is update the ose_tags method to create the nameserver tag. 

RedHat / Portfolio / OpenShift / Installer / Methods / ose_tags

Added the following line 

if $evm.execute('category_exists?', "osepolicy")
  log(:info, "Classification osePOLICY exists")
else
  log(:info, "Classification osePOLICY doesn't exist, creating category")
  $evm.execute('category_create', :name => "osepolicy", :single_value => false, :description => "OSE Policy")

  create_tag("osepolicy","broker","Broker")
  create_tag("osepolicy","msgserver","msgServer")
  create_tag("osepolicy","dbserver","dbServer")
  create_tag("osepolicy","node","Node")
  create_tag("osepolicy", "nameserver", "nameserver")
end

Comment 3 Greg McCullough 2015-01-12 17:04:07 UTC
John - Please review the changes suggested by Josh and if you agree we will get the scripts updated.

Comment 4 John Hardy 2015-01-15 15:18:20 UTC
Agreed to change. thanks

Comment 5 Tina Fitzgerald 2015-01-15 18:55:48 UTC
ose_tags and pres_setup automate methods changed to create the nameserver tag.

diff --git a/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/ose_tags.rb b/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/ose_tags.rb
index 292bdc9..f5d15cb 100644
--- a/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/ose_tags.rb
+++ b/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/ose_tags.rb
@@ -20,6 +20,7 @@ else
   create_tag("osepolicy","msgserver","msgServer")
   create_tag("osepolicy","dbserver","dbServer")
   create_tag("osepolicy","node","Node")
+  create_tag("osepolicy","nameserver","nameserver")
 end

 if $evm.execute('category_exists?', "osestate")
diff --git a/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/pre_setup.rb b/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/pre_setup.rb
index abf533d..9715ae5 100644
--- a/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/pre_setup.rb
+++ b/manageiq/vmdb/db/fixtures/ae_datastore/RedHat/Portfolio/OpenShift/Installer/Methods.class/__methods__/pre_setup.rb
@@ -29,6 +29,7 @@ else
   create_tag("osepolicy","msgserver","msgServer")
   create_tag("osepolicy","dbserver","dbServer")
   create_tag("osepolicy","node","Node")
+  create_tag("osepolicy","nameserver","nameserver")
 end

 if $evm.execute('category_exists?', "osestate")

Comment 9 Milan Falešník 2015-06-02 12:53:53 UTC
Confirmed from Josh, verified in 5.4.0.4 that the nameserver tag is present after running the osetags method.

Comment 11 errata-xmlrpc 2015-06-16 12:47:21 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://rhn.redhat.com/errata/RHBA-2015-1100.html


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