Red Hat Bugzilla – Bug 1077818
Modify installer to accept environment variable for Foreman provisioning interface
Last modified: 2014-05-29 16:31:39 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
Taking this back (didn't notice assignee was changed), since we had already merged it, no time needed on your part Jirka
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
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