From: Fabio M. Di Nitto Date: Tue, 08 Sep 2009 22:50:46 +0200 Subject: [Cluster-devel] ccs_config_dump / ccs_config_validate In-Reply-To: <20090908183451.GB11641@redhat.com> References: <20090903192244.GB23923@redhat.com> <1252045015.339.139.camel@cerberus.int.fabbione.net> <20090904153753.GA26463@redhat.com> <1252086256.6387.25.camel@cerberus.int.fabbione.net> <20090904180612.GB26463@redhat.com> <1252131148.6387.30.camel@cerberus.int.fabbione.net> <4AA4AB5E.5090300@redhat.com> <20090908160121.GA11641@redhat.com> <1252428569.16393.11.camel@cerberus.int.fabbione.net> <20090908183451.GB11641@redhat.com> Message-ID: <1252443046.16393.34.camel@cerberus.int.fabbione.net> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Tue, 2009-09-08 at 13:34 -0500, David Teigland wrote: > On Tue, Sep 08, 2009 at 06:49:29PM +0200, Fabio M. Di Nitto wrote: > > did you try the -v option in the version I committed a few hours ago > > based on your previous suggestions? :) > > > > Skipping the rest of the email for obvious reasons :))) > > > > So unless I am missing something, the current implementation does > > exactly what you have been asking for. > > Yes, I think it has all the capabilities we need, but the usage, options, and > output are still quite confusing. Here's what I'd like to see: > > ccs_config_validate [options] [-f|-l] [/path/to/file] > > Options: > -f /path/to/file Validate the config from the specified file. > > -l [/path/to/file] Validate the config from the specified file > (or other source using /etc/sysconfig/cman), > after loading it into config libs which add > default values. > > -v Produce verbose output > -d Produce debug output > -V Print program version information, then exit > -h Print this help, then exit > > Debugging options: > -C config_loader Override config plugin loader Forgot to mention this one.. being able to override is not debugging. It's very useful if I am migrating from one config system to another. For example I just imported current cluster.conf into LDAP, before I change default settings, I can ask to validate the config there (or whatever possible combination). Fabio