pti/o2.git
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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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

3 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>
3 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>
3 years agoInitial empty repository
LF Jenkins CI [Thu, 14 Oct 2021 13:32:44 +0000 (13:32 +0000)]
Initial empty repository