summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | clarify --log-file commentsPádraig Brady2013-03-201-3/+3
|/ | | | | | | | | | | | | | | | | | | Clarify that --log-dir is only applicable for relative --log-file paths. Also change the description of --log-file, to be less specific. By changing "If not set" to "If no default is set", it allows for a better description given the cumulative nature of these config settings. Distributors can use this for example to set a default in a distribution wide config file that is then indicated by a commented default in a user editable file. I.E. the following config file is now more accurate: # Name of log file to output to. # If no default is set, logging will go to stdout. # log_file = /some/dist/default/set/elsewhere.conf Change-Id: I9a39511b6d6cfff907471ab7a6f31c34592a1015
* update OpenStack, LLC to OpenStack FoundationMark McClain2013-03-1322-22/+22
| | | | | | | | | | fixes bug 1154745 The previous update (https://review.openstack.org/#/c/24103/) missed header files that contained "OpenStack, LLC". This change corrects the missed files to reflect the OpenStack Foundation. Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102
* Merge "Sanitize input before creating IPC socket."Jenkins2013-03-132-0/+29
|\
| * Sanitize input before creating IPC socket.Eric Windisch2013-03-122-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | Sockets are created by the zeromq driver for the topic specified by each incoming message. Because the topic is arbitrarily supplied by the sender, path separators in the topic must be illegal. Fixes bug 1122763 Change-Id: Iccdb9b69e646bfe7665ee34c367fd4019db25f17
* | Merge "update.py: support one-module-per-line configuration"Jenkins2013-03-131-3/+7
|\ \
| * | update.py: support one-module-per-line configurationMark McLoughlin2013-03-121-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1122701 Allow: module=foo module=bar rather than modules=foo,bar to make reviewing changes easier. Change-Id: Ic0a7fb28fd34f530c93806a5fb79ed3dc3bc494e
* | | Merge "Initialize root logger in _setup_logging_from_conf()"Jenkins2013-03-121-3/+3
|\ \ \
| * | | Initialize root logger in _setup_logging_from_conf()Zhiteng Huang2013-03-131-3/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | log.setup() doesn't really initialize root logger, therefore logging in 3rd party library such as stevedore doesn't work properly. This patch enable root logger initialization. Fix bug: # 1073241 Change-Id: I6fa41b2ba41ff97ad0280f8774a26887d294423e
* | | Switch to final 1.1.0 oslo.config releaseMark McLoughlin2013-03-121-1/+1
| |/ |/| | | | | | | | | | | | | | | Fixes bug #1128256 oslo.config has now been released to PyPI in time for Grizzly RC1 so we can switch to using it directly. Change-Id: I655f831718ae5f4e25e941ee206fe195214a9a91
* | Merge "Fix Copyright Headers - Rename LLC to Foundation"Jenkins2013-03-1261-61/+62
|\ \
| * | Fix Copyright Headers - Rename LLC to FoundationDavanum Srinivas2013-03-1161-61/+62
| | | | | | | | | | | | | | | | | | One code change, rest are in headers Change-Id: I73f59681358629e1ad74e49d3d3ca13fcb5c2eb1
* | | Merge "Unignore log_format option"Jenkins2013-03-121-1/+2
|\ \ \
| * | | Unignore log_format optionDavanum Srinivas2013-03-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow log_format option to be settable by the operator, as per configure-logging documentation. Thanks to Marcus Furlong. Fixes LP: #1124716 Change-Id: I15d39b3162643c22ff6c905ecbb2efa06e2d882f
* | | | Merge "Keep exc_info() to prevent an internal error"Jenkins2013-03-121-3/+5
|\ \ \ \ | |_|_|/ |/| | |
| * | | Keep exc_info() to prevent an internal errorHaiwei Xu2013-03-111-3/+5
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1135539 When SysLogHandler is configured in UDP socket mode, the user who doesn't have the admin privilege got the unexpecting internal server error(HTTP 500) in "nova dns-create-private-domain" command. This bug occurs as the call graph drew below: |--ProxyCallback._process_data():amqp.py |--LOG.exception() | : | |--BaseHub.switch():hub.py | |-- clear_sys_exc_info() | |--ctxt.reply(None, sys.exc_info(),..) | : | |--serialize_remote_exception():common.py |--failure_info#(None,None,None) The sys.exc_info() is cleared by the clear_sys_exc_info(), but it is called again by the ctxt.reply(). This patch prevents the internal error and returns the details of the forbidden error(HTTP 403) which is expected. Change-Id: I549b4b2365c53c401edc80bbe30bcde249d27b85
* | / Fix locking issues in WindowsPedro Navarro Perez2013-03-121-2/+2
| |/ |/| | | | | | | | | | | | | | | | | The Windows Storage Cinder plugin through the Windows Locks implementation of the InterProcessLock fails in attaching/detaching operations. Change-Id: I682205592e152b3222e04ca3221d25594d134dd9 Fixes: bug #1153966
* | Merge "Fix inconsistency with auth_tok/auth_token"Jenkins2013-03-111-3/+3
|\ \
| * | Fix inconsistency with auth_tok/auth_tokenDavanum Srinivas2013-03-101-3/+3
| |/ | | | | | | | | | | | | | | Switch to using auth_token instead of auth_ok Fixes LP# 1152826 Change-Id: I56569c1fa8f29b0474440c40644729d436d41c7b
* / Stop using --stat for ChangeLog.Monty Taylor2013-03-101-1/+1
|/ | | | | | | | It takes 15 seconds to generate the ChangeLog for nova. Without --stat, it takes 0.5 seconds. Removing this makes using tox in nova about the same speed as using install_venv/with_venv. Change-Id: I626d5e788bfaf1a80b91d845f21af54680f81c35
* Merge "Add 'is' operator to extra specs ops."Jenkins2013-03-072-1/+35
|\
| * Add 'is' operator to extra specs ops.Avishay Traeger2013-03-072-1/+35
| | | | | | | | | | | | | | | | | | | | | | | | Boolean values for capabilities don't work because extra_specs are all converted to unicode. The scheduler will then check, for example, if the boolean 'True' is equal to the unicode string 'True', and will always return False. This patch allows admins to specify '<is> True' in extra_specs, which will compare successfully to boolean True. Fixes bug: 1146306 Change-Id: Id0e6dcfb71eb0943a16bba551ec23c4d57206550
* | Don't check exit codes when patching.Dan Prince2013-03-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Similar to what we did in 427769c we need to ignore checking exit codes for patch -N command so that they can be run multiple times. The motivation here is that I would like to use this to patch virtual env's created by tox. Tox doesn't provide a good hook to call post_process (which patches files) only once so the idea here is we'll just let it call post_process all the time... Change-Id: I866e7a3e1fd492d7d4c08eb55cde02f2dfa16c9a
* | Update install_venv_common to use patch -N.Dan Prince2013-03-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes it possible to call the post_process function in install_venv_common (which currently only patches files) multiple times. The motivation here is that I would like to use this to patch virtual env's created by tox. Tox doesn't provide a good hook to call post_process (which patches files) only once so the idea here is we'll just let it call post_process all the time... and for distro's where patching is used to fix the venv the patch -N option will make it skip patches on subsequent runs. Change-Id: Ib0a36e49dd1884de131c569fe8bb66fe20285e97
* | Switch to oslo.configMark McLoughlin2013-03-061-1/+1
| | | | | | | | | | | | | | The oslo-config package has been renamed. Switch to the new version. Change-Id: I6a0fa803b0076bc5338c996e21bbcef54e1d75cd
* | Merge "Preserve exceptions in impl_zmq."Jenkins2013-03-061-8/+9
|\ \
| * | Preserve exceptions in impl_zmq.Russell Bryant2013-03-051-8/+9
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is complication with re-raising exceptions and our usage of eventlet. If the code in the exception handler accesses the db or rpc in the exception handler, it will no longer be able to re-raise the exception. Using excutils.save_and_reraise_exception() works aorund this issue. The most common error is calling LOG.error() or LOG.exception(), as it is possible for these to go access rpc. There is an option to turn on notifications for these errors. Fix bug 845866. Change-Id: Ic914bba4703200ed114a42e3a55402883b430407
* / Simple code cleanupMatthew Sherborne2013-03-062-6/+4
|/ | | | | | | | | * Fix an exception that was raising a tuple * Remove unused imports * Remove unused exceptions * Remove extra blank lines Change-Id: I9127be991e9081dc173525c9b57ea297f389d16d
* support ISO 8601 micro-second precisionGuang Yee2013-03-042-6/+25
| | | | | | Bug 1134802 Change-Id: I9cc3c9d9324314d293f01f047882eb6be06e02dd
* Merge "Don't log a traceback on rpc call timeout."Jenkins2013-03-042-4/+4
|\
| * Don't log a traceback on rpc call timeout.Russell Bryant2013-03-022-4/+4
| | | | | | | | | | | | | | | | | | | | | | There are cases where an rpc call is gracefully handled. The rpc drivers should just let the caller deal with this and decide whether it is an error worth logging a traceback over. Otherwise, we unnecessarily raise alarm by leaving a mess in the log file. Fix bug 1137994. Change-Id: I0e831ddcc43ffea78aae1fb5e46c5037c461b2a1
* | Don't LOG.error on max_depth (by default).Dan Prince2013-03-021-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | Reverts part of a94b9b4 which added an extra LOG.error statement when max_depth is hit. This is causing spurious errors to get logged in some of our projects which have adopted this changed. Related to: https://bugs.launchpad.net/nova/+bug/1140133 Change-Id: Ie7939e41797da000dd8b269f905f351df0b7116d
* | Merge "Add simple in-memory cache from nova."Jenkins2013-03-012-0/+154
|\ \
| * | Add simple in-memory cache from nova.Vishvananda Ishaya2013-03-012-0/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Redis-based matchmaker"Jenkins2013-03-017-33/+542
|\ \ \
| * | | Redis-based matchmakerEric Windisch2013-03-017-33/+542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a reference implementation of a matchmaker (based on redis) that supports dynamic host/topic registrations, host expiration, and hooks for consuming applications to acknowledge or neg-acknowledge topic.host service availability. Implements blueprint advanced-matchmaking Change-Id: I8608d2089fca118b0e369f2eb5c6aedacf6821fe
* | | | Merge "update.py: DRY up using functools.partial()"Jenkins2013-03-011-3/+7
|\ \ \ \
| * | | | update.py: DRY up using functools.partial()Mark McLoughlin2013-03-011-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We call _copy_pyfile() a bunch of times with the same base and dest_dir arguments. Clean that up using functools.partial(). Change-Id: I22a3e748f2e138b17a6b99d90ec9eca72698f6e7
* | | | | Zmq correct envelope param for notify()Eric Windisch2013-02-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The notify parameter was expected as a kwarg, although __init__.py expects this to be a standard argument. Tests are not yet covering this, but are forthcoming. Change-Id: Id6a0a81ef250e43c7ab3dc9d5392f89752d0f313
* | | | | Zmq notifier topic manip fix.Eric Windisch2013-02-281-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ZeroMQ driver needs to manipulate the topic for notifications because the period is used as a delimiter internally. The code was already trying to perform this modification via topic.replace, but was not storing the result. Change-Id: I02a174dd96ff9181f6d7460fd41434ea05fb39d4
* | | | Merge "Port safe parsing with minidom patches from Nova"Jenkins2013-02-273-1/+177
|\ \ \ \
| * | | | Port safe parsing with minidom patches from NovaDavanum Srinivas2013-02-263-1/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent attacks through xml entity expansion etc. Fixes LP# 1100282 Change-Id: I391531deac122697556c282184c8f8890ea66489
* | | | | Merge "zmq: parse receiver CLI opts in main"Jenkins2013-02-271-1/+1
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | zmq: parse receiver CLI opts in mainMark McLoughlin2013-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We shouldn't be parsing options from sys.argv() unless the main function is being run. Change-Id: Id6bae72b80ce35721f02323a7bf7713132a49ac9
* | | | | Fixes import order nitsZhongyue Luo2013-02-262-3/+4
|/ / / / | | | | | | | | | | | | Change-Id: I6085bb4a0b990985c8f7a013c89b7d5acafdf312
* | | | Merge "openstack.common.setup: fails to get version from git"Jenkins2013-02-252-24/+73
|\ \ \ \
| * | | | openstack.common.setup: fails to get version from gitDavanum Srinivas2013-02-252-24/+73
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | quantum run_tests.py fails because openstack.common.setup._get_version_from_git fails. It is because quantum unit tests run under quantum/tests/unit instead of git root dir. So the function should check parent dirs for .git. cinder folks seem to have hit this bug (1125416). ERROR: test_network_gateway_update (quantum.tests.unit.nicira.test_networkgw.NetworkGatewayExtensionTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "quantum/quantum/tests/unit/nicira/test_networkgw.py", line 70, in setUp config.parse(args=args) File "quantum/quantum/common/config.py", line 99, in parse version='%%prog %s' % quantum_version.release_string()) File "quantum/quantum/openstack/common/version.py", line 63, in release_string self.release = self._get_version_from_pkg_resources() File "quantum/quantum/openstack/common/version.py", line 56, in _get_version_from_pkg_resources return setup.get_version(self.package) File "quantum/quantum/openstack/common/setup.py", line 334, in get_version raise Exception("Versioning for this project requires either an sdist" Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Change-Id: I2e24c00b5ba8f35381cac081ff72d86ea0d75d19 Fixes: bug #1131162 and bug #1125416 Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
* | | | Merge "Decode / Encode string utils for openstack"Jenkins2013-02-252-1/+107
|\ \ \ \
| * | | | Decode / Encode string utils for openstackFlaper Fesp2013-02-252-1/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently some clients lack of non-ASCII characters support. This patch introduces 2 functions (strutils.py) that will help clients and servers to "safely" encode and decode strings. About the ensure_(str|unicode) functions: They both try to use first the encoding used in stdin (or python's default encoding if that's None) and fallback to utf-8 if those encodings fail to decode a given text. Neither of them will try to encode / decode non-basestring objects and will raise a TypeError if one is passed. Use case: This is currently being used in glanceclient. I5c3ea93a716edfe284d19f6291d4e36028f91eb2 Needed For: * Bug 1061156 * Bug 1130572 Change-Id: I78960dfdb6159fd600a6f5e5551ab5d5a3366ab5
* | | | | Merge "Update flakes.py to match 0.6.1."Jenkins2013-02-253-7/+16
|\ \ \ \ \
| * | | | | Update flakes.py to match 0.6.1.Monty Taylor2013-02-253-7/+16
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | pyflakes 0.6.1 changes a module path - but we want to use it, because it finally groks attributes properly. Change-Id: Id35d1551c78212adb7ab470cefd9a53827167a71