| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Also removes the auth dir from nova.
fix bug lp:1054848
Change-Id: I9c2710c9789ff8413bc80044eba94f3a851d8544
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove nova.auth.manager -- AuthManager, User, Role, Project, etc.
* Remove nova.auth.dbdriver
* Remove nova.auth.ldapdriver
* Remove nova.auth.signer
* Remove arbitrary scripts and schemas in nova/auth/
* Remove nova/auth/novarc.template
* Remove or update affected tests
* Related to bp remove-deprecated-auth
Change-Id: Ide0fefd0ddf79ae1b3bb74cb242c2893575839e7
|
| |
|
|
|
|
| |
I only just moved logging from nova to common, so behavior should remain the same.
Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
|
| |
|
|
|
|
|
|
|
|
|
| |
Implements blueprint use-common-jsonutils
1. Edit openstack-common.conf and import nova/openstack/common/jsonutils.py
2. Remove json package imports and replace with jsonutils
Places where using json.load hasn't changed.
Change-Id: Ie6feab605fb0474fd505c56ef57b7a9ecfa5269d
|
| |
|
|
| |
Change-Id: Id5b6665a2a40a9bd0830c1a3500b4ad98eec435b
|
| |
|
|
|
|
|
| |
Except for nova/api/, nova/tests/, nova/virt/
In preparation for automated checking being enabled (N306)
Change-Id: I5af70ea13b470ce58695ef0a5e0ff9da3ac1b135
|
| |
|
|
|
|
| |
Fixes bug 817107
Change-Id: I6253e6bbcc44676c587b315fa32afba6459e676a
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use import_class(), import_object(), and import_module() from
openstack-common's importutils module. The equivalent functions have
been removed from nova.utils. A few modules had import order cleaned up
in passing, as well.
My initial motivation for this was to remove some more usage of nova
bits from nova.rpc as another step towards being able to move nova.rpc
import openstack-common. Since I was pulling importutils into nova, I
went ahead and converted the whole thing.
Change-Id: I7c7786cf0001bcd06db52b9a99ff4284a3f6c6fa
|
| |
|
|
|
|
|
| |
Fixes some "its" and "it's" mistakes, and unifies the tense of
some documentation.
Change-Id: I9b83aba535b554e80b2cf1e048bb3a4e5cac0e5e
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* don't load every possible answer, only do what is needed
* cache instance data for a given address for a 15 seconds
using either memcache or fake memcache (in-memory).
This means only a single queue/db lookup for multiple calls
to metadata service
* add cache expirey to fake memcache (don't grow forever)
and move it to nova.common.memorycache
Addresses Bug #851159
Change-Id: Icf794156e055b18915b8b5be9ba2ab97d2338bbe
|
| |
|
|
|
|
|
|
|
|
|
| |
Add a pybasedir option so that it can be used for interpolation in the
default values of other options. This helps eliminate hard-coded paths
from the sample config file.
Also add a bindir option for similar reasons, but it also helps with
packaging.
Change-Id: Iadc746dcf2a24adbdf9bac945b5b330f01faeeb5
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
... if you're not using ec2/s3.
Fixes bug 949631
bin/nova-manage imports auth.manager which imports auth.signer which
tries to import boto... but nova-manage doesn't try to authenticate.
This patch allows bin/nova-manage to work if you don't have boto
installed.
Change-Id: I9b7929a15b991498ab0491821521ec20ed0da65c
|
| |\
| |
| |
| | |
developer guide"
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
guide
blueprint sphinx-doc-cleanup
bug 945160
- Correct parameter declarations, list formatting, cross-references, etc.
- We don't need "let" in generate_autodoc_index.sh since we aren't doing math.
- Change conf.py to not prefix class and function names with full namespace
in generated output to save width on the screen.
Change-Id: I9adc8681951913fd291d03e7142146e9d46841df
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Forcing deployers to modify a paste config file to change auth
strategies is very fragile. This simplifies things by keying
pipeline construction off of a single flag. Note that this will
require a small change to devstack.
Change-Id: I49728c356266e6084ecafb6c59542390137f89e9
|
| |/
|
|
|
|
| |
Fixes bug #945355
Change-Id: I0b09f6d8d2373f52359806945de467585421fb65
|
| |
|
|
|
|
|
|
|
| |
Fix bug 942644.
Use constant time string comparisons when doing authentication to help
guard against timing attacks.
Change-Id: Iaaefb13f7618b06834630d9ccb97aff056b4bf4c
|
| |
|
|
|
|
|
|
|
|
| |
Fixes bug 883323 (and others)
Users of tempfile.mkdtemp() need to make sure the directory is cleaned
up when it's done being used. Unfortunately, not all of the code does
so at all, or safely (by using a try/finally block).
Change-Id: I270109d83efec4f8b3dd954021493f4d96c6ab79
|
| |
|
|
|
|
|
| |
* Always return a string from AuthManager._build_mc_key()
* Fixes bug 938375
Change-Id: Iffceffab8ae62830202de07e3237230dab4e5a60
|
| |
|
|
|
|
| |
* Make modules use getLogger(__name__) and log to the result
Change-Id: Ib6d69b4be140ec89affc86ed11e65e422d551df1
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Addresses bug 744462
Rather than ldapdriver.get_user() returning None for non-existent
user, this change implements exception.LDAPUserNotFound to more
closely match the behavior of other drivers (db).
Change was made in public method only, and _check_user_exists()
which uses get_user() now catches and returns None if applicable.
Implemented test of NotFound exception in base auth test class.
Change-Id: Ia13af759931ca0c7327d54184730537bafbe52ae
|
| |
|
|
|
|
|
| |
Make FLAGS a ConfigOpts instance and fix up all the places where we
expected FlagValues behaviour.
Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
|
| |
|
|
|
|
|
|
|
|
|
| |
Fixes bug #925166
This patch for packages which have few backslash continuations.
Follow up patches will be for packages network, scheduler, virt,
db/sqlalchemy, tests, and api/openstack.
Change-Id: I4200010b47b33fa8b9115b5d379b543200f6668d
|
| |\ |
|
| | |
| |
| |
| |
| |
| | |
Fixes 828609.
Change-Id: Iefa36ced27328ad79b9d58f04d915178b9b63bcc
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Move it here so that it can be kept in sync with openstack-common using
the new update.py script for code in openstack-common's incubation area.
See here for more details:
http://wiki.openstack.org/CommonLibrary#Incubation
Note: this commit just moves the existing code in Nova with no other
changes. A subsequent commit will sync it with latest openstack-common
so that it is easier see the new changes.
Change-Id: If88d678b1b9bad3d37117de7f7159d7fea8ab4c8
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The next obvious step in porting to cfg is to define all options using
cfg schemas directly rather than using the flags.DEFINE_* helpers.
This is a large change, but it is almost entirely pure refactoring and
does not result in any functional changes.
The only change to note is that the default values for glance_host,
glance_api_servers and default_publisher_id options are now using opt
value interpolation i.e.
-glance_host=_get_my_ip()
+glance_host='$my_ip'
-glance_api_servers=['%s:%d' % (FLAGS.glance_host, FLAGS.glance_port)]
+glance_api_servers=['$glance_host:$glance_port']
-default_publisher_id=FLAGS.host
+default_publisher_id='$host'
Also note that the lower_bound check on the {report,periodic}_interval
options are no more, but this has been true since cfg was first added.
Change-Id: Ia58c8f0aaf61628bb55b1b8485118a2a9852ed17
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The fake implementation was raising an exception during a failed
search_s where the normal python ldap module does not. So, removed
that raise.
Also added a modrdn_s implementation because I need it for a network test.
(Indirectly) for blueprint public-and-private-dns.
Change-Id: Ia86a776afe19ffce72b285bb4c96ce3ed0ae7c4a
|
| | |
| |
| |
| |
| |
| | |
Fixes bug 916267
Change-Id: I3bce5c8825b5245d9c58d93a25ac0daaedb6d47c
|
| | |
| |
| |
| | |
Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Moves openstack/v2 directory to compute and fixes tests accordingly
* Moves some code from api/openstack/compute to shared location, for use by volume api
* Implements basic volume functionality for types, volumes, and snapshots
* Changes service name from osapi to osapi_compute (and adds osapi_volume)
* Renames nova-api-os to nova-api-os-compute, adds nove-api-os-volume
* Separate extension mechanism for compute and volume
** Removes flag osapi_extension and replaces with osapi_compute_extension and osapi_volume_extension
* Updates the paste config
* Fixes setup.py to include nova-os-api-compute and nova-os-api-volume
* Fix bug in volume version code that occurred as result of trunk merge
* Update integrated/test_volumes.py to use new endpoint
Change-Id: I4c2e57c3cafd4e1a9e2ff3ce201c8cf28326afcd
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes bug #910763
According to PEP8,
- Object type comparisons should always use isinstance() instead
of comparing types directly.
Yes: if isinstance(obj, int):
No: if type(obj) is type(1):
When checking if an object is a string, keep in mind that it might be a
unicode string too! In Python 2.3, str and unicode have a common base
class, basestring, so you can do:
if isinstance(obj, basestring):
Change-Id: I7c0fdecf99872f5b8f72b2c2ed4f5c539c33def1
|
| |
|
|
|
|
|
| |
This commit begins to implement blueprint consolidate-testing-infrastructure by
adding a 'testing' subpackage and moving some modules into it.
Change-Id: I04bf860bc386bd2016e7dbc5a6f6ef7379a855bb
|
| |
|
|
|
|
|
|
|
|
|
|
| |
part 1 of blueprint separate-nova-metadata
* adds api/metadata/ and moves code from ec2
* moves metadata into separate binary
* changes metadata forward to use metadata host and port
* moves the metadata accept rule to the metadata api
* adds nova-api-* to setup.py
Change-Id: I7f5d8e6cafc55b5c383cd88991f29c6059fb8d82
|
| |\
| |
| |
| | |
SignatureMethod parameter for SHA1 when creating signatures"
|
| | |
| |
| |
| |
| |
| |
| | |
nova.auth.signer.Signer now honors the SignatureMethod parameter for
SHA1 when creating signatures
Change-Id: I4050407d374d18427f9a955ea98242f7325a5d54
|
| | |
| |
| |
| | |
Change-Id: I79daf7519c99cc363ac7175c85912298f273da8a
|
| |/
|
|
|
|
|
|
|
| |
Captured invalid signature exception in authentication step, so that
the problem is not returning exception to user, revealing the real
password.
Fixes bug 868360.
Change-Id: Idb31f076a7b14309f0fda698261de816924da354
|
| |
|
|
|
|
| |
test added.
Change-Id: I7cea9900c2ccabc30800a167f127ada8386a724b
|
| | |
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|