Commit Graph

3343 Commits

Author SHA1 Message Date
Vishvananda Ishaya 2f4258d99e more smoketest fixes 2011-01-20 00:14:42 -08:00
Vishvananda Ishaya 9bd72f5622 various fixes to smoketests, including allowing admin tests to run as a user, better timing, and allowing volume tests to run on non-udev linux 2011-01-18 18:33:04 -08:00
Vishvananda Ishaya eb33a6b78b merged trunk 2011-01-18 18:29:56 -08:00
Andy Smith 4eed55b46c Allows moving from the Austin-style db to the Bexar-style.
Prevents the db from being created automatically when services run.

Adds nova-manage db sync and nova manage db version to bring the db up-to-date and to check the current version. Must be run with the same privileges as the services who will access the database (or you need to chmod the db afterwards if sqlite)
2011-01-19 01:39:41 +00:00
Andy Smith 7f352a7233 move db sync into nosetests package-level fixtures so that the existing nosetests attempt in hudson will pass 2011-01-18 17:32:54 -08:00
Andy Smith e2f11223e7 add two more columns, set string lengths) 2011-01-18 15:59:02 -08:00
Soren Hansen 3b874805e2 Enable the use_ipv6 flag in unit tests by default. 2011-01-18 23:58:58 +00:00
Andy Smith ac447a687d merge from upstream and fix small issues 2011-01-18 15:51:13 -08:00
Soren Hansen 87cca15270 Enable the use_ipv6 flag in unit tests by default. 2011-01-19 00:39:24 +01:00
Vishvananda Ishaya b9c96efe7e This disables ipv6 by default. Most use cases will not need it on and it makes dependencies more complex. 2011-01-18 23:14:03 +00:00
Andy Smith 943af386a9 The live_migration branch ( https://code.launchpad.net/~nttdata/nova/live-migration/+merge/44940 ) was not ready to be merged.
Outstanding issues:
 - many style violations, especially in docstrings (leading spaces, extra newlines)
 - no test coverage
 - unusual defaults in the database columns (-1?)
 - unusual naming "phy_resource"

The database changes in particular should preclude the original from being merged until they are correct, and for a patch of this scope some tests are really necessary for the new functionality.

The patch needs further review and should not be rushed in for bexar as it commits us to a variety of data model decisions that require more input.
2011-01-18 23:09:14 +00:00
Andy Smith 453436bdbd merge from upstream to fix conflict 2011-01-18 14:55:03 -08:00
Vishvananda Ishaya 7e6e3c3895 disable ipv6 by default 2011-01-18 14:07:03 -08:00
Ewan Mellor 5b496ed35c Implement support for streaming images from Glance when using the XenAPI virtualization backend, as per the bexar-xenapi-support-for-glance blueprint.
Images may be streamed raw, or will be streamed into the right place to allow room for an MBR and partition table, if using non-raw images.  PV vs HVM detection now occurs on the image, immediately after it has been streamed.  External kernel / ramdisk are also supported in this mode.

Unit test changes include a partial Glance simulator, which is stubbed in place of glance.client.Client.  This allows us to pass through the VM spawn path with either glance or objectstore backends enabled; the unit tests now cover both.  A dependency upon glance has been added to pip-requires, in order to pull the Glance client code into the venv.

This includes minor fixes to nova.image.glance.  This code is expected to be heavily reworked anyway with the image-service-use-glance-clients work.
2011-01-18 21:19:10 +00:00
Vishvananda Ishaya 6421a47cc7 Works around the app-armor problem of requiring disks with backing files to be named appropriately by changing the name of our extra disks.
disk is fine, as is disk.local and disk.rescue.
2011-01-18 20:59:11 +00:00
Vishvananda Ishaya 6bef91e9fe fix test to respect xml changes 2011-01-18 12:42:20 -08:00
Vishvananda Ishaya ef9b60f4b8 merged trunk 2011-01-18 12:42:06 -08:00
Todd Willey ea1674cf33 Add refresh_security_group_* methods to nova/virt/fake.py, as FakeConnection is the reference for documentation and method signatures that should be implemented by virt connection drivers. 2011-01-18 19:54:27 +00:00
Andy Smith 18773e2aa5 authors needed for test 2011-01-18 11:34:29 -08:00
Todd Willey be8b74ff02 Merge trunk. 2011-01-18 14:30:26 -05:00
Andy Smith d91229f7a3 revert live_migration branch 2011-01-18 11:01:16 -08:00
Vishvananda Ishaya 4577c11923 This removes the need for the custom udev rule for iscsi devices. It instead attaches the device based on /dev/disk/by-path/ which should make the setup of nova-volume a little easier. 2011-01-18 18:59:12 +00:00
Kei Masumoto 3fa93adb20 Risk of Regression: This patch don’t modify existing functionlities, but I have added some.
1. nova.db.service.sqlalchemy.model.Serivce (adding a column to database)
    2. nova.service ( nova-compute needes to insert information defined by 1 above)

So, db migration is necessary for existing user, but just adding columns.
2011-01-18 16:39:26 +00:00
Kei Masumoto 1dc38833c7 fixed pep8 error 2011-01-20 01:14:23 +09:00
Kei Masumoto 6c7d7aa264 remove blank from Authors 2011-01-19 23:38:52 +09:00
Kei Masumoto 4780df11fc .mailmap rewrite 2011-01-19 23:35:02 +09:00
Kei Masumoto e56376d2fc .mailmap updated 2011-01-19 22:18:30 +09:00
Kei Masumoto f935cf4c6e previous commit breaks volume.driver. fix it.. 2011-01-19 09:46:43 +09:00
Kei Masumoto 8c92638f89 merged to trunk rev572 2011-01-19 08:50:47 +09:00
Kei Masumoto a0779f5df2 fixed based on reviewer's comment 2011-01-19 08:49:17 +09:00
Todd Willey 11a10dc9a2 pep8 2011-01-18 02:05:07 -05:00
Todd Willey 4243440af1 I might have gone overboard with documenting _members. 2011-01-18 02:03:52 -05:00
Ewan Mellor e8a8b14e6b Merged with trunk revno 572. 2011-01-17 19:32:34 +00:00
Todd Willey 8e6684a58e Change where paste.deploy factories live and how they are called. They are now in the nova.wsgi.Application/Middleware classes, and call the __init__ method of their class with kwargs of the local configuration of the paste file. 2011-01-17 19:19:15 +00:00
Todd Willey b156f7d959 Merge trunk 2011-01-17 13:51:00 -05:00
Todd Willey 3b94033b06 Further decouple api routing decisions and move into paste.deploy configuration. This makes paste back the nova-api binary. 2011-01-17 18:49:11 +00:00
Todd Willey e88bd8cd04 Merge pep8 fixes from wsgirouter branch. 2011-01-17 13:44:52 -05:00
Todd Willey 6906137b99 Clean up openstack api test fake. 2011-01-17 13:36:55 -05:00
Rick Harris 93deb2e9a3 The Openstack API requires image metadata to be returned immediately after an image-create call.
This is accomplished by having the ImageService create a 'queued' image in Glance.

When the image is subsequently uploaded, the image will go from 'queued' -> 'saving' -> 'queued'.

Related Future Work:

The ImageService needs to be cleaned up so that there is a canonical set of attributes (id, status, etc), and a canonical set of values ('queued', 'saving', etc). Right now, EC2 is fairly coupled to LocalImageService and S3ImageService while OpenStackAPI is coupled to GlanceImageService; ideally, we should be able mix-and-match from any of these.
2011-01-17 18:14:10 +00:00
Todd Willey 58c6475012 merge trunk. 2011-01-17 13:05:26 -05:00
Rick Harris c947f4ed12 Fixing whitespace 2011-01-17 11:34:01 -06:00
Rick Harris 523d7788ac Returning image_metadata from snapshot() 2011-01-17 11:21:56 -06:00
Rick Harris b5445da21b Merging trunk 2011-01-17 11:16:36 -06:00
Kei Masumoto a56bc07078 merged trunk rev569 2011-01-17 04:12:27 +09:00
Kei Masumoto 525544e689 merged to rev 561 and fixed based on reviewer's comment 2011-01-16 14:54:35 +09:00
Andy Smith 825652456a Adds a developer interface with direct access to the internal inter-service APIs and a command-line tool based on reflection to interact with them.
Example output from command-line tool:

(.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack
usage: stack [options] <controller> <method> [arg1=value arg2=value]

  `stack help` should output the list of available controllers
  `stack <controller>` should output the available methods for that controller
  `stack help <controller>` should do the same
  `stack help <controller> <method>` should output info for a method

./bin/stack:
  -?,--[no]help: show this help
  --[no]helpshort: show usage only for this module
  --[no]helpxml: like --help, but generates XML output
  --host: Direct API host
    (default: '127.0.0.1')
  --port: Direct API host
    (default: '8001')
    (an integer)
  --project: Direct API project
    (default: 'proj1')
  --user: Direct API username
    (default: 'user1')

Available controllers:
   reflect   Reflection methods to list available methods.
   compute   API for interacting with the compute manager.

(.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack help reflect
Available methods for reflect:
   get_controllers   List available controllers.
   get_methods       List available methods.
   get_method_info   Get detailed information about a method.

(.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack help reflect get_method_info
get_method_info(method):

Get detailed information about a method.

(.nova-venv)termie@preciousroy:p/nova/easy_api % ./bin/stack reflect get_method_info method=/reflect/get_method_info
{u'args': [[u'method']],
 u'doc': u'Get detailed information about a method.',
 u'name': u'get_method_info',
 u'short_doc': u'Get detailed information about a method.'}
2011-01-15 02:25:00 +00:00
Andy Smith 9750e4ab3e merge from upstream 2011-01-14 17:57:42 -08:00
Andy Smith 69c11c27c2 pep8 fixes... largely to things from trunk? 2011-01-14 17:54:36 -08:00
Andy Smith 073336d206 merge from upstream 2011-01-14 17:48:48 -08:00
Andy Smith 731126b299 pep8 2011-01-14 17:44:47 -08:00