| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Group keys are keys used by all the hosts listening to a specific
topic. The unqualified topic name is the group name.
Example: conductor, scheduler, ...
Change-Id: Ia5bcdd140cef16e07d4d8ab4030d1ac5cb59212c
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Wires in SecureMessage so that signing can be optionally used.
Signing messages is always attempted but failing to create a signed message is
currently not fatal. In case of failure the message is sent unsigned.
Once all services has been converted to support signing, we can start switching
on mandatory signing.
Currently the service name needs to be a global due to the way services are
constructed.
Change-Id: Ie565bbaf61a69a4e526e78e723efecb5e2712877
|
| |
|
|
|
|
|
| |
The KDS review process has determined some changes to the API. This patch fixes
KDSClient to interoperate properly.
Change-Id: I888e8a41573f171048356a9d277de1d7610537ce
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Consumers could potentially raise an uncaught exception
and exit prematurely.
Related to bug 1189711
Change-Id: I9cb32d8530f3a1dd623e193476e02b990b40b466
|
| | |
| |
| |
| |
| |
| | |
Fixes H202, H602 errors
Change-Id: Ic3045f15116d1d7a28b63bc94a0a341b9304ffdd
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This patch drops the obsolete openstack.common.exception module.
Most project should define their own exception based on their API and
the context they evolve in. Many projects don't use this, only neutron,
cinder and heat used it. I've copy pasted the few exceptions that they
were using, but that's still by far less code than this whole file.
Ultimately that will let them a chance to remove or shring their own
exception.py. I don't think most projects should have one anyway.
Change-Id: Ia8b2b29bd443233def324e97de7342c2634bccff
Closes-Bug: #1208734
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add urljoin for python2/python3 compatibility,
used by python-keystoneclient.
Change-Id: Ied0841bf6b34d0087002c77915031156767b3d8d
Signed-off-by: Chuck Short <chuck.short@canonical.com>
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It is the first step to replace using tests.utils with openstack.common.test.
All these tests don't use mock objects, stubs, config files and use only
BaseTestCase class.
Change-Id: I511816b5c9e6c5c34ebff199296ee4fc8b84c672
bp: common-unit-tests
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Since nova has switched from using gettext.install for
importing the _ function to explicitly importing the _
function from gettextutils, we need to be able to enable
our deferred translation code path on the gettextutils._
function.
Change-Id: I7fec00810ea57c985e1f43c644913a9980b35655
|
| |\ \ \ \ \ |
|
| | | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Moved Nova `./run_tests.sh` script to `tools/run_tests_common.sh` file.
This script run unit-tests and can be reused in other projects.
Added script `./run_tests.sh` with project specific variables to run
`tools/run_tests_common.sh` script.
Added required `tools/*` files for pretty colorizer outpoot.
Modified `tests/utils.py` file - added work with OS_TEST_TIMEOUT,
OS_STDOUT_CAPTURE and OS_STDERR_CAPTURE environment variables from .testr.conf
blueprint run-tests-script
Change-Id: I057e8cf2c74d160402cb881fc761623c74905b7e
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fully fixes wrong param passed to the exception constructor from oslo.config
occurring in Enforcer._get_policy_path
Closes-Bug: #1208397
Change-Id: I28b11178808b447555e6e6e63383904749c77b18
|
| |\ \ \ \ \ \ |
|
| | | |/ / / /
| |/| | | |
| | | | | |
| | | | | | |
Change-Id: I9ea7398281fe57c02df74854ecac8431125638e0
|
| |\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Some modules have bitmode 755. Changed to 644
Change-Id: I2084779186fcbd5ee2010451531355a0c67897f5
|
| | |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When generate_sample.sh generate the configuration of the
keystone middleware part, it use OS_XXXXX environment
variable if this one is set instead of the default one.
This change unset this variables, before generate_sample.sh
inspect the code to always have the default value.
Change-Id: I4f41eece3d93633fcc07274f533adfa1887325fc
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously, processutils.execute always logged what commands were
run at DEBUG level. This is usually fine, but sometimes the caller
wants to log particularly important commands at INFO level instead,
and oslo should allow that.
Change-Id: I89af6fdc0bb11a4134aaaca417a54ba3b515ca7e
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Most places correctly have "direct", but one place has "Direct"
instead, which is incorrect.
Fixes bug #1211338
Change-Id: I2516317ff7f6ff18ee0a99a60d0c058ed309d4da
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Handle the case where the context passed into def pack_context() is a
dictionary. If a dictionary is passed in, we don't need to call to_dict
before updating the msg.
fixes bug 1208971
Change-Id: I2ce0b28f97634e717868e0ee5525189338d4981c
|
| |\ \ \ \ \ \ |
|
| | |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This capitalization shows up in the manual as well. Let's be consistent.
Change-Id: I282d4ae3311bc3fcda6be8e5a1fceecfc8ddb115
|
| |\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The removed code doesn't serve anything.
Change-Id: I04b0cf7abc465de0115345018d2157da67f6985c
|
| |\ \ \ \ \ \
| |_|_|_|/ /
|/| | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
If someone passes a ConfigOpts instance other than cfg.CONF, we need
to register the group and options with it.
Change-Id: I10908d5e29d8a871ae29a5d3fa3f415e487f23b8
|
| | |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Some projects, like horizon, do not carry the eventlet patch.
Change-Id: I24ffad9ab7852be44e5d6c8805aa0a47647e21cc
|
| |\ \ \ \ \
| |_|/ / /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Many tests change config's variables directly in CONF object. This
fixture allows to override the values in more convenient way and
restores config after test completion.
Blueprint: common-unit-tests
Change-Id: I5535c534425278d8804ca9fe84846e15ac898db0
|
| |\ \ \ \ \ |
|
| | | |_|/ /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
AndCheck() and OrCheck() classes in common policy module missing a argument
when calls rules in __call__() method.
Current patch fixed it by adding the necessary argument. Tests added.
Fixed bug 1194354
Change-Id: I9a6e7d04b06ef61216cb7dbfd291c855b799b621
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The database url is sanitized in logfiles because of security issues.
However the connected url itself is useful information to devs and admins.
This patch provides a helper function to sanitize only the credentials
in a database url. All projects must process the CONF.database.connection
value using "sanitize_db_url" when updating the db package
Fixes bug #1076833
Change-Id: Id6cf7b120ef6c3fcda7f33fd26676b62a4475bb2
|
| |\ \ \ \ \ \ |
|
| | | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Added functions for work with migration scripts to
openstack/common/db/sqlalchemy/migration.py file. This code can be used
in Nova, Cinder, Glance, etc. Added new DbMigrationError exception to
openstack/common/db/exception.py file.
Tests added.
blueprint test-migrations
Change-Id: Ia63f7fb89b0a6baacf3fd424c0db09c74680af4a
|
| |\ \ \ \ \ \ |
|
| | | |_|_|/ /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add BaseTestCase class - testtools wrapper;
Blueprint: common-unit-tests
Change-Id: I5bce04f2ee55f678ea5a2a2c76f5837454ed7bb7
|
| |\ \ \ \ \ \ |
|
| | | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Remove redundant parenthesis and use a consistent commenting style.
Some redundant parenthesis are retained to avoid this pep8 silliness:
https://github.com/jcrocholl/pep8/issues/126
i.e. to avoid E125 we have the choice of:
if (md['source'] != source or
md['destination'] != target or
md['expiration'] < time.time()):
raise InvalidEncryptedTicket(md['source'], md['destination'])
or:
if ((md['source'] != source or
md['destination'] != target or
md['expiration'] < time.time())):
raise InvalidEncryptedTicket(md['source'], md['destination'])
the latter is my preference.
Change-Id: Ic890bfc787a17fc77821e01e586806d1b558d530
|
| |\ \ \ \ \ \ |
|
| | |/ / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The global keyword is only needed where we are assigning to the variable
in the method.
Change-Id: If9f3fcc5323e2a154db1f5b457ce3d5079f83253
|
| |\ \ \ \ \ \ |
|
| | |/ / / / /
| | | | | |
| | | | | |
| | | | | | |
Change-Id: I03ed9f1cbbc08dea43a5c93d6997eb4e633dfed4
|