Adapated plugin infrastructure to allow API to pass options to plugins
Now using in-memory sqlite db for tests on FakePlugin
teardown() now 'resets' the in-memory db
Adding unit tests for APIs
- Unit tests will use FakePlugin
- FakePlugin adapted to db API with sqlite
- db Models updated to inherit from generic Quantum Base model (provides utility functions and capabilities for treating db objects as dicts - see nova.db.models.NovaBase)
- functional tests commented out temporarily. Will un-comment when code for starting actual service is in place
Somik Behera [Mon, 27 Jun 2011 23:34:28 +0000 (16:34 -0700)]
Merging dan wendlandt's bugfixes for Bug #800466 and improvements that enable Quantum to seamlessly
run on KVM!
removed:
quantum/plugins/openvswitch/agent/set_external_ids.sh
added:
tools/batch_config.py
renamed:
quantum/plugins/openvswitch/agent/install.sh => quantum/plugins/openvswitch/agent/xenserver_install.sh
modified:
quantum/cli.py
quantum/db/api.py
quantum/plugins/openvswitch/README
quantum/plugins/openvswitch/agent/ovs_quantum_agent.py
quantum/plugins/openvswitch/ovs_db.py
quantum/plugins/openvswitch/ovs_models.py
quantum/plugins/openvswitch/ovs_quantum_plugin.ini
quantum/plugins/openvswitch/ovs_quantum_plugin.py
pending merges:
Dan Wendlandt 2011-06-27 fix pep8 introduced by trunk merge
Dan Wendlandt 2011-06-27 [merge] merge
Dan Wendlandt 2011-06-27 more pep8 goodness
Dan Wendlandt 2011-06-25 refactor batch_config, allow multiple attaches with the empty string
Dan Wendlandt 2011-06-21 [merge] merge and pep8 cleanup
Dan Wendlandt 2011-06-21 add example to usage string for batch_config.py
Dan Wendlandt 2011-06-21 Bug fixes and clean-up, including supporting libvirt
Somik Behera [Tue, 21 Jun 2011 17:37:34 +0000 (10:37 -0700)]
Merging latest changes from parent repo - lp:network-service , Parent repo had approved merge proposal for merging lp:~santhom/network-service/quantum_testing_framework , which has now been merged into lp:network-service
Santhosh [Wed, 8 Jun 2011 10:21:47 +0000 (15:51 +0530)]
Santhosh/Vinkesh | Fixed all the pep8 violations. Modified the 'req' to 'request' across all the services and wsgi so that it's consistent with other projects
Somik Behera [Mon, 6 Jun 2011 16:22:05 +0000 (09:22 -0700)]
Initial commit of exceptions that are raised by a quantum plugin.
This list of exceptions is consistent with exceptions being expected by the API service. Please note that the exception list is still evolving and will soon be concrete.
Somik Behera [Sun, 5 Jun 2011 00:45:36 +0000 (17:45 -0700)]
* Merged changes from Salvatore's branch - quantum-api-workinprogress
* Removed spurious methods from quantum_base_plugin class.
* Updated the sample plugins to be compliant with the new QuantumBase class.
Somik Behera [Sun, 15 May 2011 20:31:23 +0000 (13:31 -0700)]
1) Created a DummDataPlugin in SamplePlugin module.
- DummyDataPlugin is a sligh improvment over QuantumEchoPlugin in that
the plugin returns hard-coded data structures.
2) Created a CLI that enabled quantum plugin writers to test their plug-in implementation.
- Currently I am using DummyDataPlugin to test and run the CLI
but if anybody has another better Quantum plug-in, please modify
manager.py to use your plug-in and drive the plug-in using the CLI.
- Running the CLI against wider variety of plug-ins will help the CLI
evolve and improve. Please free to send patches.
3) TODO: list
- Finalize the plug-in data model
- Finalize the exception and make the plug-in throw exceptions
- Write unit tests for plug-in qualification and CLI testing.
Somik Behera [Fri, 13 May 2011 21:23:37 +0000 (14:23 -0700)]
1) Added a bare-bones framework for quantum plugins.
2) Created demo quantum plugin that conforms to QuantumPluginBase
Abstract class specification.
3) Demonstrated plugin registration and invocation using the demo
plugin called "QuantumEchoPlugin"
4) Created the initial file structure for a quantum CLI
5) Seeded the utils module that will contain frequently used Quantum utilities.
6) Modified the manager module to initialize and register the quantum plugin
defined in a configuration file. I have hard-coded the path to plugin for now
but this will move to a quantum.conf file.
TODO:
1) Finish up the Quantum CLI
2) Write Quantum unit tests that can be run against any plug-in for certification.
3) Create a working quantum plugin.