[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: ReturnsZero(): command does not return zero. Is classcreatedwith val
From: |
Christian Pearce |
Subject: |
RE: ReturnsZero(): command does not return zero. Is classcreatedwith value of false? |
Date: |
Wed, 28 Apr 2004 14:16:37 -0400 |
I get this Wait for child failed from time to time with my packaging
stuff. I have been trying to isolate it for a while. I sent out an
email about it a little while back.
http://groups.google.com/groups?q=cfengine+wait+for+child&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=mailman.1084.1082670551.1061.help-cfengine%40gnu.org&rnum=1
Any one know what is up?
On Wed, 2004-04-28 at 12:44, Villalovos, John L wrote:
> > Has anything happened on this issue?
> >
> > I just upgraded from 2.0.7p3 to 2.1.5 and now my ReturnsZero
> > statements don't seem to work anymore :(
> >
> >
> > groups:
> >
> > # The web server is called httpd in Red Hat 8.0 forward
> > hasWebServer_rh8 = ( ReturnsZero(/bin/rpm -q --quiet httpd) )
> > # The web server is called apache in Red Hat 7.x
> > hasWebServer_rh7 = ( ReturnsZero(/bin/rpm -q --quiet apache) )
> > # See if phpMyAdmin is installed
> > has_phpMyAdmin = ( ReturnsZero(/bin/rpm -q --quiet
> > phpMyAdmin) )
> >
> > shellcommands:
> >
> > webServer.redhat_7.!hasWebServer_rh7::
> > "/usr/sbin/up2date apache"
> > "/sbin/chkconfig httpd on"
> > "/sbin/service httpd start"
> >
> > webServer.redhat_8.!hasWebServer_rh8::
> > "/usr/sbin/up2date httpd"
> > "/sbin/chkconfig httpd on"
> > "/sbin/service httpd start"
> >
> > # Install phpMyAdmin if a phpMyAdmin server
> > phpMyAdminServer.!has_phpMyAdmin::
> > "/usr/sbin/up2date phpMyAdmin"
> >
> >
> > After upgrading to 2.1.5, none of my ReturnsZero commands are working.
> > The classes are not being created.
>
> I played around with this some more and ran cfagent -d0 -v and found the
> following:
>
> RVAL-FUNCTION ReturnsZero(/bin/rpm -q --quiet httpd)
> HandleFunctionObject(ReturnsZero(/bin/rpm -q --quiet httpd))
> IsBuiltinFunction(ReturnsZero(/bin/rpm -q --quiet httpd))
> IsBuiltinFunction: ReturnsZero(/bin/rpm -q --quiet httpd)
> ExpandVarstring(/bin/rpm -q --quiet httpd)
> HandleFunction: ReturnsZero(/bin/rpm -q --quiet httpd)
> HandleReturnsZero(/bin/rpm -q --quiet httpd)
> cfengine:: Wait for child failed
> ExpandVarstring(XX_CF_opposite_any_XX)
> HandleGroupRVal(XX_CF_opposite_any_XX) group (hasWebServer_rh8), type=0
> [No match of class XX_CF_opposite_any_XX]
>
> So does anyone know why cfengine would have "Wait for child failed"?
> This did NOT happen in 2.0.7. Did the exec code get changed?
>
> Thanks,
> John
--
Christian Pearce
http://www.commnav.com
http://www.perfectorder.com