Commit Graph

16 Commits

Author SHA1 Message Date
Andreas Jaeger 9eccf4fe21 Retire cue
Cue has been retired in mid 2016 as official project and did not
continue developement, it's time to retire it completely.

Remove everything, update README.

Depends-On: https://review.openstack.org/551202
Change-Id: I1f4a71fbea8a90303036ad0adaec95fa15b6522f
2018-03-09 09:40:09 +01:00
Michael Krotscheck 98bd25c584 Moved CORS middleware configuration into oslo-config-generator
The default values needed for cue's implementation of cors
middleware have been moved from paste.ini into the configuration
hooks provided by oslo.config. Furthermore, these values have been
added to the default initialization procedure. This ensures
that if a value remains unset in the configuration file, it will
fallback to using sane defaults. It also ensures that an operator
modifying the configuration will be presented with that same
set of defaults.

Change-Id: Ia179bbd7489ca128186990439a161903b7b4c28d
Closes-Bug: 1551836
2016-03-11 13:11:03 -08:00
Michael Krotscheck ebb06fb49f Added CORS support to Cue
This adds the CORS support middleware to Cue, allowing a deployer
to optionally configure rules under which a javascript client may
break the single-origin policy and access the API directly.

For cue, the middleware was added directly to the application
factory, including various default headers usually required by
keystone. Note that the CORS middleware must be the first one in
the middleware chain, so that it can annotate all responses -
even error responses - generated by other middleware.

oslo_config initialization was added to the functional test
initialization, in order to ensure that a fully initialized
config instance is available during tests.

OpenStack CrossProject Spec:
   http://specs.openstack.org/openstack/openstack-specs/specs/cors-support.html
Oslo_Middleware Docs:
   http://docs.openstack.org/developer/oslo.middleware/cors.html
OpenStack Cloud Admin Guide:
   http://docs.openstack.org/admin-guide-cloud/cross_project_cors.html

Change-Id: I7ff60a96f545ff991de06073a80a5750512ebd31
2015-12-23 11:00:45 -08:00
Michael Krotscheck 28519ccefe Cue genconfig
This updates tox -egenconfig to correctly generate configuration
files for the various components of cue. Included are list_opts
invocations for all places where configuration is found, appropriate
setup.cfg hooks for generic oslo-config-generator invocations, and
explicit genconfig configuration files for the monitor, worker, and api.

Sample configurations have been regenerated from source.

Change-Id: Ib838269b3ba1e81587cd984933edb41d6d6a555a
2015-10-29 12:01:36 -07:00
Abitha Palaniappan 1622f2269d Keystone v3 support
- modified clients to authenticate using keystone.session
  - supports both v2 and v3 auth version

Change-Id: I73b281c3076dd8a5a2686bdc39d57263dc2fc2b8
2015-08-26 21:31:43 -07:00
dagnello e1338c20d9 Adding management network interface integration to Cue
* Introduced new management_network_id config parameter for
    management network interface to clustered VMs
  * Updated devstack/lib/cue script to configure environment for
    Cue with management and user  network interfaces

Change-Id: I28df0fc6157430767b772cd784b2cb28751aab52
2015-03-30 15:03:40 -07:00
dagnello 33876924f7 Cap maximum number of nodes in a cluster
* Max limit configurable in cue.conf
* Cue API post request (create cluster) will validate size is
  within this limit
* Added API test for cluster creation higher than limit is rejected.

closes-bug: 1427894

Change-Id: I7e979b22c519df83a44699bac3d45d2a3802f2f7
2015-03-28 00:12:26 +00:00
Min Pae 21ef0c6677 provisioning rabbitmq via userdata/cloud-init
- changed create cluster flows from a combination of unordered and
  linear flows to a graph flow
- added userdata generation step to create userdata to be used by
  each VM
- added check_or_restart_rabbitmq, to check rabbitmq status a
  number of times then restart the VM, before checking again

Change-Id: I98f2aa031ccd7e8bb068fa4cece3dd8af263e33e
2015-03-11 17:55:35 -07:00
Endre Karlson 018f165b33 Run cue-api behind Apache2
Change-Id: I2996e5e749e966bae26ab8c914b4a30cc18ec0c8
2015-03-04 13:08:01 -08:00
dagnello caaa83929c Implementation for cluster update
This patch is adding cluster/node update functionality to the
    cluster create flow.

    * Get VM status task
    * Get RabbitMQ status task
    * Added update status functions for Node and Cluster DB objects
    * Added get node by id function in objects model
    * cluster status update in objects class to DB
    * node status update in objects class to DB
    * Get VM status task unit tests
    * Get RabbitMQ status task unit tests
    * Update cluster status task unit tests
    * Updated existing tasks and create cluster flow tests for DB support
    * Updated existing tests and test fixtures for matched behavior
      with devstack clients and their mocked versions

Change-Id: I7b07e1a179b9b5e64218db9c64417d72be02cac9
2015-02-26 21:09:14 -08:00
Min Pae e7ce65c1be added dynamic cluster create flow
- added create_cluster_node flow factory function for creating a
  cluster node
- modified create_cluster flow factory function to call
  create_cluster_node for each cluster node
- modified neutron and nova fixtures to support testing for
  cluster create flow

Change-Id: I92aae38d71baeca9a84385813180703bbb9c2ece
2015-02-19 14:17:00 -08:00
Min Pae 23caabd7a0 add create_vm task
- Add os_tasklib.nova.create_vm task for creating new VMs via nova
- Modified nova and neutron fixtures to persist more information
  about networks, flavors, and images.

Change-Id: I25a54eea44b6a24b46c98992d4699b5dd3455ca6
2015-02-13 15:52:41 -08:00
Endre Karlson 33665527ef Add policy handling to all API calls
Change-Id: Id33206c7ef7524b07303b03f74becabd64449962
2015-02-04 20:53:20 +01:00
Min Pae df6930e2e0 Implemented publisher API and multi-process worker
Pulled in runner/API and runner/worker from Endre's fork
https://github.com/ekarlso/cue/tree/runner with a few modifications.

worker-based engines are not being supported with the initial release of
cue, and zookeeper is being used by default as both the persistence and
jobboard backend.

Change-Id: Id05f1a39ebaa91061145f5fc6d069a3c8e154f66
2015-01-28 13:53:21 -08:00
dagnello 17449b4e92 Temporarily disabled admin policy for accessing the REST API. 2014-10-29 17:09:06 -07:00
Vipul Sabhaya 94387a4805 Get basic API to start up 2014-10-28 23:09:53 -07:00