Hi All, We are in the process of improving our log messages, and message outputs through CLI. As a first step, we want to make sure our CLI outputs are both meaningful and script friendly (for people who want to use the CLI output in their scripts). We are taking few baby steps in this regard in upstream (master branch). I recently sent a patch http://review.gluster.com/3753 which tries to separate out most of the error messages by outputting it to stderr instead of stdout. In the meantime, I tried to keep it script friendly too. With that patch going in, the problem is, if any of you have written scripts which greps for specific pattern in the CLI output, will be broken when the next major release happens. So, I want your feed back on getting it right by involving you all to make the messages more friendlier to both script writers, and also to admins who would understand the messages properly. (ie, meaning of the messages should be unambiguous). To try to see the difference in CLI outputs, you need to checkout git repo, and build locally, as there are no releases available at the moment. Thanks and Regards, Amar
Hi there, I'm currently using the --xml flag when running gluster via automatic scripts such as via puppet exec. Please keep this stable :) Thank you! James On Mon, 2012-08-06 at 12:31 +0530, Amar Tumballi wrote:> Hi All, > > We are in the process of improving our log messages, and message outputs > through CLI. As a first step, we want to make sure our CLI outputs are > both meaningful and script friendly (for people who want to use the CLI > output in their scripts). > > We are taking few baby steps in this regard in upstream (master branch). > I recently sent a patch http://review.gluster.com/3753 which tries to > separate out most of the error messages by outputting it to stderr > instead of stdout. > > In the meantime, I tried to keep it script friendly too. With that patch > going in, the problem is, if any of you have written scripts which greps > for specific pattern in the CLI output, will be broken when the next > major release happens. > > So, I want your feed back on getting it right by involving you all to > make the messages more friendlier to both script writers, and also to > admins who would understand the messages properly. (ie, meaning of the > messages should be unambiguous). > > To try to see the difference in CLI outputs, you need to checkout git > repo, and build locally, as there are no releases available at the moment. > > > Thanks and Regards, > Amar > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://gluster.org/cgi-bin/mailman/listinfo/gluster-users-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20120806/38f2eac0/attachment.sig>
On 08/06/2012 12:01 AM, Amar Tumballi wrote:> We are in the process of improving our log messages, and message > outputs through CLI. As a first step, we want to make sure our CLI > outputs are both meaningful and script friendly (for people who want > to use the CLI output in their scripts). > > We are taking few baby steps in this regard in upstream (master > branch). I recently sent a patch http://review.gluster.com/3753 which > tries to separate out most of the error messages by outputting it to > stderr instead of stdout. > > In the meantime, I tried to keep it script friendly too. With that > patch going in, the problem is, if any of you have written scripts > which greps for specific pattern in the CLI output, will be broken > when the next major release happens. > > So, I want your feed back on getting it right by involving you all to > make the messages more friendlier to both script writers, and also to > admins who would understand the messages properly. (ie, meaning of the > messages should be unambiguous).Amar, do you have a bug to suggest changes under?