Commit Graph

7625 Commits

Author SHA1 Message Date
Vishvananda Ishaya 3d4ec00de0 make sure basic filters are setup on instance restart 2011-06-27 10:51:05 -07:00
Yuriy Taraday 8a8c013cd4 Fix for bug #788265.
Remove created_at, updated_at and deleted_at from instance_type dict returned by methods in sqlalchemy API.
2011-06-25 19:38:07 +00:00
Yuriy Taraday e253cd3cf0 PEP8 fix 2011-06-25 14:04:40 +04:00
Todd Willey 4db84dc78a Add api methods to delete provider firewall rules. 2011-06-25 02:30:47 +00:00
Salvatore Orlando e6f3ce3541 This small change restores single quotes and double quotes as they were before in the filter expression for retrieving the PIF (physical interface) xenapi should use for creating VLAN interfaces.
I'm not sure why they were altered, possibly because of coding style conventions, but unfortunately xenapi does not accept single quotes for separating filter expression tokens.
2011-06-25 02:16:20 +00:00
Ewan Mellor 9f5a604e24 Remove the unnecessary insertion of whitespace. This happens to be enough
to make this patch apply on recent versions of XenServer / Xen Cloud Platform.
2011-06-25 02:10:27 +00:00
Chuck Short 543a57a3d0 Removes the usage of the IPy module in favor of the netaddr module. 2011-06-25 01:54:28 +00:00
Brian Waldon 1b08d1b3a5 - update glance image fixtures with expected checksum attribute
- ensure checksum attribute is handled properly in image service
2011-06-25 01:47:52 +00:00
Yuriy Taraday a1c5726a9e Remove extra debug line. 2011-06-24 16:07:33 +04:00
Yuriy Taraday e67156851a Merged with trunk 2011-06-24 16:01:51 +04:00
Yuriy Taraday d4fc1d77a4 Unwind last commit, force anyjson to use our serialization methods. 2011-06-24 09:54:38 +04:00
Todd Willey 654350a1cf This adds a way to create global firewall blocks that apply to all instances in your nova installation.
The mechanism for managing these rules is very similar to how security group rules are managed except there is only ever one instance of the provider rule table, as opposed to multiple security group tables.  Each instance will simply jump into the provider firewall table as one of its first actions (before security groups, so these rules cannot be overridden on a per-user basis).

Most of the changes are straightforward if you understand how security groups work.  There are a few small logging and variable name changes as well.

Right now this only exposes the creation of provider firewall rules.  If we agree this is the best path forward I will quickly be adding a list and destroy method and updating nova-adminclient.
2011-06-23 21:44:29 +00:00
Brian Waldon 006cbeb5f1 Accept a full serverRef to OSAPI POST /images (snapshot) 2011-06-23 21:38:10 +00:00
Brian Waldon a44f7dfa3a Adding dict with single 'meta' key to /imgages/<id>/meta/<key> GET and PUT 2011-06-23 20:08:10 +00:00
Todd Willey 51d93c5b17 libvirt test for deleting provider firewall rules. 2011-06-23 14:52:58 -04:00
Todd Willey 9a6e9a1af9 Make firewall rules tests idempotent, move IPy=>netaddr, add deltete test. 2011-06-23 14:45:37 -04:00
Todd Willey f43832dff4 Merge provider-fw-rules-list. 2011-06-23 14:34:42 -04:00
Todd Willey 6e2ebfa1dc Make sure there are actually rules to test against. 2011-06-23 14:16:11 -04:00
Todd Willey ac4baa5990 Add test for listing provider firewall rules. 2011-06-23 14:13:27 -04:00
Todd Willey ef140fe4bd Merge provider-fw-rules. 2011-06-23 14:07:00 -04:00
Todd Willey 203f3f85b6 pep8: remove newline at end of file. 2011-06-23 13:59:26 -04:00
Todd Willey 1a3fb43324 Add admin api test case (like cloud test case) with a test for fw rules. 2011-06-23 13:54:45 -04:00
Todd Willey 02085b9652 Move migration to newer version. 2011-06-23 13:28:13 -04:00
Todd Willey ce2996a753 Merge Trunk. 2011-06-23 13:01:18 -04:00
John Tran df8448f9f6 "nova-manage checks if user is member of proj, prior to adding role for that project" 2011-06-23 15:57:55 +00:00
Brian Waldon ca9384eb55 Add xml serialization for all /images/<id>/meta and /images/<id>/meta/<key> responses 2011-06-23 14:47:51 +00:00
Chuck Short c2a0f15457 Fixed typo 2011-06-23 09:57:22 -04:00
Chuck Short 3b120fe30c Merge trunk: 2011-06-23 09:54:54 -04:00
William Wolf 6d6720e9b7 This catches the InstanceNotFound exception on create, and ignores it. This prevents errors in the compute log, and causes the server to not be built (it should only get InstanceNotFound if the server was deleted right after being created). This is a temporary fix that should be fixed correctly once no-db-messaging stuff is complete. 2011-06-23 00:47:59 +00:00
William Wolf b0e24d4dd2 fixed pep8 issues 2011-06-22 20:27:17 -04:00
William Wolf 0719207009 merge from trunk 2011-06-22 20:04:48 -04:00
William Wolf 3b8ac87afb image -> instance in comment 2011-06-22 20:03:35 -04:00
Alex Meade 2a9549fcde Fixes issues with displaying exceptions regarding flavors in nova-manage 2011-06-22 22:42:49 +00:00
Brian Waldon 548ac151cd pep8 fixes 2011-06-22 18:22:57 -04:00
Brian Waldon 91c6d50d59 merging trunk 2011-06-22 18:12:53 -04:00
Brian Waldon 1f9cd3e7c9 reverting non-xml changes 2011-06-22 17:14:58 -04:00
Brian Waldon 7398819cc0 moving image show/update into 'meta' container 2011-06-22 17:07:26 -04:00
Alex Meade 979a9d2587 fixed incorrect exception 2011-06-22 15:22:25 -04:00
Brian Waldon 92b0307879 updating glance image fixtures with checksum attribute; fixing glance image service to use checksum attribute 2011-06-22 15:11:23 -04:00
William Wolf 918bbfc61d merge from trunk 2011-06-22 10:47:51 -04:00
Soren Hansen 7cb4d3150b Stop trying to set a body for HTTP methods that do not allow it. It renders the unit tests useless (since they're testing a situation that can never arise) and webob 1.0.8 fails if you do this. 2011-06-21 18:42:57 +00:00
William Wolf c7704f1ba5 merge from trunk 2011-06-21 12:57:21 -04:00
Johannes Erdfelt 29e2d55e9d This branch adds support to the xenapi driver for updating the guest agent on creation of a new instance. This ensures that the guest agent is running the latest code before nova starts configuring networking, setting root password or injecting files. 2011-06-21 16:43:10 +00:00
William Wolf b328e9719a merge from trunk 2011-06-21 12:33:40 -04:00
William Wolf 6faecbb961 if we get InstanceNotFound error on create, ignore (means it has been deleted before we got the create message) 2011-06-21 12:31:33 -04:00
Soren Hansen 652ccbd3d2 Bump WebOb requirement to 1.0.8 in pip-requires. 2011-06-21 16:59:36 +02:00
Yuriy Taraday 0e2b3e932d Filter out datetime fields from instance_type 2011-06-21 16:55:45 +04:00
Salvatore Orlando 35e922a2db fix comment line 2011-06-21 11:39:55 +01:00
Soren Hansen 90bfee5c96 Stop trying to set a body for HTTP methods that do not allow it. It renders the unit tests useless (since they're testing a situation that can never arise) and webob 1.0.8 fails if you do this. 2011-06-21 10:46:29 +02:00
Ewan Mellor 31e3aed4a2 Remove the unnecessary insertion of whitespace. This happens to be enough
to match this patch apply on recent versions of XenServer / Xen Cloud Platform.
2011-06-20 20:33:15 -07:00