Commit Graph

18 Commits

Author SHA1 Message Date
Mark McLoughlin d1888a3359 Remove the last of the gflags shim layer
Make FLAGS a ConfigOpts instance and fix up all the places where we
expected FlagValues behaviour.

Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
2012-02-10 06:31:56 +00:00
Mark McLoughlin 9871c5f963 Move cfg to nova.openstack.common
Move it here so that it can be kept in sync with openstack-common using
the new update.py script for code in openstack-common's incubation area.

See here for more details:

  http://wiki.openstack.org/CommonLibrary#Incubation

Note: this commit just moves the existing code in Nova with no other
changes. A subsequent commit will sync it with latest openstack-common
so that it is easier see the new changes.

Change-Id: If88d678b1b9bad3d37117de7f7159d7fea8ab4c8
2012-02-03 19:21:54 +00:00
Mark McLoughlin 82049af90e Refactor away the flags.DEFINE_* helpers
The next obvious step in porting to cfg is to define all options using
cfg schemas directly rather than using the flags.DEFINE_* helpers.

This is a large change, but it is almost entirely pure refactoring and
does not result in any functional changes.

The only change to note is that the default values for glance_host,
glance_api_servers and default_publisher_id options are now using opt
value interpolation i.e.

 -glance_host=_get_my_ip()
 +glance_host='$my_ip'

 -glance_api_servers=['%s:%d' % (FLAGS.glance_host, FLAGS.glance_port)]
 +glance_api_servers=['$glance_host:$glance_port']

 -default_publisher_id=FLAGS.host
 +default_publisher_id='$host'

Also note that the lower_bound check on the {report,periodic}_interval
options are no more, but this has been true since cfg was first added.

Change-Id: Ia58c8f0aaf61628bb55b1b8485118a2a9852ed17
2012-01-28 12:37:16 +00:00
Mark McLoughlin dd29f420ab Remove unused flags.Help*Flag
These don't do anything anymore since we just rely on optparse's
--help behaviour.

Change-Id: I7c74456a06fe924503dcfbcfa4da9fc5c26b8ab0
2012-01-25 13:14:42 +00:00
Vishvananda Ishaya 125a2affec more cleanup of binaries per review 2011-08-18 10:55:39 -07:00
Brian Lamar 186598a819 Removed whitespace. 2011-06-21 12:03:27 -04:00
Brian Lamar 742c21e4e7 Very small alterations, switched from using start() to pass host/port, to just defining them up front in init. Doesn't make sense to set them in start because we can't start more than once any way. Also, unbroke binaries. 2011-06-21 11:25:44 -04:00
termie c5cbec20d2 pep8 cleanups 2011-03-24 13:20:15 -07:00
termie a1bde64e91 add some more docs and make it more obvious which parts are examples 2011-03-24 12:42:47 -07:00
termie a7863c0268 add an example of a versioned api 2011-03-24 12:42:47 -07:00
termie ef5c9e1159 add Limited, an API limiting/versioning wrapper 2011-03-24 12:42:46 -07:00
termie c7ccbd7a16 support volume and network in the direct api 2011-03-24 12:42:46 -07:00
Brian Lamar 6e9a95fe81 disable-msg -> disable 2011-03-18 09:56:05 -04:00
termie 3115a65f99 add help back to the scripts that don't use service.py 2011-02-23 15:26:52 -08:00
Vishvananda Ishaya 29644fe5a9 switch to explicit call to logging.setup() 2011-02-21 13:46:41 -08:00
jaypipes@gmail.com c9610db6c4 ComputeAPI -> compute.API in bin/nova-direct-api. Fixes LP#704422 2011-01-18 08:48:50 -05:00
Andy Smith 5679caa48b rename easy to direct in the scripts 2011-01-04 14:39:48 -08:00
Andy Smith 35d3050511 rename Easy API to Direct API 2011-01-04 14:07:46 -08:00