Finishes quota refactoring by making use of the new quota infrastructure.
Partially implements blueprint quota-refactor (the final piece is to
remove the old quota architecture).
This change is fairly substantial. To make it easier to review, it has been
broken up into 3 parts. This is the second part.
Change-Id: I1c8b43198f0d44e9e13a45575361aa043fd0639e
Part of blueprint versioned-rpc-apis.
One side effect of this change was that nova.scheduler.api was removed
in favor of nova.scheduler.rpcapi. In this case, the api was just a
direct wrapper around rpc usage. For other APIs, I've been following
the pattern that the rpcapi module provides the rpc client wrapper, and
if any other client-side logic is needed, that's where an api module is
used.
Change-Id: Ibd0292936f9afc77aeb5d040660bfa857861eed1
Except for nova/api/, nova/tests/, nova/virt/
In preparation for automated checking being enabled (N306)
Change-Id: I5af70ea13b470ce58695ef0a5e0ff9da3ac1b135
Added notifications for volumes have been added with tests.
This includes create/delete/exists events for volumes.
blueprint nova-notifications
Change-Id: I21b74974fac22c3621ccf7564dc5c0d339f8751a
Implements blueprint remove-old-flagfile
nova-manage can still be used to convert old flagfiles style files
to new .ini files:
$ ./bin/nova-manage config convert --help
Usage: nova-manage config convert <args> [options]
Options:
-h, --help show this help message and exit
--infile=<path> old-style flagfile to convert to config
--outfile=<path> path for output file. Writes configto stdout if not
specified.
Change-Id: Ib8fbbd858b1db7faef70d7d97955e5042bf378f2
Signed-off-by: Ghe Rivero <ghe@debian.org>
This patch adds the `ignore_missing_network_data` flag which will log
exceptions rather than raising them when generating usage exists
notifications.
Change-Id: Ie11bc9028790c2d1b3de1f4709a9e17a67e06f26
This configures the xvpvncproxy to configure the RPC drivers properly with FLAGS so that xvpvncproxy can run.
Change-Id: I71d27a06060120448bd3401ee91566dbc3b6a289
This configures the instance audit usage to configure the RPC drivers properly with FLAGS so that the job can run.
Change-Id: Ia189d18d7b25a839de67439ccd363103c5af2f8f
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
Added length check for label. Without length check,
label is truncated. Warning is shown by sqlalchemy layer.
Raise an InvalidInput exception when validation fails (like
rest of the surroudning code)
Change-Id: Iae517e03099e36f1c00f4742049834a9231a2fff
This patch does a couple of things:
1) Remove the dependency of nova.rpc on nova.flags. This is a step
toward decoupling nova.rpc from the rest of nova so that it can be moved
to openstack-common.
2) Refactor nova.rpc so that a configuration object is passed around as
needed instead of depending on nova.flags.FLAGS.
This was done by avoiding changing the nova.rpc API as much as possible
so that existing usage of nova.rpc would not have to be touched. So,
instead, a config object gets registered, cached, and then passed into
the rpc implementations as needed. Getting rid of this global config
reference in nova.rpc will require changing the public API and I wanted
to avoid doing that until there was a better reason than this.
Change-Id: I9a7fa67bd12ced877c83e48e31f5ef7263be6815
The notify method now requires a context, which in this case should be
`admin_context` not `context`.
Change-Id: I53275d0e1c9a898a7c0d9685382bb52ffb2efa2c
This patch passes context objects all the way down to the usage
generating code. This allows that code (in future) patches to make
context-dependent calls in order to augment the usage_info dict.
Change-Id: I6592d7aecd99750cab6a91bbadc2c761155d2d4d
This resolves bug 964950, which is a nova-manage crash while
listing floating IPs when an instance has gone missing.
Change-Id: Ib628356608bc0cbb9089029876ab1df7e9f02531
Fixes bug #969208
When using noauth, a user's password is her user id (e.g. in novarc).
When we export to keystone, we should make sure the same credentials
keep working rather than effectively switching all the passwords to
random UUIDs which users would never have seen before.
Change-Id: Ie77c622ce1952d03e836bb64167184022a02e902
Fixes bug #965069
Looks like this never worked. The dest of the infile and outfile
arguments sets up an unknown kwarg.
Change-Id: I428f56564b39f5586229325db03dccb0b4a01ef6
* Fixes performance issue with lots of instances
* Also removes some commented out code
* Fixes bug 959356
Change-Id: I6e4cf3cd6ebe9d5d1ae4fc2472ef1765d13f49f6
* Remove core vsa code (api, manager, drivers)
* Remove nova-vsa executable
* Remove OpenStack Compute API v2 vsa extension
* Remove vsa scheduler
* Remove vsa db api methods
* Remove Zadara volume driver
* Do not migrate out any existing data
* Fixes bug 954490
Change-Id: Idab3d60796d5edbc23ef9f0887fcc1af558c6215
Looks like this fixes all HACKING problems that were around.
Thanks to Dina Belova and Alexander Kovalev for this work.
Change-Id: I63ae1ab2f1bb37daa236cde4096c3c893fd80dd2
Update 'nova-manage fixed list' so it prints a warning if an IP
is allocated to a deleted/missing instance.
Fixes LP Bug #953685.
Change-Id: I72b7ad2cb01e31cf9bb6cab904ab10d8769a3526
Fixes bug 951161
Avoid the counter-intuitive use of the /32 range to indicate a specific
individial IP address.
Instead a floating IP for a specific individual address is created by
dropping the range specifier altogether, e.g.:
nova-manage floating create 192.168.1.150
Change-Id: I54b124e961accefa47f6faa7f201809c545c3fa5
* Deletes live migration code. This code will not work in keystone
installs, and there is an api extension that can be used through
the python-novaclient cli
* Deletes image management code. This was for upgrading pre-diablo
images and doesn't work properly with glance/keystone. The glance
cli already has the necessary functionality for uploading images.
Change-Id: Id7257833a280663af6d0b90085d03344d75a502f
The current code does not allow to add an IP range which is /32, because
netaddr considers that there's no host in such a network. While this is
probably debatable, it disallow to add specific IP address in a pool, which
is really handy and was possible before.
This patch fix that by treating the /32 subnet as a special case.
Change-Id: I38685e6f1a3541519d1f2a9ec8d3b00dd522b44a