Chris Lalancette
2008-Sep-10 06:39 UTC
[Ovirt-devel] [PATCH-appliance 0/3]: Allow the WUI to manage the hardware it is running on
Appliance patches for allowing the WUI to manage the hardware it is running on.
Chris Lalancette
2008-Sep-10 06:39 UTC
[Ovirt-devel] [PATCH-appliance 1/3] In the rc.local, attempt to contact the host we are running
Signed-off-by: Chris Lalancette <clalance at redhat.com> --- :100644 100644 4c4c96e... faa0bd4... M ovirt-appliance.ks ovirt-appliance.ks | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/ovirt-appliance.ks b/ovirt-appliance.ks index 4c4c96e..faa0bd4 100644 --- a/ovirt-appliance.ks +++ b/ovirt-appliance.ks @@ -25,9 +25,22 @@ set /files/etc/sysconfig/network-scripts/ifcfg-eth1/DNS1 192.168.50.2 save EOF +# the code to contact the host we are running on and make it configure itself +# note that this has to be done in rc.local (as opposed to ovirt-wui-dev) +# because when ovirt-wui-dev starts, the host-browser is not yet running +cat >> /etc/rc.d/rc.local << \EOF +# Try to contact the host we are running on; if we succeed, we'll use it as +# one of the managed nodes; if not, no big deal +exec 3<> /dev/tcp/192.168.50.1/7777 +echo "AWAKE" 1>&3 +exec 3<> /dev/tcp/192.168.50.1/7777 +echo "IDENTIFY" 1>&3 +EOF + # make sure to update the /etc/hosts with the list of all possible DHCP # addresses we can hand out; dnsmasq uses this sed -i -e 's/management\.priv\.ovirt\.org//' /etc/hosts +echo "192.168.50.1 physical.priv.ovirt.org" >> /etc/hosts echo "192.168.50.2 management.priv.ovirt.org" >> /etc/hosts for i in `seq 3 252` ; do echo "192.168.50.$i node$i.priv.ovirt.org" >> /etc/hosts -- 1.5.4.1
Chris Lalancette
2008-Sep-10 06:39 UTC
[Ovirt-devel] [PATCH-appliance 2/3] Fix up the awk script to *exactly* match the bridge we are looking for.
Signed-off-by: Chris Lalancette <clalance at redhat.com> --- :100755 100755 035dce7... d3800e7... M create-ovirt-appliance create-ovirt-appliance | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/create-ovirt-appliance b/create-ovirt-appliance index 035dce7..d3800e7 100755 --- a/create-ovirt-appliance +++ b/create-ovirt-appliance @@ -220,7 +220,7 @@ fi # Remove old bridge device if it exists sed -i "/# $BRIDGENAME/d" /etc/rc.d/rc.local old_bridge=$(brctl show \ - | awk -v BRIDGENAME=$BRIDGENAME '$1~BRIDGENAME {print $4}') + | awk -v BRIDGENAME=$BRIDGENAME '$1==BRIDGENAME {print $4}') if [ -n "$old_bridge" ]; then echo "Removing old bridge $old_bridge" ifconfig $old_bridge down -- 1.5.4.1
Chris Lalancette
2008-Sep-10 06:39 UTC
[Ovirt-devel] [PATCH-appliance 3/3] Since we are currently hardcoding ovirtbr0 in taskomatic,
Signed-off-by: Chris Lalancette <clalance at redhat.com> --- :100755 100755 d3800e7... 57883e0... M create-ovirt-appliance create-ovirt-appliance | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/create-ovirt-appliance b/create-ovirt-appliance index d3800e7..57883e0 100755 --- a/create-ovirt-appliance +++ b/create-ovirt-appliance @@ -10,7 +10,7 @@ RAM=768 IMGDIR_DEFAULT=/var/lib/libvirt/images NAME_DEFAULT=ovirt-appliance NET_SCRIPTS=/etc/sysconfig/network-scripts -BRIDGENAME=ovirtbr +BRIDGENAME=ovirtbr0 imgdir=$IMGDIR_DEFAULT name=$NAME_DEFAULT -- 1.5.4.1