summaryrefslogtreecommitdiffstats
path: root/openstack
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Merge "Remove useless logging in networks_utils"Jenkins2013-06-201-5/+0
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Remove useless logging in networks_utilsJulien Danjou2013-06-191-5/+0
| |/ / / | | | | | | | | | | | | | | | | Change-Id: Ia5a355557bf98b0152cb606ffd5c13d97fa71074 Signed-off-by: Julien Danjou <julien@danjou.info>
* / / / Remove unused zmq relay functionalityMark McLoughlin2013-06-171-26/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug #1188029 This relay functionality appears to be completely unused and untested so just remove it. If we need it in future, we can restore it from the git history. Change-Id: I479d654aefdbd58c80946818b9a405eaa02644db
* / / Refactors to_bytesZhongyue Luo2013-06-131-21/+23
|/ / | | | | | | | | | | | | The original logic was not intuitive. Changed the code for better readability. Change-Id: I0d96105d4ff22eed827ed61466a26f69f33addd1
* | Merge "Handle relative path arguments in Killfilter"Jenkins2013-06-121-13/+22
|\ \
| * | Handle relative path arguments in KillfilterDirk Mueller2013-06-121-13/+22
| |/ | | | | | | | | | | | | | | | | | | | | | | KillFilter currently expects an absolute path to be specified for the process name to kill. This is inconvenient when the exact location of the running binary is not known or differs accross installs. Extend KillFilter to accept also commands in $PATH to be killed if the given argument is not absolute. Change-Id: I6b90206b587ff3f949af2c256a78ca21af31867a
* | Merge "Fix workarounds for some values"Jenkins2013-06-121-2/+3
|\ \
| * | Fix workarounds for some valuesJulien Danjou2013-06-071-2/+3
| | | | | | | | | | | | | | | | | | | | | This fixes the default values for hostnames and paths. Change-Id: I434a4f0269e2d0a3a667056233078ff01d0cdb72 Signed-off-by: Julien Danjou <julien@danjou.info>
* | | Merge "Add a funcutils file for working with functions."Jenkins2013-06-121-0/+76
|\ \ \ | |_|/ |/| |
| * | Add a funcutils file for working with functions.Joshua Harlow2013-06-091-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Multiple projects are starting to copy around the various function utilities that exist in nova and elsewhere. It would seem appropriate that there exist a helper file in oslo that was used instead as a central place for this type of code. Change-Id: Ia83f26da16b0c868506ecf90e1aaf8affecf3617
* | | Merge "Allow exceptions to hop up cells"Jenkins2013-06-121-3/+15
|\ \ \
| * | | Allow exceptions to hop up cellsMatthew Sherborne2013-06-121-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an exception happens in an RPC call using nova cells, it can travel back up several RPC boundaries. eg, child-cell=>parent-cell=>nova-api Before this patch if an exception (eg. AggregateNotFound) was raised in the bottom layer, the next layer up would turn it into a special exception ( AggregateNotFound_Remote ), then in the final layer, it would see this as an unrecognizable exception and raise RemoteException. After this patch, at each layer where the expeption is deserialized, it'll recognize exceptions with the _Remote postfix, and leave them as they are, instead of turning them into RemoteExceptions. It also preserves the exception's original __module__ now. Change-Id: I158a80f1cec20d3e1805b565ffddaffd7a15295b
* | | | Merge "Add slugify to strutils"Jenkins2013-06-121-0/+30
|\ \ \ \ | |/ / / |/| | |
| * | | Add slugify to strutilsAlessio Ababilov2013-06-111-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | This function will be used in apiclient library. Change-Id: I19f976eda896e7bede07510aafebe4931e512351
* | | | Merge "Remove the amqp_rpc_single_reply_queue option from Havana"Jenkins2013-06-111-91/+9
|\ \ \ \
| * | | | Remove the amqp_rpc_single_reply_queue option from HavanaRaymond Pekowski2013-06-051-91/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | blueprint amqp-rpc-fast-reply-queue As part of the Grizzly code review for the above blueprint (Idb09a714), the Grizzly code base is "aware" of this feature in terms of receiving RPCs and provided with an option for enabling it on the RPC send side. It was decided that in Havana the option would be removed, RPCs would only be sent using the new functionality yet awareness of prior functionality be retained for the receiving of RPCs. This code change implements the Havana piece. Change-Id: I5f2a8e432cf84a637c1aa813656c1cbc8db6e7eb
* | | | | Merge "zmq: remove someone unused code from ZmqClient"Jenkins2013-06-111-5/+3
|\ \ \ \ \
| * | | | | zmq: remove someone unused code from ZmqClientMark McLoughlin2013-06-061-5/+3
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The socket_type and bind constructor args are never used. We always supply a value for the envelope argument. Change-Id: Ide2e11170a3415ef347f85bfcce759cdd55d1225
* | | | | Merge "Add can_send_version() to RpcProxy."Jenkins2013-06-111-0/+5
|\ \ \ \ \
| * | | | | Add can_send_version() to RpcProxy.Russell Bryant2013-06-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a helper method to the RpcProxy class. This is a little nicer to use for checking to see if a given message is copmatible with the set version cap. Change-Id: Ic44d76f4181351dff367f2d1181a3d508a11db78
* | | | | | Merge "Enable hacking H404 test."Jenkins2013-06-1124-359/+286
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Enable hacking H404 test.Dina Belova2013-06-1124-359/+286
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | H404 - multi line docstring should start with a summary. Change-Id: I2099e1ee81ff9657f7a07401b8e8f3327d03bdbd
* | | | | | Merge "Raise a DeprecationWarning when openstack.common.deprecated is imported"Jenkins2013-06-111-0/+21
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Raise a DeprecationWarning when openstack.common.deprecated is importedFlaper Fesp2013-06-111-0/+21
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have a deprecated package in Oslo where deprecated modules / packages will be moved. In order to make this more clear and warn users, this patch adds a warning in deprecated's __init__.py module. Change-Id: Id7097da1b034499fec1b6d44a358223476d9ba83
* / | | | Enable user to configure pool_timeoutGary Kotton2013-06-111-3/+20
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1160442 In addition to this there are the following changes: 1. The set_default method can configure the QueuePool parameters 2. The max_pool_size is defaulted to the QueuePool default Change-Id: Ie99f7fc4edba68127c4af508290d8074d7094be9
* | | | Merge "MatchMakerStub - make it work & add test"Jenkins2013-06-111-1/+1
|\ \ \ \
| * | | | MatchMakerStub - make it work & add testEric Windisch2013-05-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The super() in MatchMakerStub.__init__ was referencing the wrong class due to copy/paste. I've also added a test for this class. Fixes bug 1185501 Change-Id: I298c8c1df4dcb3d3e905ecbb5400d16b3383fdf9
* | | | | Merge "Move wsgi module to deprecated package"Jenkins2013-06-117-91/+129
|\ \ \ \ \
| * | | | | Move wsgi module to deprecated packageDoug Hellmann2013-06-077-91/+129
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As we are planning to deprecate the wsgi module, move it out of the main openstack/common folder to the new "deprecated" folder. Move some of the middleware classes into the middleware package, since those are still useful and should be maintained. There's still work to do to remove the dependency of the size limit middleware on the Request class in the now deprecated wsgi module. Refer to the mailing list thread at http://lists.openstack.org/pipermail/openstack-dev/2013-May/009666.html for additional details. Change-Id: I05ff583ef37174835393905a3066390f400ffdcf Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
* / | | | Use param keyword for docstringsFlaper Fesp2013-06-101-11/+12
|/ / / / | | | | | | | | | | | | Change-Id: I381a5f917a1c274634173d843dde730218806506
* | | | Merge "Changed processing unique constraint name."Jenkins2013-06-071-2/+2
|\ \ \ \
| * | | | Changed processing unique constraint name.Victor Sergeyev2013-06-071-2/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mr. Devananda found that dollar sign can be used as special symbol in various programming langugages and proposed to use `0` instead of `$`. So unique constraint name convention was changed from "uniq_t$c1$c2$c3" to "uniq_t0c10c20c3" where `0` it is delimiter, `t` it is table name and columns `c1`, `c2`, `c3` are in UniqueConstraint. Function `_raise_if_duplicate_entry_error()` modified respectively to new unique constraint name convention. Change-Id: I88208dc03b55bbbc709b18580048c008004c9fda
* / | | Use Python 3.x compatible except constructDirk Mueller2013-06-072-2/+2
|/ / / | | | | | | | | | | | | | | | | | | | | | Per (proposed) Hacking H203 check, always use the except x as y: construct, which works with any Python version >= 2.6, including Python 3.x. Change-Id: I46028647d5a2a53ba8e9ce4d2e8fc6e71850fdae
* | | Merge "Add basic lazy gettext implementation"Jenkins2013-06-061-0/+176
|\ \ \
| * | | Add basic lazy gettext implementationMatt Odden2013-05-231-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first part of an implementation towards a deferred localization functionality in OpenStack. This change adds a Message class for encapsulating a translatable message and its relevant data, as well as an example LogHandler of how such a class can be used in the logging context. bp delayed-message-translation Change-Id: I8485a346d32925327ea9185e0da3822e4e19c2f5
* | | | Added common code into fileutils and strutils.Ghe Rivero2013-06-062-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This methods are present in nova, cinder and also needed by ironic package. openstack.common.strutils => nova.utils <=> cinder.utils to_bytes(text, default=0) openstack.common.fileutils => nova.utils <=> cinder.utils <=> nova/virt/libvirt/utils.py file_open(*args, **kwargs) Change-Id: Ia65499b77eb551c0ffb6d48767b899435469bfb6 Implements: blueprint image-tools
* | | | Add common code for fileutils.Ghe Rivero2013-06-061-0/+31
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code is present in nova, cinder and also needed by ironic package. * delete_if_exists * remove_path_on_error Also added some tests. openstack/common/fileutils.py => nova.common.utils <=> cinder.common.utils Change-Id: Id5001db161bb8e7dfb20d1b2cc2033e886cda32f Implements: blueprint image-tools
* | | Merge "Enable H306 hacking check."Jenkins2013-06-042-3/+3
|\ \ \
| * | | Enable H306 hacking check.Dina Belova2013-06-042-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | H306 - imports not in alphabetical order. Change-Id: Iaa93bcafed562833318ac86241ad36662c2d8ca6
* | | | Fix problem with long messages in QpidBen Nemec2013-06-031-0/+47
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Qpid has a limitation where it cannot serialize a dict containing a string greater than 65535 characters. This change alters the Qpid implementation to JSON encode the dict before sending it, but only if Qpid would fail to serialize it. This maintains as much backward compatibility as possible, though long messages will still fail if they are sent to an older receiver. Fixes bug 1175808 Change-Id: I5d104e099f523508dae2b657f7d06d96984b10f0
* | | Merge "Add a slave db handle for the SQLAlchemy backend."Jenkins2013-06-031-10/+64
|\ \ \
| * | | Add a slave db handle for the SQLAlchemy backend.Michael Wilson2013-06-031-10/+64
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds an option for a slave DB connection for scaling purposes. Read queries can be sent here to spread out db load a bit. This patch adds a new configuration option: slave_connection. Implements: blueprint db-slave-handle Change-Id: I5cc5e0696e3fcd8609ee6b5466b0377ca52b8b58 DocImpact
* | | Enable hacking H402 testSergey Lukjanov2013-06-0314-85/+85
| | | | | | | | | | | | | | | | | | H402 one line docstring needs punctuation Change-Id: Ie848453cace318d8310cdf0234c512f4c1121119
* | | Silence exceptions from qpid connection.close()David Ripton2013-05-311-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes bug 1185465 Don't log exceptions that happen during connection.close(). They're not surprising (a closed socket can't be read or written), don't require sysadmin attention, and provide red herrings in the logs to distract from finding real root causes of problems. Change-Id: Ie414ba3f4ff1f1dee13e6168ac2e28dab535581b
* | | Merge "Reduce duplicated code related to policies"Jenkins2013-05-312-53/+184
|\ \ \
| * | | Reduce duplicated code related to policiesFlaper Fesp2013-05-212-53/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds some logic that is currently duplicated throughout Openstack. As part of this de-duplication, the patch also modifies current implementation. Major Changes: * check, set_rules, reset, init are now part of the Enforcer class * check was renamed into enforce * init was renamed into load_rules * It is now possible to load multiple files and have per instance rules instead of global rules. * There's a global instance of the Enforcer class that can be used as main enforcer. from openstack.common import policy ENFORCER = policy.ENFORCER ENFORCER.enforce(rule, target, creds) Minor Changes: * Added do_raise to the enforce method * Enforcer instance is now passed to the Check call. NOTE: If / once this patch gets in, I'll update other projects and port them to the latest version. Change-Id: Ife909bdf3277ef33c2fb1eae16ae261fa6374c63
* | | | Merge "Use zero-copy in ZeroMQ proxy (zmq-rpc-receiver)"Jenkins2013-05-311-14/+7
|\ \ \ \
| * | | | Use zero-copy in ZeroMQ proxy (zmq-rpc-receiver)Eric Windisch2013-05-231-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, messages will not be copied into the Python memory space from the C library. The 'topic' key *will* be copied, to make use of several string/bytes functions that are available to us. (Potentially, we might be able to work with this as a memoryview in the future as a further optimization?) Implements blueprint zmq-zero-copy Change-Id: I20a700867ac642b1a1788b31e3a21f8a299c97c8
* | | | | Merge "Enable hacking H403 test"Jenkins2013-05-308-11/+21
|\ \ \ \ \
| * | | | | Enable hacking H403 testSergey Lukjanov2013-05-308-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | H403 multi line docstring end on new line Change-Id: I33249651026b54ef346214965e909835288bb14e