Ed Leafe
6dcea0da62
Merged trunk
2011-08-08 15:34:04 +00:00
Ed Leafe
966b7218a0
Merged trunk
2011-08-08 15:31:29 +00:00
Rick Harris
ec57e2a27e
Adds ability to disable snapshots in the Openstack API.
2011-08-08 01:52:36 +00:00
Chris Behrens
c911c6d737
ZoneAwareScheduler classes couldn't build local instances due to an additional argument ('image') being added to compute_api.create_db_entry_for_new_instance() at some point.
...
With this fix, 'image' is now being passed down to the scheduler and into the above call. Updated an existing test so that it didn't stub around the above failing call.
2011-08-06 20:07:48 +00:00
Ilya Alekseyev
c5cff2f02e
Added possibility to mark fixed ip like reserved and unreserved.
2011-08-06 11:27:43 +00:00
Rick Harris
7a5bb39ef1
Pep8 fix
2011-08-05 18:51:17 -05:00
Chris Behrens
8c6ccfd516
zone_aware_scheduler classes couldn't build instances due to a change to compute api's create_db_entry_for_new_instance call. now passing image argument down to the scheduler and through to the call. updated a existing test to cover this
2011-08-05 16:41:03 -07:00
Rick Harris
b15535a20b
Adding check to stub method
2011-08-05 23:26:08 +00:00
Vishvananda Ishaya
bfd34aa48f
Fixes broken image_convert. The context being passed to glance image service was not a real context.
2011-08-05 22:57:42 +00:00
Rick Harris
bdabdd5084
Using decorator for snapshots enabled check
2011-08-05 22:56:08 +00:00
Rick Harris
c49e99a7fc
Disable flag for V1 Openstack API
2011-08-05 22:29:28 +00:00
Vishvananda Ishaya
8a87a3ecc0
Pass a real context object into image service calls
2011-08-05 15:25:12 -07:00
Rick Harris
9633e9877c
Adding flag around image-create for v1.0
2011-08-05 22:14:15 +00:00
Brian Waldon
429b42f9fd
Glance Image Service now understands how to use glance client to paginate through images.
2011-08-05 19:58:01 +00:00
Josh Kearney
d6c6059abe
Allow actions queries by UUID and PEP8 fixes.
2011-08-05 19:47:52 +00:00
Josh Kearney
f03c926a7d
Allow actions queries by UUID and PEP8 fixes.
2011-08-05 14:28:22 -05:00
Brian Waldon
a3e618bdc6
fixing filters get
2011-08-05 15:02:18 -04:00
Brian Waldon
681d3e2bfa
re-enabling sort_key/sort_dir and fixing filters line
2011-08-05 14:15:53 -04:00
Adam Gandelman
7bdc430d33
Make sure mapping['dns'] is formatted correctly before injecting via template into images.
...
mapping['dns'] is retrieved from the network manager via info['dns'], which is a list constructed of multiple DNS servers.
Fixes LP Bug #821203
2011-08-05 18:14:26 +00:00
Soren Hansen
c07e9ebf83
Add a generic image service test and run it against the fake image service.
2011-08-05 18:07:43 +00:00
Justin Shepherd
c6b84e785a
Implemented @test.skip_unless and @test.skip_if functionality in nova/test.py.
...
Added nova/tests/test_skip_examples.py which contains example skip case usages.
2011-08-05 17:32:46 +00:00
Gabe Westmaas
6d24d3dc37
Updates v1.1 servers/id/action requests to comply with the 1.1 spec
2011-08-05 16:52:43 +00:00
Gabe Westmaas
1491530850
Moving from assertDictEqual to assertDictMatch
2011-08-05 16:22:21 +00:00
Gabe Westmaas
5d6e0a15d7
merging trunk
2011-08-05 16:13:59 +00:00
Gabe Westmaas
c26ac97855
merging trunk
2011-08-05 16:13:44 +00:00
Dan Prince
a8447412b4
Add exception logging for instance IDs in the __public_instance_is_accessible smoke test function. This should help troubleshoot an intermittent failure.
2011-08-05 16:07:45 +00:00
Brian Waldon
d76046a76f
adding --fixes
2011-08-05 12:00:13 -04:00
Brian Waldon
9602a558b6
glance image service pagination
2011-08-05 11:59:14 -04:00
Ilya Alekseyev
a77f10ee05
methods renamed
2011-08-05 19:45:17 +04:00
Dan Prince
336efaf814
Add exception logging for instance IDs in the __public_instance_is_accessible
...
smoke test function. This should help troubleshoot an intermittent failure.
2011-08-05 11:17:05 -04:00
Matt Dietz
56ec8f040b
Fixes lp821144
...
Revert resize broken because an incorrect number of parameters and a bad call at the virt layer
2011-08-05 14:07:48 +00:00
Soren Hansen
070d832dad
Make disk_format and container_format optional for libvirt's snapshot implementation.
2011-08-05 15:38:25 +02:00
Soren Hansen
1e366d9de1
pep8
2011-08-05 15:37:36 +02:00
Soren Hansen
9742ff588d
Add generic image service tests.
2011-08-05 14:54:56 +02:00
Justin Shepherd
13fb04effa
fixed pep8 issue
2011-08-04 23:01:22 -05:00
Justin Shepherd
625330bbc7
utilized functools.wraps
2011-08-04 22:59:36 -05:00
Ilya Alekseyev
b068e1edd7
added missing tests
2011-08-05 07:55:22 +04:00
Ilya Alekseyev
8ecaec5719
tests and merge with trunk
2011-08-05 07:49:29 +04:00
John Tran
502801bfff
For nova-manage network create cmd, added warning when size of subnet(s) being created are larger than FLAG.network_size, in attempt to alleviate confusion. For example, currently when 'nova-manage network create foo 192.168.0.0/16', the result is that it creates a 192.168.0.0/24 instead without any indication to why
2011-08-05 02:27:36 +00:00
Matthew Hooker
0b275cd9d7
Remove instances of the "diaper pattern"
...
Anywhere "except:" occurs, I tried to replace it with an explicit except on
known error types. If none were known, Except was used.
In the process I've been able to unearth a few evasive bugs and clean up some
adjacent code.
2011-08-05 02:22:13 +00:00
Rick Harris
e4011ea5c6
Read response to reset the connection state-machine for the next request/response cycle.
2011-08-05 02:02:31 +00:00
Gabe Westmaas
637dfc0f44
Added explanations to exceptions and cleaned up reboot types
2011-08-05 01:55:53 +00:00
Gabe Westmaas
02bf32d40c
Merge from trunk
2011-08-05 01:29:39 +00:00
Adam Gandelman
d470f82ea0
Properly format mapping['dns'] before handing off to template for injection (Fixes LP Bug #821203 )
2011-08-04 17:43:37 -07:00
Rick Harris
66916be1ad
Read response to reset HTTPConnection state machine
2011-08-05 00:12:19 +00:00
Matt Dietz
5fe92058d0
Revert migration now finishes
2011-08-04 22:18:52 +00:00
Dan Prince
0fea610a69
The OSAPI v1.0 image create POST request should store the instance_id as a Glance property.
2011-08-04 21:39:37 +00:00
Chris Behrens
790d035953
There was a recent change to how we should flip FLAGS in tests, but not all tests were fixed. This covers the rest of them. I also added a method to test.UnitTest so that FLAGS.verbose can be set. This removes the need for flags to be imported from a lot of tests.
...
Another side effect is that it fixes a bug in host_test_filter.py where there was a tearDown method in the class that didn't call its parent. Ie, test.TestCase.tearDown() was not being called. host_test_filter.py's tearDown has been removed as a part of this cleanup, so the parent will be called now.
This happens to fix an unrelated pep8 issue in trunk, as well, so that my tests pass cleanly.
2011-08-04 21:32:56 +00:00
Matt Dietz
77a1a63c30
Bad method call
2011-08-04 21:26:21 +00:00
Matt Dietz
dae356ad06
Forgot the instance_id parameter in the finish call
2011-08-04 21:18:55 +00:00