pti/o2.git
2 years agoRevert to root user 21/9621/1
Bin Yang [Tue, 15 Nov 2022 04:52:43 +0000 (12:52 +0800)]
Revert to root user

Issue-ID: INF-335

Signed-off-by: Bin Yang <[email protected]>
Change-Id: If5fd7cc1390fbc3928c616c6480231aa0de6abe8

2 years agoFix hostname issue 19/9619/1
Bin Yang [Tue, 15 Nov 2022 04:30:11 +0000 (12:30 +0800)]
Fix hostname issue

deprecate ENV vars REDIS_HOST and DB_HOST and API_HOST

Issue-ID: INF-360

Signed-off-by: Bin Yang <[email protected]>
Change-Id: If60773de690d218a06bf82c584d7d524336f1475

2 years agoRevert "Fix hostname issue" 18/9618/1
Bin Yang [Tue, 15 Nov 2022 03:59:47 +0000 (11:59 +0800)]
Revert "Fix hostname issue"

This reverts commit c6d1010ba670d6b01876ee3d46c8364ccc530c4a.

Signed-off-by: Bin Yang <[email protected]>
Change-Id: Iea0163c1360fc4bd065fb3786b96f1b9cb664f08

2 years agoFix log issue 17/9617/1
Bin Yang [Tue, 15 Nov 2022 03:14:36 +0000 (11:14 +0800)]
Fix log issue

Issue-ID: INF-335

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I0b6174fb018f3190b2d7cbd1f11d1e4e1da52f12

2 years agoFix port config issue 16/9616/1
Bin Yang [Tue, 15 Nov 2022 02:42:14 +0000 (10:42 +0800)]
Fix port config issue

Issue-ID: INF-360

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I4dacc6b62da0ffb73704a17ef50bc4def1a8832b

2 years agoMerge "Fix hostname issue"
Jackie Huang [Tue, 15 Nov 2022 02:02:33 +0000 (02:02 +0000)]
Merge "Fix hostname issue"

2 years agoMerge "Fix INF-354 repeat delete same subscription should return 404"
Bin Yang [Tue, 15 Nov 2022 01:56:33 +0000 (01:56 +0000)]
Merge "Fix INF-354 repeat delete same subscription should return 404"

2 years agoMerge "Reduce image footprint"
Bin Yang [Tue, 15 Nov 2022 01:54:05 +0000 (01:54 +0000)]
Merge "Reduce image footprint"

2 years agoFix hostname issue 14/9614/1
Bin Yang [Tue, 15 Nov 2022 01:48:24 +0000 (09:48 +0800)]
Fix hostname issue

Issue-ID: INF-360

Signed-off-by: Bin Yang <[email protected]>
Change-Id: If259ab9a52c27e461ad85540ab50effba2346bb4

2 years agoFix INF-354 repeat delete same subscription should return 404 13/9613/1
Zhang Rong(Jon) [Mon, 14 Nov 2022 13:07:48 +0000 (21:07 +0800)]
Fix INF-354 repeat delete same subscription should return 404

Issue-ID: INF-354
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I872ce2e274172de94372acd5cd51413d694d2bbc

2 years agoMerge "Make the auth error in ProblemDetails."
Bin Yang [Mon, 14 Nov 2022 10:36:21 +0000 (10:36 +0000)]
Merge "Make the auth error in ProblemDetails."

2 years agoMake the auth error in ProblemDetails. 05/9605/1
dliu5 [Mon, 14 Nov 2022 05:35:05 +0000 (13:35 +0800)]
Make the auth error in ProblemDetails.

Issue: INF-355

Signed-off-by: dliu5 <[email protected]>
Change-Id: If9a469b4bd689e0aa7f1248968d1e72a925826da

2 years agoFix the watcher not add the host resource in subcloud 01/9601/1
Zhang Rong(Jon) [Sun, 13 Nov 2022 13:07:00 +0000 (21:07 +0800)]
Fix the watcher not add the host resource in subcloud

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ida9f43d64708068c5f41ead82adca67d7d10d875

2 years agoFix regex expression bug 98/9598/1
Zhang Rong(Jon) [Fri, 11 Nov 2022 10:48:59 +0000 (18:48 +0800)]
Fix regex expression bug

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I8fec3c2b5843791b6ae61990966e9868b91b4019

2 years agoMerge "Fix INF-353 fail to check duplication during creating Inventory change subscri...
Bin Yang [Fri, 11 Nov 2022 10:42:15 +0000 (10:42 +0000)]
Merge "Fix INF-353 fail to check duplication during creating Inventory change subscription"

2 years agoFix INF-353 fail to check duplication during creating Inventory change subscription 93/9593/1
Zhang Rong(Jon) [Fri, 11 Nov 2022 07:37:36 +0000 (15:37 +0800)]
Fix INF-353 fail to check duplication during creating Inventory change subscription

Issue-ID: INF-353
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I9462e7f4ac94e9ca08a985020640707ac21c9887

2 years agoMerge "Fix INF-351 ocloud serviceUri is wrong about protocol"
Bin Yang [Fri, 11 Nov 2022 02:23:51 +0000 (02:23 +0000)]
Merge "Fix INF-351 ocloud serviceUri is wrong about protocol"

2 years agoMerge "Fix INF-342 refactor deploymentManager profile data"
Bin Yang [Thu, 10 Nov 2022 13:03:46 +0000 (13:03 +0000)]
Merge "Fix INF-342 refactor deploymentManager profile data"

2 years agoFix INF-349 and INF-350 duplication check of post data 62/9562/4
Zhang Rong(Jon) [Thu, 10 Nov 2022 05:18:52 +0000 (13:18 +0800)]
Fix INF-349 and INF-350 duplication check of post data

Issue-ID: INF-349
Issue-ID: INF-350
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I8f2c17d33f09c095a2bcc52cec7f0fc9313bf3e9

2 years agoFix INF-342 refactor deploymentManager profile data 66/9566/2
Zhang Rong(Jon) [Thu, 10 Nov 2022 08:01:50 +0000 (16:01 +0800)]
Fix INF-342 refactor deploymentManager profile data

Issue-ID: INF-342
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Iffb0d868c6182238c8cfe2124e55985922198fab

2 years agoFix INF-351 ocloud serviceUri is wrong about protocol 87/9587/1
Zhang Rong(Jon) [Thu, 10 Nov 2022 08:48:53 +0000 (16:48 +0800)]
Fix INF-351 ocloud serviceUri is wrong about protocol

Issue-ID: INF-351
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I30f2305bfad452e75685bbcb14b839832a0ebff4

2 years agoFix INF-346 and INF-347 subscription filter 57/9557/3
Zhang Rong(Jon) [Wed, 9 Nov 2022 12:39:02 +0000 (20:39 +0800)]
Fix INF-346 and INF-347 subscription filter

Issue-ID: INF-346
Issue-ID: INF-347
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I0577d72b725884edf0ba69ccef1e8ba1174a3949

2 years agoFix INF-343 ocloud serviceUri should be apiRoot only 28/9528/2
Zhang Rong(Jon) [Tue, 8 Nov 2022 09:06:03 +0000 (17:06 +0800)]
Fix INF-343 ocloud serviceUri should be apiRoot only

Issue-ID: INF-343
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I22b09b6a6d161a07189f1331db83bf3d4fb52784

2 years agoMerge "Improve the ssl connection handle log message. Fix auth header exception handl...
Bin Yang [Tue, 8 Nov 2022 09:07:27 +0000 (09:07 +0000)]
Merge "Improve the ssl connection handle log message. Fix auth header exception handling to avoid 500."

2 years agoImprove the ssl connection handle log message. 25/9525/4
dliu5 [Tue, 8 Nov 2022 05:41:38 +0000 (13:41 +0800)]
Improve the ssl connection handle log message.
Fix auth header exception handling to avoid 500.

Signed-off-by: dliu5 <[email protected]>
Change-Id: I7fb0d11584f6e575ba891a51bebd7631faef7505

2 years agoMerge "Fix INF-341 refactor name of resource pool to region id"
Bin Yang [Tue, 8 Nov 2022 08:00:28 +0000 (08:00 +0000)]
Merge "Fix INF-341 refactor name of resource pool to region id"

2 years agoMerge "Fix INF-339 resource pool list does not match the DC status"
Bin Yang [Tue, 8 Nov 2022 07:59:55 +0000 (07:59 +0000)]
Merge "Fix INF-339 resource pool list does not match the DC status"

2 years agoFix INF-341 refactor name of resource pool to region id 26/9526/1
Zhang Rong(Jon) [Tue, 8 Nov 2022 07:22:46 +0000 (15:22 +0800)]
Fix INF-341 refactor name of resource pool to region id

Issue-ID: INF-341
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I78c92df96a93e69e0fe1c359f434b1d4715e8d83

2 years agoFix INF-339 resource pool list does not match the DC status 24/9524/1
Zhang Rong(Jon) [Tue, 8 Nov 2022 06:03:16 +0000 (14:03 +0800)]
Fix INF-339 resource pool list does not match the DC status

Issue-ID: INF-339
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ia8d3f255cd669108b9c0b3622230d3f3336b949d

2 years agoMerge "Fix deploymentManager profiles not set in conf file"
Bin Yang [Tue, 8 Nov 2022 01:47:04 +0000 (01:47 +0000)]
Merge "Fix deploymentManager profiles not set in conf file"

2 years agoFix deploymentManager profiles not set in conf file 02/9502/1
Zhang Rong(Jon) [Tue, 8 Nov 2022 01:41:02 +0000 (09:41 +0800)]
Fix deploymentManager profiles not set in conf file

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ice973c45bb86a102b9fe90661512cdc2c4b06fb9

2 years agoReduce image footprint 93/9493/3
Bin Yang [Mon, 7 Nov 2022 06:51:20 +0000 (14:51 +0800)]
Reduce image footprint

Issue-ID: INF-335

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I452d523586bd6816adec9560d1e5ca2619cbdf68

2 years agoMerge "Add exception handling for api side with trace log and With internal error...
Bin Yang [Tue, 8 Nov 2022 00:19:00 +0000 (00:19 +0000)]
Merge "Add exception handling for api side with trace log and With internal error to indicate to client."

2 years agoAdd exception handling for api side with trace log and 95/9495/6
dliu5 [Mon, 7 Nov 2022 10:28:17 +0000 (18:28 +0800)]
Add exception handling for api side with trace log and
With internal error to indicate to client.

Signed-off-by: dliu5 <[email protected]>
Change-Id: I234ec021930c0e73f2725562d8273a7b581faa1a

2 years agocharts: fix the images format 98/9498/2 2.0.0-rc1
Jackie Huang [Mon, 7 Nov 2022 12:01:49 +0000 (20:01 +0800)]
charts: fix the images format

The supported multiple image formats in starlingx app:
images:
   tags: <dict>

And for the image on dockerhub, it should be started
with docker.io:
  - docker.io/library/postgres:9.6
  - docker.io/library/redis:alpine

Rename the image tags.

Issue-ID: INF-336

Signed-off-by: Jackie Huang <[email protected]>
Change-Id: I82c6843c569a691de7c02d7ba9ad1705253e1bf7

2 years agocharts: add supprot to pull images from private registry 91/9491/4
Jackie Huang [Mon, 7 Nov 2022 01:48:13 +0000 (09:48 +0800)]
charts: add supprot to pull images from  private registry

* Set all images in values.yaml so they can be overridden
  to pull from other private/public registry

* Set imagePullSecrets to be list to support for multible
  private registries, the one in default value is used for
  registry.local:9001 on StarlingX

* Change the default values for binaryData which can't be
  empty string, or it fails with:
  Error: unable to build kubernetes objects from release manifest: error
  validating "": error validating data: unknown object type "nil" in
  ConfigMap.binaryData.config.json

* docs: keep the o2 image name in local registry consistent
  with the upstream one:
  - nexus3.o-ran-sc.org:10004/o-ran-sc/pti-o2imsdms:2.0.0
  - registry.local:9001/o-ran-sc/pti-o2imsdms:2.0.0

Issue-ID: INF-336

Signed-off-by: Jackie Huang <[email protected]>
Change-Id: I125f9f01661cc4618bf1d81f4e0fc59d46bb9d99

2 years agoFix INF-331 the ocloud detail path allow to be empty 92/9492/1
Zhang Rong(Jon) [Mon, 7 Nov 2022 07:25:24 +0000 (15:25 +0800)]
Fix INF-331 the ocloud detail path allow to be empty

Issue-ID: INF-331
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ie8a477dc3148d827d4409135e7be096738767d33

2 years agoMerge "Fix INF-332 and INF-333 that the response of the POST"
Bin Yang [Mon, 7 Nov 2022 07:04:53 +0000 (07:04 +0000)]
Merge "Fix INF-332 and INF-333 that the response of the POST"

2 years agoFix INF-332 and INF-333 that the response of the POST 90/9490/1
Zhang Rong(Jon) [Mon, 7 Nov 2022 06:31:43 +0000 (14:31 +0800)]
Fix INF-332 and INF-333 that the response of the POST

Issue-ID: INF-332
Issue-ID: INF-333
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I462c4ad58786bdfe93572ac291ea1d0302a7b258

2 years agoMerge "Add Accelerator resource watcher; fix bug of the alarm dictionary"
Bin Yang [Mon, 7 Nov 2022 02:45:06 +0000 (02:45 +0000)]
Merge "Add Accelerator resource watcher; fix bug of the alarm dictionary"

2 years agoAdd Accelerator resource watcher; fix bug of the alarm dictionary 89/9489/2
Zhang Rong(Jon) [Sun, 6 Nov 2022 15:28:49 +0000 (23:28 +0800)]
Add Accelerator resource watcher; fix bug of the alarm dictionary

Issue-ID: INF-325
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ib8a31aec10a323b56216662ad88df4b309c1b7eb

2 years agoMerge "Change notify handler to support https."
Bin Yang [Fri, 4 Nov 2022 08:32:19 +0000 (08:32 +0000)]
Merge "Change notify handler to support https."

2 years agoChange notify handler to support https. 76/9476/6
dliu5 [Thu, 3 Nov 2022 10:02:09 +0000 (18:02 +0800)]
Change notify handler to support https.

Signed-off-by: dliu5 <[email protected]>
Change-Id: I1e5df9732008906d35a5be4b2e2e521c9bafcbc2

2 years agoSet helm CLI container not start by default; Add PV for DB 80/9480/2
Zhang Rong(Jon) [Fri, 4 Nov 2022 03:18:49 +0000 (11:18 +0800)]
Set helm CLI container not start by default; Add PV for DB

Issue-ID: INF-308
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I9f866c52c03591c18064cce621c0f92525d43353

2 years agoMerge "Support register to smo with https/tls protocol."
Bin Yang [Thu, 3 Nov 2022 04:14:54 +0000 (04:14 +0000)]
Merge "Support register to smo with https/tls protocol."

2 years agoSupport register to smo with https/tls protocol. 71/9471/2
dliu5 [Tue, 1 Nov 2022 13:47:57 +0000 (21:47 +0800)]
Support register to smo with https/tls protocol.

Signed-off-by: dliu5 <[email protected]>
Change-Id: I06b3d233b9f00f1b1e479838fb8611fb2566cc8a

2 years agoUpdate DMS profile support list; bugfix of resource type duplicate 70/9470/2
Zhang Rong(Jon) [Thu, 3 Nov 2022 01:45:14 +0000 (09:45 +0800)]
Update DMS profile support list; bugfix of resource type duplicate

Issue-ID: INF-308
Issue-ID: INF-334
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I5ce206ec9003ce1040e953f3b9495982ee3e8b49

2 years agoAdd wrong attributes check on selector 65/9465/1
Zhang Rong(Jon) [Wed, 2 Nov 2022 05:27:24 +0000 (13:27 +0800)]
Add wrong attributes check on selector

Issue-ID: INF-302
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I98c96532100373465ab9e0f66a0a6577a1943a2a

2 years agoUpdate error handling; update selector; change delete response code to 200 45/9445/2
Zhang Rong(Jon) [Tue, 1 Nov 2022 13:18:06 +0000 (21:18 +0800)]
Update error handling; update selector; change delete response code to 200

Issue-ID: INF-302
Issue-ID: INF-300
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I0e7692fa5f2dd19907ddc75dc134e3500540720d

2 years agoMerge "Move environment configuration to the config file"
Bin Yang [Tue, 1 Nov 2022 03:46:39 +0000 (03:46 +0000)]
Merge "Move environment configuration to the config file"

2 years agoMove environment configuration to the config file 44/9444/1
Zhang Rong(Jon) [Tue, 1 Nov 2022 03:30:23 +0000 (11:30 +0800)]
Move environment configuration to the config file

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I1a009889dc78ef81a859c7755f7ec27c0b405da1

2 years agoMerge "Add error handling for ocloud route"
Bin Yang [Tue, 1 Nov 2022 02:56:01 +0000 (02:56 +0000)]
Merge "Add error handling for ocloud route"

2 years agoAdd error handling for ocloud route 43/9443/1
Zhang Rong(Jon) [Mon, 31 Oct 2022 15:31:47 +0000 (23:31 +0800)]
Add error handling for ocloud route

Issue-ID: INF-302
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ia26e12ac69c9d57f2f9b21b29d2d28235843e194

2 years agoMerge "Rename ssl related files and variable names to make it more clear. Add SMO...
Bin Yang [Mon, 31 Oct 2022 13:29:08 +0000 (13:29 +0000)]
Merge "Rename ssl related files and variable names to make it more clear. Add SMO certificate variable and mount."

2 years agoRename ssl related files and variable names to make it more clear. 42/9442/2
dliu5 [Mon, 31 Oct 2022 06:24:04 +0000 (14:24 +0800)]
Rename ssl related files and variable names to make it more clear.
Add SMO certificate variable and mount.

Signed-off-by: dliu5 <[email protected]>
Change-Id: Ia65c0a5af41731de99f092004f5e04093cc6767d

2 years agoUpdate model of resourcetype and set empty for the gLocationId of the resourcepool... 35/9435/1
Zhang Rong(Jon) [Mon, 31 Oct 2022 08:17:18 +0000 (16:17 +0800)]
Update model of resourcetype and set empty for the gLocationId of the resourcepool;bug fix

Issue-ID: INF-306
Issue-ID: INF-310
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Idd6440943db07edc3719ae89f4f54a243271e956

2 years agoFix api_versions request failed issue, Add oCloudId in the DMS query 30/9430/3
Zhang Rong(Jon) [Sun, 30 Oct 2022 13:15:42 +0000 (21:15 +0800)]
Fix api_versions request failed issue, Add oCloudId in the DMS query

Issue-ID: INF-301
Issue-ID: INF-311
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ibd3eb71000188a95d546416bf960fa45ed3c20a0

2 years agoAdd api_versions support; update model of ocloud, resourcepool, and resource 29/9429/2
Zhang Rong(Jon) [Fri, 28 Oct 2022 12:18:09 +0000 (20:18 +0800)]
Add api_versions support; update model of ocloud, resourcepool, and resource

Issue-ID: INF-301
Issue-ID: INF-306
Issue-ID: INF-311
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I7a2cc626c87fc8c43fcbd1f750948c7f8d7aae52

2 years agoMerge "Update opMulti operations of the filter"
Bin Yang [Thu, 27 Oct 2022 13:57:14 +0000 (13:57 +0000)]
Merge "Update opMulti operations of the filter"

2 years agoUpdate opMulti operations of the filter 21/9421/3
Zhang Rong(Jon) [Thu, 27 Oct 2022 12:33:28 +0000 (20:33 +0800)]
Update opMulti operations of the filter

Issue-ID: INF-320
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I2a5470960ca364dab52c77b3967ce9254b3bcdb5

2 years agoFix configmap to inject arbitrary data with binaryData 19/9419/1
Bin Yang [Thu, 27 Oct 2022 10:48:13 +0000 (18:48 +0800)]
Fix configmap to inject arbitrary data with binaryData

binaryData takes base64 encoded string

Issue-ID: INF-322

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I6d0e95db2f354546c2c5634f77501a5f8e01937d

2 years agoMerge "charts: rename orano2 to oran-o2"
Bin Yang [Thu, 27 Oct 2022 05:50:07 +0000 (05:50 +0000)]
Merge "charts: rename orano2 to oran-o2"

2 years agocharts: rename orano2 to oran-o2 06/9406/1
Jackie Huang [Wed, 26 Oct 2022 07:01:48 +0000 (15:01 +0800)]
charts: rename orano2 to oran-o2

Rename orano2 to oran-o2 for:
- chart name
- namespace
- service account

Issue-ID: INF-322

Signed-off-by: Jackie Huang <[email protected]>
Change-Id: Ib41148f5a042b1fb2a53c47e570328d0d875ad04

2 years agoFix alarm subscription list query issue 04/9404/1
Zhang Rong(Jon) [Wed, 26 Oct 2022 13:29:23 +0000 (21:29 +0800)]
Fix alarm subscription list query issue

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ic2a29db096efce1f8a929e4e3547c304d6a055cc

2 years agoAdd INF-320 support attribute-based filter 98/9398/3
Zhang Rong(Jon) [Wed, 26 Oct 2022 05:00:17 +0000 (13:00 +0800)]
Add INF-320 support attribute-based filter

Issue-ID: INF-320

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I0b903afd96168aeeb4ab349c5e1e3b55cdfab596

2 years agoUpdate the ocloud available notification when registry Ocloud to SMO 94/9394/2
Zhang Rong(Jon) [Tue, 25 Oct 2022 12:07:55 +0000 (20:07 +0800)]
Update the ocloud available notification when registry Ocloud to SMO

Issue-ID: INF-304
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I91be0020923974bc44c209c59caf8ccca3e8eb84

2 years agocharts/values.yaml: add missing default values 92/9392/1
Jackie Huang [Tue, 25 Oct 2022 07:24:45 +0000 (15:24 +0800)]
charts/values.yaml: add missing default values

Add missing default values or it fails with "helm lint":
[ERROR] templates/: template: orano2/templates/serverkey_config.yaml:28:36: executing

Issue-ID: INF-321

Signed-off-by: Jackie Huang <[email protected]>
Change-Id: Ic956785719c71cd738c0a3093c13d72f419b22ab

2 years agoMerge "Add payload to ditribute o2ims api token to smo side."
Bin Yang [Tue, 25 Oct 2022 04:13:11 +0000 (04:13 +0000)]
Merge "Add payload to ditribute o2ims api token to smo side."

2 years agoAdd payload to ditribute o2ims api token to smo side. 79/9379/3
dliu5 [Mon, 24 Oct 2022 07:34:12 +0000 (15:34 +0800)]
Add payload to ditribute o2ims api token to smo side.

The token is follow below rfc:

https://www.rfc-editor.org/rfc/rfc7519

Doc Ref:

https://jwt.io/introduction

Signed-off-by: dliu5 <[email protected]>
Change-Id: I0b850b3c7428c2f70e0eb19768e38a8b86607d12

2 years agoAdd fields selector for API with query parameters INF-300 88/9388/1
Zhang Rong(Jon) [Tue, 25 Oct 2022 03:01:55 +0000 (11:01 +0800)]
Add fields selector for API with query parameters INF-300

Issue-ID: INF-300
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I4be68e71e685c77c570d4e605167294970e16888

2 years agoChange the helm installation command option to 71/9371/2
dliu5 [Mon, 24 Oct 2022 03:36:45 +0000 (11:36 +0800)]
Change the helm installation command option to
compatible with wrcp.

Start up flask app with ssl configuration files.

INF-312.

Signed-off-by: dliu5 <[email protected]>
Change-Id: I0f4383e5c0ffbe65fcd648ba916a64edc70db7d1

2 years agoFix INF-319 failed to probe inventory resource 63/9363/1
Zhang Rong(Jon) [Mon, 24 Oct 2022 03:36:41 +0000 (11:36 +0800)]
Fix INF-319 failed to probe inventory resource

Issue-ID: INF-319
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I16765ae86f19671a5fe7788da1a792b9d7d3f222

2 years agoFix the docker app config mount issue and installation 62/9362/1
dliu5 [Sat, 22 Oct 2022 02:45:22 +0000 (10:45 +0800)]
Fix the docker app config mount issue and installation
inconsistency

Signed-off-by: dliu5 <[email protected]>
Change-Id: Iae3afcdf3c5a760d7dea606fbcccdf06c56d9450

2 years agoFix Docker image and helm issue 61/9361/1
Bin Yang [Fri, 21 Oct 2022 15:36:11 +0000 (23:36 +0800)]
Fix Docker image and helm issue

Issue-ID: INF-317

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I8efb52d9d804d104e8c6f1ca8f51c0ce420b126c

2 years agoMerge "Add helm chart for ca and config files."
Bin Yang [Fri, 21 Oct 2022 14:11:58 +0000 (14:11 +0000)]
Merge "Add helm chart for ca and config files."

2 years agoAdd helm chart for ca and config files. 55/9355/2
dliu5 [Fri, 21 Oct 2022 06:17:20 +0000 (14:17 +0800)]
Add helm chart for ca and config files.

Change-Id: I21deaced6047cdee2c4a74399c39cd046356a7be
Signed-off-by: dliu5 <[email protected]>
2 years agoAdd back secret with built-in user for o2 service 40/9340/1
Bin Yang [Fri, 21 Oct 2022 07:44:49 +0000 (15:44 +0800)]
Add back secret with built-in user for o2 service

Issue-ID: INF-317

Signed-off-by: Bin Yang <[email protected]>
Change-Id: Ia66f8b419d23600359c22bdc9b23295a9ffc7a3d

2 years agoBump major version to 2 39/9339/1
Bin Yang [Fri, 21 Oct 2022 07:19:19 +0000 (15:19 +0800)]
Bump major version to 2

reflect the apiName changes from o2ims_infrastructureInventory to o2ims-infrastructureInventory, and adding a new apiName for o2ims-infrastructureMonitoring

Issue-ID: INF-318

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I7eb91fb74f31f3eca9e7532d3da4e02845be952d

2 years agoUpdate helm chart to refer built app file 37/9337/1
Bin Yang [Fri, 21 Oct 2022 06:35:57 +0000 (14:35 +0800)]
Update helm chart to refer built app file

Issue-ID: INF-317

Signed-off-by: Bin Yang <[email protected]>
Change-Id: I183ad4460a90a12cd1ae43e8a418563b343d758e

2 years agoPagination in request and response; Fix alarm client issue 21/8721/5
Zhang Rong(Jon) [Sun, 3 Jul 2022 16:39:41 +0000 (00:39 +0800)]
Pagination in request and response; Fix alarm client issue

1. Add two pagination files as common for pagination.
2. Give a layer of pagination in response.
3. Add 'first', 'prev', 'next', 'last' in the Link Header.

Issue-ID: INF-288

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I3047fb7a4a2b4d6480f706ee7773cbe0b69d405d

2 years agoAdd the authentication middleware for service. 32/9332/3
dliu5 [Sun, 9 Oct 2022 11:02:52 +0000 (19:02 +0800)]
Add the authentication middleware for service.

Issue-ID: INF-299

Signed-off-by: dliu5 <[email protected]>
Change-Id: I60fe9351532986f4c275bd7e4d1513393a373e08

2 years agoUpdate SMO register process; remove provision code 23/9323/5
Zhang Rong(Jon) [Tue, 18 Oct 2022 09:13:47 +0000 (17:13 +0800)]
Update SMO register process; remove provision code

Issue-ID: INF-304

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I48e75c9c4409b880d1df2c1cbbe92741698e4d9c

2 years agoUpdate O2app start with global ocloud ID 22/9322/5
Zhang Rong(Jon) [Mon, 17 Oct 2022 15:14:32 +0000 (23:14 +0800)]
Update O2app start with global ocloud ID

Issue-ID: INF-316

Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: If7e9d078494bd95e62a36dc9698a010348c3bcf9

2 years agoINF-303 Add Infrastructure Monitoring Fault Service; INF-305 update inventory api... 20/9320/5
Zhang Rong(Jon) [Wed, 19 Oct 2022 04:12:59 +0000 (12:12 +0800)]
INF-303 Add Infrastructure Monitoring Fault Service; INF-305 update inventory api name

1. Add Infrastructure Monitoring Fault Service
2. Update the infrastructure inventory API service path

Issue-ID: INF-303
Issue-ID: INF-305
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I38ac307fb5e1102c027b7f0b1061f97cfe47277e

2 years agodocs: workaround the bug with unordered lists 34/9234/1
Jackie Huang [Tue, 11 Oct 2022 12:43:21 +0000 (20:43 +0800)]
docs: workaround the bug with unordered lists

docutils 0.17 introduced new semantic tags which generated an
unexpected behavior with unordered lists. The workaround is to
pin the versions of sphinx_rtd_theme and docutils.

Ref ticket:
https://jira.linuxfoundation.org/plugins/servlet/desk/portal/2/IT-24616

Issue-ID: INF-313

Signed-off-by: Jackie Huang <[email protected]>
Change-Id: I603ab744aa37e9e9c77d7faa2de937ed1d9df5ed

2 years agoHelm: Update default container port to 30022 26/8826/2
Zhang Rong(Jon) [Thu, 4 Aug 2022 01:05:20 +0000 (09:05 +0800)]
Helm: Update default container port to 30022

Issue-ID: INF-280
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ieb4a92c07a8115929dbac507e8611ba412a18e47

2 years agoHelmCLI: profile list use constant 16/8816/1
Zhang Rong(Jon) [Tue, 2 Aug 2022 07:25:52 +0000 (15:25 +0800)]
HelmCLI: profile list use constant

Issue-ID: INF-280
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: I0a84363b89be568fb8ea10e1efec286597042a7f

2 years agoHelmCLI: support SOL018 Helm CLI ssh access 13/8813/2
Zhang Rong(Jon) [Thu, 28 Jul 2022 16:06:41 +0000 (00:06 +0800)]
HelmCLI: support SOL018 Helm CLI ssh access

Issue-ID: INF-280
Signed-off-by: Zhang Rong(Jon) <[email protected]>
Change-Id: Ifab09cbf2f5c5c608594c9be76260c46e98ec68f

3 years 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"

3 years 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) <[email protected]>
Change-Id: Id570bb42a4c7f580b4223997a0039ef1bb72818e

3 years 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) <[email protected]>
Change-Id: Ie5ef292d8b068c0c56abf1b895d6e209941904ca

3 years 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"

3 years 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) <[email protected]>
Change-Id: If9f60697b01282b241952c2a941f995d79979b13

3 years 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) <[email protected]>
Change-Id: I105877e2a2d9f316a08b2f58eb096a1ff29bd0e9

3 years 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) <[email protected]>
Change-Id: I3ceb88b29078f8b63baa0d8082b02999e4f80525

3 years 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) <[email protected]>
Change-Id: I1caa869339730c1d3d209e5624122dc825736c87

3 years 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) <[email protected]>
Change-Id: I5cba1290b5b1b7103cf6f5f88f5998ef1dc8b8fd

3 years 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 <[email protected]>
Change-Id: I9e894b9b290d8d3d9f3a0b789d1cc150250c7ead

3 years 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 <[email protected]>
Change-Id: I00a7526bdaf03d92f0c312c0168433046d4b5534

3 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) <[email protected]>
Change-Id: I3eb2f9569d6655755cce25b4464b66c66e5faf51

OSZAR »