Commit Graph

297 Commits (master)

Author SHA1 Message Date
zxgao 55af2ffa8d Add test case for nodes api.
Change-Id: I49ef9f7aa76fbac55a8c73f62459d8a5cb2a06c8
Closes-Bug: 1809085
2018-12-19 16:17:47 +08:00
zxgao f2617cde8a Add test case for availability zone api.
Change-Id: I75d95b0a576c6320f402591b709e985feb176ed8
Closes-Bug: 1809059
2018-12-19 10:00:17 +08:00
Zuul fdbf7895de Merge "add test for quota update when quota no exist" 2018-12-18 11:26:59 +00:00
Zuul 1de1107bf7 Merge "Add save aggregate metadata test case" 2018-12-18 11:26:58 +00:00
Zuul 73df2670bc Merge "Add api app unit test" 2018-12-18 11:26:02 +00:00
Zuul 94f8ea6a3d Merge "Add server nic unit tests" 2018-12-18 11:23:46 +00:00
Rui Yuan Dou 8d2d3395ce Add rpc call test
Change-Id: I36a2cc66fe70c4fc7ba978a9ef27e2ea1f6be0d7
Closes-Bug: #1808962
2018-12-18 18:26:35 +08:00
Rui Yuan Dou 7bb91da41f Add server nic unit tests
Change-Id: I0ac7cbba90f19c133ee01b79bb2966f540d54982
Closes-Bug: #1808952
2018-12-18 17:58:23 +08:00
Zuul ca8d5dad0b Merge "Add server_group related db exception tests." 2018-12-18 09:10:10 +00:00
Zuul 54a5145b4a Merge "add test for get_one() when server_uuid not found" 2018-12-18 09:08:10 +00:00
zhaodan d2c2cf68b8 add test for quota update when quota no exist
Closes-Bug: #1808940

Change-Id: Ib4ad6138edc49b334a7a2da1c7864d874bf9a0eb
2018-12-18 17:02:27 +08:00
zxgao d24e10ecd7 Add server_group related db exception tests.
Change-Id: Ib270840d667088d9edecf88440eecdad97ac7b86
Closes-Bug: 1808936
2018-12-18 16:27:58 +08:00
Rui Yuan Dou 18433592a8 Add save aggregate metadata test case
Change-Id: I8a63c033043e0e4f92b3f080ab5cabc4a85f1841
Closes-Bug: #1808933
2018-12-18 16:09:44 +08:00
zhaodan 03eba771f4 add test for get_one() when server_uuid not found
Closes-Bug:#1808918

Change-Id: I265defee39a8c5795f3d23c617af00bc1d5c3c96
2018-12-18 07:04:29 +00:00
zxgao b23eec0419 Add unit test of db about updating a not exist server.
Change-Id: I2d20d575e90c36b2bef3a781f4f1f1bda4bd93a5
Closes-Bug: 1808922
2018-12-18 14:56:54 +08:00
Rui Yuan Dou b8967b6b94 Add api app unit test
Change-Id: Ie9e9b0fa39c672c430234172cf213eaca191aa1e
Closes-Bug: #1808921
2018-12-18 14:54:57 +08:00
zxgao feda8431b1 Add unit test of api about trying to get a not exist flavor.
Change-Id: I02a5c27fd68ad762d35aba40dda9176fae680ef8
Closes-Bug: 1808914
2018-12-18 14:12:40 +08:00
zxgao c801a3f8ea Fix context hook unit test error.
Change-Id: I8559b62c2b485d385626253cfcca4ecda2ecaa7f
Closes-Bug: 1808900
2018-12-18 11:02:48 +08:00
Zuul bc369618b2 Merge "Modify grammatical errors" 2018-03-01 09:18:11 +00:00
chengebj5238 c68f0fd41e Modify grammatical errors
Change-Id: Id3b8b950cd4df5b9af4c6721d1c4f645a6de0759
2018-02-06 17:46:43 +08:00
wanghao bdbf3f81e7 Add manageable server information into system metadata
Now when Mogan manage the baremetal node from driver,
Mogan didn't know it is a managed server.
We need add this information "managed_server=True" to
system metadata for internal use.

So this patch will finish two jobs:
1. Implements the system metadata in Mogan
2. Add manageable server information into system metadata

Co-Authored-By: Xinran WANG <xin-ran.wang@intel.com>
Change-Id: I89947796e120d89ec56f8f5daeb9774cf15b6bd0
Implements: blueprint system-metadata
Closes-Bug: #1727913
2018-02-05 14:17:03 +08:00
Zuul 063a6d9d9a Merge "server group unit testing a bit wrong" 2018-02-05 04:06:28 +00:00
liuluyang 1b2490bdf0 server group unit testing a bit wrong
the function of create_test_server_group should be used instead
create_test_aggregate

Change-Id: I383bc563d369144a5f918064309b73e7984b61ab
Closes-Bug: #1736331
2017-12-25 03:04:13 +00:00
liusheng ddcdfad9be Add versioned notifications of rebuild server action
This change add the implememtation of versioned notifications of server
rebuild action.

- Add notification for server.rebuild.end event
- Add notification for server.rebuild.error event
- Add notification for server.rebuild.start event

Change-Id: If168a95dc090f18e6464a03e5ceec9978b2c2df2
2017-11-24 08:53:22 +08:00
Zuul fce0cb4c25 Merge "Remove 'locked' from server object" 2017-11-23 06:30:50 +00:00
Zuul 2cee9e9107 Merge "Add admin_password support" 2017-11-20 09:29:01 +00:00
Zuul a8050e3d5c Merge "Following up patch of bbbe964ff4e19232ce3dd326fbd3f04f0781f5b1" 2017-10-31 10:21:11 +00:00
Xinran eeabfedc54 Add admin_password support
Mogan should support to inject an admin password into a bare metal server.

DocImpact
APIImpact

Change-Id: Id3487b7aea699353aedd49a51d9a5a2e250943b9
Implements: bp admin-password-support
2017-10-31 16:50:08 +08:00
Zuul 8d2d165755 Merge "Pagination support for server list API" 2017-10-28 16:55:05 +00:00
Zhenguo Niu d5d480d1e6 Following up patch of bbbe964ff4
This merges db migrations file into one, will not add new migration
scrips until we are offical.

Change-Id: Ibd70c05e42a6b8ad63f3818e385bc347b9ff8afa
2017-10-28 15:46:56 +08:00
Zhenguo Niu 448556bab0 Remove 'locked' from server object
locked_by can be used to check the lock status, there's no
need to keep locked field.

Change-Id: I3761ab710cf67d56163a39add4c51ee48f940a36
Closes-Bug: #1727944
2017-10-28 09:44:04 +08:00
Xinran 05cc14d399 Pagination support for server list API
We should support to return a list of servers according to users' requirements.
In this patch, marker, limit, sort_key and sort_dir were added in server list
API.
- marker is used to display a list of servers after marker
- limit is used to determinate the maximum number of servers to display
- sort_key is used to sort the returned server list by specified key value
- sort_dir is used to select a sort direction

DocImpact
APIImpact

Change-Id: Id70e965794c82a0a29e53d4364f65b0f39042c7c
Closes-Bug: #1726665
2017-10-26 07:40:05 +00:00
Tao Li ea83f4711a Add db api layer for CRUD operations
Add the DB layer Operations for server tags

- set/unset server tags
- get server tags
- add/delete single tag
- check whether server tag exists

Change-Id: I2338ece8e4ae880835f6e20ef1e9e71a228a9703
Implements: blueprint server-tags-support
2017-10-19 14:33:58 +08:00
Jenkins 57fe9d796f Merge "Add tag table in db and migration file" 2017-10-15 02:15:10 +00:00
Tao Li bbbe964ff4 Add tag table in db and migration file
Add a new table named 'server_tags' in mogan database. and
provide a migration script to upgrade the old datbase.

Change-Id: I509d4db82d2aaa4c75ba93812ff0055eb3bd56f7
Implements: blueprint server-tags-support
2017-09-26 16:02:32 +08:00
liusheng 10c429e08a [DOC] Add contributor guide for versioned notification
Change-Id: I79a2842bf31d6b8f6f697e4bdc980db959efa7cc
2017-09-22 09:24:57 +08:00
liusheng 185e6e9302 Drop the getting server state API
This API is redundant because all the status can be displayed in server
response.

Change-Id: I5013d6746d2f6c4380563f319b3bd1fba7671bd6
Closes-Bug: #1717406
2017-09-15 14:17:28 +08:00
liusheng 244f31f88c Add *locked* field in server response
Closes-Bug: #1717405
Change-Id: I946879f9505b0fc91e1726b61b5ee235427ac0e0
2017-09-15 14:17:24 +08:00
Jenkins 5949568d06 Merge "Add partitions to server API object" 2017-09-15 03:00:15 +00:00
Jenkins d7a0d8a91d Merge "Enrich the payload of notifications of server creation" 2017-09-14 15:03:44 +00:00
Zhenguo Niu 279100a520 Add partitions to server API object
Add partitions to make sure it returned with the API response.

Change-Id: I11fa63df60785f79116fa40d5f3cd7427a003add
2017-09-14 18:30:37 +08:00
liusheng 797f2a06e8 Fix gate
In the BaremetalComputeAPINodesTest test, the resource setup and resource
cleanup have been bypassed.

Change-Id: I0a6ef2921201baa6c2751a888e09073a353c267c
Closes-Bug: #1717185
2017-09-14 14:59:11 +08:00
liusheng d3d72d4b19 Enrich the payload of notifications of server creation
Change-Id: Ic86ae41bbb8fcfaac0ea82b9ac2427066412ff42
2017-09-14 09:54:42 +08:00
Zhenguo Niu b55a988327 Disable flavor traits on API side
As we can't support traits now when talking to placement, so
disable it to avoid to confuse users.

Change-Id: Ib739f0cae03bf12b1c7ae1af7c3a9ec94b40cce1
2017-09-13 13:11:49 +08:00
Jenkins d45a8de43c Merge "Return node name with server API object" 2017-09-12 04:26:23 +00:00
Jenkins a8c064817a Merge "Add preserve_on_delete to server nic object" 2017-09-12 02:56:59 +00:00
Zhenguo Niu a4b1ee741f Return node name with server API object
Currently we support to list compute nodes and aggregate nodes
with names, but server show will return the node uuid always,
which makes the admins have to go to ironic to get the relationship
between name and uuid, so this changes to return node name.

Change-Id: I6f1e5d0f9cfe277fe952d21b38ebfe68dde4f745
Closes-Bug: #1715036
2017-09-11 19:05:09 +08:00
Jenkins 811dd3dcf5 Merge "Manage existing BMs: Part-2" 2017-09-11 10:53:18 +00:00
Tao Li 26508fd131 Manage existing BMs: Part-2
Add the adopt baremetal node API.

Change-Id: I1897129930bface6a6c4a179e02d6107ff3811af
Implements: bp manage-existing-bms
2017-09-11 16:57:35 +08:00
Zhenguo Niu c540eb16ca Reduce test_keypair time consuming
Set keypair quota limit config option in the test case instead of
creating 100 keypairs there.

Change-Id: I5f1fbc9a67174db4e88ac73c9c6e98ce5455bed9
2017-09-11 13:09:53 +08:00