The name_label parsing code is out-of-date since key support was
added to the format string, but it's not needed anymore since
the internal uuid was added to other-config for a while now.
Change-Id: I2902320ae7118e42cd3d18f2d6d0fab0fcbec687
* cleaner output
* fix bug 980009
* Fix N201
* N306: alphabetical order imports
* N401: docstring start
* N402: one line docstring start
* N403: multi line docstring end
* Until fixed, N40* will be disabled by default
Change-Id: I9addafdaa7a1f8fb950e14a5409f661dec6c7b87
Nova should not depend on python-novaclient. Remove it.
Note: In order to get unit tests to pass I had to add in
a temporary dependency on httplib2. This is due to the fact
that pip installing glance does not properly setup all
the dependencies. See LP Bug #975483 for details.
Fixes LP Bug #978992.
Change-Id: I50c00139f9dc303223601230fd962abac977cd5e
This module was marked as deprecated and scheduled for removal in Essex.
Remove it now that Folsom development is open. nova.rpc.impl_kombu
should be used instead.
This patch also removes nova.testing.fake.rabbit, since as far as I can
tell, it isn't used anymore and was the last thing still using the
carrot dependency.
Change-Id: I8cfb2d09ee5eed439ec1d152261f7097faf08ad6
We want to avoid e.g. /home/markmc or /Users/vishvananda in this
file.
/usr/lib/python/site-packages is pretty dumb too, but it's suffices
as an example.
Change-Id: I851841a30ca01790c7b5a9b6bdbd160f4a84467c
Recent changes started using a recently added exception to
glance.common.exception, so update pip-requires to require a version
of glance that has that.
Change-Id: I56ca02bdb98a8e2ed40dcd8f08c9d69d5a043add
Looks like this fixes all HACKING problems that were around.
Thanks to Dina Belova and Alexander Kovalev for this work.
Change-Id: I8157f0d4890184c1216aab63ef7180ee8b7a184d
* Makes it adhere to the config file format
* Puts the sample output in etc/nova/nova.conf.sample
* Updating sample is as easy as ./tools/conf/generate_sample.sh
Change-Id: I01e72cb58dd598a74f50c2c17f102d24df325f2e
Adds cleanup_files_locks() to nova/utils, which cleans up stale locks
left behind after process failures.
Adds a call to clean up locks on service startup for nova-api, nova-cert,
nova-compute, nova-network, nova-objectstore, and nova-scheduler.
Adds tools/clean_file_locks.py, which can be used to manually clean
stale locks.
Change-Id: I752e0b24d3c7fc5f1dc290da355cbd7f430789b8
Fixes bug #936898
1. Just import the modules and only look at nova.flags.FLAGS
when they're all imported
2. ConfigOpts is iterable, there should be no need to iterate
the private FLAGS._opts dict
3. Output should be .ini style
4. The output should only contain comments
i.e. each option default should be commented out
Change-Id: I15835bb437bc6d575e8311d7c55b3a29d67b006d
Fixes nova aspect of lp 837464
Prevously only Zulu time was supported in the changes-since filter,
i.e. timestamps formatted as %Y-%m-%dT%H:%M:%SZ
We now support arbitrary timezones, with the offset from UTC expressed
via the ISO 8601 ±hh:mm notation.
Microsecond accurracy is also optionally supported in timestamps.
Notes:
- nova.utils.parse_isotime(), isotime() & normalized_time() are
prime candidates for promotion to openstack-common, as these
methods were duplicated from my corresponding glance patch:
https://review.openstack.org/#change,4198
- this patch introduces a new dependency on python-iso8601, which
has already been packaged for Fedora, EPEL and Ubuntu/Debian.
Change-Id: I89b45f4f3d910606c578d927420f78cea94f4e3b
We moved to DistUtilsExtra because it promised a more automatic workflow
from setup.py. It doesn't actually deliver though, and it also vomits
warnings during setup.py usage, and also breaks pip integration.
So this is going back to babel. Mostly folks shouldn't need to know
anything about this. We'll need to update the translations import
jobs in Jenkins, and we might need to add a corresponding translations
upload job that runs post-merge.
Translations installation doesn't fully work - but it actually wasn't fully
working before. Getting this part of the project done now though is a
pre-requisite for using tox for multi-python testing (tox starts by
creating an sdist tarball and then installing it into the venv, which
is just 100% broken with DistUtilsExtra)
Change-Id: I126e1bcfab0656eab6ca10de67d3d2aaa8b844f3
Removes copy of ajaxterm code, nova-ajax-console-proxy,
and support for get_ajax_console from Nova proper.
Implements blueprint remove-ajaxterm
Fixes bug 917963
Change-Id: I2c0ff427c53c0f63a18b10475d6b4cbe9a085d83
This required rewriting our Diffie-Hellman-Merkle implementation for
set_admin_password in xen. Fixes bug 917851.
Change-Id: Ic4cdcc06221f003aec2dcd5ba05a1a9ad19d39c9
Tests so far:
N101 TODO format
N201 Except format
N301 One import per line
N302 import only modules
N303 Invalid Import
N304 Relative Import
Change-Id: I33c021b842e7199b1f5f1f699ea17f7fa5f8ca49
Fixes Bug #917003
The latest version of greenlet is installed in install_venv.py while
the version required is set to 0.3.1 in pip-requires.
Change-Id: I145deb46a8edc41e87634dc5ca839baf5acd8065
Rather than just giving users the sudo password prompt immediately,
actually tell them what is about to be installed, so they know
whether it is reasonable to be entering their password.
Change-Id: Ic0c1de812be119384753895531a008075b13494e
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
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