37 Commits

Author SHA1 Message Date
Mark McLoughlin
580df54260 Move network_topic into nova.network.rpcapi
The network_topic opt is only used in nova.network.rpcapi and it makes
sense for the RPC module to "own" the topic option.

blueprint: scope-config-opts
Change-Id: Icd779f34df47ac6dd048b3e41995e872d8859872
2013-01-08 10:23:40 +00:00
Mark McLoughlin
e237c86446 Use CONF.import_opt() for nova.config opts
The only reason for importing nova.config now is where one of the
options defined in that file is needed. Rather than importing
nova.config using an import statement, use CONF.import_opt() so
that it is clear which option we actually require.

In future, we will move many options out of nova.config so many
of these import_opt() calls will either go away or cause a module
other than nova.config to be imported.

Change-Id: I0646efddecdf2530903afd50c1f4364cb1d5dce1
2012-11-20 00:04:49 +00:00
Mark McLoughlin
94d87bce21 Remove nova.config.CONF
Modules import nova.config for two reasons right now - firstly, to
reference nova.config.CONF and, secondly, if they use one of the
options defined in nova.config.

Often modules import nova.openstack.common.cfg and nova.config
which is a bit pointless since they could just use cfg.CONF if
they just want to nova.config in order to reference CONF.

Let's just use cfg.CONF everywhere and we can explicitly state
where we actually require options defined in nova.config.

Change-Id: Ie4184a74e3e78c99658becb18dce1c2087e450bb
2012-11-20 00:00:21 +00:00
Chris Behrens
e374fb0389 Remove nova.flags imports from bin/*
nova.flags is no longer needed except to load nova config options shared
across multiple daemons.

This removes nova.flags from the bin programs and makes sure that
nova.flags is imported in nova.config for now.

Change-Id: If066ac0070387bee4b41e6a78ad972f7a0955c75
2012-11-15 23:03:04 +00:00
Mark McLoughlin
5749b8deb0 Switch from FLAGS to CONF in bin
Use the global CONF variable instead of FLAGS. This is purely a cleanup
since FLAGS is already just another reference to CONF.

We leave the nova.flags imports until a later cleanup commit since
removing them may cause unpredictable problems due to config options not
being registered.

Change-Id: Id0c59b2dc8002ec89ccbc5e5d7986fb68d3a693d
2012-11-04 21:39:49 +00:00
Mark McLoughlin
efede80046 Move parse_args to nova.config
The flags module will eventually be removed and this is a first step
towards that.

Change-Id: I729b08900e53e2ae6db10633dcff3be59720fa6f
2012-11-04 21:37:39 +00:00
Michael H Wilson
0bf28bec60 Fix hardcoded topic strings with constants.
Replace hardcoded topic strings like 'volume' or 'compute'
with config constants like FLAGS.volume_topic, etc. See
bug #1057831 and bug #1061628.

Change-Id: I817ecc3cbe3245b51a0c047be58d17edfec8a838
2012-10-25 23:51:48 -06:00
Andrew Bogott
d335457f48 Switch to common logging.
I only just moved logging from nova to common, so behavior should remain the same.

Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
2012-07-02 15:57:09 -05:00
Mark McLoughlin
00786bc554 Use cfg's new global CONF object
Implements blueprint cfg-global-object

Replace nova.flags.FLAGS with openstack.common.cfg.CONF.

In future, we can do a s/FLAGS/CONF/ across the codebase.

Change-Id: Ib293873089a5399febd7a3b0410f66e9bef115f1
2012-05-30 21:24:53 +01:00
Ghe Rivero
7e3e9b8e9c Remove old flagfile support.
Implements blueprint remove-old-flagfile

nova-manage can still be used to convert old flagfiles style files
to new .ini files:

$ ./bin/nova-manage  config  convert --help
Usage: nova-manage config convert <args> [options]

Options:
  -h, --help        show this help message and exit
  --infile=<path>   old-style flagfile to convert to config
  --outfile=<path>  path for output file. Writes configto stdout if not
                    specified.

Change-Id: Ib8fbbd858b1db7faef70d7d97955e5042bf378f2
Signed-off-by: Ghe Rivero <ghe@debian.org>
2012-05-10 19:17:34 +02:00
Nachi Ueno
9059902c72 Merged with trunkw 2011-08-19 13:25:49 -07:00
Nachi Ueno
c06bbe9973 Added monkey patching notification code function
w
2011-08-19 12:30:55 -07:00
Vishvananda Ishaya
97552f05d5 fix typo 2011-08-18 11:28:02 -07:00
Vishvananda Ishaya
125a2affec more cleanup of binaries per review 2011-08-18 10:55:39 -07:00
Vishvananda Ishaya
29644fe5a9 switch to explicit call to logging.setup() 2011-02-21 13:46:41 -08:00
termie
40dd925070 merged from upstream 2010-12-15 11:02:33 -08:00
jaypipes@gmail.com
797e3f8a1c For some reason, I forgot to commit the other endpoints... 2010-12-14 18:22:03 -05:00
Andy Smith
4d06429290 add back utils.default_flagflie 2010-12-09 16:45:51 -08:00
Andy Smith
a1640f3528 formatting and naming cleanup 2010-12-09 16:05:13 -08:00
Andy Smith
b3f5aba0c4 remove service and rename service_eventlet to service 2010-12-09 15:25:14 -08:00
Andy Smith
00f329d479 make nova binaries use eventlet 2010-12-09 14:36:23 -08:00
Michael Gundlach
11dddd7ca4 Move default_flagfile() call to where it will be parsed in time to load the flagfile 2010-12-01 10:44:51 -06:00
Soren Hansen
9819273851 Unify the location of the default flagfile.
Not all workers called utils.default_flagfile, and nova-manage
explicitly said to use the one in /etc/nova/nova-manage.conf.

This made development awkward since everything but nova-manage would use
defaults for everything, but nova-manage would use whatever config was
in /etc/nova/nova-manage.conf which was likely put there by a package of
some sort.
2010-11-23 11:45:56 +01:00
Andy Smith
2337fab097 part way through porting the codebase off of twisted
this provides a very basic eventlet-based service replacement for the
twistd-based services, a replacement for task.LoopingCall

also adds nova-combined with the goal of running a single service when
doing local testing and dev
2010-10-25 03:45:19 +09:00
Vishvananda Ishaya
f9c060d137 merged trunk 2010-09-07 21:19:46 -07:00
Soren Hansen
f2a3f9a622 Make the scripts in bin/ detect if they're being run from a bzr checkout
or an extracted release tarball or whatever and adjust PYTHONPATH
accordingly.
2010-09-08 10:45:39 +02:00
Vishvananda Ishaya
116402306e updated models a bit and removed service classes 2010-09-02 11:25:10 -07:00
Vishvananda Ishaya
9c98cfb471 instance runs 2010-08-30 00:55:19 -07:00
Eric Day
b8747fb38e More bin/ pep8/pylint cleanup. 2010-08-18 17:39:12 -07:00
Vishvananda Ishaya
9a038d2b81 fixed tests, moved compute network config call, added notes, made inject option into a boolean 2010-08-04 15:44:23 -07:00
Vishvananda Ishaya
576dade1d5 change network_service flag to network_type and don't take full class name 2010-08-03 15:13:07 -07:00
Vishvananda Ishaya
ecf8608a84 Huge network refactor, Round I
Made network into its own binary
Made simple network a plugabble class
Fixed unittests
Moved various classes around
Moved mac generation into network class
2010-08-03 14:31:47 -07:00
Vishvananda Ishaya
754db8ef1c renamed xxxservice to service 2010-07-26 17:14:28 -07:00
Vishvananda Ishaya
35fda702ab renamed xxxnode to xxservice 2010-07-23 15:27:18 -07:00
Vishvananda Ishaya
b03f05a0eb typo fixes and extra print statements removed 2010-07-22 07:51:03 -05:00
Vishvananda Ishaya
80d03bbeb1 make nova-network executable 2010-07-21 14:55:16 -05:00
Vishvananda Ishaya
3b982f62bb refactor daemons to use common base class in preparation for network refactor 2010-07-21 14:42:22 -05:00