Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1077818 - Modify installer to accept environment variable for Foreman provisioning interface
Modify installer to accept environment variable for Foreman provisioning inte...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer (Show other bugs)
4.0
Unspecified Unspecified
medium Severity medium
: z4
: 4.0
Assigned To: Jason Guiditta
Omri Hochman
: OtherQA, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-18 12:02 EDT by Jason Guiditta
Modified: 2014-05-29 16:31 EDT (History)
7 users (show)

See Also:
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 16:31:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:0517 normal SHIPPED_LIVE Moderate: openstack-foreman-installer security, bug fix, and enhancement update 2014-05-29 20:26:29 EDT

  None (edit)
Description Jason Guiditta 2014-03-18 12:02:06 EDT
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 09:10:05 EDT
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 15:55:37 EDT
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 16:31:39 EDT
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

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