Commit Graph

593 Commits

Author SHA1 Message Date
Zuul 31b8cc3c84 Merge "Fix delete attribute api bug" 2024-01-26 06:15:42 +00:00
songwenping df85db5677 Fix delete attribute api bug
Closes-Bug: #2020179
Change-Id: I7a97cecff3bdfa1ee80bb1d2ee5f8a9e9d1448cf
2024-01-26 10:58:06 +08:00
songwenping 279a260bb2 Remove accelerator in microversion header
Closes-Bug: 2049489
Change-Id: I0e392e63da354682da0ce7f347ab6e24d3d2432d
2024-01-16 17:07:19 +08:00
Zuul ab8b851424 Merge "implementation of bp disable-enable-device" 2023-08-25 07:30:53 +00:00
anguoming ef7ce3f2c3 implementation of bp disable-enable-device
add disable and enable device api

Change-Id: I3d2f7ac3b8de29bc0c3125b7340d9a90cffa7127
2023-08-25 11:22:01 +08:00
songwenping 867931fb83 Fix bug: report exist trait exception
check the trait first before create trait to placement

Closes-Bug: #2029890
Change-Id: I37cddd13c12536bc20bd6039127d348e6f9949da
2023-08-07 05:24:10 -04:00
Zuul 9df66a96fe Merge "Change the log level and content" 2023-07-27 07:38:00 +00:00
songwenping a34fe93ce9 Change the log level and content
Change-Id: I069b555489bdd35834ca6cbc57827dc50027b1cd
2023-07-26 19:37:22 +08:00
leiyuehui c2114f2e07 Follow pep8
Change-Id: Iee4114dd1ce02ce9a3108b14768fc4405dbb7812
2023-07-04 20:50:40 +08:00
jiangzhilin ef5315e47a Follow pep8 norm
Change-Id: I0314a383a78eac354c4a41afaa1778f9e94efca6
2023-06-28 14:47:49 +08:00
zhuyawei b0e7892d2f Add accelerator.common.utils test
This patch is proposed to test accelerator.common.utils scripts.

Change-Id: I2ed16ab3e779715cd7f7453bf61cab7069adecc6
2023-06-16 09:06:50 +08:00
Zuul ccac6df9a4 Merge "Use new get_rpc_client API from oslo.messaging" 2023-05-17 01:18:29 +00:00
songwenping 34886a2722 Remove default None value for get method
Change-Id: I718d4958de42fa96c40fbb5f153f8a975126b94d
2023-03-23 15:43:20 +08:00
songwenping 08892c27f2 Remove dep_list definiation as the driver_dep is always single
Change-Id: I96c8655f77a1d74a02252d220ef2c14e57c0f960
2023-03-23 10:31:32 +08:00
songwenping f221847597 Remove comment as the bug 1707995 is fixed
Change-Id: Ic41b0cc7900a261d3d2520a0fb60951c40bbbe42
2023-03-21 07:33:58 +00:00
songwenping b86ee0578e Remove comment as the bug is fixed
Change-Id: I2bcf3d488c188fd89ebe8420af1b0794d0d70412
2023-03-21 07:33:51 +00:00
Yumeng Bao 4b34d897d2 arq bind and unbound support vGPU
This patch is part of the vGPU support feature in cyborg.
It implements arq bind and unbind for vGPU resource.

Co-Authored-By: Wenping Song <songwenping@inspur.com>

Change-Id: I32c3b81345c6ce83834a83c64b88e37926724f16
2023-02-16 14:52:32 +08:00
Yumeng Bao 79e1928554 Cyborg NVIDIA GPU Driver support vGPU management
The Cyborg NVIDIA GPU Driver has implemented pGPU management in
the Train release, this patch implements the vGPU management
support in the same driver. For specs about this feature, please
refer to [0].

[0]:https://specs.openstack.org/openstack/cyborg-specs/specs/wallaby/approved/vgpu-driver-proposal.html

Co-Authored-By: Wenping Song <songwenping@inspur.com>

implement blueprint enable-vgpu-in-cyborg

Change-Id: I715fdad3e8601186b5c6e8c087f27fb91d679490
2023-02-13 16:02:13 +08:00
Tobias Urdin 6491be0d19 Use new get_rpc_client API from oslo.messaging
Use the new API that is consistent with
the existing API instead of instantiating the client
class directly.

This was introduced in release 14.1.0 here [1] and
added into oslo.messaging here [2]

[1] https://review.opendev.org/c/openstack/requirements/+/869340
[2] https://review.opendev.org/c/openstack/oslo.messaging/+/862419

Change-Id: I1a0258766757ad3baa4422ed4c51632a4ca0330d
2023-01-19 20:32:13 +00:00
zhangtongjian eafcc2fc64 Fix the wrong use of variable assertions in unit tests
When comparing variables, should use assertEqual

Closed-Bug: #2002460

Change-Id: Iec2e9eec8fea6e5453704c22235fb860211af1a3
2023-01-12 07:35:58 +00:00
zhangtongjian 05505927a5 When asserting the number of members obtained in unit test deployables, should use assertEqual
Related-Bug: #2002460

Change-Id: I2a5bf79b2eb0355edbc07e54cbb51c87f860e97d
2023-01-12 07:33:16 +00:00
zhangtongjian 99858d03b8 fix function usage errors
When comparing variables, should use assertEqual

Related-Bug: #2002460

Change-Id: I59c6910666a0f75934162126dd35883dc32449dc
2023-01-11 18:44:53 +08:00
Zuul 9761e1aa0c Merge "add attributes delete api ut" 2023-01-11 10:05:28 +00:00
Zuul 22eebbe0b1 Merge "fix function usage errors" 2023-01-11 10:05:27 +00:00
zhangtongjian 3f052b6ad4 fix function usage errors
When comparing variables, should use assertEqual

Related-Bug: #2002460

Change-Id: Ia2765d49da62733efacc0e095423e7a1bb84197d
2023-01-11 08:20:49 +00:00
Zuul d61c2ef0f0 Merge "add attributes get by deployable id and key api ut" 2023-01-11 01:36:16 +00:00
Zuul 23b5701fce Merge "add attributes create api ut" 2023-01-11 01:35:56 +00:00
zhangtongjian 1a0a92a301 add attributes delete api ut
Change-Id: Ic059efa95554e854a3da177ec069f262bc83db78
2023-01-10 21:23:30 +08:00
zhangtongjian c5c984b667 add attributes get by deployable id and key api ut
Change-Id: I7d5eada4723858bbcf3f2ab8c1475bce92b93ac5
2023-01-10 21:08:11 +08:00
zhangtongjian 954ee30eed fix the spell error
Change-Id: Ie60088e12fd2ed41857ec01724db2c146de03b10
2023-01-10 18:27:44 +08:00
zhangtongjian 510486d300 add attributes create api ut
Change-Id: Idd4e516011eb17f1b0f7d964aa6ac9af7dfacdf8
2023-01-10 14:12:08 +08:00
zhangtongjian ce622a6055 add attributes get one by key api ut
Change-Id: I3c7dab5d73a8d2a4affa1219b3c64fe616791f60
2023-01-10 09:58:03 +08:00
zhangtongjian f2e24e36d0 add attributes get all api ut
Change-Id: Ib5ba2a1bd601cfdbb66987d8da2953661e476933
2023-01-09 14:44:08 +08:00
zhangtongjian e7a224696c add attributes get one by deployable_id api ut
Change-Id: I38711534bcd94678e9b358e4a097eeccced1c226
2023-01-06 02:50:04 +00:00
songwenping 58e46e9e44 Support create attribute api
Change-Id: If55c722166bbaa3f0203ce5c0c9002ceb3bde859
2023-01-05 02:36:03 +00:00
songwenping 08f63a8426 support get attribute list filter by deployable_id and key
Now attribute get list api doesnot support filter by deployable_id and key, which is not reasonable.

Closes-Bug: 2001586
Change-Id: I3c770f7bc83ff33d6351500ab681cea965c8bd08
2023-01-04 07:49:29 +00:00
zhangtongjian 8934856fc7 add attributes get one by uuid api ut
Change-Id: I8d9dc48b1da01e543e3a7b9db9c6c35bbaa8cf75
2023-01-04 14:15:19 +08:00
songwenping 3ba22d6e0f Fix attribute get api
Closes-Bug: 2000935
Change-Id: I92a03ecbd25f2d0cd53913ba67fbfe21822393a6
2023-01-04 03:28:21 +00:00
songwenping 8fbd52df7c change text type to uuid for instance, device_rp_uuid, project_id and arq
Change-Id: Icb3f0005aefecd594796bacdf48a7c099c90d38b
2023-01-03 10:22:16 +08:00
Zuul 79250a3bd2 Merge "Add placement put rp traits api exception ut" 2023-01-03 01:16:41 +00:00
Zuul 5caa81f07f Merge "Add placement put rp traits api ut" 2023-01-03 01:16:38 +00:00
liyou01 43c8367af6 Add placement put rp traits api exception ut
Change-Id: I7be6103aa84f8c9af938ae588e10eb743f2274e6
2023-01-02 17:08:58 +08:00
liyou01 b715d24a04 Add placement put rp traits api ut
Change-Id: I9f9a6e505cb4497bec1f7745567c45360d07a44e
2023-01-02 17:08:00 +08:00
Zuul 9c28df5e45 Merge "add attributes api ut file" 2023-01-02 08:15:50 +00:00
zhangtongjian 1df18be0ae add attributes api ut file
Change-Id: I369f1ae624794312a2775c77bb8545d8fb844424
2023-01-02 13:17:33 +08:00
liyou01 ca21fe14f5 Add placement ensure traits api exception ut
Change-Id: I5eb50a7f6646393bf398f1e9f8aff7815088b8e6
2023-01-01 17:01:21 +08:00
liyou01 4275e4916d Add placement ensure traits api ut
Change-Id: Ibc33ed2af90172b6ddebd0bf5446f31b028c7979
2023-01-01 17:00:43 +08:00
liyou01 cf70b79bdf Add placement get rp traits api exception ut
Change-Id: I94c5331a32edfbc72b3b7fffce7ddbbc123a3274
2023-01-01 16:13:54 +08:00
liyou01 8554e50bc4 Add placement get rp traits api ut
Change-Id: I0f87cd3ede3ad701ce0eb0a55b516ec7cb75106f
2023-01-01 16:13:20 +08:00
liyou01 0ceab2e03c Add placement delete api exception ut
Change-Id: Iab1124f3c2f80bee22e269faf8a43c0f1847c988
2023-01-01 10:59:14 +08:00