<HTML>
<HEAD>
<TITLE>Re: [Openstack] Gflags / conf -> common?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Great.<BR>
Thx!<BR>
<BR>
On 10/31/11 2:42 PM, "Jay Pipes" <<a href="jaypipes@gmail.com">jaypipes@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi!<BR>
<BR>
GFlags has now been removed, AFAIK. The flags module has an<BR>
optparse-based emulator for GFlags to ease transition for Nova joining<BR>
the rest of the OpenStack core project implementations' use of<BR>
standard config files/Paste.Deploy.<BR>
<BR>
Cheers,<BR>
-jay<BR>
<BR>
On Mon, Oct 31, 2011 at 5:08 PM, Joshua Harlow <<a href="harlowja@yahoo-inc.com">harlowja@yahoo-inc.com</a>> wrote:<BR>
> Hi all,<BR>
><BR>
> I was wondering if there is any plans in essex to standardize either using<BR>
> gflags or using configuration files for these types of settings.<BR>
> One of the complaints that I receive a lot with gflags is that by including<BR>
> a python file, u automatically inject all of its flags (even if they are not<BR>
> used) into gflags (since its global).<BR>
> Thus say u are just using the nova-compute run time, but that itself<BR>
> includes say “flags.py” which itself seems to be a common area for flags<BR>
> that may or may not be used by that runtime. Similarly if a file is imported<BR>
> has say 1 method used by the calling code but itself defines 10 flags (for<BR>
> its components) then those 10 flags get injected. This makes it very<BR>
> confusing to figure out what should be set (or what could be set).<BR>
><BR>
> Has there been any thought on fixing this (or making a standard<BR>
> recommendation that subprojects can follow) that would avoid this problem?<BR>
> I could imagine fixes being in the code structure itself (having said 1<BR>
> method stated above not be in a file what pulls in other code that defines<BR>
> 10 flags) or another type of configuration mechanism?<BR>
> I think this was mentioned at the conference, but not sure what came out of<BR>
> that :-)<BR>
><BR>
> -Josh<BR>
> _______________________________________________<BR>
> Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
> Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
><BR>
><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>