Hy there, i have a centos (4.?) Box with nightly yum update enabled. Last night, it did an upgrade to 4.7 leading to several problem i.e. not respawning the dhcrelay, which is needed on this box. Can I control the update policy not to upgrade to new releases in the nightly updates? I would like do to nightly updates, but make release upgrades manual (I get a new kernel, so I have to reboot anyway). Is that possible? Regards, Lutz Griesbach IT Administrator tel +49.40.325587.701 fax +49.40.325587.999 lutz.griesbach at coremedia.com CoreMedia Ludwig-Erhard-Str. 18 20459 Hamburg, Germany www.coremedia.com CoreMedia AG Executive Board: S?ren Stamer (CEO), Dr. Klemens Kleiminger (CFO) Supervisory Board: Prof. Dr. Florian Matthes (Chairman) Trade?Register: Amtsgericht Hamburg, HR B 76277 -------------------------------------------------------
vandaman2002-rt at yahoo.co.uk
2008-Oct-02 11:21 UTC
[CentOS] Nightly yum update did an "upgrade"
Griesbach, Lutz wrote:> Hy there, > > i have a centos (4.?) Box with nightly yum update enabled. > Last night, it did an upgrade to 4.7 leading to several > problem i.e. not respawning the dhcrelay, which is needed on > this box. > > Can I control the update policy not to upgrade to new > releases in the nightly updates? I would like do to nightly > updates, but make release upgrades manual (I get a new > kernel, so I have to reboot anyway). > > > Is that possible?A few questions for you. 1. Nightly updates are not enabled by default. Why did you turn it on when your box has issues? 2. Aren't prudent admins supposed to test updates before applying them to production boxes?
On Thu, 2008-10-02 at 13:11 +0200, Griesbach, Lutz wrote:> Hy there, > > i have a centos (4.?) Box with nightly yum update enabled. Last > night, it did an upgrade to 4.7 leading to several problem i.e. not > respawning the dhcrelay, which is needed on this box. > > Can I control the update policy not to upgrade to new releases in the > nightly updates? I would like do to nightly updates, but make release > upgrades manual (I get a new kernel, so I have to reboot anyway). > >Hi, Personally I enable nightly updates but disable the updating of certain packages (services) that the server provides. For this I use the 'exclude' statement in the /etc/yum.conf file. On all servers I include excluding the kernel and glibc. If these are to be upgraded, and require a reboot, then I'll do them when it is convenient to me. Other services, such as exim (MTA), freeradius (RADIUS), squid (web cache), etc are likewise disabled on the relevant servers. Again, if they are to be upgraded, then I will do them when it is convenient and without disrupting the current service. John. -- --------------------------------------------------------------- John Horne, University of Plymouth, UK Tel: +44 (0)1752 587287 E-mail: John.Horne at plymouth.ac.uk Fax: +44 (0)1752 587001
Lutz Griesbach wrote on Thu, 2 Oct 2008 13:11:25 +0200:> Is that possible?No. And it wouldn't help you. There is no such thing as an "upgrade" in reality. An "upgrade" to 4.7 is just an update to the bunch of rpms that is considered to be "4.7". e.g. *any* update of dhcrelay might create the problem you saw. Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
on 10-2-2008 4:11 AM Griesbach, Lutz spake the following:> Hy there, > > i have a centos (4.?) Box with nightly yum update enabled. Last night, it did an upgrade to 4.7 leading to several problem i.e. not respawning the dhcrelay, which is needed on this box. > > Can I control the update policy not to upgrade to new releases in the nightly updates? I would like do to nightly updates, but make release upgrades manual (I get a new kernel, so I have to reboot anyway). > > > Is that possible? > > > Regards,As far as yum and the machine are concerned, an update of one package or 200 is still an update. There are no versions 4.6 or 4.7 in a strict technical sense, they are all CentOS 4. They are just a point in time that the updates are frozen long enough so new install CD's/DVD's can be built. Yum has no way to tell the difference either. You should turn off automatic updates, and do them all manually, and maybe join the announce list to be notified of new updates. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 250 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20081002/24867798/attachment-0003.sig>
Griesbach, Lutz wrote:> > i have a centos (4.?) Box with nightly yum update enabled. Last night, it did an upgrade to 4.7 leading to several problem i.e. not respawning the dhcrelay, which is needed on this box. > > Can I control the update policy not to upgrade to new releases in the nightly updates? I would like do to nightly updates, but make release upgrades manual (I get a new kernel, so I have to reboot anyway). > > > Is that possible?No, the updates aren't nicely separated into ones that will break the services you happen to need and ones that won't. On the other hand it is pretty rare for a Centos update to break anything, so you might want to investigate the actual problem you had. Want I normally do for critical servers is: yum install yum-downloadonly Then periodically yum -y --downloadonly which can run unattended, be ssh'd to a bunch of machines in a loop, etc. since it won't install anything. Then when you have time to babysit the actual install and reboot if it's a kernel or libc update, do the 'yum -y update' which will go quickly since the packages are already downloaded. Having a similar system to test first is always a good idea, but I can't think of anything in years where a Centos update actually caused a problem that couldn't be fixed quickly if you watched the rpmsave/rpmnew files from the installs. -- Les Mikesell lesmikesell at gmail.com
Hi, Griesbach, Lutz wrote:> Hy there, > > i have a centos (4.?) Box with nightly yum update enabled. Last night, it did an upgrade to 4.7 leading to several problem i.e. not respawning the dhcrelay, which is needed on this box.ok, so there is something I dont understand here. You have yum nightly update enabled, but your machine only updated yesterday from 4.<something> to the latest in 4.7 ? What mirrors are you using that are so far adrift of the main mirror.centos.org ?> Can I control the update policy not to upgrade to new releases in the nightly updates? I would like do to nightly updates, but make release upgrades manual (I get a new kernel, so I have to reboot anyway).The real problem I see here is that updates within a release are not supposed to break things. So, what you really need to do is workout what apps broke and why, then I'd request you to file bug reports against those packages at http://bugs.centos.org/ -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq