Commit Graph

12 Commits

Author SHA1 Message Date
Davanum Srinivas 90ae25e389 Cleaning up code in oslo-incubator
* Filed reviews with all consuming projects with the
  last changes from oslo-incubator
* We've switched off all CI tests for oslo-incubator
* Notified folks on openstack-dev

Let's wrap it up! Thanks to everyone who have contributed
to moving things out of oslo-incubator into libraries

Change-Id: Ibc5a8f11c6e5c308cec15a60eeb07a898254f9b7
2015-11-25 13:44:49 +00:00
Matt Riedemann 4bbd5edc8b Formally deprecate the memorycache module
In change I97dcd55838941de4bf31aa84b4af7b2cb8e4f116 it was pointed out
that memorycache is deprecated and people should be moving onto using
the oslo.cache library.

This change uses debtcollector to log an actual deprecation warning for
those using the memorycache module at runtime.

Change-Id: Ib013c7b6586860944268b9eec41c6ae003f5e0c8
2015-09-14 13:45:45 -07:00
ZhiQiang Fan ac17de979e Use oslo_utils instead of deprecated oslo.utils
oslo.utils 1.2.0 has changed its namespace from oslo.utils to
oslo_utils, the old import style of oslo.utils still can work but
it is deprecated.

Change-Id: Ifab8a092fab84609598052008457cdd83633513a
2015-01-31 10:47:43 +08:00
Brant Knudson 2aacb1117c Change oslo.config to oslo_config
The oslo.config libraries are moving away from oslo-namespaced
packages.

Note that his requires oslo.config>=1.6.0

bp drop-namespace-packages

Change-Id: Ic0d4053875da0628f2359c109f2779d12aadc3eb
2015-01-29 14:13:55 -05:00
Doug Hellmann a3220c5160 add list_opts to all modules with configuration options
this allows these modules to be exposed as entry points, and consumed by
oslo-config-generator.

Co-Authored-By: Dolph Mathews <dolph.mathews@gmail.com>
Co-Authored-By: Ben Nemec <bnemec@redhat.com>
Change-Id: I7f0ed83cc87a9647c341641134cefbb966d23bee
Closes-Bug: 1356438
2014-10-24 17:35:59 +00:00
Davanum Srinivas 6ff6b4b4a5 Switch oslo-incubator to use oslo.utils and remove old modules
keystone client/middleware, nova all have tests that mock
utcnow when we introduce oslo.utils into those projects, we have
test failures because of references to copies of timeutils/utcnow
in for example memorycache. So the best way to deal with it is to
ensure that all code in oslo-incubator refer to oslo.utils. Added a
note in the deprecated code so when folks sync, they will be aware
of it.

Per the new process, we will not be keeping graduated files around
on the master branch of incubator.

Closes-Bug: #1354521
Closes-Bug: #1371713
Change-Id: If80e66c7dae1bfcda8e884c57b7086f34d026040
2014-09-24 06:58:38 -04:00
Gary Kotton 90ae24bfc9 Remove redundant default=None for config options
The cfg module sets the default values as None by default. There
is no need to set this again.

The default is set as None:
http://docs.openstack.org/developer/oslo.config/opts.html#oslo.config.cfg.Opt

Change-Id: I5ab948b1571e51d05f6eb9f35720d0eecc3a56ab
2014-05-26 04:11:07 -07:00
liyingjun 297d772b78 Raise exception when importing memcache error
Remove the exception handle and let the ImportError propagate out. This
will provide all of the information that a user would need to figure
out what's wrong.

Change-Id: I0e608ee15a0826e28dceb162d71d9a1191f0723d
Closes-bug: 1213660
2014-04-22 23:55:16 +08:00
Joe Gordon 12bcdb71ff Remove vim header
No need to set tabstop 189 times, this can be set in your vimrc file
instead.  Also if set incorrectly gate (pep8 check) will catch your
mistakes.

Change-Id: Ic6f0c0ef94e8194a5c121598305d1ec3c74e4843
2013-11-25 12:16:11 +08:00
Chuck Short 5e765b2546 python3: Fix traceback while running tests
While running the testsuite with python3 results in the folowing
traceback:

RuntimeError: dictionary changed size during iteration

Change-Id: I11b9c1d96469de03494e18d17f10939c7e6fce66
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-10-16 13:25:41 -04:00
Sergey Lukjanov 484a1df32d Enable hacking H403 test
H403  multi line docstring end on new line

Change-Id: I33249651026b54ef346214965e909835288bb14e
2013-05-30 09:00:57 +04:00
Vishvananda Ishaya 844123e219 Add simple in-memory cache from nova.
Nova's simple in-memory cache replicates the memcache interface,
so clients can cache things in memcache or in memory using
the same commands. Using memcached requires having the client
library installed and the memcached_servers config option set.
Callers can also pass in a list of memcached servers when they
initialize the client.

Change-Id: I831142a36797b04006cba4792df803e09f6fd69b
2013-03-01 10:02:34 -08:00