Prevent project_id overwriting from OSAPI request parameters.
The patch is actually very simple (nova/api/openstack/wsgi.py) but
needs significant test adjustments (nova/tests/*) to pass.
Fixes bug 904072. Patch from Vish Ishaya and Mark McLoughlin.
Change-Id: I66ea0f178ce6271ec1020e9f1a73bd4e8c83ddab
Add a revision field to the version number to account for releases from
the stable branch, e.g. 2011.3.1.
See http://wiki.openstack.org/StableBranchRelease
Change-Id: I34238a5639d34c9cf44655775a6be80fdd446233
* Add pool, interface to 'floating list' output
These columns were added to the floating_ips table in
https://review.openstack.org/2892 and are not visible elsewhere
* Fix 'floating delete' to skip network/broadcast addresses
Makes the delete command match the create command behaviour
introduced in https://review.openstack.org/2663
* Address changes listed in bug 817281
Change host column in output to project ID, change hostname
column to uuid
Change-Id: Ibbfbe9ed5543927a6b2a1e676f5617901a32f897
Removed the dns driver function rename_entry(). Since 'name'
is the unique identifier for an entry, trying to rename things
causes various confusions. Better to leave the user to
delete and recreate.
For blueprint public-and-private-dns.
Change-Id: I766af01299b7b28ad8d9f6c072a8f3e049bd286b
This will allow us to mark deprecated classes and functions/methods as
such. A warning is issued each time a deprecated function/method is
called, or when a deprecated class is instantiated, or when any class
or static method on a deprecated class is called.
Change-Id: I4b5858492bc14768ac2e12c542bc343962761e34
_migrate called compute_api.resize with an instance id,
compute_api.resize expects an instance object.
Change-Id: I0ab9ac48f8d7b4d5d92e0212969cc8febc5cf82b
Fixes bug #912650.
Fixes the following test cases in
smoketests/test_netadmin.py:SecurityGroupTests:
'test_004_can_access_metadata_over_public_ip'
'test_005_validate_metadata'
'test_999_tearDown'
Change-Id: Iefa8034a364e13243d06200e8af1840df896baf3
There is a period during an instance delete when GET /servers
will fail occasionally. The race condition is during GET /servers
between the initial get_all() and when the extended_status extension
re-retrieves individual servers via compute.api.routing_get().
We log a warning and remove the offending server from the list
as it no longer exists.
Change-Id: Id75723a21c0d6dc20f446560847e5b8522ec3262
* Implements blueprint multiple-floating-ip-ranges
* Adds pool and interface fields to floating ip tables
* Adds extension to get a list of available pools
* Optionally allows a pool to be specified when allocating
* Changes nova-manage command to allow pool and interface
* Ip binding uses the interface from table instead of flag
* Adds default pool flag to use when pool is not specified
* updates test to work with new fields
* adds tests for extension
Change-Id: Ieb4cbbf07b211697d08178b1cf2252caf75049a2
* First step of blueprint interim-nova-authz-service
* Common policy engine that can be used by other projects
* Nova specific policy engine that uses common policy
* Policy file can be generated by external tool (dashboard)
* Ultimately, policies will be requested from a service
Change-Id: Icaf934037e790bde6ce2346746ce38b11134423b
* adds a boolean return representing whether file was reloaded
* ensures file is actually closed by using a context manager
Change-Id: I4d998c34caa6dde65aaf780c188778477b7f6753
Sets up decorators for linking serializers, deserializers, and response
codes directly to implementation methods, rather than using parallel
object methods. In addition, methods are now able to return an instance
of a ResponseObject class, binding alternative serializers; this is
particularly useful for actions, as it enables the action processing
method to return different objects for different actual actions.
Change-Id: I8815590f29a935216dc766ce720ded638ebca0d0
This implements a [hosts] <=> [images] mapping in the simple scheduler
that partitions your host resources into the part that services a
particular image set, and the general cloud. This is useful, for
example, if you want to specify a set of hosts to run utility VMs
(cloudpipe, bastion, etc) that you don't want consuming resources from
your generally available pool.
When specifying a host with --isolated_hosts flags (comma-separated
list) those hosts will only run the images specified in
--isolated_images, and will not run any other images. The isolated
images will not run on any other hosts.
You can specify --skip_isolated_core_check to allow overcommitting of
the isolated hosts. This allows utility vms that are not cpu bound to
avoid the resource cheks the scheduler usually performs (based off of
--max_cores).
Change-Id: Ib2db5a605cb7560a169af9ff2a6dadb649da9c1d
As Sateesh points out nova.service.Service.__getattr__ throws an AttributeError exception when the upcall method is not available.
However nova.rpc should catch all exceptions. This does not happen in this specific case because the following statement was outside the try-catch-all:
node_func = getattr(self.proxy, str(method))
Change-Id: I437c88783bca037e4054078d2687ef41c8fc2b83
ensure we are not fooled by capitalized names, by turning emails and names into lower cases before the matching.
Change-Id: Idbb8535174c0f1451ad6fd0628f35508f0f1e466
Removes the requirement for a trailing blank line in multiline
docstrings, just before the closing '"""'. This blank line is not
needed anymore, as the editors it was recommended for no longer
have the problem that this blank line was working around.
Change-Id: I4e532231f1d99e9f5048cbfcc791a4328fb1e8f5
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>
If a publish fails, we reconnect to rabbit. In this case, we try to
declare the publisher exchange... and loop around and do the same thing
again after grabbing a new class instance. This removes the extra code.
Change-Id: I99089ccfb93bb860d5221c267f35a16c1faf3707