2c75ad02c5a025e2262cd3cd6c9ab42cd34b585c
Commit Graph

3361 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
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
Andy Smith
4f920a8316 remove print statement 2011年01月14日 17:43:34 -08:00
Vishvananda Ishaya
34ceed1ce1 This branch fixes two outstanding bugs in compute. It also fixes a bad method signature in network and removes an unused method in cloud. 2011年01月14日 20:14:32 +00:00
Vishvananda Ishaya
beec23614e Re-removes TrialTestCase. It was accidentally added in by some merges and causing issues with running tests individually. 2011年01月14日 19:54:37 +00:00
Vishvananda Ishaya
d0713a6a21 removed rpc in cloud 2011年01月14日 11:36:48 -08:00
Vishvananda Ishaya
9f84aff457 merged trial fix again 2011年01月14日 11:22:12 -08:00
Vishvananda Ishaya
bf0d75e6f7 fix bad function signature in create_networks 2011年01月14日 11:20:46 -08:00
Vishvananda Ishaya
f16030423d undo accidental removal of fake_flags 2011年01月14日 11:19:51 -08:00
Vishvananda Ishaya
23332a6567 merged lp:~vishvananda/nova/lp703012 2011年01月14日 11:06:01 -08:00
Vishvananda Ishaya
e0dcd52b98 remove TrialTestCase again and fix merge issues 2011年01月14日 11:00:47 -08:00
Vishvananda Ishaya
76e8754768 import re, remove extra call in cloud.py. Move get_console_output to compute_api 2011年01月14日 10:25:44 -08:00
Josh Kearney
2639a17fb5 Create and use a generic handler for RPC calls to compute. 2011年01月14日 17:49:42 +00:00
Josh Kearney
cf0e5bd3ee Create and use a generic handler for RPC calls 2011年01月14日 11:24:45 -06:00
Ewan Mellor
b8c45af21d Merged with trunk revno 565. 2011年01月14日 15:51:42 +00:00
Vishvananda Ishaya
47a2dc24b0 use .local and .rescue for disk images so they don't make app-armor puke 2011年01月14日 02:24:57 -08:00
Ed Leafe
9fb1e7b1f6 Implements the blueprint for enabling the setting of the root/admin password on an instance.
It uses a new xenapi plugin 'agent' that handles communication to/from the agent running on the guest.
2011年01月14日 07:49:41 +00:00
Nachi Ueno
8a4eb03ec3 OpenStack Compute (Nova) IPv4/IPv6 dual stack support
http://wiki.openstack.org/BexarIpv6supportReadme
Tested with
 unit test
 smoke test
No conflict with current branch r 562.
Fixed comment by Soren and Vish
2011年01月14日 07:14:25 +00:00
Koji Iida
449913debb Merged to rev.563 2011年01月14日 13:59:06 +09:00
MORITA Kazutaka
c468658d55 This change introduces support for Sheepdog (distributed block storage
system) which is proposed in
https://blueprints.launchpad.net/nova/+spec/sheepdog-support
Requirements:
 - libvirt 0.8.7 or later
 - qemu 0.13.0 or later
How to test:
1. install Sheepdog
 The software is available from SourceForge.net:
 https://sourceforge.net/projects/sheepdog/files/
 See also:
 http://wiki.qemu.org/Features/Sheepdog/Getting_Started#Install
2. run the sheepdog daemon on each hosts
 $ sheep /store_dir
 /store_dir is a directory to store sheepdog objects. The directory
 must be on the filesystem with an xattr support.
3. format the sheepdog storage
 $ collie cluster format --copies=3
4. run nova-volume
 $ nova-volume --volume_driver=nova.volume.driver.SheepdogDriver
2011年01月14日 04:44:15 +00:00
MORITA Kazutaka
600e397515 Sort Authors 2011年01月14日 12:46:10 +09:00
MORITA Kazutaka
67f17444ab Merge trunk 2011年01月14日 12:39:54 +09:00
MORITA Kazutaka
25ada0ee28 Update Authors 2011年01月14日 12:25:34 +09:00
Andy Smith
eb6021ad94 merge from upstream: 2011年01月13日 19:06:17 -08:00
Andy Smith
380a279809 pep8 fixes 2011年01月13日 19:04:24 -08:00
Andy Smith
715b83a299 update migration script to add new tables since merge 2011年01月13日 19:03:07 -08:00
Hisaharu Ishii
4ff82fe827 sort Authors 2011年01月14日 11:44:35 +09:00
Hisaharu Ishii
f5f0819e1c Merged with r562 2011年01月14日 11:40:50 +09:00
Vishvananda Ishaya
14a42e45cf This modifies libvirt to use CoW images instead of raw images. This is much more efficient and allows us to use the snapshotting capabilities available for qcow2 images. It also changes local storage to be a separate drive instead of a separate partition.
I'm proposing this branch for review to get feedback. I may have inadvertently broken a few things. Comments and possible issues:
1. I haven't tested the other hypervisors. I may have broken libvirt xen support and uml support with this patch.
2. Is it useful to have a use_cow_images param, or should it just be automatic for qemu/kvm and turned off for everything else.
3. create_image is a large annoying method. I tried to clean it up a bit, but it could probably use a bit more refactoring.
4. disk.py seems to be only used by the hypervisors, so perhaps it should move into virt dir.
5. disk.py/partition() is unused now. Should we leave it in or throw it away?
Comments welcome
2011年01月14日 00:19:14 +00:00
Todd Willey
500b268d0e pep8. Someday I'll remember 2 blank lines between module methods. 2011年01月13日 18:57:29 -05:00
Kei Masumoto
fa5024b384 remove ">>>MERGE" iin nova/db/sqlalchemy/api.py 2011年01月14日 08:55:56 +09:00
Kei Masumoto
c57ccba743 checking based on pep8 2011年01月14日 08:26:25 +09:00
Todd Willey
12a6e44015 Merge trunk + wsgirouter. 2011年01月13日 18:26:18 -05:00
Todd Willey
16a8f4a989 Merge trunk and fix how nova-combined works with paste.deploy.
Refactor some of the bits of nova-api into nova/wsgi for working with paste,
for a little bit of de-duplication between nova-api and nova-combined.
Makes a cleaner interface for how paste configs can set flags.
2011年01月13日 18:23:18 -05:00