help-cfengine
[Top][All Lists]
Advanced

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

Re: Error when executing cfagent


From: John Sechrest
Subject: Re: Error when executing cfagent
Date: Fri, 20 Feb 2004 07:53:47 -0800



It seems to me that the normal examples that are in the documentation
show this. You establish Classes for each group of machine. This lets
you treat each group of machines the same.

It does not matter if the machines are in the same IP space,
so long as the names/IP's are unique.

If you set the splay time, then you spread out when people connect.

If you define a class for the timing, you can specific when each 
of the machines does what it does. If you want the copy to take place
once a day, you can set a class for that. 

You don't need to worry about the hierarchical distribution of 
files , after the systems are set up, because you really don't 
change your binaries that often.

If you copy once a day and the splay time is set right, you will 
not notice the file movement at all.

I am assuming you have 10M or better network. 



Harish Chauhan <Harish_Chauhan@in.ibm.com> writes:

 % This is a multipart message in MIME format.
 % --=_alternative 004A237F85256E40_=
 % Content-Type: text/plain; charset="US-ASCII"
 % 
 % Hi,
 % 
 % Sorry, here is the full scenerio we are trying to test 

 % Setup  :
 % We got 300 machines divided into various groups. i.e Developer group, 
 % Engineering group, IS group, etc . Each group gets different configuration 
 % files through defined cron jobs. Presently the distribution of binaries, 
 % rpms, etc is done using multi-tier architecture means the main server 
 % distributes the files to the underlying 10 machines and then these 10 
 % machines distibutes the files to remaining 289 machines. 

 % Objective : 
 % We need to replace the above architecture using CFengine but at the same 
 % time we also make sure that network is not fully occupied. We want to have 
 % control on the number of machines getting the updates/files. Also, 
 % machines cannot be differentiated on IP basis. There are machines falling 
 % under different groups in the same IP range.
 % 
 % Note :  The group under which a machine lies is read by the utility from a 
 % flat file.
 % 
 % Requirement : 
 % How our configuration files should look like and how can we execute 
 % different tasks on different set of machines.
 % 
 % 
 % 
 % Package version in use : BerkeleyDB 3.3.11, OpenSSL 0.9.6e and 
 % CFengine2.1.3
 % 
 % 
 % Machine SERVER_1 : Complete installation of all the packages mentioned 
 % above
 % Services running : cfexecd and cfservd
 % /data folder exported for CLIENT machine
 % /data/cfrun.hosts has CLIENT_2 to CLIENT_289 names listed
 % 
 % 
 % Machine CLIENT_2 - CLIENT_289 : Complete installation of all the packages 
 % mentioned above
 % Services running : cfexecd 
 % Mounted /data folder from SERVER_1
 % /opt/cfengine/ppkeys/root-SERVER_1.pub has public key available
 % 
 % 
 % 
 % Please feel free if any other information is required. Looking forward to 
 % your reply. 
 % 
 % Thanks in advance.....
 % 
 % Regards, Harish Chauhan
 % 
 % 
 % 
 % 
 % 
 % John Sechrest <sechrest@peak.org>
 % 02/19/2004 05:00 PM
 %  
 %         To:     Harish Chauhan/India/IBM@IBMIN
 %         cc: 
 %         Subject:        Re: Error when executing cfagent
 % 
 %  
 % 
 % 
 % 
 % We certainly will need to have more information that this.
 % 
 % What system are you running on?
 % What version of cfengine are you running?
 % 
 % Exactly, what steps did you take to set it up?
 % 
 % What exactly does the error say?
 % 
 % without this kind of information (and much more) you will not
 % be able to get any kind of help.
 % 
 % 
 % 
 % Harish Chauhan <Harish_Chauhan@in.ibm.com> writes:
 % 
 %  % --=_mixed 00787E7785256E3F_=
 %  % Content-Type: multipart/alternative;
 %  %               boundary="=_alternative 00787E7985256E3F_="
 %  % 
 %  % 
 %  % --=_alternative 00787E7985256E3F_=
 %  % Content-Type: text/plain; charset="US-ASCII"
 %  % 
 %  % Hi,
 %  % 
 %  % I am getting errors when installing cfengine after cfkey gets executed. 
 % 
 %  % 
 %  % 
 %  % 
 %  % 
 %  % Looking forward to your reply.
 %  % 
 %  % Thanks in advance...
 %  % 
 %  % Regards, harish Chauhan
 %  % --=_alternative 00787E7985256E3F_=
 %  % Content-Type: text/html; charset="US-ASCII"
 %  % 
 %  % 
 %  % <br><font size=3><tt>Hi,</tt></font>
 %  % <br>
 %  % <br><font size=3><tt>I am getting errors when installing cfengine after
 %  % cfkey gets executed. </tt></font>
 %  % <br>
 %  % <br>
 %  % <br>
 %  % <br><font size=3><tt><br>
 %  % Looking forward to your reply.</tt></font>
 %  % <br>
 %  % <br><font size=3><tt>Thanks in advance...</tt></font>
 %  % <br>
 %  % <br><font size=3><tt>Regards, harish Chauhan</tt></font>
 %  % --=_alternative 00787E7985256E3F_=--
 %  % --=_mixed 00787E7785256E3F_=
 %  % Content-Type: application/octet-stream; name="install"
 %  % Content-Disposition: attachment; filename="install"
 %  % Content-Transfer-Encoding: base64
 %  % 
 %  % 
 % UHJlcGFyaW5nLi4uICAgICAgICAgICAgICAgICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj
 %  % 
 % IyMjIyMjIyMjIyMjIyMjIyMjIyMjCmNmZW5naW5lLWNsaWVudCAgICAgICAgICAgICAjIyMjIyMj
 %  % 
 % IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwpjZmVuZ2luZTpueW1w
 %  % 
 % aDogQ291bGRuJ3QgZmluZCBhIHByaXZhdGUga2V5ICgvb3B0L2NmZW5naW5lL3Bwa2V5cy9sb2Nh
 %  % 
 % bGhvc3QucHJpdikgLSB1c2UgY2ZrZXkgdG8gZ2V0IG9uZQpjZmVuZ2luZTpueW1waDogb3Blbjog
 %  % 
 % Tm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQoKY2ZlbmdpbmU6bnltcGg6L2Jpbi9jZmtleTogTWFr
 %  % 
 % aW5nIGEga2V5IHBhaXIgZm9yIGNmZW5naW5lLCBwbGVhc2Ugd2FpdCwgdGhpcyBjb3VsZCB0YWtl
 %  % 
 % IGEgbWludXRlLi4uCmNmZW5naW5lOm55bXBoOi9iaW4vY2ZrZXk6IFdyaXRpbmcgcHJpdmF0ZSBr
 %  % 
 % ZXkgdG8gL29wdC9jZmVuZ2luZS9wcGtleXMvbG9jYWxob3N0LnByaXYKY2ZlbmdpbmU6bnltcGg6
 %  % 
 % L2Jpbi9jZmtleTogV3JpdGluZyBwdWJsaWMga2V5IHRvIC9vcHQvY2ZlbmdpbmUvcHBrZXlzL2xv
 %  % 
 % Y2FsaG9zdC5wdWIKY2ZlbmdpbmU6bnltcGg6IENvdWxkbid0IHN0YXQgL29wdC9jZmVuZ2luZS9z
 %  % 
 % dGF0ZS9jZl9wcm9jcywgd2hpY2ggbmVlZGVkIGVkaXRpbmchCmNmZW5naW5lOm55bXBoOiBDaGVj
 %  % ayBkZWZpbml0aW9uIGluIHByb2dyYW0gLSBpcyBmaWxlIE5GUyBtb3VudGVkPwoK
 %  % 
 %  % --=_mixed 00787E7785256E3F_=
 %  % Content-Type: text/plain; charset="us-ascii"
 %  % MIME-Version: 1.0
 %  % Content-Transfer-Encoding: 7bit
 %  % Content-Disposition: inline
 %  % 
 %  % _______________________________________________
 %  % Help-cfengine mailing list
 %  % Help-cfengine@gnu.org
 %  % http://mail.gnu.org/mailman/listinfo/help-cfengine
 %  % 
 %  % --=_mixed 00787E7785256E3F_=--
 %  % 
 % 
 % -----
 % John Sechrest          .         Helping people use
 %                         .           computers and the Internet
 %                           .            more effectively
 %                              . 
 %                                  .       Internet: sechrest@peak.org
 %                                       . 
 %                                               . 
 % http://www.peak.org/~sechrest
 % 
 % 
 % --=_alternative 004A237F85256E40_=
 % Content-Type: text/html; charset="US-ASCII"
 % 
 % 
 % <br><font size=2 face="sans-serif">Hi,</font>
 % <br>
 % <br><font size=2 face="sans-serif">Sorry, here is the full scenerio we
 % are trying to test </font>
 % <br>
 % <br><font size=2 face="sans-serif">Setup &nbsp;:</font>
 % <br><font size=2 face="sans-serif">We got 300 machines divided into various
 % groups. i.e Developer group, Engineering group, IS group, etc . Each group
 % gets different configuration files through defined cron jobs. Presently
 % the distribution of binaries, rpms, etc is done using multi-tier architecture
 % means the main server distributes the files to the underlying 10 machines
 % and then these 10 machines distibutes the files to remaining 289 machines.
 % </font>
 % <br>
 % <br><font size=2 face="sans-serif">Objective : </font>
 % <br><font size=2 face="sans-serif">We need to replace the above architecture
 % using CFengine but at the same time we also make sure that network is not
 % fully occupied. We want to have control on the number of machines getting
 % the updates/files. Also, machines cannot be differentiated on IP basis.
 % There are machines falling under different groups in the same IP 
range.</font>
 % <br>
 % <br><font size=2 face="sans-serif">Note : &nbsp;The group under which a
 % machine lies is read by the utility from a flat file.</font>
 % <br>
 % <br><font size=2 face="sans-serif">Requirement : </font>
 % <br><font size=2 face="sans-serif">How our configuration files should look
 % like and how can we execute different tasks on different set of 
machines.</font>
 % <br>
 % <br>
 % <br>
 % <br><font size=2 face="sans-serif">Package version in use : BerkeleyDB
 % 3.3.11, OpenSSL 0.9.6e and CFengine2.1.3</font>
 % <br>
 % <br>
 % <br><font size=2 face="sans-serif">Machine SERVER_1 : Complete installation
 % of all the packages mentioned above</font>
 % <br><font size=2 face="sans-serif">Services running : cfexecd and 
cfservd</font>
 % <br><font size=2 face="sans-serif">/data folder exported for CLIENT 
machine</font>
 % <br><font size=2 face="sans-serif">/data/cfrun.hosts has CLIENT_2 to 
CLIENT_289
 % names listed</font>
 % <br>
 % <br>
 % <br><font size=2 face="sans-serif">Machine CLIENT_2 - CLIENT_289 : Complete
 % installation of all the packages mentioned above</font>
 % <br><font size=2 face="sans-serif">Services running : cfexecd </font>
 % <br><font size=2 face="sans-serif">Mounted /data folder from SERVER_1</font>
 % <br><font size=2 face="sans-serif">/opt/cfengine/ppkeys/root-SERVER_1.pub
 % has public key available</font>
 % <br>
 % <br>
 % <br>
 % <br><font size=2 face="sans-serif">Please feel free if any other information
 % is required. Looking forward to your reply. </font>
 % <br>
 % <br><font size=2 face="sans-serif">Thanks in advance.....</font>
 % <br>
 % <br><font size=2 face="sans-serif">Regards, Harish Chauhan</font>
 % <br>
 % <br>
 % <br>
 % <br>
 % <table width=100%>
 % <tr valign=top>
 % <td>
 % <td><font size=1 face="sans-serif"><b>John Sechrest 
&lt;sechrest@peak.org&gt;</b></font>
 % <p><font size=1 face="sans-serif">02/19/2004 05:00 PM</font>
 % <td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
 % <br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To:
 % &nbsp; &nbsp; &nbsp; &nbsp;Harish Chauhan/India/IBM@IBMIN</font>
 % <br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc:
 % &nbsp; &nbsp; &nbsp; &nbsp;</font>
 % <br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject:
 % &nbsp; &nbsp; &nbsp; &nbsp;Re: Error when executing cfagent</font>
 % <br>
 % <br><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp;</font></table>
 % <br>
 % <br><font size=2><tt><br>
 % <br>
 % We certainly will need to have more information that this.<br>
 % <br>
 % What system are you running on?<br>
 % What version of cfengine are you running?<br>
 % <br>
 % Exactly, what steps did you take to set it up?<br>
 % <br>
 % What exactly does the error say?<br>
 % <br>
 % without this kind of information (and much more) you will not<br>
 % be able to get any kind of help.<br>
 % <br>
 % <br>
 % <br>
 % Harish Chauhan &lt;Harish_Chauhan@in.ibm.com&gt; writes:<br>
 % <br>
 %  % --=_mixed 00787E7785256E3F_=<br>
 %  % Content-Type: multipart/alternative;<br>
 %  % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;boundary=&quot;=_alternative
 % 00787E7985256E3F_=&quot;<br>
 %  % <br>
 %  % <br>
 %  % --=_alternative 00787E7985256E3F_=<br>
 %  % Content-Type: text/plain; charset=&quot;US-ASCII&quot;<br>
 %  % <br>
 %  % Hi,<br>
 %  % <br>
 %  % I am getting errors when installing cfengine after cfkey gets executed.
 % <br>
 %  % <br>
 %  % <br>
 %  % <br>
 %  % <br>
 %  % Looking forward to your reply.<br>
 %  % <br>
 %  % Thanks in advance...<br>
 %  % <br>
 %  % Regards, harish Chauhan<br>
 %  % --=_alternative 00787E7985256E3F_=<br>
 %  % Content-Type: text/html; charset=&quot;US-ASCII&quot;<br>
 %  % <br>
 %  % <br>
 %  % &lt;br&gt;&lt;font size=3&gt;&lt;tt&gt;Hi,&lt;/tt&gt;&lt;/font&gt;<br>
 %  % &lt;br&gt;<br>
 %  % &lt;br&gt;&lt;font size=3&gt;&lt;tt&gt;I am getting errors when installing
 % cfengine after<br>
 %  % cfkey gets executed. &lt;/tt&gt;&lt;/font&gt;<br>
 %  % &lt;br&gt;<br>
 %  % &lt;br&gt;<br>
 %  % &lt;br&gt;<br>
 %  % &lt;br&gt;&lt;font size=3&gt;&lt;tt&gt;&lt;br&gt;<br>
 %  % Looking forward to your reply.&lt;/tt&gt;&lt;/font&gt;<br>
 %  % &lt;br&gt;<br>
 %  % &lt;br&gt;&lt;font size=3&gt;&lt;tt&gt;Thanks in 
advance...&lt;/tt&gt;&lt;/font&gt;<br>
 %  % &lt;br&gt;<br>
 %  % &lt;br&gt;&lt;font size=3&gt;&lt;tt&gt;Regards, harish 
Chauhan&lt;/tt&gt;&lt;/font&gt;<br>
 %  % --=_alternative 00787E7985256E3F_=--<br>
 %  % --=_mixed 00787E7785256E3F_=<br>
 %  % Content-Type: application/octet-stream; name=&quot;install&quot;<br>
 %  % Content-Disposition: attachment; filename=&quot;install&quot;<br>
 %  % Content-Transfer-Encoding: base64<br>
 %  % <br>
 %  % 
UHJlcGFyaW5nLi4uICAgICAgICAgICAgICAgICMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMj<br>
 %  % 
IyMjIyMjIyMjIyMjIyMjIyMjIyMjCmNmZW5naW5lLWNsaWVudCAgICAgICAgICAgICAjIyMjIyMj<br>
 %  % 
IyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIwpjZmVuZ2luZTpueW1w<br>
 %  % 
aDogQ291bGRuJ3QgZmluZCBhIHByaXZhdGUga2V5ICgvb3B0L2NmZW5naW5lL3Bwa2V5cy9sb2Nh<br>
 %  % 
bGhvc3QucHJpdikgLSB1c2UgY2ZrZXkgdG8gZ2V0IG9uZQpjZmVuZ2luZTpueW1waDogb3Blbjog<br>
 %  % 
Tm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQoKY2ZlbmdpbmU6bnltcGg6L2Jpbi9jZmtleTogTWFr<br>
 %  % 
aW5nIGEga2V5IHBhaXIgZm9yIGNmZW5naW5lLCBwbGVhc2Ugd2FpdCwgdGhpcyBjb3VsZCB0YWtl<br>
 %  % 
IGEgbWludXRlLi4uCmNmZW5naW5lOm55bXBoOi9iaW4vY2ZrZXk6IFdyaXRpbmcgcHJpdmF0ZSBr<br>
 %  % 
ZXkgdG8gL29wdC9jZmVuZ2luZS9wcGtleXMvbG9jYWxob3N0LnByaXYKY2ZlbmdpbmU6bnltcGg6<br>
 %  % 
L2Jpbi9jZmtleTogV3JpdGluZyBwdWJsaWMga2V5IHRvIC9vcHQvY2ZlbmdpbmUvcHBrZXlzL2xv<br>
 %  % 
Y2FsaG9zdC5wdWIKY2ZlbmdpbmU6bnltcGg6IENvdWxkbid0IHN0YXQgL29wdC9jZmVuZ2luZS9z<br>
 %  % 
dGF0ZS9jZl9wcm9jcywgd2hpY2ggbmVlZGVkIGVkaXRpbmchCmNmZW5naW5lOm55bXBoOiBDaGVj<br>
 %  % ayBkZWZpbml0aW9uIGluIHByb2dyYW0gLSBpcyBmaWxlIE5GUyBtb3VudGVkPwoK<br>
 %  % <br>
 %  % --=_mixed 00787E7785256E3F_=<br>
 %  % Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
 %  % MIME-Version: 1.0<br>
 %  % Content-Transfer-Encoding: 7bit<br>
 %  % Content-Disposition: inline<br>
 %  % <br>
 %  % _______________________________________________<br>
 %  % Help-cfengine mailing list<br>
 %  % Help-cfengine@gnu.org<br>
 %  % http://mail.gnu.org/mailman/listinfo/help-cfengine<br>
 %  % <br>
 %  % --=_mixed 00787E7785256E3F_=--<br>
 %  % <br>
 % <br>
 % -----<br>
 % John Sechrest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;. &nbsp; &nbsp; &nbsp;
 % &nbsp; Helping people use<br>
 %  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp;. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; computers and the 
Internet<br>
 %  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp; &nbsp;. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;more 
effectively<br>
 %  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp; &nbsp; &nbsp; . &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>
 %  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; . &nbsp; &nbsp; &nbsp; Internet:
 % sechrest@peak.org<br>
 %  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;. &nbsp;
 % <br>
 %  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 % &nbsp; &nbsp;. http://www.peak.org/~sechrest<br>
 % </tt></font>
 % <br>
 % --=_alternative 004A237F85256E40_=--

-----
John Sechrest          .         Helping people use
                        .           computers and the Internet
                          .            more effectively
                             .                      
                                 .       Internet: sechrest@peak.org
                                      .   
                                              . http://www.peak.org/~sechrest




reply via email to

[Prev in Thread] Current Thread [Next in Thread]