170 Commits

Author SHA1 Message Date
OTSUKA, Yuanying
2e7b9046a8 Fix RequestContext attributes
'auth_url', 'auth_token_info' and 'trust_id' is required to create heatclient.
So this commit added these.

Change-Id: If17c87770f2e4d93dae5e1262faa5b44cc5cfdef
2014-12-25 11:12:58 +09:00
Jenkins
f2a657eefe Merge "Implement bay_ironic.py" 2014-12-24 15:43:40 +00:00
Jenkins
6d2a54796f Merge "Add a new API of get_by_pod_name for pod object" 2014-12-24 15:34:49 +00:00
Jenkins
901f9644e1 Merge "fix the wrong order of steps and missing password in db connection" 2014-12-24 13:59:12 +00:00
Jenkins
1339ad4760 Merge "Remove redundant version info for magnum objects" 2014-12-24 13:17:10 +00:00
Davanum Srinivas
df4e64186e Flesh out some more docker container methods
First cut of Docker container creation and start should be working now

Tested using the REST API:
curl -i -X POST -H 'X-Auth-Token: 1b238d90cd0645a39a626581cf0c9f19' \
     -H 'Content-Type: application/json' \
	 -H 'Accept: application/json' \
	 -d '{"image_id": "cirros", "name": "mycontainer"}' \
	 http://127.0.0.1:9511/v1/v1/containers

curl -i -X PUT -H 'X-Auth-Token: 1b238d90cd0645a39a626581cf0c9f19' \
     -H 'Content-Type: application/json' \
	 -H 'Accept: application/json' \
	 -H 'User-Agent: python-magnumclient' \
	 http://127.0.0.1:9511/v1/containers/4e19a981-057f-4d55-9aaf-d12c06e6430a/start

And the magnum CLI:
echo '{"name":"mycontainer", "image_id":"cirros"}' | magnum --debug container-create
magnum --debug container-start --id c6d6c759-9875-4dd4-aaa3-619799015c1d

Change-Id: Ib7a46d95d2d89cd8479bb0a318a3c9efaf23f187
2014-12-24 07:59:15 -05:00
Jay Lau
f872b84708 Remove redundant version info for magnum objects
Change-Id: I2956636c87d30374d60800cc56ca26ba2524604a
2014-12-24 04:54:54 -05:00
Kai Qiang Wu(Kennan)
774da7ce0d fix the wrong order of steps and missing password in db connection
Change-Id: I5f7f8c3d97af76123ba6344ec013abedc38a539a
2014-12-23 14:39:02 +08:00
Jenkins
51d3cb88a6 Merge "Implement container_list" 2014-12-22 21:52:28 +00:00
Jenkins
33d5c125a0 Merge "Add a hyper-link for quick start" 2014-12-22 21:51:52 +00:00
Jenkins
3ebcc38e23 Merge "Implement docker backend for magnum service" 2014-12-22 21:49:17 +00:00
Jenkins
0aee0c9166 Merge "Update log message and some functions in kube.py" 2014-12-22 21:48:14 +00:00
digambar
ea25d067a6 Implement docker backend for magnum service
Change-Id: I6bde0149caaf93b6e446f5f01039895fb36751e6
Implements: blueprint magnum-backend-docker
2014-12-22 16:45:02 -05:00
Jay Lau
16ad8207bf Implement container_list
Change-Id: Ic2e72c04f37095a0cf731465bdf6fb8db0058e53
2014-12-22 09:44:13 -05:00
Jay Lau
a8294cd201 Implement bay_ironic.py
Update following methods:
1) bay_list
2) bay_delete
3) bay_show

Change-Id: Ie8c8769c9a27db6d201036a1b84e347a183ec92f
2014-12-22 04:58:44 -05:00
Jay Lau
cbae05b099 Add a hyper-link for quick start
Change-Id: If032a5142b57aa20178a374f764b00bc4abd0f80
2014-12-22 04:36:15 -05:00
Jay Lau
0343637f5f Add a new API of get_by_pod_name for pod object
In k8s, pod name cannot be duplicated and some end users want to
get pod by name.

Change-Id: Ic8b6273de914949e4799446e68e5e2d51bfab8b9
2014-12-22 02:26:44 -05:00
Jay Lau
36244a0443 Update log message for kubecli.py
Change-Id: I01df1e6b18c247982f1effc1ccb8e15e5c13a9ac
2014-12-22 02:06:38 -05:00
Jay Lau
878f330636 Update log message and some functions in kube.py
Change-Id: I6ce21d737fc341b8df820761c14ffc3b5e7151da
2014-12-22 01:39:08 -05:00
Steven Dake
0dc370a462 Fix external_network_id
Make external_network be external_network_id to match the rest of the system.

Change-Id: I9bdeabf5efcead9a5b51779b89cc6dd9552defad
2014-12-18 03:11:37 -07:00
Jenkins
6232213f15 Merge "Remove type and image_id replace with baymodel_id" 2014-12-17 13:07:37 +00:00
Jenkins
3b92cc3010 Merge "Add a baymodel object" 2014-12-17 13:07:30 +00:00
OTSUKA, Yuanying
b4e20a0ef0 Fix authentication
auth_token is not set in auth.py. this fixes it.

Change-Id: I510541fd6a1b9d499aa32ec18495db867ef50223
2014-12-17 18:44:03 +09:00
OTSUKA, Yuanying
d8b0d110b7 Fix auth_url type
In this case, auth_url variable is set as Tuple.
It is bug, so this fixes it.

Change-Id: I524749df95cc0cf67fd30d637632e8430dc04e17
2014-12-17 16:32:29 +09:00
Steven Dake
54e59ea12e Remove type and image_id replace with baymodel_id
The baymodel_id represents the bay model used to generate this
particular Bay.  This is essentially a split of Bay into multiple
objects - one for template storage - one for instantation.

Change-Id: Ie6b7220bfecfd61af0ecf9114a791dfed61b415e
2014-12-16 22:45:37 -07:00
Steven Dake
3f520bbde5 Add a baymodel object
The baymodel object and ReST object is used to control bay properties
for different bay models.  It is then possible to launch bay models
using this functionality.

Change-Id: I317bda292719ca3f4649283f7e27674c813cc3b0
2014-12-16 22:45:32 -07:00
Jenkins
e9ff12b521 Merge "Containers Service Spec" 2014-12-16 23:07:28 +00:00
Jenkins
06c21d1855 Merge "Reference proper file in cmd.conductor" 2014-12-15 15:12:35 +00:00
OTSUKA, Yuanying
4eb7aa6f83 Add bay kubernetes_heat type WIP
This uses "larsks/heat-kubernetes" template to build a kubernetes cluster,
to support k8s_heat type Bay.
k8s_heat type Bay provide kubernetes using heat.

Change-Id: I40980a4d264de7f59c1314b6c5a30b643d03dd92
2014-12-15 17:05:04 +09:00
Abhishek Chanda
92e3ebee20 Migrate to oslo.context
Remove deprecated oslo incubator code

Change-Id: Iee16111fc86aef83603251aedf6d58f6da78fc92
2014-12-14 16:38:34 +05:30
Steven Dake
4aac587695 Reference proper file in cmd.conductor
The cmd.conductor was referencing a file that was renamed by a previous
commit.  This resulted in the conductor not running.

Change-Id: Id3e08334d106cf8a1f6cc94c4905d42095a0546d
2014-12-12 18:03:56 -07:00
Pradeep Kilambi
209a639ba1 Knitting Pod and Service object flow for Kubernetes backend
Get the work flow in place for pods and services to use rpc
backend and integrate kube handlers.

Partially-Implements: blueprint magnum-backend-kubernetes

Change-Id: Iabd7f5f1217402c18820170521354ac04e436551
2014-12-12 15:33:29 -05:00
Pradeep Kilambi
de215c5fa6 Update migration files to reflect new schema
Change-Id: I096f20e953eb77c8da248cad7a3919994cc3a1f8
2014-12-12 10:38:10 -05:00
Pradeep Kilambi
598b9aae99 Implement Service object Rest APIs
Partially Implements: blueprint magnum-backend-kubernetes

Change-Id: I27bb1d4ec2174abb30e7770daaeab24c26987d01
2014-12-12 10:33:00 -05:00
OTSUKA, Yuanying
99509fa5ce Add heat client
This client will be used to create a bay.

Change-Id: I4977f830e1f5816352da8f5f1e697d277577896a
2014-12-12 17:32:55 +09:00
OTSUKA, Yuanying
6919cad773 Add keystone client
This client will be used by novaclient and heatclient to create a bay.
The original sources are come from Ironic.

Change-Id: Ib075148afb0ddf503e71b333cef85523561a2732
2014-12-12 16:39:31 +09:00
OTSUKA, Yuanying
bb5615495a Fix failing creation of MagnumException subclasses
Change-Id: I8100c59a5608da2703860da0ba3e6628971af5f1
2014-12-12 16:07:04 +09:00
Steven Dake
9d46b771c5 Rename backend to conductor
The backend is a bad name for a process, so instead call it the conductor.

Change-Id: Iaeb574b9754fe2635a2b082a99216337130a19f9
2014-12-11 16:51:08 -07:00
Steven Dake
54411f6265 Remove conductor
Remove conductor.  The backend will replace the conductor as the process
name to be more consistent with other OpenStack projects.

Change-Id: If69557b7ca02e48c65372cbb200d2f648613778e
2014-12-11 13:04:04 -07:00
Jenkins
11f0b50b80 Merge "Rename the test_functional.py to the api" 2014-12-11 19:51:38 +00:00
Jenkins
e9d0e5a273 Merge "Add RPC backend service" 2014-12-11 19:48:02 +00:00
Steven Dake
34886de0ae Rename the test_functional.py to the api
This test case really only unit tests the ReST API.  So rename it as such.

This file probably needs to be split into the separate objects in the tree.

Change-Id: Ifefaa25297d9737e8644948f4faed9c0abea6b38
2014-12-11 12:44:59 -07:00
Steven Dake
6349b4e384 Add RPC backend service
This uses a simplified RPC model while integrating with the
versioned objects serializer.

bay-create is handled by the backend.
bay-list is handled by the RPC service.

Change-Id: I384994584ad7f928df9366a2e6f677951a450e40
2014-12-11 12:30:50 -07:00
Jenkins
e91667fa30 Merge "Add bay uuid to Service Objects" 2014-12-11 19:26:40 +00:00
Pradeep Kilambi
71458fb8ea Add bay uuid to Service Objects
Change-Id: Ia8b757d5bbe477c2de09b65f35409847fd1623c3
2014-12-11 14:19:44 -05:00
Steven Dake
5b8036ea6f Add documentation for a developer quickstart guide
Change-Id: Idda4b0a39076e5f473cbb4182cdcba202267ab69
2014-12-10 17:36:29 -07:00
Jenkins
5405375608 Merge "Add a node object" 2014-12-08 13:48:21 +00:00
Steven Dake
39a1ed9f5a Add a node object
The node object represents either a bare metal or virtual machine node
that is provisioned with an OS to run the containers, or alternatively,
run kubernetes.

Change-Id: I9eba14232c193688347b7ec2674c83f230404ae1
2014-12-07 10:07:46 -07:00
Jay Lau
4bb16aaa90 Update db migration for pod
Patch Ib765d1c3ed8a6c06136233abd393fb1efae71e41 add two fields
for pods but db migration was not updated.

Change-Id: Id66b606cd11e43a8ef7b8c46f805b37c22c571a8
2014-12-07 05:10:58 -05:00
Jenkins
79d61e5244 Merge "Add image_id and node_count to bay" 2014-12-07 02:05:37 +00:00