[Ovirt-devel] [PATCH server] make dnsmasq start earlier on boot otherwise dbomatic/taskomatic fail due to timeouts
Jason Guiditta
jason.guiditta at gmail.com
Mon Feb 16 16:41:21 UTC 2009
On Mon, Feb 16, 2009 at 11:31 AM, Jeremy Katz <katzj at redhat.com> wrote:
> On Friday, February 13 2009, Joey Boggs said:
> > ---
> > installer/modules/ovirt/manifests/dns.pp | 4 ++++
> > 1 files changed, 4 insertions(+), 0 deletions(-)
> >
> > diff --git a/installer/modules/ovirt/manifests/dns.pp
> b/installer/modules/ovirt/manifests/dns.pp
> > index cbe706a..8fb8045 100644
> > --- a/installer/modules/ovirt/manifests/dns.pp
> > +++ b/installer/modules/ovirt/manifests/dns.pp
> > @@ -66,6 +66,10 @@ define dns::common($mgmt_ipaddr="",
> $prov_ipaddr="",$mgmt_dev="",$prov_dev="") {
> > notify => Service[dnsmasq],
> > }
> >
> > + single_exec {"make_dnsmasq_start_earlier":
> > + command => "/bin/mv /etc/rc3.d/S99dnsmasq
> /etc/rc3.d/S95dnsmasq;/bin/mv /etc/rc5.d/S99dnsmasq /etc/rc5.d/S95dnsmasq",
> > + require => Package["dnsmasq"]
> > + }
> > }
>
> This is going to break in any circumstance that the dnsmasq package is
> upgraded or chkconfig is re-run for various reasons. This really needs
> to be fixed by changing the initscript in the package and not by moving
> symlinks around.
>
> Although, actually, it looks like there's also some support in chkconfig
> for override files -- read the bit on override files and chkconfig
> --override in chkconfig(8) to give a short-term solution until the
> package is changed
>
> Jeremy
>
> I just tested this out, does not work for me. Dnsmasq still starts before
taskomatic, and the files this patch moves do not seem to have actually
moved. Steps taken:
1. update test branch with patch
2. make build (from ovirt dir)
3. make update-app
4. virsh start ovirt-appliance
5. virsh console ovirt-appliance
Result:
Starting ovirt-taskomatic: Error looking up SRV record: wrong number of
arguments (0 for 1)
Error looking up SRV record: wrong number of arguments (0 for 1)
/usr/share/ovirt-server/task-omatic/taskomatic.rb:52:in `initialize': Unable
to determine qpid server from DNS SRV record (RuntimeError)
from /usr/share/ovirt-server/task-omatic/taskomatic.rb:822:in `new'
from /usr/share/ovirt-server/task-omatic/taskomatic.rb:822
[FAILED]
/etc/rc3 and rc5 both still show dnsmasq as 99, and I can see the dns.pp
file in usr/share/ace../ is the new version
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20090216/35ec2747/attachment.htm>
More information about the ovirt-devel
mailing list