[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Ovirt-devel] [PATCH] get rid of dhcp-hooks and use DNS SRV records



Perry N. Myers wrote:
>     Remove use of dhcp options for communicating the location of services to the
>     managed node.  Instead this is done using DNS SRV records.  dhcp exit hooks
>     are only used for setting step-tickers now.  The managed node moves most
>     of what was in exit hooks to a new init script called ovirt.  The devel
>     wui setup now adds the DNS SRV records to the default DNS zone file.
>     
>     Signed-off-by: Perry Myers <pmyers redhat com>

<snip>

> +start() {
> +    echo -n $"Starting ovirt: "
> +    IPA=$(/usr/bin/dig +short -t srv _ipa._tcp.$(/bin/dnsdomainname))
> +    HOST=$(echo $IPA | head -1 | awk '{print $4}')
> +    PORT=$(echo $IPA | head -1 | awk '{print $3}')
> +
> +    mkdir -p /etc/libvirt

I don't think we need this; the libvirt package should own /etc/libvirt, so I'm
pretty sure this will always exist.

Otherwise, this patch looks pretty good.  We don't seem to use _ovirt._tcp DNS
SRV record yet, but we probably will for monitoring in the near future, so leave it.

ACK

Chris Lalancette



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]