Bug 1110838 - capsule installer: generated named config file for a domain doesn't seem to be associating any A-record IP with hostname
Summary: capsule installer: generated named config file for a domain doesn't seem to b...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Ivan Necas
QA Contact: Og Maciel
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks: 1144607
TreeView+ depends on / blocked
 
Reported: 2014-06-18 14:59 UTC by Corey Welton
Modified: 2019-09-26 15:44 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1144607 (view as bug list)
Environment:
Last Closed: 2014-09-11 12:18:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7263 0 None None None 2016-04-22 16:12:39 UTC

Description Corey Welton 2014-06-18 14:59:39 UTC
Description of problem:
When running the capsule installer in $some_configuration with DNS/DHCP, the config file located in '/var/named/dynamic/'  seems to get generated without an IP address being associated with the hostname.  The resulting install fails due to named being incorrectly configured/not starting.


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

Satellite-6.0.3-RHEL-7-20140612.1

How reproducible:


Steps to Reproduce:
1.  Run a capsule install with DNS and DHCP options, something like

export FORWARDERS=$(for i in $(cat /etc/resolv.conf |grep nameserver|awk '{print $2}'); do echo --dns-forwarders $i;done)

capsule-installer --parent-fqdn          "qe-blade-05.idm.lab.bos.redhat.com"   --dns "true" $FORWARDERS  --dns-interface eth1  --dns-zone rhq.lab.eng.bos.redhat.com --dhcp "true"  --dhcp-interface eth1  --tftp true  --puppet "true"   --puppetca  "true" --register-in-foreman  "true"  --foreman-oauth-key    "MhWrbms2BTXwBLHXH4ekXKRoUVPxVkAz" --foreman-oauth-secret "XpMwUtBQS2MHanQ4URaXkf8CC4e3Er7d"  --pulp-oauth-secret    "EHx82SprUPcpVMTE2fu4iGEUMH6vH4PE" --certs-tar  "mgmt6.rhq.lab.eng.bos.redhat.com-certs.tar"  --pulp "true" 

2.  Observe failure
3.  Open the dynamic named file (in this case '/var/named/dynamic/db.rhq.lab.eng.bos.redhat.com') and view the hostname line at the bottom.

Actual results:

@ IN NS mgmt6.rhq.lab.eng.bos.redhat.com.

mgmt6.rhq.lab.eng.bos.redhat.com. IN A 

Expected results:


@ IN NS mgmt6.rhq.lab.eng.bos.redhat.com.

mgmt6.rhq.lab.eng.bos.redhat.com. IN A xxx.xxx.xxx.xxx

(where xxx.xxx.xxx.xxx is the IP address)

Additional info:

Interestingly - and possibly a suitable workaround for now - if user manually edits this file and re-runs the install command above, install seems to be successful.

Comment 2 Ivan Necas 2014-08-20 12:53:01 UTC
I have troubles reproducing this issue? Is it possible that the specified interface eth1 was not configured/existed?

Comment 3 Corey Welton 2014-08-20 13:11:46 UTC
eth1 was definitely the interface used on this box.... it tripped me up for a long while because i kept trying to use eth0 before realizing that eth1 was the main interface provided by ifconfig on the system.

We can try reproducing on a different capsule....

Comment 4 Ivan Necas 2014-08-26 12:40:12 UTC
Created redmine issue http://projects.theforeman.org/issues/7263 from this bug

Comment 5 Ivan Necas 2014-08-26 12:44:12 UTC
Fix for not continuing on installation when the ip address is missing proposed here https://github.com/theforeman/puppet-foreman_proxy/pull/117

Comment 6 Ivan Necas 2014-08-26 13:43:29 UTC
I've just noticed that with the basic installation on rhel 7, net-tools are not installed, and when the net-tools are not there, facter doesn't populate the ip addresses right:

facter ipaddress_eth0
# returns nothing
yum install net-tools
facter ipaddress_eth0
# returns the ip address

Comment 7 Ivan Necas 2014-08-27 15:18:46 UTC
The dependency issue was fixed in facter upstream https://github.com/puppetlabs/facter/pull/730/files

Comment 12 Og Maciel 2014-09-01 15:50:46 UTC
VERIFIED by QE

Browser:
=====
* Firefox 31.0 (MacOS)

Build:  
====
* Satellite-6.0.4-RHEL-6-20140829.0

Packages:
======
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.23-1.el6_5.noarch
* candlepin-common-1.0.1-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.23-1.el6_5.noarch
* candlepin-tomcat6-0.9.23-1.el6_5.noarch
* elasticsearch-0.90.10-6.el6sat.noarch
* foreman-1.6.0.42-1.el6sat.noarch
* foreman-compute-1.6.0.42-1.el6sat.noarch
* foreman-gce-1.6.0.42-1.el6sat.noarch
* foreman-libvirt-1.6.0.42-1.el6sat.noarch
* foreman-ovirt-1.6.0.42-1.el6sat.noarch
* foreman-postgresql-1.6.0.42-1.el6sat.noarch
* foreman-proxy-1.6.0.30-1.el6sat.noarch
* foreman-selinux-1.6.0.14-1.el6sat.noarch
* foreman-vmware-1.6.0.42-1.el6sat.noarch
* katello-1.5.0-30.el6sat.noarch
* katello-ca-consumer-cloud-qe-10.idmqe.lab.eng.bos.redhat.com-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-0.0.64-1.el6sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-katello-0.3-4.el6sat.noarch
* pulp-nodes-common-2.4.1-0.5.rc1.el6sat.noarch
* pulp-nodes-parent-2.4.1-0.5.rc1.el6sat.noarch
* pulp-puppet-plugins-2.4.1-0.5.rc1.el6sat.noarch
* pulp-puppet-tools-2.4.1-0.5.rc1.el6sat.noarch
* pulp-rpm-plugins-2.4.1-0.6.beta.el6sat.noarch
* pulp-selinux-2.4.1-0.5.rc1.el6sat.noarch
* pulp-server-2.4.1-0.5.rc1.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* rubygem-hammer_cli-0.1.1-12.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
* rubygem-hammer_cli_import-0.10.2-1.2.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.4-14.el6sat.noarch

Browser:
=====
* Firefox 31.0 (MacOS)

Build:  
====
* Satellite/Satellite-6.0.4-RHEL-7-20140829.0

Packages:
======
* candlepin-0.9.23-1.el7.noarch
* candlepin-common-1.0.1-1.el7.noarch
* candlepin-guice-3.0-2_redhat_1.el7.noarch
* candlepin-scl-1-5.el7.noarch
* candlepin-scl-quartz-2.1.5-6.el7.noarch
* candlepin-scl-rhino-1.7R3-3.el7.noarch
* candlepin-scl-runtime-1-5.el7.noarch
* candlepin-selinux-0.9.23-1.el7.noarch
* candlepin-tomcat-0.9.23-1.el7.noarch
* elasticsearch-0.90.10-6.el7sat.noarch
* foreman-1.6.0.42-1.el7sat.noarch
* foreman-compute-1.6.0.42-1.el7sat.noarch
* foreman-gce-1.6.0.42-1.el7sat.noarch
* foreman-libvirt-1.6.0.42-1.el7sat.noarch
* foreman-ovirt-1.6.0.42-1.el7sat.noarch
* foreman-postgresql-1.6.0.42-1.el7sat.noarch
* foreman-proxy-1.6.0.30-1.el7sat.noarch
* foreman-selinux-1.6.0.14-1.el7sat.noarch
* foreman-vmware-1.6.0.42-1.el7sat.noarch
* katello-1.5.0-30.el7sat.noarch
* katello-certs-tools-1.5.6-1.el7sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-0.0.64-1.el7sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-katello-0.3-4.el7sat.noarch
* pulp-nodes-common-2.4.1-0.5.rc1.el7sat.noarch
* pulp-nodes-parent-2.4.1-0.5.rc1.el7sat.noarch
* pulp-puppet-plugins-2.4.1-0.5.rc1.el7sat.noarch
* pulp-puppet-tools-2.4.1-0.5.rc1.el7sat.noarch
* pulp-rpm-plugins-2.4.1-0.6.beta.el7sat.noarch
* pulp-selinux-2.4.1-0.5.rc1.el7sat.noarch
* pulp-server-2.4.1-0.5.rc1.el7sat.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el7sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el7sat.noarch
* rubygem-hammer_cli-0.1.1-12.el7sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
* rubygem-hammer_cli_import-0.10.2-1.2.el7sat.noarch
* rubygem-hammer_cli_katello-0.0.4-14.el7sat.noarch

Comment 13 Bryan Kearney 2014-09-11 12:18:37 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


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