Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1112179

Summary: [rubygem-staypuft] Staypuft-installer not using correct DHCP gateway
Product: Red Hat OpenStack Reporter: Mike Kolesnik <mkolesni>
Component: rhel-osp-installerAssignee: Marek Hulan <mhulan>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: ddomingo, mburns, mhulan, rhos-maint, sgordon
Target Milestone: ga   
Target Release: 5.0 (RHEL 6)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhel-osp-installer-0.0.25-2.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-04 18:35:00 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:

Description Mike Kolesnik 2014-06-23 09:43:38 UTC
Description of problem:
staypuft-installer is taking the host gateway as the DHCP gateway by default, while it should take the IP address of the selected interface.


Version-Release number of selected component (if applicable):
# rpm -qa | grep staypuft
foreman-installer-staypuft-0.0.20-1.el6ost.noarch
ruby193-rubygem-staypuft-0.1.4-1.el6ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Run staypuft-installer
2. Select the internal interface for provisioning
3.

Actual results:
The 'DHCP Gateway' is set to the 'Host Gateway' value.


Expected results:
The 'DHCP Gateway' should be set to the 'IP address' value.


Additional info:

The default behavior is:
# staypuft-installer 

Please select NIC on which you want Foreman provisioning enabled:
1. eth1
2. eth0
?  2
Networking setup:
       Network interface: 'eth0'
              IP address: '192.168.200.1'
            Network mask: '255.255.255.0'
         Network address: '192.168.200.0'
            Host Gateway: '10.35.7.254'
        DHCP range start: '192.168.200.2'
          DHCP range end: '192.168.200.254'
            DHCP Gateway: '10.35.7.254'
           DNS forwarder: '10.35.255.14'
                  Domain: 'staypuft.com'
             Foreman URL: 'https://slimer.staypuft.com'
Configure networking on this machine: y

Comment 1 Marek Hulan 2014-06-24 14:53:47 UTC
Fixed in 0.0.23

Comment 3 Omri Hochman 2014-07-01 17:08:47 UTC
Verified with rhel-osp-installer-0.0.25-5.el6ost.noarch

The default gateway is according the selected NIC - In this case eth1 IP is 192.168.0.1 and the DHCP Gateway is accordingly: 

Please select NIC on which you want Foreman provisioning enabled:
1. eth1
2. eth0
?  1
Networking setup:
       Network interface: 'eth1'
              IP address: '192.168.0.1'
            Network mask: '255.255.255.0'
         Network address: '192.168.0.0'
            Host Gateway: '10.8.31.254'
        DHCP range start: '192.168.0.2'
          DHCP range end: '192.168.0.254'
            DHCP Gateway: '192.168.0.1'
           DNS forwarder: '10.10.160.2'
                  Domain: 'lab.eng.rdu2.redhat.com'
             Foreman URL: 'https://staypuft.lab.eng.rdu2.redhat.com'
           NTP sync host: '0.rhel.pool.ntp.org'
Configure networking on this machine: ✓
Configure firewall on this machine: ✓

Comment 6 errata-xmlrpc 2014-08-04 18:35:00 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.

http://rhn.redhat.com/errata/RHEA-2014-1003.html