133 Commits

Author SHA1 Message Date
Michael Basnight
feb567f647 Fixing the mysql list calls
* Became compliant with the new guest api code
* Fixed a small guest api bug
* Fixed the views to return the proper data
* Added databases in list_users
* Fixed the issue with bad nova data
* Misc pep8 fixes
2012-04-03 14:09:05 -05:00
Michael Basnight
10433a88c7 Merge pull request #53 from TimSimpsonR/diet-reddwarf-lite
Created test fakes for Nova and the Guest. With these you can run the server with no external dependencies!
2012-04-02 12:28:05 -07:00
Tim Simpson
cf3e0b5042 Created test fakes for Nova and the Guest. With these you can run the server with no external dependencies!
* Changed reddwarf-server to load the paste config first so the config file valeus would be read during start up.
* Made the Config class update the dictionary values instead of replace them all.
* Added a test conf file for running the server locally.
* Added a fake version of Nova and the Guest API.
* Changed Guest API to not require every single method to pass context and ID. This also makes it easier to fake.
* Changed some instances of uuid to id.
* Added "BUILD" server status to list of statuses which should be returned instantly in Instance status code.
2012-04-02 14:33:26 -05:00
Michael Basnight
7cb40c224b Merge pull request #55 from ed-/flavors_api
Flavors api
2012-04-02 12:18:28 -07:00
Ed Cranford
3dd3b6010c Forcing https. 2012-03-30 15:56:28 -05:00
Ed Cranford
4586ee4f51 Removed some vestigial CONFIG and LOG lines. 2012-03-30 11:42:43 -05:00
Ed Cranford
9c7496f9d9 Moved build_links and req into the view, cut out some redundant exceptions 2012-03-30 11:40:47 -05:00
Ed Cranford
778d3638b3 Used new style of context and moved the req to the constructor in the views. 2012-03-30 10:48:37 -05:00
Ed Cranford
2a6ab452f9 Fixed the discrepancy between detail and plain view; fixed links in models 2012-03-29 16:42:45 -05:00
Ed Cranford
fd5d5fa32a Fixed the Flavors API so the URLs returned are correct and all tests are passed. 2012-03-29 16:42:45 -05:00
Ed Cranford
cd3737770d Adding Flavors API: models, views, and service. 2012-03-29 16:42:45 -05:00
Michael Basnight
8ff4757e3d Merge pull request #48 from hub-cap/fix_extension_map
Making the exception_map work for extensions
2012-03-29 08:25:31 -07:00
Michael Basnight
d8c59af3b9 Merge pull request #47 from hub-cap/new_context
Updated the context object in all services.
2012-03-29 08:21:12 -07:00
Michael Basnight
29e7f81b41 Removing the link from webob in exceptions
* Fixed UnprocessableEntity so it doesnt inherit from webob
* Fixed delete instance to return the new UnprocessableEntity
2012-03-29 10:18:58 -05:00
Michael Basnight
7b6536a56c Made the constant proper cased. 2012-03-29 10:08:00 -05:00
Michael Basnight
9779ddf7a7 Making the exception_map work for extensions
* Added back in the exception_map to the extensions
* Added UnprocessableEntity to the mysql service
2012-03-28 21:40:42 -05:00
Michael Basnight
911fb552de Fixing up the internal_message 2012-03-28 21:16:40 -05:00
Michael Basnight
348b5e5b4d Updated the context object in all services.
* Fixes Github issues #46 and #45
* Created a middleware for context
* Commented out a bug that was introduced
* Updated context in all services
* Turned a few straggling 201s into 200s
2012-03-28 19:06:13 -05:00
Michael Basnight
40a668d74b Merge pull request #42 from hub-cap/add_validation
Add validation
2012-03-28 14:42:14 -07:00
Michael Basnight
dc9b9eee41 Merge pull request #41 from TimSimpsonR/fix-lists
Fixed the instance list operations.
2012-03-28 14:37:07 -07:00
Tim Simpson
a23aee11e5 Fixed the instance list operations.
* Added ComputeServerNotFound exception to distinguish this more alarming case from simply not finding an instance.
* Made load_server method of instance.models create a context.
* Changed how Instance list was created to add more validation.
* Made the details list view work.
* Massaged view data to match exisiting API.
2012-03-28 16:42:52 -05:00
Michael Basnight
6d0512e584 Changing 201 to 200 2012-03-28 16:31:16 -05:00
Michael Basnight
80413fc4b3 Added validation to the users/databases/root calls.
* Added a custom extension manager to make extension behavior normal
* Added proper serializer/deserializer to the user/database/root calls
* Added exception map for processing exceptions
* Fixed all the returns to return wsgi.Result
* Added validation method for create user/database/root
2012-03-28 16:26:01 -05:00
Michael Basnight
f635542677 Adding validation to user/schema.
* Updated BadRequest to work like the rest of the exceptions
* Added validate methods for the user/schema
2012-03-28 10:41:32 -05:00
Michael Basnight
878599ef09 Merge pull request #40 from hub-cap/root_enabled
Adding root enabled.
2012-03-28 08:39:24 -07:00
Michael Basnight
abfdcaa08a Adding root enabled.
* Added the MVC for root enabled.
* Fixed a small bug in instance/models.py.
* Pep8 compliance
2012-03-27 20:43:02 -05:00
Michael Basnight
d5a3a4e737 Merge pull request #39 from hub-cap/use_uuid
Fixing the queues to use uuid.
2012-03-27 17:56:13 -07:00
Michael Basnight
16d900c518 Merge pull request #38 from TimSimpsonR/delete_instance
Fixed the instance status returned during instance deletion.
2012-03-27 17:56:05 -07:00
Tim Simpson
148a22556c Fixed the instance status returned during instance deletion. 2012-03-27 19:40:15 -05:00
Michael Basnight
f2212511b8 Fixing the queues to use uuid.
* Added the /etc/guest_info file that has the id of the guest
* Passed uuid in as the host flag in the common config code
* Removed uuid from the dbaas api/guest prepare call
2012-03-27 16:46:38 -05:00
Michael Basnight
26efda257a Merge pull request #37 from hub-cap/fix_unprocessable_extensions
Fixing the extensions to behave like existing reddwarf.
2012-03-27 14:34:50 -07:00
Michael Basnight
ba2096a73d Fixing the extensions to behave like existing reddwarf.
* Fixed the mappers in the extensions
* Added unprocessable entity raise to the extensions
* Fixed small bug is is_sql_enabled
2012-03-27 12:42:20 -05:00
Michael Basnight
af5b3eb159 Merge pull request #34 from TimSimpsonR/bug-fix
Fixed a small bug, added error msg as suggested by cp16net
2012-03-27 08:34:07 -07:00
Michael Basnight
7e98f97ce6 Merge pull request #36 from hub-cap/databases_calls
Databases calls
2012-03-27 08:24:19 -07:00
Michael Basnight
f9d8ddf1c5 Added schema calls for list/create/delete.
* Modified mysql extension for list/create/delete.
* This is a wash/rinse/repeat of users.
2012-03-26 21:45:49 -05:00
Michael Basnight
eda4a16a6b Added the delete user call.
* Added the MVC for the delete.
* Revertd the guest api back to original code.
* Minor pep8 cleanup.
* Added minor forgotten print stmt.
2012-03-26 21:13:37 -05:00
Michael Basnight
37f76481eb Built out create_user call.
* Added the MVC for create_user.
* Updated the guest so it works in create_user
* Fixed an error w/ reddwarf models and update_status
2012-03-26 20:07:47 -05:00
Tim Simpson
7221c94a88 Fixed a small bug, added error msg as suggested by cp16net 2012-03-26 17:57:55 -05:00
Michael Basnight
0af6afb76f Adding list_users for mysql users
* Added MVC for mysql users
* Hooked up the MVC to the guest
* Fixed a dual import bug in dbaas.py
2012-03-26 17:14:41 -05:00
Michael Basnight
50687b9678 Merge pull request #33 from TimSimpsonR/fix-statuses2
Added status code, return 422 when trying to delete a busy instance.
2012-03-23 13:42:22 -07:00
Tim Simpson
b775a1dc0d Fixed bug in status property, added message to UnprocessableEntity error. 2012-03-23 15:04:41 -05:00
Tim Simpson
6950877668 Added status code, return 422 when trying to delete a busy instance.
* Added UnprocessableEntity exception from legacy.
* Returned 422 when deleting an instance which is being built.
* Made Instance.delete non-static when I realized that this would simplify the method, give us some validation for free and be almost as fast.
* Created / modified Instance methods "is_sql_running," "status," and "_validate_can_perform_action" by taking code from the legacy InstanceStatus class.
2012-03-23 09:03:46 -05:00
Michael Basnight
a4c140bbfd Merge pull request #32 from TimSimpsonR/fix-statuses
Now returning the correct status strings.
2012-03-22 15:00:46 -07:00
Michael Basnight
51e08e2684 Merge pull request #31 from hub-cap/conf.d
Adding the guest conf.d writing
2012-03-22 14:24:31 -07:00
Michael Basnight
bd9515bf54 Adding the guest conf.d writing
* Made sure to append the conf in the startup
* Added the methods to append/write
* Made the dbaas guest agent write guest uuid
2012-03-22 16:12:56 -05:00
Tim Simpson
82f0db4d1d Now returning the correct status strings. 2012-03-22 15:40:15 -05:00
Michael Basnight
22fb122b03 Merge pull request #30 from cp16net/validation
Adding validation of the api create and fixing list instances
2012-03-22 12:37:17 -07:00
Michael Basnight
b0f1843cb1 Merge pull request #29 from hub-cap/guest_update
Getting the guest status update working.
2012-03-22 12:36:39 -07:00
Craig Vyvial
f8602d1e90 Adding validation of the api body
* cleaning up issues with the load instance(s)
* Moving over the validation from creating an instance
* making more __name__ and less "strings"
2012-03-22 14:01:21 -05:00
Nirmal Ranganathan
8810955c47 Merge pull request #28 from TimSimpsonR/fix-load-attempt
Simple change to delete instance call.
2012-03-22 09:41:27 -07:00