pti/o2.git
15 months agoDocs: F release docs update 80/10280/1 f-release
Zhang Rong(Jon) [Tue, 17 Jan 2023 08:11:14 +0000 (16:11 +0800)]
Docs: F release docs update

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ie4b9434adcd2667734fe33ecc0319798729f75a9

22 months agoMerge "Test: add CLM env on tox config file; ignore the coverage cache file"
Bin Yang [Thu, 16 Jun 2022 09:27:56 +0000 (09:27 +0000)]
Merge "Test: add CLM env on tox config file; ignore the coverage cache file"

22 months agoDocs: Fix issue of the docs; Update 'sol0018' to 'sol018' 68/8568/2
Zhang Rong(Jon) [Wed, 15 Jun 2022 09:07:29 +0000 (17:07 +0800)]
Docs: Fix issue of the docs; Update 'sol0018' to 'sol018'

1. user-guide when get the dmsIDs
2. Update 'sol0018' to 'sol018'

No issue ID

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Id570bb42a4c7f580b4223997a0039ef1bb72818e

22 months agoTest: add CLM env on tox config file; ignore the coverage cache file 58/8558/1
Zhang Rong(Jon) [Tue, 14 Jun 2022 07:13:39 +0000 (15:13 +0800)]
Test: add CLM env on tox config file; ignore the coverage cache file

As title

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ie5ef292d8b068c0c56abf1b895d6e209941904ca

22 months agoMerge "Docs: Enable O2 DMS by exposing k8s API endpoint"
Bin Yang [Sun, 12 Jun 2022 08:16:50 +0000 (08:16 +0000)]
Merge "Docs: Enable O2 DMS by exposing k8s API endpoint"

22 months agoEnhance: Enable O2 DMS for distributed cloud 02/8502/3
Zhang Rong(Jon) [Thu, 9 Jun 2022 07:16:08 +0000 (15:16 +0800)]
Enhance: Enable O2 DMS for distributed cloud

1. Multi DMS k8s auto watch into DB
2. Generate k8s config file for each DMS when helm executes
3. Update test case for DMS watcher

Issue-ID: INF-276
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: If9f60697b01282b241952c2a941f995d79979b13

22 months agoSupport distributed cloud with or without SSL 52/8452/3
Zhang Rong(Jon) [Thu, 26 May 2022 06:42:22 +0000 (14:42 +0800)]
Support distributed cloud with or without SSL

1. keep the http scheme for the sub cloud without SSL
2. Use the insecure parameter for the sub-cloud with SSL, and use the https

Issue-ID: INF-275
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I105877e2a2d9f316a08b2f58eb096a1ff29bd0e9

22 months agoDocs: Enable O2 DMS by exposing k8s API endpoint 10/8410/8
Zhang Rong(Jon) [Thu, 26 May 2022 08:20:01 +0000 (16:20 +0800)]
Docs: Enable O2 DMS by exposing k8s API endpoint

1. Update api doc, add the default value of the profile
2. Add the k8s profile user guide, support get profile with ESTI number,
like sol0018
3. Remove the profile file download

Issue-ID: INF-264
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I3ceb88b29078f8b63baa0d8082b02999e4f80525

22 months agoEnhance: Enable O2 IMS for distributed cloud 79/8379/2
Zhang Rong(Jon) [Tue, 24 May 2022 08:18:34 +0000 (16:18 +0800)]
Enhance: Enable O2 IMS for distributed cloud

1. Expand dcmanager client as SDK to support getting information of subcloud
2. Implementation of a client that can support distributed cloud
3. Resource pool sends a tag to all the resources that it has,
   to support the resource to get the correct client

Issue-ID: INF-263
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I1caa869339730c1d3d209e5624122dc825736c87

23 months agoEnhance: Enable O2 DMS by exposing k8s API endpoint 85/8285/2
Zhang Rong(Jon) [Mon, 16 May 2022 07:55:20 +0000 (15:55 +0800)]
Enhance: Enable O2 DMS by exposing k8s API endpoint

1. Add profile query parameter for IMS and DMS API, if the parameter exists, return k8s profile information
2. Add an API of the download k8s config file

Issue-ID: INF-264
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I5cba1290b5b1b7103cf6f5f88f5998ef1dc8b8fd

23 months agoConvert file endlines to Unix (LF) 99/8199/1
Jackie Huang [Sun, 8 May 2022 13:15:19 +0000 (21:15 +0800)]
Convert file endlines to Unix (LF)

Convert file endlines to Unix (LF) by:

$ endlines linux -kr *
endlines : converting files to Unix (LF)

endlines : 194 files converted from :
              - 90 Unix (LF)
              - 104 Windows (CR-LF)
           98 binaries skipped
           2 hidden files skipped

Issue-ID: INF-272

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I9e894b9b290d8d3d9f3a0b789d1cc150250c7ead

23 months agorequirements.txt: remove the double requirement 98/8198/1
Jackie Huang [Sun, 8 May 2022 10:02:05 +0000 (18:02 +0800)]
requirements.txt: remove the double requirement

Remove the double requirement to fix:
  ERROR: Double requirement given: ruamel.yaml==0.17.17 (from -r
  /oran-o2/git/o2/requirements.txt (line 18)) (already in
  ruamel.yaml>=0.17.1 (from -r
  /oran-o2/git/o2/requirements.txt (line 8)),
  name='ruamel.yaml')

Issue-ID: INF-271

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I00a7526bdaf03d92f0c312c0168433046d4b5534

2 years agoFix: the resource's parameter 'parentId' is resourcepool ID 11/7611/1
Zhang Rong(Jon) [Tue, 25 Jan 2022 05:59:00 +0000 (13:59 +0800)]
Fix: the resource's parameter 'parentId' is resourcepool ID

1. The resource's parameter 'parentId' should be resource ID, now it uses resourcepool ID, fix it to resource ID, and the root resource set to None.
2. Make the query with parentId=null can search the root resources.

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I3eb2f9569d6655755cce25b4464b66c66e5faf51

2 years agoFix nfdeployment deleting issue 06/7606/1
Bin Yang [Mon, 24 Jan 2022 08:55:52 +0000 (16:55 +0800)]
Fix nfdeployment deleting issue

Issue-ID: INF-258

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I58bea0ea7cb9fa69681901add80bfa1af3696787

2 years agoFix nfdeployment uninstalling issue 05/7605/1
Bin Yang [Mon, 24 Jan 2022 08:25:13 +0000 (16:25 +0800)]
Fix nfdeployment uninstalling issue

Issue-ID: INF-258

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ib07fbc73d0f6059d9b99ff70a1b93a58d3f546f6

2 years agoWorkaround the nfdeployment desc input param issue 04/7604/3
Bin Yang [Mon, 24 Jan 2022 07:46:23 +0000 (15:46 +0800)]
Workaround the nfdeployment desc input param issue

Issue-ID: INF-258

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I4c5bf508d5323bbed9bb55bcfd965b36e76e738d

2 years agoValidate nfdeployment descriptor params 03/7603/1
Bin Yang [Mon, 24 Jan 2022 06:15:55 +0000 (14:15 +0800)]
Validate nfdeployment descriptor params

Issue-ID: INF-258

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I2af7af0d78d9c4db9d75049ce84436d8b9dc9230

2 years agoValidate nfdeployment descriptor params 02/7602/1
Bin Yang [Mon, 24 Jan 2022 06:15:55 +0000 (14:15 +0800)]
Validate nfdeployment descriptor params

Issue-ID: INF-258

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I8c8891c4236272f273fc66446770e02857728853

2 years agoFix nfdeployment handler issue 00/7600/2
Bin Yang [Mon, 24 Jan 2022 04:02:11 +0000 (12:02 +0800)]
Fix nfdeployment handler issue

change retry param to workaround retry in 0 seconds issue

Issue-ID: INF-258

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I2c2717c4a24b7182156e69d0924259bd6afded8f

2 years agoFix nfdeployment uninstall issue 99/7599/1
Bin Yang [Sat, 22 Jan 2022 10:35:12 +0000 (18:35 +0800)]
Fix nfdeployment uninstall issue

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I2c4f459566eea539c8f011d490dec68217bd446f

2 years agoFix: INF-254 retry method defined on the higher level makes primary mapper defined... 95/7595/1
Zhang Rong(Jon) [Fri, 21 Jan 2022 08:05:05 +0000 (16:05 +0800)]
Fix: INF-254 retry method defined on the higher level makes primary mapper defined error

Issue-ID: INF-254
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: If99afa093a06c102fd83af2466db0384c7da2f24

2 years agoDocs: update the dms v1 path changes; Fix INF-254 through retry 94/7594/1
Zhang Rong(Jon) [Fri, 21 Jan 2022 06:12:38 +0000 (14:12 +0800)]
Docs: update the dms v1 path changes; Fix INF-254 through retry

1. Update documents about the dms v1 endpoint changes
2. Add retry for the database mapper creation

Issue-ID: INF-254
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I5115cdb8333c720ed060032146135071eead7be5

2 years agoFix: the IMS and DMS endpoint URL not correct when started in helm chart 91/7591/2
Zhang Rong(Jon) [Thu, 20 Jan 2022 08:01:53 +0000 (16:01 +0800)]
Fix: the IMS and DMS endpoint URL not correct when started in helm chart

1. Add OS environment to specify the k8s service floating IP that makes the IMS and DMS return the correct endpoint

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I35f009d3dada3a9f7e0b369637e804a2461e9e6f

2 years agoFix: INF-254 ENUM type create failed while re-creating a pod 86/7586/1
Zhang Rong(Jon) [Wed, 19 Jan 2022 14:25:36 +0000 (22:25 +0800)]
Fix: INF-254 ENUM type create failed while re-creating a pod

1. Stop using psql 'type' creation that maps the object to DB, replace to varchar

Issue-ID: INF-254
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ic841e08ed2186bab2c2f70fb274178aec81a9d4d

2 years agoINF-257: support query parameters to filter resource API query 83/7583/1
Zhang Rong(Jon) [Wed, 19 Jan 2022 11:20:09 +0000 (19:20 +0800)]
INF-257: support query parameters to filter resource API query

1. Add swagger support accept query parameters.
2. Add a method that is get_by_name in the resource type repository.
3. Make the list method in the resource repository to support more filters.

Issue-ID: INF-257
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I43c0d2e29550880ebdb089759100b68d78d808bf

2 years agoFix: INF-253 o2 api failed after too many queries (part 2) 69/7569/2
Zhang Rong(Jon) [Tue, 18 Jan 2022 06:06:50 +0000 (14:06 +0800)]
Fix: INF-253 o2 api failed after too many queries (part 2)

1. Change helm chart about the postgres start parameters.

Issue-ID: INF-253
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I86274c3e6138033b5b5674630821d2bdac086e16

2 years agoFix: INF-253 o2 api failed after too many queries 64/7564/3
Zhang Rong(Jon) [Mon, 17 Jan 2022 13:16:24 +0000 (21:16 +0800)]
Fix: INF-253 o2 api failed after too many queries

1. Add load test scripts base on locust
2. Fix the DB pool size, extend to 200

Issue-ID: INF-253
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I7d86c700e79f252e2ae0c5e08fa136d0cd13e52e

2 years agoFix: INF-254 o2service cannot recover 62/7562/2
Zhang Rong(Jon) [Sat, 15 Jan 2022 02:31:46 +0000 (10:31 +0800)]
Fix: INF-254 o2service cannot recover

1. Change boot order of helm chart, make the sequence like postgres->redis->pubsub->watcher->api.
2. Add the parameter checkfirst for sqlalchemy create metadata.

Issue-ID: INF-254
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ib72ceb963d5e1f7e4d7b111cff2ef76710bc4c8a

2 years agoDocs: keep rules of name in the same way 16/7516/1
Zhang Rong(Jon) [Mon, 10 Jan 2022 08:25:23 +0000 (16:25 +0800)]
Docs: keep rules of name in the same way

1. The implementation of the O2 interface is named 'INF O2 server'
2. Anywhere mentions about the O2 interface are 'O-RAN O2 interfaces'

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ie727acec0c9d76446afb53dfe4261529a01e8777

2 years agoMerge "Docs: Move RTP to INF, make sure most of the O-Cloud word change to INF O2...
Bin Yang [Mon, 10 Jan 2022 02:02:12 +0000 (02:02 +0000)]
Merge "Docs: Move RTP to INF, make sure most of the O-Cloud word change to INF O2 service"

2 years agoDocs: Move RTP to INF, make sure most of the O-Cloud word change to INF O2 service 14/7514/2
Zhang Rong(Jon) [Fri, 7 Jan 2022 08:44:48 +0000 (16:44 +0800)]
Docs: Move RTP to INF, make sure most of the O-Cloud word change to INF O2 service

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ibaf09ed9d0526f548b71c9cb490a8bd86ab646bf

2 years agoRelease docker image for inf o2 service 12/7512/2
Bin Yang [Fri, 7 Jan 2022 06:05:20 +0000 (14:05 +0800)]
Release docker image for inf o2 service

Issue-ID: INF-248

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I574b3bc418d7dff06fa870f2d187b4efc8f11451

2 years agoDocs: update user guide, add host netdevice settings, set hugepage size to 0 11/7511/2
Zhang Rong(Jon) [Fri, 7 Jan 2022 02:46:32 +0000 (10:46 +0800)]
Docs: update user guide, add host netdevice settings, set hugepage size to 0

1. Update user guide, add host netdevice operations to make sure the testing CNF can work.
2. Reduce the hugepage size to 0, fix the issue that if the host does not have 2M hugepage setting will be failed
3. Add export OAM IP environment variable, avoid many times hand change.
4. 'helm push' not exist issue fixed with install helm plugin.

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: If90f56005c93e9ac428fb06acf205b342a32363a

2 years agoDocs: Add API docs from swagger json file; Add user guide document 85/7485/2 1.0.0
Zhang Rong(Jon) [Thu, 30 Dec 2021 13:26:15 +0000 (21:26 +0800)]
Docs: Add API docs from swagger json file; Add user guide document

1. Convert Swagger json API file to reST format documentation
2. Add user guide document, and make the DMS worked with new document
3. Fix the image miss the helm application
4. Change the configurationId to Id in the SMO endpoint API

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I0572f8b713c946625443d1adc8471a23fedeecff

2 years agoDocs: update installation guide 83/7483/2
Zhang Rong(Jon) [Wed, 29 Dec 2021 13:28:13 +0000 (21:28 +0800)]
Docs: update installation guide

1. Fix NO_PUBKEY while update apt source of the kubernets
2. Update image address in the o2service-override.yaml

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I9ffb81cbd4d12566f4f002a1997dc88bd82978a2

2 years agoMove registration API to configuration 76/7476/3
Zhang Rong(Jon) [Tue, 28 Dec 2021 02:43:54 +0000 (10:43 +0800)]
Move registration API to configuration

1. Create new domain file for configuration, keep registration
command object in configuration domain file
2. Update API and test case, "/provision/v1" as base URL, call
"smo-endpoint" to create a new endpoint

Issue-ID: INF-250
Change-Id: Id85ad6c28a2fd1c6da065c0846c172bfc7ac4f6b
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
2 years agoUpdate docs 73/7473/1
Bin Yang [Mon, 27 Dec 2021 03:13:11 +0000 (11:13 +0800)]
Update docs

Issue-ID: INF-247

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I962b63b989c7b99173b6a74e5ef547671cb58372

2 years agoAdd the command that registers to the SMO; Make the create registration and create... 72/7472/2
Zhang Rong(Jon) [Fri, 24 Dec 2021 08:54:24 +0000 (16:54 +0800)]
Add the command that registers to the SMO; Make the create registration and create ocloud event link to the register command

1. Add a command that registers to the SMO, it can base on a
   parameter to make a choice that it calls all SMO in the
   confiration or not
2. Create a registration event that can trigger the
   register action
3. Update the ocloud changed event that can trigger the
   register action
4. Redesign the Registration domain that updates column key
   to clarify the different status, includeing created,
   notified, and failed

Issue-ID: INF-249
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: Ia734688b47c5125a3a1e1158d544f218ab741576

2 years agoAdd registration the SMO's CRUD interface in IMS 71/7471/2
Zhang Rong(Jon) [Thu, 23 Dec 2021 01:36:28 +0000 (09:36 +0800)]
Add registration the SMO's CRUD interface in IMS

1. Add domain of registration
2. Mapping domain and ORM
3. Create the interface of CRUD and the related action
4. Update unit test for the registration CRUD

Issue-ID: INF-249

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I1d9235c6d654fa4743417ae5e226581935f16214

2 years agoFix container tag file issue 48/7448/1
Bin Yang [Wed, 22 Dec 2021 03:00:58 +0000 (11:00 +0800)]
Fix container tag file issue

Issue-ID: INF-248

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ieb302021cfba6a226558de1927e898027cff8408

2 years agoAdd staging file for docker merge job 34/7434/1
Bin Yang [Tue, 21 Dec 2021 03:13:18 +0000 (11:13 +0800)]
Add staging file for docker merge job

Issue-ID: INF-248

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I81e9bd77c25b106931b0e474f28c329053040cef

2 years agoMerge "Add docs for pti o2 service"
Jackie Huang [Tue, 21 Dec 2021 01:55:45 +0000 (01:55 +0000)]
Merge "Add docs for pti o2 service"

2 years agoAdd docs for pti o2 service 24/7424/4
Bin Yang [Mon, 20 Dec 2021 03:14:13 +0000 (11:14 +0800)]
Add docs for pti o2 service

Issue-ID: INF-247

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I5b51753c9a12a1848bfbf02c7be262d913b58dac

2 years agoAdd subscription and notification for resource changes; fix a bug while pserver node... 08/7408/4
Zhang Rong(Jon) [Thu, 16 Dec 2021 16:50:35 +0000 (00:50 +0800)]
Add subscription and notification for resource changes; fix a bug while pserver node is uninstalled status

1. Trigger an event while resource changed, create a command handler to deal the event, let it can callback to SMO.
2. Create a mock SMO server with a simple html page to subscribe to O2IMS resource changing.
3. Fix a bug that when watch the pserver that it has an unavailable node.

Issue-ID: INF-238
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I13304656a721dbe5d4aec23200063e874eefa521

2 years agoAdd nfdeployment handlers 28/7328/5
Bin Yang [Tue, 7 Dec 2021 03:32:07 +0000 (11:32 +0800)]
Add nfdeployment handlers

add install and uninstall with helm sdk

Issue-ID: INF-239

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I7e6fbe3aa58114cc0918c0ed3142b315aae4354e

2 years agoAdd get detail of a resource to API; remove the dependency of the domain in the view... 82/7282/1
Zhang Rong(Jon) [Thu, 9 Dec 2021 05:58:11 +0000 (13:58 +0800)]
Add get detail of a resource to API; remove the dependency of the domain in the view layer

1. Get detail of a resource from API, include their children node
2. Remove the dependency of the domain in the view layer, return domain object and list from the repo layer

Issue-ID: INF-237
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I2441e07c4f72e8ed80fe18ef87bb23917c6efc91

2 years agoIntegrate nfdeployment api with event handler 54/7254/1
Bin Yang [Tue, 7 Dec 2021 03:32:07 +0000 (11:32 +0800)]
Integrate nfdeployment api with event handler

Fix O2DMS api load issue

Issue-ID: INF-239

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Idc5a41eb25fab5f23ac23fc5632f6589776e8f7c

2 years agoFix ocloudvirtualresource api typo 10/7210/2
Bin Yang [Fri, 26 Nov 2021 07:47:46 +0000 (15:47 +0800)]
Fix ocloudvirtualresource api typo

Refactor o2dms

Issue-ID: INF-239

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ibef4368a86bdbc662f4e80e566b7464b7d6d540b

2 years agoAdd auditor for resource pool, pserver and cpu/memory/port/interface for pserver... 06/7206/3
Zhang Rong(Jon) [Fri, 3 Dec 2021 03:47:51 +0000 (11:47 +0800)]
Add auditor for resource pool, pserver and cpu/memory/port/interface for pserver of INF

1. Add auditor for resource pool, pserver and cpu/memory/port/interface of pserver
2. CUpdate resource type column, auto create resource type before create cpu/memory/port/interface resource
3. Give the git clone parameters to make download size lesser

Issue-ID: INF-236
Issue-ID: INF-235
Issue-ID: INF-234
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I7ddc7d8c18b7f3c17b22cdd35bdf68864f32f780

2 years agoFix: UpdateDms throwing error that no attribute 'events' 05/7205/1
Zhang Rong(Jon) [Fri, 3 Dec 2021 03:33:38 +0000 (11:33 +0800)]
Fix: UpdateDms throwing error that no attribute 'events'

1. Check events exist before the pop event

Issue-ID: INF-233
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I98fc3ebdd766f9e65f012fa61f612c4d587c7457

2 years agoRename some variables; Add test case for flask 20/7120/1
Zhang Rong(Jon) [Wed, 24 Nov 2021 15:57:29 +0000 (23:57 +0800)]
Rename some variables; Add test case for flask

1. Rename api in the ims to specify version
2. Add unit test and integration test case for flask

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I8b54927eb3064e03ad4902402b2fdebbb808e4e6

2 years agoUpdate o2dms lcm api 13/7113/1
Bin Yang [Wed, 24 Nov 2021 00:22:09 +0000 (08:22 +0800)]
Update o2dms lcm api

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I86445cd818441826e17da9b946b480c29f94a401

2 years agoRefactor o2dms api swagger 12/7112/6
Bin Yang [Wed, 24 Nov 2021 00:22:09 +0000 (08:22 +0800)]
Refactor o2dms api swagger

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I996a66eb4f738c20b90e3fc75aa7dd7e2dadcf40

2 years agoFix subscription get response 08/7108/1
Zhang Rong(Jon) [Tue, 23 Nov 2021 13:47:28 +0000 (21:47 +0800)]
Fix subscription get response

1. Fix the response that get subscription
2. Replace uow to bus while call configure_namespace

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I7656280b2df3840646cc8dbf7917fbd24402d30a

2 years agoRefactor code layout 05/7105/1
Bin Yang [Tue, 23 Nov 2021 07:35:35 +0000 (15:35 +0800)]
Refactor code layout

add o2app to integrate o2ims and o2dms

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Iab47a7e2a40a8ca6e76a084e9ebb902e77899629

2 years agoAdjust API level on swagger and set API doc expansion by default 04/7104/1
Zhang Rong(Jon) [Tue, 23 Nov 2021 06:48:27 +0000 (14:48 +0800)]
Adjust API level on swagger and set API doc expansion by default

1. Combine ocloud namespace to one as o2ims inventory v1 level
2. The base url is defined as O2 interface application
3. Each namespace split by the version of service, like IMS inventory v1 is a namespace
4. Set API doc expansion by default

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I659b966fdc1e3f7fef33ac8b67515ab0c328ebae

2 years agoAdd o2dms api endpoint 01/7101/4
Bin Yang [Tue, 23 Nov 2021 01:09:36 +0000 (09:09 +0800)]
Add o2dms api endpoint

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ic624aeda9f9bc8aba86e81b8e43b2ee3a89a009f

2 years agoAdd ocloud query parameter; add and delete subscription 00/7100/3
Zhang Rong(Jon) [Mon, 22 Nov 2021 15:40:32 +0000 (23:40 +0800)]
Add ocloud query parameter; add and delete subscription

1. Add ocloud query parameter to support specific id to query one ocloud
2. Give subscription post and delete method that can do creation and deletion

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I38cd6952dd4df14100ba0e9188c497c0ddad3397

2 years agoAdd dms handler 96/7096/1
Bin Yang [Mon, 22 Nov 2021 11:29:48 +0000 (19:29 +0800)]
Add dms handler

Issue: orm cannot restore non persistent properties of object
hence result object restored from orm comes without events properties
which is essential for domain event handling

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I60e455ec0fe6072242de14d4d2e169178269c80f

2 years agoRefactor watchers 95/7095/3
Bin Yang [Mon, 22 Nov 2021 03:20:10 +0000 (11:20 +0800)]
Refactor watchers

integrate watcher with message bus and handler

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I93f98a88526c866b142ab5da17e5e30839d300a0

2 years agoAdd Subscription get and list API; Provide swagger openAPI doc 94/7094/2
Zhang Rong(Jon) [Sun, 21 Nov 2021 16:16:17 +0000 (00:16 +0800)]
Add Subscription get and list API; Provide swagger openAPI doc

1. Add API that get and list subscription
2. import flask-restx package to support swagger openAPI document

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I404c25809e80af6949543ab6fb307ef2124d4dd1

2 years agoChange service type to NodePort 93/7093/1
Bin Yang [Sun, 21 Nov 2021 05:14:22 +0000 (13:14 +0800)]
Change service type to NodePort

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I3307bed6660da50f28e4d56762e215ef0432db83

2 years agoAdd override to helm chart 92/7092/2
Bin Yang [Sun, 21 Nov 2021 04:28:46 +0000 (12:28 +0800)]
Add override to helm chart

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I912f51e3dc145830c9554a0e88719b330fc3e18f

2 years agoAdd practice of building o2ims images inside a container 85/7085/8
Bin Yang [Fri, 19 Nov 2021 02:56:09 +0000 (10:56 +0800)]
Add practice of building o2ims images inside a container

Add helm chart for k8s deployment

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Iae4501c7a489be9266771d304f6a787c5992169b

2 years agoUpdate domain for event handler 70/7070/2
Bin Yang [Tue, 16 Nov 2021 08:02:03 +0000 (16:02 +0800)]
Update domain for event handler

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I9d871bb8fa0635a9a5df18247ed340e54ad9ff69

2 years agoUpdate logger config 69/7069/2
Bin Yang [Tue, 16 Nov 2021 03:01:57 +0000 (11:01 +0800)]
Update logger config

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ic8a8efe08a0308a753afb785898fcc225121b4ad

2 years agoAdd: flask api include resource type, resource pool, resource and deployment manager 94/6994/7
Zhang Rong(Jon) [Fri, 5 Nov 2021 03:28:34 +0000 (11:28 +0800)]
Add: flask api include resource type, resource pool, resource and deployment manager

1. Create all metadata with mapper while execute start_o2ims_mappers()
2. Extend domain class parameters and create subscription class
3. Create repository class of resource type, resource pool and resource
4. Add flask API to get the list or specific one through the view level

Change-Id: Id29b10172712c19cbfef57e6e74cd4bb85ad15eb
Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
2 years agoFix client issue 57/7057/3
Bin Yang [Mon, 15 Nov 2021 06:45:35 +0000 (14:45 +0800)]
Fix client issue

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I4b2fc706fec47ce595b13b65eced0d40128d85d6

2 years agoRefactor watchers 56/7056/1
Bin Yang [Mon, 15 Nov 2021 02:23:33 +0000 (10:23 +0800)]
Refactor watchers

add watcher tree to organize watchers

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I14485ae39128591a80dc8ffba86e5fdde96ddd1a

2 years agoUpdate watcher worker 05/7005/7
Bin Yang [Sat, 6 Nov 2021 01:38:59 +0000 (09:38 +0800)]
Update watcher worker

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ifcfea06b3f6263018e1d43d595f8b2f1545a54fe

2 years agoAdd polling worker for watcher to probe 83/6983/1
Bin Yang [Wed, 3 Nov 2021 11:13:52 +0000 (19:13 +0800)]
Add polling worker for watcher to probe

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I2dbe061b5183fe47d60ca7421d5844181e7f2824

2 years agoAdd adapter to get k8s cluster info 81/6981/2
Bin Yang [Wed, 3 Nov 2021 07:45:40 +0000 (15:45 +0800)]
Add adapter to get k8s cluster info

Add adapter to get cpu info

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I4176ca4bc9df8556e5252c7b4f3247d6f70da9e1

2 years agoINFO.yaml: add quotation marks for committer id 32/6932/2
Jackie Huang [Tue, 26 Oct 2021 01:34:57 +0000 (09:34 +0800)]
INFO.yaml: add quotation marks for committer id

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I4c5ad2cb7ad9c6c1de5589f51b1e37efaffbe65e

2 years agoExtract ocloud integration test 62/6962/6
Bin Yang [Thu, 28 Oct 2021 14:21:42 +0000 (22:21 +0800)]
Extract ocloud integration test

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I8f62bb344e407a9b13d9d3fb37729b28ff807fc6

2 years agoAdd ocloud watcher and tests 60/6960/5
Bin Yang [Thu, 28 Oct 2021 11:55:47 +0000 (19:55 +0800)]
Add ocloud watcher and tests

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I3c0fb09913f5a064e84cecc3f6fdb6072c58be5a

2 years agoAdd test with fake stx client implementation 55/6955/5
Bin Yang [Thu, 28 Oct 2021 08:11:46 +0000 (16:11 +0800)]
Add test with fake stx client implementation

Issue-ID: INF-196

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Iaf71af39270c5d17ac7cabeed1d9ea91eb85f9d2

2 years agoAdd wrcp aio client test with real ocloud 53/6953/7
Bin Yang [Thu, 28 Oct 2021 04:08:54 +0000 (12:08 +0800)]
Add wrcp aio client test with real ocloud

leverage openrc script to inject real wrcp access info

Issue-ID: INF-196

Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: Ia4da4e49768e15e42034f46f7542304b348c2be7

2 years agoAdd tox 41/6941/3
Bin Yang [Tue, 26 Oct 2021 10:28:10 +0000 (18:28 +0800)]
Add tox

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I668e72886de29f894ababa99f3ac0a84f552f87c

2 years agoAdd framework and apiserver 09/6909/2
Bin Yang [Thu, 21 Oct 2021 11:10:40 +0000 (19:10 +0800)]
Add framework and apiserver

Issue-ID: INF-196
Signed-off-by: Bin Yang <bin.yang@windriver.com>
Change-Id: I3e3022662a8d7e0158657811c0422f3503cb7883

2 years agoFix the format of .gitreview 12/6912/3
Jackie Huang [Fri, 22 Oct 2021 03:02:53 +0000 (11:02 +0800)]
Fix the format of .gitreview

Fix the format of .gitreview to avoid the following error:
ConfigParser.MissingSectionHeaderError: File contains no section
headers.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ib81ad65fa197b19bfa77f9f39cd1a89174f1da3d

2 years agoAutomation adds INFO.yaml 69/6869/2
LF Jenkins CI [Thu, 14 Oct 2021 13:32:54 +0000 (13:32 +0000)]
Automation adds INFO.yaml

Change-Id: Ib402fc93bb947777970c20550d97e106dea2ebac
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
2 years agoAutomation adds .gitreview 68/6868/2
LF Jenkins CI [Thu, 14 Oct 2021 13:32:47 +0000 (13:32 +0000)]
Automation adds .gitreview

Change-Id: I3d94569dc7e6d2fadd8375a44330f75190f3715b
Signed-off-by: lf-jobbuilder <releng+lf-jobbuilder@linuxfoundation.org>
2 years agoInitial empty repository
LF Jenkins CI [Thu, 14 Oct 2021 13:32:44 +0000 (13:32 +0000)]
Initial empty repository