303 Commits

Author SHA1 Message Date
Hongbin Lu
794322c2fe Add tests for baymodel rest api
Change-Id: Ie56d32638af04df5c0a6e1684c7673b22c919e0d
2015-01-12 17:15:49 +00:00
Hongbin Lu
566219a1f1 Fix the list of unset fields in baymodel
Change-Id: I6a29ab8b7f635c1883f79b672f8b76a2ce94cc6e
2015-01-12 15:50:38 +00:00
Hongbin Lu
01be8b5ba9 Add max_limit to sample config
Change-Id: I24ab855d2eb0b14a1da3b56808eaf3f10d506ff2
2015-01-12 15:48:46 +00:00
Jenkins
661b790815 Merge "Add use case: Permit use of native ReST APIs" 2015-01-11 20:28:51 +00:00
Jenkins
a0ac173518 Merge "Correct the typo in dev-quickstart.rst" 2015-01-11 20:26:54 +00:00
Jenkins
3013d2fbca Merge "Add apiserver_port to BayModel" 2015-01-11 20:26:31 +00:00
eric
63e15bef8b Correct the typo in dev-quickstart.rst
In dev-quickstart.rst, change the word "Ironic" to "Magnum".

Change-Id: Id4d8c114483f7ca1bdf1eef044eafe8247f27184
Closes-Bug: #1408569
2015-01-11 22:42:48 +08:00
Jenkins
17ad62fc35 Merge "Add tests for objects" 2015-01-11 06:34:35 +00:00
Hongbin Lu
52abfd7e1c Add tests for objects
Implements: blueprint increase-test-coverage
Change-Id: I41619570a5b37ef70af1997e710019ff96a5ef42
2015-01-11 03:09:21 +00:00
Jay Lau (Guangya Liu)
557a1457ed Add apiserver_port to BayModel
Implements part of bp override-native-rest-port

Change-Id: I335d12a111ec433b6c312b119a6b4466c5480f15
2015-01-10 21:31:41 -05:00
Jay Lau (Guangya Liu)
1f9ac87503 Add some test for magnum objects
Change-Id: I548a9557991f906cebf6cf672178ce0874372d12
2015-01-10 10:15:45 -05:00
Jenkins
548780ff99 Merge "Merge larsks/heat-kubernetes to Magnum" 2015-01-09 18:29:50 +00:00
Hongbin Lu
45343d34cc Remove inappropriate exceptions and their usages
Change-Id: Iab8c035cca32190a8be9b68a180ebe752582a51b
2015-01-09 03:16:35 +00:00
Steven Dake
f4968bb277 Add use case: Permit use of native ReST APIs
The ability to use native ReST APIs may be important for some users
of Magnum who only want to take advantage of the bay management
features.

Change-Id: I33ec50418b7ebd25786a51edff912e58d6731044
2015-01-08 13:54:57 -07:00
Jenkins
d8df3b3a4c Merge "Implement service creation" 2015-01-08 15:10:47 +00:00
Jenkins
5300e990be Merge "Implement pod creation" 2015-01-08 15:10:39 +00:00
OTSUKA, Yuanying
bdabe2e592 Implement service creation
Service creation is working from magnum api now.

Change-Id: I97fbe4e47c444969ff77adb600b4fd7203eeb194
2015-01-08 16:40:18 +09:00
OTSUKA, Yuanying
5d79a518bc Implement pod creation
Pod creation is working from magnum api now.

Change-Id: I4d8359302306d3bfafaf2c57ba9706d8a3f21629
2015-01-08 15:07:24 +09:00
Hongbin Lu
9ab299d69a Fix dbapi method _add_baymodels_filters
Change-Id: Id522322a461bcbed50970c22dceecbc87cab1c39
2015-01-08 03:29:39 +00:00
Hongbin Lu
decfb9c747 Raise on deleting a referenced baymodel
Change-Id: Ic3c4c38b290e9000d8f3838839b8690bf16335bb
2015-01-08 03:22:34 +00:00
Jenkins
19cd902e06 Merge "Update README.rst" 2015-01-07 15:33:35 +00:00
Steven Dake
d0fbd09874 Update README.rst
Fix a spelling error (ugh) and also change any reference of magnum-backend
to magnum-conductor.

Change-Id: Ib27d1e580543091a1e465cdcf70883df4f5f225b
2015-01-07 07:43:16 -07:00
Jay Lau (Guangya Liu)
2eb763fd23 Merge larsks/heat-kubernetes to Magnum
In 20150106 IRC meeting, we decide to add two templates to magnum
for creating bays. One for virt and the other is for ironic.

larsks/heat-kubernetes is for virt and we can merge it first.

Change-Id: I9db19c006db9c9b725a562f532448d447761542f
2015-01-07 09:27:10 -05:00
Jenkins
eee4720788 Merge "Add unit tests for dbapi of Node and Container" 2015-01-07 13:09:31 +00:00
Jenkins
dd9779b8a0 Merge "Docker: Pull Image Before Container Create" 2015-01-06 23:09:28 +00:00
Andrew Melton
46ebff53e6 Docker: Pull Image Before Container Create
The image needs to be pulled so that it's available for
subsequent inspect and create calls.

Change-Id: I7f2731911a3fc71fbbf3b408b39e57b7521db81f
Closes-bug: #1408101
2015-01-06 13:28:39 -08:00
Jenkins
34abc87d6a Merge "Add some comments for delete logic in bay_create" 2015-01-06 19:46:56 +00:00
Adrian Otto
b7905c76c4 Adjusted README to add ReplicationController
Change-Id: I913ff2be4754540e6d1e1f6f267c7cb356f707e8
2015-01-06 16:54:58 +00:00
Jenkins
c22e2fa328 Merge "Implements k8s resource creation/updating with data" 2015-01-06 15:56:40 +00:00
Jenkins
72fc7081ed Merge "Add master endpoint support to kube_utils.py" 2015-01-06 15:50:44 +00:00
OTSUKA, Yuanying
9ff6b93e08 Implements k8s resource creation/updating with data
Now kube_utils.py supports creation/updating from k8s resource data.
User will be able to updload pod/service/replication_controller data to
create or update resource.

Change-Id: I98f7ab2eab7ac9e68c4e4a313a61f7d39b7596b2
2015-01-06 17:17:34 +09:00
Jay Lau (Guangya Liu)
bd8b58614b Add some comments for delete logic in bay_create
This patch is adding some comments for why adding delete logic
in bay_create for bay_k8s_heat.py

Closes-Bug: #1407832

Change-Id: I7cb103e5370f1c367b20272918314231e65f35e7
2015-01-06 01:07:23 -05:00
OTSUKA, Yuanying
be136bbd8e Add master endpoint support to kube_utils.py
kubeutils.py support k8s master endpoint url to connect remote k8s cluster.
In this change, some method signatures are refactored for future works.

Change-Id: Ie065abeef3c65ea429b799a932fe39d868fabcbf
2015-01-06 14:43:28 +09:00
Hongbin Lu
2cf34a243a Add unit tests for dbapi of Node and Container
Do the following fixes to pass the tests:
* Add unique constraint to 'ironic_node_id'.
* Throw an exception on deleting a non-existent Node or Container.
* Throw an exception on associating an ironic node to an already
  associated magnum node.
* Throw an exception on associating an already associated ironic
  node to a magnum node.
* Fix the methods _add_containers_filters and _add_nodes_filters.

Change-Id: Ibf71853e2468ff95d4055be09cb0b460be28a3db
2015-01-06 04:29:12 +00:00
Jay Lau (Guangya Liu)
5c6f3000e3 Add more unit test for replication controller
Change-Id: Icf7251c9abc3b9b92c9e2c38506c49ea9de03bf7
2015-01-05 21:18:34 -05:00
Jay Lau (Guangya Liu)
068874d0db Add unit tests for the conductor AMQP API
This tests create and delete at the AMQP level and makes certain the AMQP
code is being called.  This does not actually test the connection to the
handlers, which would be more like a functional test.

This test case purpose is meant to introduce pain when changing the
interface.  The interface should not be changed, a new version should
be implemented.

Change-Id: Icfca04df842497515c20138ba58694805b266b55
2015-01-05 21:07:48 -05:00
Jenkins
8b60442bd2 Merge "Remove usage of BayLocked" 2015-01-06 01:44:31 +00:00
Jenkins
4cc3f9ed81 Merge "Add test and refactoring on bay_create" 2015-01-06 01:10:10 +00:00
Steven Dake
566658a6d4 Remove usage of BayLocked
The API had an exception that is not being used (BayLocked)
being executed.  The API calling the exception is not used
by the codebase.

Change-Id: Ib4c6ea7f3a7bf82a136e4234c7d618444413b46d
2015-01-05 20:09:02 -05:00
Jenkins
05c6a317f2 Merge "Add missing Exceptions" 2015-01-06 00:34:09 +00:00
Davanum Srinivas
1b963d5960 Add missing Exceptions
There are exceptions being thrown but are missing!

Change-Id: Ibff98c66374c0827043f8da65a4ac25e4fd55cdb
2015-01-05 09:59:46 -05:00
Jay Lau (Guangya Liu)
01ce1daac8 Add bay_uuid for replication controller
bay_uuid is needed when creating replication controller

Change-Id: If88235bda4b2f9833058533d1308fd89e6b6da4d
2015-01-05 07:59:19 -05:00
Jenkins
fffbfd8a4e Merge "Remove ctxt from RPC API" 2015-01-05 12:33:44 +00:00
Jenkins
30b5ec7944 Merge "Remove ctxt from rpcapi for pod create" 2015-01-05 12:32:53 +00:00
Kennan
7daa7b434d Fix the opts in genconfig issue
there is a lot of options not include in opts, which cause genconfig
not include such config, this patch fix that

Change-Id: I3774930563644b402b74b66b776f13d810fe6f32
2015-01-05 18:17:24 +08:00
OTSUKA, Yuanying
ded30d1237 Add test and refactoring on bay_create
This contains temporary implementation of updating master_address, refactoring
rpc handler and some tests.

Change-Id: Idc88795908441d987d9bb63292daccae523f7cbf
2015-01-05 19:15:24 +09:00
Jay Lau (Guangya Liu)
a4f184c844 Remove ctxt from RPC API
The ctxt was provided by default RPC so there is no need to add
it for RPC API

Change-Id: I199ebc6e981ad0ae73cceb3166079d690fd64554
2015-01-05 00:10:44 -05:00
Steven Dake
5d20742212 Remove ctxt from rpcapi for pod create
the rpcapi does not need ctxt for pod create.  This results in an error
creating the POD complaining about incorrect number of parameters.

Change-Id: I98adb0c68fbcc527cd012ff353e4fd831297658b
2015-01-04 20:49:59 -07:00
Steven Dake
7cb3897ac5 bay-create does not need ctxt on the rpcapi side
The rpcapi client does not need ctxt.  the rpcapi delivery will generate
a context automatically via the RPC subsystem.

Change-Id: Iac1e8937a24db193db94cf20307fdabba408037f
2015-01-04 20:39:19 -07:00
Jenkins
a264393cd0 Merge "Add oslo concurrency namespace" 2015-01-05 02:50:45 +00:00