40 Commits

Author SHA1 Message Date
Nikhil Manchanda
0a680d91b3 Fix few missed issues with the reddwarf -> trove rename
There were a few files that were touched after the reddwarf->trove
rename that were still referencing "reddwarf". Changed these
references to "trove".

Fixed bug: 1194636

Change-Id: I7c7b014dee3b3a540baa84ad491812e17a8235ee
2013-06-25 13:29:52 -07:00
Michael Basnight
7ab80b554d Rename from reddwarf to trove.
Implements Blueprint reddwarf-trove-rename

Change-Id: Ia9ee609bbc06a1d8b9d6917642529f30347541fd
2013-06-24 14:11:15 -07:00
Tim Simpson
792cd12158 chmod 755 bin/reddwarf-mgmt-taskmanager
Change-Id: Id5cace40da33b6b0e016a6e9a903bad25b536cd4
Fixes: bug #1187408
2013-06-04 09:19:55 -05:00
daniel-a-nguyen
16b42c9579 Added optional arg to launch child processes
Removed unnecessary conditional stmts
Commented out reddwarf-api-workers in configs

Change-Id: I80505fbe2dfe84c2ad77d4f41cd0d876b90187ef
Implements: blueprint preforkreddwarf
2013-05-21 16:05:15 -07:00
justin-hopper
770c0fd83b Refreshed Oslo Code
Change to auth_tok to auth_token
    Added dependency on oslo.config package
    Remove reddwarf.openstack.common.cfg

Change-Id: I61af7a54d09f3d1d6b6efe470ea6308be8ace2e7
Fixes: bug #1175757
2013-05-08 16:11:02 -07:00
Michael Basnight
d5fca0e312 Makes the guest work for more than just mysql.
* Moved code around to accomplish this
* Renamed a few msyql specific methods
* Used the guest_info config file since it contained
  the service_type already

implements blueprint reddwarf/guest-multi-impl

Change-Id: I12a1f08499355802dba35ca14ec38b8f0dc5dfa4
2013-05-01 15:58:09 -07:00
Russell Bryant
1aaed59b4b s/OpenStack LLC/OpenStack Foundation/ in Copyright.
Update Copyright statements that previously said 'OpenStack LLC' to now
say 'OpenStack Foundation'.  Note that the files under openstack/common/
were not updated, as those changes should be brought in by syncing with
oslo-incubator.

Change-Id: I22db9858e899cff72053a4b48100fcc039f5d9dd
2013-04-29 18:33:42 -04:00
Tim Simpson
97b6a94eae Restoring the ability to run fake mode locally.
* Adding a fix which makes it easy to change logging. This is useful
  if you want to write a script to start a server, run some tests,
  and stop it.
* Fixed the configuration files which were preventing some stuff
  from working when the fake mode process started. Had to create a
  test api-paste.ini file to use the fake keystone auth.

Fixed bug #1122526
Change-Id: I85b7fa8874ec01c8d8ea0d805d12bb551ee88960
2013-03-07 12:19:33 -06:00
Michael Basnight
4eb7e34ca9 More changes to facilitate oslo.
* Cleaning up the CONF defaults in paste created classes
* Updated mgmt-taskmanager
* Small updates to files for oslo
* Removed executils, local
* Fixing constants (removing them from inside method defs)

implements blueprint reddwarf/upgrade-oslo

Change-Id: Ib1a9fe4a829ce2541323693650db412209298a9f
2013-01-14 16:01:35 -06:00
Michael Basnight
c8a5bc39dc Update oslo codebase within reddwarf.
* Updated logging,cfg,setup to new oslo
* Split out the paste ini from the conf files
* Modified reddwarf-api/server to use new modules
* Modified reddwarf-manage to use new cfg
* Added rpc helper for rpc services
* Modified reddwarf-taskmanager to use rpc helper
* Modified reddwarf-guestagent to use new rpc helper
* Fixed guestagent api to use rpc proxy
* Fixed taskmanager module to conform to new rpc
* Updated guestagent manager/pkg to use new rpc
* Updated api paste to use keystoneclient auth_token
* Updated managers to use periodic tasks

Implements: blueprint reddwarf/upgrade-oslo

Change-Id: I9ad1b441eca855a4304454014ae746ec51bef8f3
2012-12-18 21:18:28 -06:00
Tim Simpson
9a5d82bf90 No longer import db_api while parsing db __init__.
The db_api field of reddwarf/db/__init__.py was grabbed by importing a
module using utils.import_object. The imported module was always the
sqlalchemy api module, which is nested under the file that imports it,
which caused import errors in multiple contexts. This commit changes
every use of db_api to call a function to load it first, which seems
to fix these problems.

Change-Id: I9515efe02831b521d7f14674e0a2913e476b207d
Fixes: bug #1080706
2012-11-21 13:30:50 -06:00
Tim Simpson
c007356a78 Adding tests to Reddwarf.
The tests come from the Reddwarf Integration repository. wsgi_intercept
is used to allow the test code to hit the server code directly. It also
properly sets up the SqlLite database before each run.

* Adds an "event simulator" which queues up functions that would
  normally be spawned with eventlet. The various sleep functions are
  then swapped with a method that runs these faux-events.

* Adds many of the Reddwarf Integration tests. The idea is these
  could still run in a richer, real environment, but are running here
  enables us to quickly check feature breaks for each commit and
  lowers the learning curve necessary to test the API. The downside
  is some of these tests still have artifacts of their origins, such
  as (unused) classes to connect to MySQL databases. Some more work
  will be necessary to separate the "real mode" functionality of these
  tests further.

Implements: blueprint tox-tests
Change-Id: I9857f265c1cb46832906ef5e6a0c7bb4a092e637
2012-11-19 12:33:40 -06:00
Tim Simpson
bc1a9ab508 Moved the agent heart beat check to inside the guest api class.
* The check fits better in the api class.
* Fixed a bug in fake mode.
* Turning on pep8 for tox.
2012-09-07 18:32:12 -05:00
Tim Simpson
fcc524d36a Removing the "fake-mode" tox env in favor of specifically using 2.6. 2012-09-04 21:07:13 -05:00
Tim Simpson
46f329adc2 Adding the mgmt taskmanager. 2012-09-04 12:54:25 -05:00
Tim Simpson
4249dff008 Improved ability to run fake mode in CI environments.
* The reddwarf-server script can now fork itself and save it's pid.
* Changed the tox.ini to not start the fake mode server. Now, two new
  bin scripts start and stop the server. This should make it easier to
  run in CI environments.
2012-09-04 12:18:32 -05:00
Tim Simpson
bc507d773c Adding tox support to Reddwarf.
* Changed reddwarf.conf.test to reflect local mode.
* Updated fake keystone. Any token is treated as the tenant ID, and any tenant id starting with "admin" is treated as an admin.
2012-07-16 11:22:02 -05:00
Nirmal Ranganathan
c7d93e7ce7 Refactoring the instance load method Adding back the volume used parameter. Added timeouts for all guest sync calls. Refactored the instance models. 2012-06-18 15:10:01 -05:00
Nirmal Ranganathan
ebd2d227d6 Resize live volumes attached to an instance 2012-06-05 18:05:50 -05:00
Nirmal Ranganathan
85b5b6da1d Reinstantiating the Task Manager aka Reddwarf Manager 2012-05-31 09:47:20 -05:00
Nirmal Ranganathan
18d92c07d6 Updating the port in reddwarf-api 2012-05-24 14:54:55 -05:00
Nirmal Ranganathan
08a04098b8 Updating reddwarf-server to use the config for ports, instead of defaulting at the command line args 2012-05-24 14:17:19 -05:00
Michael Basnight
f7f58d88fc Adding image_update call to reddwarf-manage 2012-05-24 12:23:33 -05:00
Michael Basnight
a8855eecc4 Adding a reddwarf-api binscript 2012-05-02 14:12:29 -05: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
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
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
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
Michael Basnight
8cfa3d97c4 Getting the guest status update working.
* Added the db calls to the guest code
* Changed the default for the confs to use MySQL
* Added HACKISH uuid as a global var for status lookups
* * This is because the ip is no longer saved
    in the reddwarf db. We can do something
    better in the future since this does
    not persist if the agent stops.
2012-03-21 23:15:46 -05:00
Michael Basnight
2bdaa9d8fc Adding the guestagent.
* Added the manager code to service
* Updated conf so it works on a guest
* Added exceptions for the guest
* Added all the guest code from legacy reddwarf
2012-03-18 15:45:19 -05:00
Tim Simpson
f5665b005c Added gitignore and re-fixed pep8 violations. 2012-03-07 16:33:58 -06:00
Tim Simpson
3e141fd79d Fixed Pep8 errors. 2012-03-07 14:08:42 -06:00
Michael Basnight
61b8c85ff6 Added in the guest manager code
* Added the bin script for the guest agent
* Added a sample config file for guest
* Migrated guest-agent to guestagent
* Added a manager and service for the guest
2012-03-07 09:13:37 -06:00
Michael Basnight
63befd034d Adding some basic service code from nova.
* Adding the proper taskmanager bin script
* Adding a taskmanager impl (needs to be a proper baseclass)
* Adding novas LoopingCall to utils
* Updating dummy rpc cast in the database service so it sends to the task manager
2012-03-05 21:36:00 -06:00
Michael Basnight
f2d09827cd Added the taskmanager class with some testing rpc code
* Fixed a bug in rpc kombu w/ a bad durable declaration
* Fixed the name of the queue exchange
* Added a bit of rpc code to the taskmanager service for consuming
* * This is mostly experimental at this point!!!
* * This should be refactored into something common!!!
2012-03-05 08:04:59 -06:00
mbasnight
90bf37cbfd Adding the missing reddwarf-manage binscript 2012-02-22 19:06:02 -06:00
mbasnight
0fe9b2323c Getting hooked up w/ the db.
* connection db and all that jazz
* migrations are working
* local DB models are working (only save)
2012-02-22 18:03:39 -06:00
mbasnight
1f920650e6 A bit more cleanup to remove melange code, and making the auth code work again. 2012-02-21 06:36:47 -06:00
mbasnight
475927f35d Making the API look more like melange. this made the api a TON cleaner than modeling it after the existing nova code.
* now uses no nova imports and still has things like extensions, versions, etc.
* created a new server binscript
* made a new common folder with all the non openstack-common wsgi, exception, extensions etc...
* using openstack-common extensively
* changing the version to use v0.1
* stole some code from melange to make all this possible <3 melange team
2012-02-20 22:47:49 -06:00
Michael Basnight
dc5a1bb8c3 Got a nice API shell working
* uses devstacks install for nova/keystone/et al
* talks to nova via novaclient.
* adds a few extensions to show how its done
* has a single call to list instances
* found a few minor bugs to discuss w/ nova crew
** Note in order to run this you have to mod the code downloaded by devstack
    or have local symlinks to nova & novaclient in your src tree running trunk
    This will get dealt with soon (it is a weekend!)
2012-02-19 11:06:49 -06:00