| 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
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ \ \ |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fully fixes wrong param passed to the exception constructor from oslo.config
occurring in Enforcer._get_policy_path
Closes-Bug: #1208397
Change-Id: I28b11178808b447555e6e6e63383904749c77b18
|
| |\ \ \ \
| |_|/ /
|/| | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Some modules have bitmode 755. Changed to 644
Change-Id: I2084779186fcbd5ee2010451531355a0c67897f5
|
| |\ \ \ \
| |/ / /
|/| | | |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ \ \
| |_|/ / /
|/| | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| |/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
If secret_key_file is set, then secret_key is ignored. Clarify this in
the help strings.
Change-Id: Ie10ebb7c76e274b31ab9826a81373518c9b09e0a
|
| |\ \ \ \ \ |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add Message Security[1] class and exceptions
Also add process-local Key Storage and Caching facility.
[1] https://wiki.openstack.org/wiki/MessageSecurity
Change-Id: Ieced7ab6a9209c3e0291d26376a8d35c25175002
|
| |\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
|
| | |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
There was missing exceptions QuotaExists and ProjectUserQuotaNotFound
Rename message format property from `message' to `msg_fmt' in QuotaException
Change-Id: I93f621fae342e78280bf50eebf5b0bca9d281ed3
|
| |\ \ \ \ \
| |/ / / /
|/| | | | |
|
| | | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The parsing in
openstack/common/gettextutils.Message._save_dictionary_parameter
does not account for two or more format directives in direct
succession, e.g.:
%(key1)s%(key2)s
causing key/value pairs to not be copied during a mod operation.
Fixes bug 1207789
Change-Id: I56940003de3e6e2fa7dd08604d04f4c57586b0a3
|
| |\ \ \ \ |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Python3 reorganized the standard library and moved several functions
to different modules. Six provides a consistent interface
to them through the fake six.moves module.
However, the urlparse, urllib2, etc modules have been combined
into one module which Six does not support so do it the old
fashioned way.
Change-Id: I9a865ef1fc4de6f94cc3ccf26db0483f2bdc13df
Signed-off-by: Chuck Short <chuck.short@canonical.com>
|