4171 Commits

Author SHA1 Message Date
Jian Li
dd5172e5a6 Harden the health check logic of kubevirt control plane
Change-Id: I161e71ab473ace323b4433fa4b90860b014fe677
(cherry picked from commit e15a60c16ca78af405fd1681128e0201550d196a)
2022-08-23 00:19:05 +00:00
senthil
63e1c11706 Supporting workflow list & map json data model for workflow context.
Workflow json data model bind to list & map objects
usage. For example
List<Object> data;
Map<Object, Object> data.

Change-Id: I46899c8d2267ebca0663e85302eba2242fbcfdda
2022-07-14 12:13:53 +05:30
Sanjana Venkatachalam
3dd305eb42 Implement CLI support for workflow logs
Added CLI commands to display workflow logs for each context

Change-Id: Ic0a0f323cebc8a21325dd075b20bbdfd104aeae1
2022-07-08 23:47:55 +05:30
Daniel Park
766a0400b8 Bugfix to String allocation logic for label in KubevirtPrometheusAssuranceManager.
Change-Id: I4345a0c92e84f54545a83ee25a3c2bf7506bc353
2022-07-05 19:30:40 +09:00
Sanjana Venkatachalam
fc25e87c54 Implement logger for workflows
Added Workflow Logger annotation and Log Store

Change-Id: I90b1e34f94083aceff3323660a708756096a0ef0
2022-06-22 20:46:29 +09:00
Andrea Campanella
775e5f842c Removing json package dependency due to licensing issues
Change-Id: Iabd2f0343ca42a1956c1f7c6e471d8e141d29bc7
2022-06-09 14:39:21 -07:00
Daniel Park
c1ba1f4b1d Implements Kubevirt Prometheus Assurance exporter in kubevirt networking app.
Change-Id: Ief89fe71f24c2999ae02d94b4f0f82b3822ae19f
2022-05-31 09:27:30 +09:00
Jian Li
06f8f46b55 Extract web and codec into a separated web pkg in kubevirt-net app
Change-Id: If15fe4391009a09a79e60965d90fac26d5bad7fe
2022-05-30 09:56:23 +00:00
Daniel Park
2ba66e251f Supports Mm5 Interface in KubevirtNode app.
- Adds datacenter and cluster id parameter to KubevirtApiConfig
  - Implements related REST API web resource

Change-Id: Ib1b6cbc1dbbe11def4d97d78c2e74b5eeec560dc
2022-05-09 00:15:59 +00:00
Daniel Park
c7dece9f1c Sends GARP packet to switch when the router is changed to other LEG nodes.
Change-Id: I2765e1b3f805a66f45a624ec82cc45d776321411
2022-04-12 14:29:40 +00:00
Daniel Park
17fe79854d Connects to all the physical bridges in Kubevirt Node app to deal with the case that the physical port is disabled.
Change-Id: I9706cd4b670fbbb7ffdaaa2924fb893c801b2253
2022-04-12 18:43:19 +09:00
Daniel Park
1aeb8eba74 Fixes KubevirtRoutingSnatHandler not to disassociate procedure when the gateway node is dead.
Change-Id: I31d196013513670b5356069867d646e289780462
2022-04-05 15:36:38 +00:00
Jian Li
4b3436a259 Support STT tunneling protocol at kubevirt networking app
Change-Id: Icbef76dbfb842ce1cf6893bf18ee80c4b1b26006
2022-03-29 07:52:20 +00:00
Jian Li
dc08c95eed Fix: add physnet patch-ports related rules on kubevirt node completion
Change-Id: I51caa6f923583d48ce7580e9f6b2e811ace6e055
(cherry picked from commit 6d2dd5aa6c8f1b98dcbc549d7bf0d2858cf981e0)
2022-03-23 13:37:03 +00:00
Daniel Park
9955d58c27 Enhance the logic for retrieving peer router mac to come up with the case that the switch interface is disabled.
Change-Id: Ide10c44e88c2312ba2bcb86afbf23a26b36c0d02
2022-03-23 10:21:04 +00:00
alessio
a35ab8a5ed Definition of new annotations to be used for upcoming OpenConfig drivers.
Change-Id: Ie097a5ed6dac018751584c6b39357f108ebc805a
2022-03-18 17:08:23 +00:00
Daniel Park
40ecb2a347 Fix KubevirtNode app to deal with the case that the external network is type VLAN, but the gateway node ovs owns untagged interface.
Change-Id: I315114fd2f160749154af60ad47c166398cd199a
2022-03-17 12:49:45 +00:00
Jian Li
14968b521f Add kubevirt port on receive of VM update event if port not found
Change-Id: I8be4065de241e1ff9b0631c2b5c16fbcc33c097c
(cherry picked from commit 5c6cf8f516ea7ff9c76376dd9197de007fbd0fad)
2022-03-16 06:26:23 +00:00
Jian Li
8944d7c1c9 Fix: resolve a NPE if the VM is not attached with any interfaces
Change-Id: Ia9bf16e0e9871dc0deb18b80947231b5405ad55f
(cherry picked from commit a7c909adc6571db794b8df893748e2cccaed9715)
2022-03-03 12:25:35 +00:00
pierventre
b59c51dd4e [SDFAB-933] Integrate atomix-3.1.12 and expose demote API
Additionally, this patch adds unit tests for demote and
updates a bunch of testing tools

Change-Id: I9636078b08486c9167ae253f0251f72239ad2802
2022-02-15 17:05:26 +01:00
Jian Li
cb58042fc4 Add VM name field to floating IP CRD of kubevirt
Change-Id: I493199f0e2a5c0b7b5fffc65c513bb4feeb2eb10
2022-02-03 23:46:28 +09:00
Jian Li
93ba759bbc Bumpup fabric8 kubernetes clients to 5.6.0
Change-Id: I4b6665da030834125ed80b3f0ea2715603eedf71
2022-01-25 02:30:09 +00:00
Jian Li
106b3822be Fix: register PodReadinessGate class to DistributedKubevirtPodStore
Change-Id: I4def2d5e4e02729add99da9127c6023ada4f5e74
2021-12-17 01:43:13 +00:00
diaccio
6f2d2f769b inbandtelemetry REST
This patch extends the in-band-telemetry application with a REST API to provide GET/POST/DELETE
in-band domains (IntIntents)

Change-Id: I50f50edb03d262c42b4daae1c1be440aca1a6605
2021-12-03 17:26:49 +00:00
pierventre
e73a7270af [SDFAB-753] Optimize several ONOS components
Leverage the improved ClusterEvent to optimize several ONOS components.
The idea behind is that there is no need to react for these components
when an Atomix goes down. Actually, reacting will put additional
pressure in the Atomix nodes for no reason. Moreover, any operation done
in this period can potentially timeout

Change-Id: I5edeb3c1189e4255cdb1efb712da33d397da27bf
(cherry picked from commit 75ac28406acc3adf639385694ebb458d52ad8c88)
2021-11-15 18:28:01 +00:00
alessio
b2f5b4138a [ODTN] Upgrade of the wavelength-config CLI command.
- Added support for ROADM devices
- Added input parameter: is now requiring input and output ports
- Added support for delete-config
- Added few checks on the input parameteres
- Revised CLI output style

patch 2: checkstyle

patch 3: output port is now optional, comments

patch 4: checkstyle

Change-Id: Ia4ec9e00daa53db4d283dc9ad4b1f83770193638
2021-11-15 16:03:57 +00:00
David Glantz
dfb3ceb78d Return intent collection with details
Added backwards compatible flag to GET /intents/ to return full intent JSON.
Added GET /intents/application/{appId} to return application specifc intents.
Extended IntentService to include getIntentsByAppId(appId).
Removed hard-coded intent codec lookup in IntentWebResource.

Change-Id: I38e7b1dbd7669e654afe723f6ec3a4eb7a9af6fb
2021-11-07 09:18:19 +00:00
Jian Li
340819a1b9 Fix: make the network type be always in uppercase
Change-Id: I2ce6f0e50548ddd366f6e6169d96e1d948e35227
(cherry picked from commit 035cc3e343104c9d00cfe1369cbe23945f915e8c)
2021-11-06 06:57:06 +00:00
Niraj Dubey
b7921b2b1c BGP Monitoring Api
Add Junit
Add Interface

Change-Id: I86ac6cb366c324472c1aebb2d05e1901813916a2
2021-10-25 18:52:50 +00:00
David Glantz
0a5779c775 Fix to reinstall flow rules when they are missing in FlowRuleService.
Change-Id: I1e7e0d62e27012cd090f3a72eb92eadc85afafdf
(cherry picked from commit 5c7fe3acf43bf1304038a7be55a5fd45e5805396)
2021-10-14 13:24:36 +00:00
pierventre
581c8407e6 [SDFAB-616] Inconsistent format of port number in DhcpRelay
CircuitId deserialize use custom parsing instead of leveraging
the ConnectPoint class. Unfortunately, this custom parsing
does not parse correctly the portname.

Additionally, fix port number format for hostlocation and dhcprecords
and exclude Dhcp4HandlerImpl from file length checks

Change-Id: I360f26f8dd7de492cb65ad7af05fb85c8e940c33
(cherry picked from commit 61bd673eec2282aff175daff141059870db78c7d)
2021-09-27 19:27:55 +00:00
Andrea Campanella
50e38905cb [ONOS-8148][SDFAB-618] Avoid meter map distruction in cluster environment on instance restart
In general an instance restart should not lead to the deactivate method. Unfortunately,
the bundle refresh is changing the cards on the table. Please note that destroy()
behavior is implementation dependent.

In this patch we have fixed bundles that can be potentially affected by the
bundle refresh issue. However, other fixes may be needed in future and the fixes
are use cases dependent: it depends when the bundle refresh issue is triggered
along the chain of the deps.

Change-Id: I7a45439f74b255d8d4b1cbdb89b6dec8adf00687
(cherry picked from commit 185cf87f0c37a1c187c1a115746b47607f4cd7aa)
2021-09-27 11:07:38 +00:00
Jian Li
7d13b59ecf Fix: make protocol field optional in kubevirt load balancer
Change-Id: I6c5368a8bd40df29c52c480af957b48abb240d1a
(cherry picked from commit 70d491cba5689d69708568f693b92432ebe52ba5)
2021-09-24 06:51:38 +00:00
pierventre
c0914ec586 [SDFAB-500][SDFAB-527] Meters cleanup and leftovers
- Improve ONOS cli enabling CRUD of p4rt trtcm
- Improve ONOS rest enabling CRUD of p4rt trtcm
- Improve MeterService with scope defined reads and integrate in cli/rest
- Add support along the stack for BYTE_PER_SEC unit
- Add support along the stack for COMMITTED and PEAK bands
- Fix several bugs in ONOS cli/rest interfaces
- Improve REST codecs
- Fix NPE in MeterDriverProvider
- Improve PiMeterTransalation by enforcing trtcm config
- Implement explicit translation of the bands
- Fix ONOS reconciliation by removing from the mirror the wrong configs
- Remove unnecessary checks in MeterEntryCodec
- Update unit tests

It will follow a 2nd patch to complete SDFAB-527

Change-Id: I855235b17f60cb1d39f5b9a042c1015105a8a269
2021-09-10 10:22:18 +00:00
Jian Li
9417e13b3d Support to inject controller IP address to API config for tenant NW
Change-Id: I60529b9c4f44f3f55c5f95203ffb8c9973f5f4be
(cherry picked from commit 0a05d6fe81c13ddffa4aba674d33103df8e5121b)
2021-09-08 00:55:09 +00:00
Jian Li
e0eaf5c7bf Check node init status when probing node health through REST API
Support to inject controller IP address to API config.

Change-Id: Iece8a84b698ef0da9803f11d473257c84e5adc4d
(cherry picked from commit 6a08072a2c1c3094818268ebf22ffa82f9713125)
2021-09-06 08:28:48 +00:00
Niraj Dubey
a828719294 BGP Monitoring in ONOS.
Jira Id: ONOS-8136

Implement bgpmonitoring Api.

Change-Id: I3542cf63b3b3ec604d293c166dbf413b7c158ac7
2021-08-27 16:06:48 +00:00
Jian Li
acf88aeeb8 Fix: use k8s API config IP address as the controller's IP
Change-Id: I6d04748a5472e9ab557df683fc9f092c551e6b42
(cherry picked from commit 90613fc8b563f96866f390f3c47f857c79344972)
2021-08-26 14:43:34 +00:00
Wailok Shum
79919528c8 [SDFAB-355] Revisit MeterService and north abstractions
Change-Id: I685cb90d53f8aa61017ecda9fa7ff842e58e2940
2021-08-24 01:31:51 +08:00
Jian Li
e2abe810d6 Add default route option to kubevirt network
Change-Id: Ia2a2d9b34ec3c493e04d56c544c22812e32d524a
(cherry picked from commit d95d3524caff5449aded4ff9397c3ed717fc91e6)
2021-08-12 12:35:58 +00:00
Daniele Moro
06aac70fd2 [SDFAB-359] Purge all objective for a given application ID
Change-Id: I51847b0be890deacec5caddc18d52bcd2993959a
(cherry picked from commit 607fd0b70e4553226d0937d36de9cde655f2eb62)
2021-08-06 15:01:17 +00:00
pierventre
52ef933d5e [SDFAB-20] Prevent listeners ejection and the stop of the group polling
Offload listeners processing to external executors to prevent
the listener ejection due to time consuming processing

In future, we may want to extend the same fix to the
HostManager and NetworkConfigHostProvider

Additionally, avoid the propagation of the exceptions in GroupDriverProvider
which leads to the cancellation of the peridioc poll task

Change-Id: I8ea4ec9fda1ccc48bbd3855fd443ee8760cbbb60
2021-08-02 16:57:11 +00:00
Jian Li
9b718fb561 Fix: do not add SR-IOV network into store
Change-Id: I4dbf0308f5c5b5772b7a15cffac6034c6a075b27
(cherry picked from commit a6884bdc705dae921b0b08075c9e98cac48f2bcd)
2021-07-23 11:27:43 +00:00
Jian Li
c42f3cb63a Fix: add ProjectedVolumneSource to kryo registry
Only listen on POD events from default namespace

Change-Id: I2ed74fce76bb9ca33f966688e6a9f71297a55507
(cherry picked from commit 880d4141fcc1102b7c9f20b5e56ecf181e4099d0)
2021-07-21 10:38:08 +00:00
Jian Li
ae43d224fa Fix: wait the security group to be installed before install the rule
Change-Id: I76aa58ca06ae2801aab27772a098486066a490e5
(cherry picked from commit a5ff9da3585bed51397f592fb1def8e2404d2b19)
2021-07-21 10:37:47 +00:00
Jian Li
0ab242b16d Fix: support to enable SNAT from disabled status at kubevirt net
Change-Id: I82742975e0525f259d01f6279b32ebf34f8ea26f
(cherry picked from commit c2a2c07c3171b8413fa8dc3915f42efbd3c467a9)
2021-07-16 09:36:48 +00:00
Jian Li
528335eea1 Change the logic of synchronizing flow rules on kubevirt network
Change-Id: Iea95dfc0035e822b207d902ceecc49001ae66bbb
(cherry picked from commit f0d00d5e5dfd9576bdbfa826bc81cd168f0589b1)
2021-07-08 12:41:04 +00:00
Jian Li
34fff804f0 Fix: ensure to install rules while waiting for patch port creation
Change-Id: I0a7aa8ebd34a85bed6b8feb3ade5551b36be18cf
(cherry picked from commit c59f83c4dc333357680d22ca731f10340fab24b7)
2021-07-01 02:52:32 +00:00
Jian Li
6cb4867a83 Fix: try to create patch ports when tenant bridge is existed
Change-Id: Iee8f3c68c9586c6726f69cce20f650de6ecbf687
(cherry picked from commit b47eba7f557f26109f47de4f0872eafbc874c9b1)
2021-06-30 15:59:41 +00:00
Jian Li
56f241be23 Fix: wait for creation of patch ports which are on tenant bridges
Resolve a NPE issue caused when missing name attribute in status
object in VirtualMachineInstance

Change-Id: I1315a63bbaae250abcc4ed6cec92fb1ed160dfd8
(cherry picked from commit dd4041e154a2850d48ed44800a7189cd04df0e6d)
2021-06-30 13:15:41 +00:00