quattor / ncm-cdispd

Node Configuration Manager Configuration Dispatch Daemon
www.quattor.org
Other
2 stars 5 forks source link

14.8.0: ncm-cdispd restarted twice during Quattor upgrades #14

Closed jouvin closed 9 years ago

jouvin commented 9 years ago

It appears that ncm-cdispd is restarted twice during upgrades. This is harmless but unexpected. ncm-cdispd installation is responsible for one restart but the other one suggests that something else tries to restart ncm-cdispd. Would be good to identify the reason and either fix it or document it.

The isssue is open in this repo but the problem is likely to be in another component/repo.

jouvin commented 9 years ago

Culprit found: ccm.

stdweird commented 9 years ago

@jouvin care to explain what ccm did to cause the restart?

jouvin commented 9 years ago

It was a too quick message. ccm RPM as an install script that restart ncm-cdispd. In fact this is perfectly valid. With delayed processing of the ncm-cdispd, it should cause only one restart as all the restart action will take place during the same YUM transaction and that the real restart will happen at the end. The real problem is https://github.com/quattor/ncm-cdispd/issues/15, now understood. I close this issue which is a side effect rather than an issue...

jouvin commented 9 years ago

Late comment... behaviour understood and perfectly normal!

stdweird commented 9 years ago

some maybe we should remove ccm and ncm-cdispd (adn cdp-listend?) from the release process and only build new rpms when something actually changed?

jouvin commented 9 years ago

Why? This would be very confusing... Again, there is no problem in this double restart IMO (as long as configuration modules are properly written and don't restart services when there is no configuration changes).

stdweird commented 9 years ago

i agree it's confusing, and not harmful; but it's also unnecessary (and ncm-cdispd restart implies a ncm-ncd --co -all afaik). i was just wondering if it could be avoided.

jouvin commented 9 years ago

Personally, I'm in favour of sticking with the fact that one release contains everything... And we need:

So it is probably better to leave with the 2 restarts of ncm-ncd that always existed in fact... just we realized it recently looking more carefully at the logs with the rewrite of ncm-cdispd.