Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1218549 - katello-installer capsule module does not expose dhcp_option_domain dhcp parameter
Summary: katello-installer capsule module does not expose dhcp_option_domain dhcp para...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Tazim Kolhar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-05 09:02 UTC by Marek Hulan
Modified: 2017-02-23 20:05 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 14:01:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 10599 0 None None None 2016-04-22 15:14:29 UTC

Description Marek Hulan 2015-05-05 09:02:05 UTC
Description of problem:

When installing Satellite with DHCP Capsule, I don't have a way to configure DHCP "option domain-name" in dhcpd.conf. This means it always gets default value from "domain" fact, which is the domain of host on which I run the installer. When I later provision a host from this Satellite the host is always in the same domain as Capsule primary domain even though I provision him in different domain, which results in duplicate host creation since we create a new host if puppet facts have different hostname that is not in DB yet. Also (because of another issue) we import the same IP in the duplicate host making the DB invalid.

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

katello-installer-2.3.6-1.el6_6sat.noarch

How reproducible:

100%

Steps to Reproduce:
1. run katello-installer to setup provisioning capsule with domain example.com
2. configure provisioning and provision a host through PXE and provision it on example.com
3. check fqdn on provisioned host

Actual results:

you see that fqdn contains domain of capsule server

Expected results:

fqdn should contain example.com as a domain

Additional info:

the scenario is also described in related but different Foreman upstream issue http://projects.theforeman.org/issues/10366

Comment 1 RHEL Program Management 2015-05-05 09:03:37 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Bryan Kearney 2015-05-05 13:12:03 UTC
Why is this an issue?

Comment 4 Marek Hulan 2015-05-05 13:55:19 UTC
Provisioned host gets wrong fqdn if dhcpd is not configure properly.

    [root@withpuppet ~]# facter fqdn
    withpuppet.....redhat.com
    [root@withpuppet ~]# facter domain
    .....redhat.com
    [root@withpuppet ~]# facter hostname
    withpuppet
    [root@withpuppet ~]# hostname
    withpuppet.katellolabs.org
    [root@withpuppet ~]# hostname -f
    hostname: Host name lookup failure
    [root@withpuppet ~]# facter hostname
    withpuppet
    [root@withpuppet ~]# facter domain
    .....redhat.com
    [root@withpuppet ~]# facter fqdn
    withpuppet......redhat.com

after the change in dhcpd.conf it works fine, it's because facter reads the domain from /etc/resolv.conf (using search lines if there's no domain line)

Comment 6 Lukas Zapletal 2015-05-06 07:28:59 UTC
Jan, what am I supposed to reproduce? To verify that DHCP server option is not present?

Comment 7 Eric Helms 2015-05-22 19:12:27 UTC
Created redmine issue http://projects.theforeman.org/issues/10599 from this bug

Comment 8 Eric Helms 2015-05-22 19:23:11 UTC
Proposed upstream fix to the capsule module to add the missing DHCP options:

https://github.com/Katello/puppet-capsule/pull/46

Comment 11 Tazim Kolhar 2015-06-16 07:26:25 UTC
VERIFIED:
# rpm -qa | grep foreman
ruby193-rubygem-foreman_discovery-2.0.0.15-1.el7sat.noarch
foreman-vmware-1.7.2.27-1.el7sat.noarch
rubygem-hammer_cli_foreman_bootdisk-0.1.2.7-1.el7sat.noarch
foreman-debug-1.7.2.27-1.el7sat.noarch
foreman-libvirt-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el7sat.noarch
foreman-compute-1.7.2.27-1.el7sat.noarch
foreman-gce-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman-redhat_access-0.2.0-8.el7sat.noarch
rubygem-hammer_cli_foreman_tasks-0.0.3.4-1.el7sat.noarch
rubygem-hammer_cli_foreman_docker-0.0.3.7-1.el7sat.noarch
puppet-foreman_scap_client-0.3.3-9.el7sat.noarch
foreman-1.7.2.27-1.el7sat.noarch
ruby193-rubygem-foreman_docker-1.2.0.14-1.el7sat.noarch
ruby193-rubygem-foreman_hooks-0.3.7-2.el7sat.noarch
rubygem-hammer_cli_foreman-0.1.4.14-1.el7sat.noarch
foreman-selinux-1.7.2.13-1.el7sat.noarch
foreman-proxy-1.7.2.5-1.el7sat.noarch
foreman-postgresql-1.7.2.27-1.el7sat.noarch
rhsm-qe-2.rhq.lab.eng.bos.redhat.com-foreman-client-1.0-1.noarch
rhsm-qe-2.rhq.lab.eng.bos.redhat.com-foreman-proxy-client-1.0-1.noarch
rhsm-qe-2.rhq.lab.eng.bos.redhat.com-foreman-proxy-1.0-1.noarch
foreman-ovirt-1.7.2.27-1.el7sat.noarch
rubygem-hammer_cli_foreman_discovery-0.0.1.10-1.el7sat.noarch
ruby193-rubygem-foreman-tasks-0.6.12.8-1.el7sat.noarch
ruby193-rubygem-foreman_bootdisk-4.0.2.13-1.el7sat.noarch

steps:
1. run katello-installer to setup provisioning capsule with domain example.com
2. configure provisioning and provision a host through PXE and provision it on example.com
3. check fqdn on provisioned host
fqdn should contain example.com as a domain

Comment 12 Bryan Kearney 2015-08-11 13:27:41 UTC
This bug is slated to be released with Satellite 6.1.

Comment 13 Bryan Kearney 2015-08-12 14:01:57 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


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