[Top][All Lists]

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

Re: Upgrading CFE with CFE

From: Paul Krizak
Subject: Re: Upgrading CFE with CFE
Date: Tue, 25 Oct 2005 16:11:06 -0500
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050728)

We just accept that it will take a few runs before everything gets up to speed.

First run from cfexecd: binaries are overwritten, cfexecd stays the same
Upon reboot: cfagent gets called directly, which spawns a "new" cfexecd.

Not very elegant, but also not very complicated...requires just two extra lines of code.

Paul Krizak                         5900 E. Ben White Blvd. MS 625
Advanced Micro Devices              Austin, Tx  78741
CAD Systems Engineering             Phone: (512) 602-8775

Martin, Jason H wrote:
My concern with having cfagent or a child thereof perform the update is
this scenario:
1. cfexecd launches cfagent
2. Something called by cfagent (cf.preconf, shellcommand, proceses, etc)
notices the change and kills cfexecd and cfservd in preparation for
restarting them
3. cfexecd gets the kill signal and exits
4. cfagent gets a signal that cfexecd exited and exits. If it was
performing the change, it exits before cfexecd is restarted.
5. If cf.preconf was performing the change, it gets a signal that
cfagent exited and exits before cfservd / cfexecd is restarted.

If that happens I would have to either resurrect everything via cfservd
or get several people to each log in to a lot of machines to manually
restart it. It is most preferential to avoid the latter :>

The procedure I had in mind was:
1. cfexecd launches cfagent
2. cfagent overwrites cfagent / cfexecd / cfservd with the updated
3. cfagent kills and restarts cfservd
4. cfagent exits
5. cfagent is invoked via cfservd
6. cfagent kills and restarts cfexecd
7. Finish

Has anyone tried that?

Thank you,
-Jason Martin

-----Original Message-----
From: David Masterson [mailto:address@hidden Sent: Tuesday, October 25, 2005 1:19 PM
To: Martin, Jason H; address@hidden
Subject: RE: Upgrading CFE with CFE

Martin, Jason H wrote:

Does anyone have any experience with upgrading large

installations of
CFE with CFE? Was there any particular order in which you

pushed the

three components? Are there any gotchas if you are using

cfexecd to

launch cfengine instead of cron?

Is this something you would use "cf.preconf" for?
David Masterson
VMware, Inc.
Palo Alto, CA

Help-cfengine mailing list

reply via email to

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