Commit Graph

12015 Commits

Author SHA1 Message Date
Jenkins 0bbf67cf39 Merge "fix reboot_instance typo" 2012-01-11 20:41:05 +00:00
Jenkins 98e385e0b0 Merge "Add @utils.deprecated()." 2012-01-11 19:04:59 +00:00
Armando Migliaccio 568577bc00 Bug #914907: register_models in db/sqlalchemy/models.py references non-existent ExportDevice
Remove ExportDevice from register_models as this no longer exists.

Change-Id: I68555eb33e035fa3669e4ac4b77cb2c0598cf52c
2012-01-11 18:11:48 +00:00
Jenkins fb4a138bc5 Merge "Update logging in compute manager to use uuids" 2012-01-11 16:50:50 +00:00
Jenkins 259b4367a7 Merge "nova-manage floating ip fixes" 2012-01-11 16:31:07 +00:00
Alex Meade 691da4d6e8 Update logging in compute manager to use uuids
Fixes bug 914814

Change-Id: I8f6c5335f6e9e26e9e8304a54ca31d967227dfc3
2012-01-11 15:51:23 +00:00
Thierry Carrez c9c09bd60e Do not overwrite project_id from request params
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
2012-01-11 15:59:19 +01:00
Mark McLoughlin bd035a5a6d Add optional revision field to version number
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
2012-01-11 07:19:59 +00:00
Dean Troyer 9e21a2228c nova-manage floating ip fixes
* 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
2012-01-10 16:51:06 -06:00
Andrew Bogott 4c5586a28f Add a modify function to the floating ip dns api.
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
2012-01-10 16:31:19 -06:00
Naveed Massjouni 5165320257 Adding the request id to response headers.
bp:nova-request-response-id

Change-Id: Ie2d49337010f6e7a540018f9c8d542b6c8ebbce2
2012-01-10 20:52:09 +00:00
Jenkins 52cd737df4 Merge "Bug #894683: nova.service does not handle attribute specific exceptions and client hangs" 2012-01-10 20:18:36 +00:00
Jenkins 927fd8b0e1 Merge "libvirt: implements boot from ISO images" 2012-01-10 20:08:21 +00:00
Jenkins 2d8bf10a22 Merge "Isolate certain images on certain hosts." 2012-01-10 19:06:53 +00:00
Jenkins 5acc4af6dc Merge "Fix call to compute_api.resize from _migrate" 2012-01-10 17:39:26 +00:00
Kevin L. Mitchell 8e2d6abc28 Add @utils.deprecated().
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
2012-01-10 11:22:33 -06:00
Jenkins 799801f856 Merge "Use instance_properties in resize." 2012-01-10 16:04:34 +00:00
François Charlier b99a5b65f7 Fix call to compute_api.resize from _migrate
_migrate called compute_api.resize with an instance id,
compute_api.resize expects an instance object.

Change-Id: I0ab9ac48f8d7b4d5d92e0212969cc8febc5cf82b
2012-01-10 17:00:57 +01:00
lzyeval 26e646f16d fix reboot_instance typo
Fixed bug #909745

Change-Id: I67fa47ae339f03290f21414e1eaae4c4e477424d
2012-01-10 20:39:03 +08:00
Jenkins fa43949c05 Merge "Adds support for floating ip pools" 2012-01-10 12:31:48 +00:00
Jenkins ef6058a446 Merge "fix bug 914049: private key in log" 2012-01-10 03:22:58 +00:00
Hengqing Hu c33bd50a79 Fix bad test cases in smoketest.
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
2012-01-10 10:39:35 +08:00
Joe Gordon 66ce7da186 fix bug 914049: private key in log
Change-Id: Id004257ae425291bb18427c5d9b03602a62da043
2012-01-09 18:04:06 -08:00
Jenkins 6fdbf6ce7f Merge "Adds simple policy engine support" 2012-01-10 02:03:25 +00:00
Dean Troyer 51c0d54525 Bug 885267: Fix GET /servers during instance delete
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
2012-01-09 15:32:01 -06:00
Vishvananda Ishaya 26b24b7e23 Adds support for floating ip pools
* 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
2012-01-09 13:18:02 -08:00
Vishvananda Ishaya 01e6f7575a Adds simple policy engine support
* 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
2012-01-09 11:40:04 -08:00
Vishvananda Ishaya c27e1ccd3f Refactors utils.load_cached_file
* adds a boolean return representing whether file was reloaded
 * ensures file is actually closed by using a context manager

Change-Id: I4d998c34caa6dde65aaf780c188778477b7f6753
2012-01-09 11:40:04 -08:00
Kevin L. Mitchell 5b866f3ad1 Serialization, deserialization, and response code decorators.
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
2012-01-09 13:13:08 -06:00
Todd Willey e231a055c2 Isolate certain images on certain hosts.
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
2012-01-08 15:36:56 -05:00
Jenkins 410d8e8b31 Merge "preload cache table and keep it up to date" 2012-01-06 22:07:36 +00:00
Vishvananda Ishaya b27e14dc96 Workaround bug 852095 without importing mox
* Fixes bug 912828

Change-Id: Iade4b0aca1d1f28ce46ed25d0b97c08d152554bd
2012-01-06 11:05:12 -08:00
Armando Migliaccio 421e5cb2b4 Bug #894683: nova.service does not handle attribute specific exceptions and client hangs
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
2012-01-06 18:40:49 +00:00
Armando Migliaccio de4fb9302a Bug #912858: test_authors_up_to_date does not deal with capitalized names properly
ensure we are not fooled by capitalized names, by turning emails and names into lower cases before the matching.

Change-Id: Idbb8535174c0f1451ad6fd0628f35508f0f1e466
2012-01-06 17:49:57 +00:00
Vishvananda Ishaya 613d1dbc87 Adds workaround check for mox in to_primitive
* Works around bug 852095
 * Can be removed if a consistent mox 5.4 is released

Change-Id: I3e57b60886a94c5e7a337b73716759c9a6838e04
2012-01-06 02:24:06 +00:00
Trey Morris f2eb16564e preload cache table and keep it up to date
Change-Id: Ic27c45f209610a5d369cfb9f09bcabd4264cd2b9
2012-01-05 18:16:34 -06:00
Mark Washenberger 162ab4f48e Use instance_properties in resize.
This just makes resize behave a bit more like create, which is useful
for custom filtering.

Change-Id: I10ba726712d8f601f5ee97e0bb033bd7339a7a88
2012-01-05 18:15:29 -05:00
Brian Lamar dcf5fe4d93 Ensure tests are python 2.6 compatible.
Change-Id: I1c6b7a0847586a694b5af21ed6c4a942f3aab209
2012-01-05 14:31:51 -05:00
Jenkins d41ea536ba Merge "Return 409s instead of 500s when deleting certain instances." 2012-01-05 17:03:22 +00:00
Jenkins d7887419f4 Merge "Remove small unneeded code from impl_kombu" 2012-01-05 16:53:56 +00:00
Brian Lamar 18f72f29a9 Return 409s instead of 500s when deleting certain instances.
Fixes bug 911879

Change-Id: Ib2ae875ec2d1eeea21d15a756b96c27047b12bee
2012-01-05 11:49:10 -05:00
Jenkins 1aa34d4538 Merge "Update HACKING.rst." 2012-01-05 16:44:30 +00:00
Kevin L. Mitchell 35e98d55db Update HACKING.rst.
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
2012-01-05 10:21:57 -06:00
Daniel P. Berrange d97b64b6e6 Tell users what is about to be installed via sudo
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>
2012-01-05 16:08:04 +00:00
Jason Kölker 8b79dae67c Fix LP912092
self.address is reserved in nose. It should not be overridden with a string.

Change-Id: I02f79781baebac339ec9f15c7ce7e318b5aaa50f
2012-01-04 20:16:27 -06:00
Chris Behrens 7edbac2015 Remove small unneeded code from impl_kombu
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
2012-01-04 16:17:33 -08:00
Jenkins 988743216a Merge "Set VLAN MTU size when creating the vlan interface." 2012-01-04 23:42:26 +00:00
Jenkins d33b477609 Merge "Remove install_requires processing." 2012-01-04 23:27:13 +00:00
Johannes Erdfelt efc350cbf1 Add missing space between XML attributes
Change-Id: I57be65a6d858acfea64ca4de74bfc0375ef00d1d
2012-01-04 22:41:55 +00:00
Jenkins c510592fe9 Merge "Fix except format to match HACKING" 2012-01-04 22:29:23 +00:00