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

Bug 1077818

Summary: Modify installer to accept environment variable for Foreman provisioning interface
Product: Red Hat OpenStack Reporter: Jason Guiditta <jguiditt>
Component: openstack-foreman-installerAssignee: Jason Guiditta <jguiditt>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: ajeain, breeler, hbrock, morazi, rhos-maint, tdunnon, yeylon
Target Milestone: z4Keywords: OtherQA, ZStream
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-foreman-installer-1.0.6-1.el6ost Doc Type: Enhancement
Doc Text:
Feature: Added a PROVISIONING_INTERFACE environment variable to allow users to specify something other than the inferred default. Reason: Previously, the provisioning interface was assumed to be the secondary interface on the foreman server. This was a bit inflexible and made things difficult if the server had more than 3 interfaces. Result: Users can now specify the above environment variable to use the interface of their choice for provisioning.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-29 20:31:39 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 Jason Guiditta 2014-03-18 16:02:06 UTC
Description of problem: Previously, the provisioning interface was assumed to be the secondary interface on the foreman server.  This was a bit inflexible and made things difficult if the server had more than 3 interfaces.  From the contributed pull request:



"This modifies the installer script to accept an environment variable PROVISIONING_INTERFACE to use, instead of guessing the interface. If no interface specified, defaults to guessing.

This also allows the installer to use the same interface for provisioning as the gateway interface.

Lastly, tweaks the default dhcp range to 50-100, since this interferes with /25 nets. Ideally there should be logic to derive the proper range."


this has already been merged to master, and people in the field have requested similar functionality.  Pull request here:

https://github.com/redhat-openstack/astapor/pull/116

Comment 1 Jason Guiditta 2014-04-01 13:10:05 UTC
Taking this back (didn't notice assignee was changed), since we had already merged it, no time needed on your part Jirka

Comment 8 Omri Hochman 2014-05-05 19:55:37 UTC
Verified with :openstack-foreman-installer-1.0.6-2.el6ost.noarch

(1)Set an IP on eth3 - ifconfig  eth3 10.35.164.244 netmask 255.255.255.0 up
(2)edit /usr/share/openstack-foreman-installer/bin/foreman_server.sh
- FOREMAN_PROVISIONING=true
-FOREMAN_GATEWAY=false
-PROVISIONING_INTERFACE=eth3
(3) run: foreman_server.sh
(4) check on which interface the DHCP is running on :
 ps -ef | grep dhcp
dhcpd    24167     1  0 22:49 ?        00:00:00 /usr/sbin/dhcpd -user dhcpd -group dhcpd eth3
root     24174 19627  0 22:49 pts/2    00:00:00 grep dhcp

Results: 
---------
the provision_interface/dhcp started on the chosen NIc -> eth3

Comment 10 errata-xmlrpc 2014-05-29 20:31:39 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/RHSA-2014-0517.html