1086 Commits

Author SHA1 Message Date
Jenkins
b02dd25655 Merge "Mask passwords when logging messages" 2015-08-24 16:10:31 +00:00
Ryan Rossiter
c990ee02fa Mask passwords when logging messages
When logging a message, any secrets and passwords should be masked. This
uses oslo_utils.strutils to mask any passwords that are to be logged.

Change-Id: I263d44c0f2e900c5f6e210cbd7ec56e48d0d5bb2
Closes-Bug: #1487038
2015-08-24 13:13:44 +00:00
OpenStack Proposal Bot
be05c54d33 Updated from global requirements
Change-Id: I256071ecbde8683e23d0b9b0d370767a5d8f14df
2015-08-23 05:27:53 +00:00
Jenkins
d0d08bd406 Merge "Added trace logging for debuggability" 2015-08-22 01:47:50 +00:00
Jenkins
312491adf8 Merge "Use proper translating helper for logging" 2015-08-21 09:21:03 +00:00
Davanum Srinivas
588d795b3c Use proper translating helper for logging
Add hacking rule borrowed from keystone to make sure
we don't regress and fix all the issues found by the
hacking check.

Change-Id: I41635fdd83c3e04d04f9849a72c49ccb5ac42875
2015-08-20 21:01:59 -04:00
Jenkins
67d8bcd5dc Merge "Improve simulator.py" 2015-08-20 18:24:37 +00:00
Victor Sergeyev
28de384e9c Improve simulator.py
- added config options to set debug level
- added config options to show proceed messages per second on rpc-server
- added config options to select executor for rpc-server
- added config options to select call or cast mesages for rpc-client

Usage section updated

Change-Id: Ieadbc600f556ca5eb43b05abec69315b46023662
2015-08-20 11:56:42 +03:00
Jenkins
385a768900 Merge "Fix message missing after duplicated message error" 2015-08-19 18:15:45 +00:00
OpenStack Proposal Bot
774da10518 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ibebc21909fd97ce75b985b3afa8143b54cf1fa64
2015-08-18 06:33:42 +00:00
Jenkins
03318a936d Merge "Updated from global requirements" 2015-08-17 18:05:24 +00:00
Jenkins
428414bf82 Merge "Replace 'M' with 'Mitaka'" 2015-08-17 17:49:54 +00:00
Davanum Srinivas
e1fadfc706 Added trace logging for debuggability
Pushing upstream a patch we used for debugging several rabbit
issues in an old fork of oslo.messaging. Use the new
LOG.trace() functionality from oslo.log 1.8.4

Co-Authored-by: Bogdan Dobrelya <bdobrelya@mirantis.com>
Co-Authored-by: Alexei Kornienko <akornienko@mirantis.com>
Co-Authored-by: Oleksii Zamiatin <ozamiatin@mirantis.com>

Change-Id: I0033bba47002f9685479bbd55b29746a06563a51
2015-08-16 22:36:31 -04:00
Davanum Srinivas
02a2e6d380 Log warning instead of raising RuntimeError
Changes introduced in:
I0fc1717e3118bc1cd7b9cd0ccc072251cfb2c038

are causing Neutron to fail as summarized by Doug in:
http://markmail.org/message/2xlclp7gqnqpkted

So we should log warnings instead and make sure we
find which projects are affected (using logstash) and
fix them. Once we do that, then we can switch this
back to raise RuntimeError(s)

Change-Id: I9dce272246b89f3ec63aefcf11d385fd2d21da6e
2015-08-16 22:23:37 -04:00
OpenStack Proposal Bot
0dae71dcfe Updated from global requirements
Change-Id: Id8375baa2a5d0051210f6e750b34845643de80d0
2015-08-14 09:21:11 +00:00
John L. Villalovos
d0c107bbbc Replace 'M' with 'Mitaka'
There were three instances of 'M' being used for the 'Mitaka' release.

Change-Id: Ia16bea3520dd2206bf490432864a741ca0d918cb
2015-08-13 09:37:15 -07:00
QingchuanHao
c70bf40be4 Fix message missing after duplicated message error
Message will not be handle after acknowledge failure, but it will store
in cache to prohibit handle duplicate message by skipping it.
So a message can be missed if client receive a duplicate message.

Fix this problem by store the message info in cache after a successfuly
message acknowledgment.

Change-Id: I907a58199eeadac22c31490111ec51ee6dd874d5
2015-08-12 11:26:09 +08:00
OpenStack Proposal Bot
e72dc250b3 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ic71fca8db681f54ee7b71fddb35123ac49d9074c
2015-08-05 06:17:18 +00:00
Victor Sergeyev
1b01d7cee1 Fix BaseDriver.listen_for_notifications() signature
listen_for_notifications() accepts `pool` argument in driver classes, so
we should add this argument to the base abstract class as well.

Change-Id: Ic52924bb66c8a89cdc90102b1171427806e9a823
2015-08-04 15:56:49 +03:00
OpenStack Proposal Bot
5ea78625c0 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I4e960de796e7d4f0c5126f91201e72c572087e87
2015-08-04 06:29:52 +00:00
OpenStack Proposal Bot
16ef20c0b6 Updated from global requirements
Change-Id: Ib82c24c5b29655f21d9b5f488ebf16c7c89d1b26
2015-08-04 00:56:56 +00:00
Jenkins
8374f8a6cd Merge "Ensures that some assumptions are true." 2015-08-03 21:06:31 +00:00
OpenStack Proposal Bot
41531d6043 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: If29b3ed37ecb77346ae14676a87ba6ae50686987
2.2.0
2015-07-31 06:54:35 +00:00
Jenkins
00fa37f2c8 Merge "Fully use futurist code-base to abstract concurrent.futures away" 2015-07-30 09:40:47 +00:00
Mehdi Abaakouk
0dafde9407 Ensures that some assumptions are true.
It's documented, the application consumer must not use wait before stop.
but this is not enforced, so enforce it

Also the code assume start/stop/wait are called from the same thread,
but this is not enforced, so enforce it.

A common broken usage is:

    server = oslo.messaging.get_rpc_server(..., executor='eventlet')
    t = threading.Thread(target=server.start)
    t.daemon = True
    t.start()
    ...foobar code...
    server.stop()
    server.wait()

With monkey patching, start() will do a context switch and then stop()
is called but start is unfinished, that can cause unexpected behavior.

This patch fixes these issues by making all of this explicit.

Closes-bug: #1465850
Closes-bug: #1466001

Change-Id: I0fc1717e3118bc1cd7b9cd0ccc072251cfb2c038
2015-07-30 07:35:06 +02:00
Jenkins
d1c546e5bb Merge "Imported Translations from Transifex" 2015-07-29 17:02:10 +00:00
OpenStack Proposal Bot
8ce1fcf262 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I453012597995d5b93501d9a1c02831bf9f1e4011
2015-07-29 06:39:13 +00:00
OpenStack Proposal Bot
53111dbf57 Updated from global requirements
Change-Id: I1fe92463973b429d60012d87230fbe333550c0b8
2015-07-29 03:49:59 +00:00
Joshua Harlow
93eb0febc7 Fully use futurist code-base to abstract concurrent.futures away
Change-Id: Iafa789f20d1ac365fe9da2ede2b2fa03a3b8720f
2015-07-23 11:58:49 -07:00
OpenStack Proposal Bot
577b93b048 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I6a163c5ee74ac047c2463d257ce73f4e05f16f1e
2015-07-23 06:14:35 +00:00
Jenkins
fae0daecdc Merge "Updated from global requirements" 2015-07-22 22:54:28 +00:00
Jenkins
25b9cdc9eb Merge "Allow a forward slash as a part of the user/password" 2015-07-22 17:26:59 +00:00
OpenStack Proposal Bot
a06e152da9 Updated from global requirements
Change-Id: I2c6205d9e8483c7c3b792b54458e585800c0b4e5
2015-07-22 05:07:52 +00:00
Doug Hellmann
1b390c34b0 add plugin documentation for executors and notifiers
Document the plugins available for executors and notifiers.

Fix the formatting in the aioeventlet executor so the docstring renders
properly.

Change-Id: I7709b65f5aa68fab3822b4de11640309aa07b1d7
2015-07-20 18:30:00 +00:00
Mehdi Abaakouk
d94d6d6892 Allows to change defaults opts
This change introduces to possibility for the consumer application
to change the default oslo.messaging config options.

Same API interface as oslo.db have been taken.
The first option is executor_thread_pool_size.

This option was called rpc_thread_pool_size, but because it's used by
notification and rpc 'executor_thread_pool_size' looks a better name.

Changing executor_thread_pool_size default will be useful for ceilometer
the default of 64 is really to small to consume many notifications at
once for batching them. When is clearly sufficient for rpc stuffs.

Change-Id: Iea0d7a72e38d27c600403c815258aa5eee0d0c8c
2015-07-20 15:37:16 +02:00
Jenkins
10bc6244aa Merge "Update 'impl_eventlet' docstring to reflect actual impl." 2015-07-19 16:20:27 +00:00
Jenkins
431f22cfa5 Merge "Fix amqp connection pool leak in ConnectionContext" 2015-07-18 02:50:23 +00:00
Davanum Srinivas
adcd0807d6 Allow a forward slash as a part of the user/password
quote method has a safe parameter which is set to '/' so when
the end user has a / in the rabbit_password then we end up leaving
that in the url which ends up looking like:

amqp://stackrabbit:pass/word@10.0.0.9:5672//

Which is clearly invalid, so we should set safe parameter to '' which
allows the url to be constructed properly (see transport.py
TransportURL.__str__ method works this work)

Closes-Bug: #1474933
Change-Id: I14fb54440d0925f3676e18d13182ed0fa9c34ca2
2015-07-17 22:26:00 -04:00
Joshua Harlow
cb210cecb7 Update 'impl_eventlet' docstring to reflect actual impl.
Change-Id: I6131fe747c5fb4ef6319a9c22ce029ba7a8e0268
2015-07-17 12:42:20 -07:00
OpenStack Proposal Bot
6c6efe78ca Updated from global requirements
Change-Id: I86096675bad3e9f5c6f9321b7bb71d34aaeb6e1e
2015-07-17 16:16:54 +00:00
Jenkins
b9e7623c30 Merge "Don't install pyngus on Python 3" 2015-07-17 13:50:23 +00:00
Jenkins
1203df8f9f Merge "tests: adjusts an expected time for gate" 2015-07-17 12:16:57 +00:00
Jenkins
6af082ac42 Merge "Remove oslo namespace package" 2015-07-17 09:19:03 +00:00
Mehdi Abaakouk
91705a1d91 tests: adjusts an expected time for gate
Sometimes the gate fails because a test take a bit more time than
expected, this change adjusts this.

Closes-bug: #1475502
Change-Id: I7396c9de82aab18e84c0e08cc1f6f0903884130a
2015-07-17 11:07:59 +02:00
Jenkins
02c020b27e Merge "Ensure callback variable capture + cleanup is done correctly" 2015-07-17 08:42:02 +00:00
OpenStack Proposal Bot
3e78c1bffa Updated from global requirements
Change-Id: I849a458367c822435f226318462ddda5c8c356be
2015-07-16 23:19:51 +00:00
Joshua Harlow
02a3a39814 Ensure callback variable capture + cleanup is done correctly
It appears the the callback variable that was being called on
future done was not the right one, due to the lambda capture
mechanism referring to a lazy variable which would potentially
be a different callback by the time the future would finish so
make sure we capture the right one and ensure the future has access
to it.

This adds a helper method that submission will go through
to ensure that the callback variable is correctly captured
in the created lambda and also ensures that the incomplete futures
list is cleaned up (when the future is done).

The notification listener tests use now eventlet to show up this
issue that doesn't occur with blocking executor.

Closes-bug: #1474943

Closes-bug: #1475307

Change-Id: I23e393d504662532572b5b344b87387be6d7bcb1
2015-07-16 22:05:58 +00:00
Doug Hellmann
03265410e0 Remove oslo namespace package
Blueprint remove-namespace-packages

Depends-on: I2eeef93ee2e61a721c69f62add819f93f62f077d
for openstack/ceilometer
Depends-on: I26390dd908769be5f1a5b70be22d3b98e3a45563
for openstack/ceilometermiddleware
Depends-on: Ifa8baab33cdb3e606cf175a8c29c3a4ef6c44480
for openstack/glance
Depends-on: I029c3260051aa48cfaae428c096c1ac7b43b2bd2
for openstack/ceilometermiddleware

Change-Id: I8c5595bbafa82db33f62fa47d214f5cb756a2639
2015-07-16 17:47:16 +00:00
OpenStack Proposal Bot
01254d1891 Updated from global requirements
Change-Id: I2dab32141f0e661ebd62eeb3fc0eba5912186b6a
2015-07-15 20:44:52 +00:00
Victor Stinner
525e3a2b12 Don't install pyngus on Python 3
pyngus is not compatible with Python 3 yet.

Change-Id: I54431c0a40c46d3027116c07e2bac5cc1ef76a3a
Closes-Bug: #1474852
2015-07-15 15:45:35 +02:00