Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CGW 1.0 release #63

Merged
merged 136 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
136 commits
Select commit Hold shift + click to select a range
6a0344a
cgw: initial commit
phwhite Mar 18, 2024
af48010
PLV next features #1
Cahb Mar 27, 2024
eda553c
Update readme, add make to ease-out building
Cahb Mar 28, 2024
071a253
proper rust formatting - cargo fmt
Mar 29, 2024
a95082a
cargo fix --bin "ucentral-cgw" --allow-dirty
Mar 29, 2024
6802e9e
Merge pull request #4 from optim-enterprises-bv/next
Cahb Apr 1, 2024
85ebb2e
Fix invalid device MAC reporting upon connect
Cahb Apr 2, 2024
ac7e2f3
Merge pull request #7 from Telecominfraproject/fix/invalid_mac_report…
Cahb Apr 4, 2024
c3172ee
Implement dockerized building and running of CGW
Cahb Apr 1, 2024
8493d0e
Added RAM cache for device - Groupd ID mapping
SviatoslavBoichuk Apr 3, 2024
61cd00d
Merge pull request #8 from SviatoslavBoichuk/dev-add-device-to-group-…
Cahb Apr 10, 2024
2368bf0
Merge pull request #6 from Telecominfraproject/feat/dockerized_cgw
Cahb Apr 10, 2024
f74d66a
Revert "Added RAM cache for device - Groupd ID mapping"
Cahb Apr 10, 2024
890fd1c
Merge pull request #14 from Telecominfraproject/revert/revert-ram-cache
Cahb Apr 10, 2024
ddf72c6
Added RAM cache for device - Groupd ID mapping
SviatoslavBoichuk Apr 3, 2024
6337a22
Merge pull request #16 from SviatoslavBoichuk/dev-device-ram-cache
Cahb Apr 10, 2024
caf22ed
Update device cache with FW version and device capabilities
SviatoslavBoichuk Apr 9, 2024
4cfebbf
Reformat and sanitize
SviatoslavBoichuk Apr 11, 2024
6bec554
Merge pull request #18 from SviatoslavBoichuk/dev-device-caps
Cahb Apr 11, 2024
a56354e
Refactoring: changed device cache functions name
SviatoslavBoichuk Apr 15, 2024
699ace9
Refactoring: renamed structs, enums, functions in cgw_ucentral_parser.rs
SviatoslavBoichuk Apr 15, 2024
fbf7359
Refactoring: get device from cache as mutable object and update it in…
SviatoslavBoichuk Apr 15, 2024
bb84945
Merge pull request #19 from SviatoslavBoichuk/dev-refactoring
Cahb Apr 15, 2024
f835edb
Changed NB messages type
SviatoslavBoichuk Apr 15, 2024
a26459a
Merge pull request #20 from SviatoslavBoichuk/dev-modify-nb-messages-…
Cahb Apr 16, 2024
0d8882f
Split UCentral messages parser for AP and Switch devices
SviatoslavBoichuk Apr 18, 2024
23c7670
Make command parser more generic to cover all command types
SviatoslavBoichuk Apr 23, 2024
891db96
Merge pull request #21 from SviatoslavBoichuk/dev-draft-split-parser
Cahb Apr 24, 2024
bd862ff
added docker-compose and helm chart
Apr 30, 2024
ab62ffb
Fix invalid app_args processing
Cahb Apr 30, 2024
c7f6c56
Merge pull request #23 from Telecominfraproject/fix/tweak_app_args_pr…
Cahb Apr 30, 2024
87d53d4
Merge pull request #22 from optim-enterprises-bv/next
Cahb Apr 30, 2024
e99f313
Fix CGW docker container not starting sometimes
Cahb May 2, 2024
6f39808
Merge pull request #25 from Telecominfraproject/fix/busybox_base_not_…
Cahb May 2, 2024
9569b21
Initial implementation of CGW topology map tracking
Cahb Apr 23, 2024
2e6ed6b
added docker-compose and helm chart for advanced cluster
May 3, 2024
6cdd256
Merge pull request #26 from Telecominfraproject/feat/cgw_topo_map
Cahb May 3, 2024
924c5d2
Added Message queue manager
SviatoslavBoichuk Apr 30, 2024
778b3bd
Integrated message queue
SviatoslavBoichuk May 2, 2024
bd4d93e
updated cluster helm charts
outbackdingo May 14, 2024
c5eba0b
Revert "updated cluster helm charts"
outbackdingo May 14, 2024
dc3c478
Added timeout manager
SviatoslavBoichuk May 9, 2024
5d387ab
Merge pull request #28 from SviatoslavBoichuk/dev-prio-messages-queue
Cahb May 15, 2024
c6c0a32
Added non-root user to CGW Image
SviatoslavBoichuk May 15, 2024
5ba1030
Change app args to env variables
SviatoslavBoichuk May 15, 2024
fa59a5b
Merge pull request #29 from SviatoslavBoichuk/dev-change-cli-args-to-…
Cahb May 16, 2024
57f1b64
Fixed deadlock within iterate_over_disconnected_devices function. Cha…
SviatoslavBoichuk May 20, 2024
0d784c5
Merge pull request #30 from SviatoslavBoichuk/dev-add-non-root-user
Cahb May 20, 2024
1ddee38
Added basic .gitignore based on github Rust.gitignore recommended file
SviatoslavBoichuk May 21, 2024
183df55
Merge pull request #31 from SviatoslavBoichuk/dev-fix-timeout-mgr-dea…
Cahb May 22, 2024
57ae9e0
Use rustls instead of native tls
SviatoslavBoichuk May 21, 2024
af7773a
Added client certs verifier
SviatoslavBoichuk May 22, 2024
6dd83e1
Merge pull request #35 from SviatoslavBoichuk/dev-add-gitignore
Cahb May 22, 2024
e6394a7
Added function to retrieve CN name from peer certificate
SviatoslavBoichuk May 22, 2024
c89a0a3
Fixed rustfmt issue
SviatoslavBoichuk May 22, 2024
7be6fe5
Update README
SviatoslavBoichuk May 22, 2024
47054c4
Merge pull request #34 from SviatoslavBoichuk/dev-change-native-tls-t…
Cahb May 23, 2024
ab80880
Changed key type for devices cache from String to MacAddress
SviatoslavBoichuk May 30, 2024
07df98e
Use more Rust-idiomatic code style in Devices cache
SviatoslavBoichuk May 30, 2024
6214849
Derive Default trait for CGWDeviceState
SviatoslavBoichuk May 30, 2024
1951eb3
Use eui48::MacAddress instead of string in UCentral message parsers
SviatoslavBoichuk May 30, 2024
c8dd8dc
Refactor remote discovery & connection server & DB Accessor & Refacto…
SviatoslavBoichuk May 30, 2024
9c2caff
Merge pull request #37 from SviatoslavBoichuk/dev-replace-str-with-eu…
Cahb May 30, 2024
0594b64
Use cache to build CGW inside Docker
SviatoslavBoichuk May 29, 2024
79fd5be
Merge pull request #36 from SviatoslavBoichuk/dev-docker-improves
Cahb Jun 4, 2024
22823fa
Use proper crates version
SviatoslavBoichuk Jun 5, 2024
cee366e
Topo-map: Implement realtime (leave/join) client events handling
Cahb May 17, 2024
a2def49
Merge pull request #32 from Telecominfraproject/feat/topo_map_wired_w…
Cahb Jun 5, 2024
b815fd3
Major refactoring: proper error msg handling, move TLS stuff to corre…
SviatoslavBoichuk Jun 6, 2024
d0113c4
Merge pull request #38 from SviatoslavBoichuk/dev-remove-unwrap
Cahb Jun 6, 2024
7ece733
Merge pull request #39 from SviatoslavBoichuk/dev-use-preper-crates-v…
Cahb Jun 6, 2024
50df665
Defined format of kafka message from CGW
SviatoslavBoichuk Jun 6, 2024
fe0f291
Merge pull request #40 from SviatoslavBoichuk/dev-kafka-msg-reply-format
Cahb Jun 6, 2024
5b9a786
Removed unwrap in remote server
SviatoslavBoichuk Jun 6, 2024
079de39
Handle properly device connection close flows
SviatoslavBoichuk Jun 10, 2024
98391a2
Update README.md file
SviatoslavBoichuk Jun 10, 2024
6b3f02a
Merge pull request #41 from SviatoslavBoichuk/dev-remove-unwrap-remot…
Cahb Jun 10, 2024
62dcd71
Topo-map: Add FDB parser / handling
Cahb Jun 11, 2024
e6224b3
Notify NB about unsassigned/foreign connection
SviatoslavBoichuk Jun 11, 2024
d6f6332
Update README.md
SviatoslavBoichuk Jun 11, 2024
f038490
Merge pull request #43 from Telecominfraproject/feat/initial_topo_map…
Cahb Jun 12, 2024
8e57740
Merge pull request #42 from SviatoslavBoichuk/dev-foreign-infra-mgmt
Cahb Jun 12, 2024
facd1e7
Cleanup Redis shard id record on SIGTERM, SIGINT, SIGHUP
SviatoslavBoichuk Jun 12, 2024
181ca24
Merge pull request #45 from SviatoslavBoichuk/dev-basic-signal-handle
Cahb Jun 12, 2024
2ca411c
Add health endpoints to metrics
Cahb Jun 13, 2024
e8f1e68
Merge pull request #47 from Telecominfraproject/feat/health_endpoint
Cahb Jun 14, 2024
56b0dbe
Properly handle errors in connection server (process_internal_mbox & …
SviatoslavBoichuk Jun 14, 2024
7eff122
Merge pull request #48 from SviatoslavBoichuk/dev-rm-serv-loop-err-prop
Cahb Jun 14, 2024
9a1d27a
Add env variable for metrics port
SviatoslavBoichuk Jun 13, 2024
e301ae1
Use host instead of IP Address for: GRPC, KAFKA, REDIS, POSTGRES DB
SviatoslavBoichuk Jun 13, 2024
e0bfef6
Merge pull request #46 from SviatoslavBoichuk/dev-metrics-port-env
Cahb Jun 14, 2024
90d9ac5
Handle errors in app args parser
SviatoslavBoichuk Jun 17, 2024
c33bb7a
Cover more error scenarious in TLS mod
SviatoslavBoichuk Jun 17, 2024
88e30b9
Merge pull request #49 from SviatoslavBoichuk/dev-tls-err-handling
Cahb Jun 17, 2024
c908ae1
Build: add Cargo.Lock as trackable
Cahb Jun 20, 2024
ac129c4
Merge pull request #51 from Telecominfraproject/fix/track_cargo_lock
carsten989 Jun 20, 2024
b69455b
Fix some spelling issues
Jun 24, 2024
3438c59
Add helm chart
Jun 24, 2024
2098eb9
simulator tweaks
Jun 24, 2024
dd6de62
Add toolbox
Jun 24, 2024
e86f807
Add ci.yml
Jun 25, 2024
89d4b2e
Merge pull request #52 from Telecominfraproject/WIFI-13835
carsten989 Jun 26, 2024
cac306c
Add README for toolbox and correct logging env variable name
Jun 26, 2024
ef8e876
Merge remote-tracking branch 'origin/next' into WIFI-13871-CICD-changes
Jun 26, 2024
35639c5
Merge pull request #54 from Telecominfraproject/WIFI-13871-CICD-changes
carsten989 Jun 26, 2024
408ee25
Add debug build dockerfile
Jun 27, 2024
0058c82
CGW: Fix deadlock occuring in msg queue
Cahb Jun 28, 2024
16e63e9
Merge pull request #55 from Telecominfraproject/fix/fix_deadlock
Cahb Jun 28, 2024
840d142
Fixup run_cgw script to use proper env var for <wss_t_num>
Cahb Jun 30, 2024
11969cf
CGW: ConnectionServer: add new GID Changed evt for ConnProcessor
Cahb Jun 30, 2024
0dbfda4
Merge pull request #56 from Telecominfraproject/fix/assign_connproc_gid
Cahb Jun 30, 2024
f6205c2
Build: Print version (hash) tag whenever app starts
Cahb Jul 1, 2024
d69a485
CGW: Fix compiler warning introduced with previous changes
Cahb Jul 1, 2024
969ef8b
Dockerfile: Uppercase the <as> instruction to fix warnings
Cahb Jul 1, 2024
6ac82b0
Merge pull request #57 from Telecominfraproject/feat/print_app_ver_on…
Cahb Jul 1, 2024
734f4c3
Try new build envs
Jul 2, 2024
95c72aa
Try new build envs
Jul 2, 2024
94c7f82
CGW: AP Parser: Remove unnecessary logs
Cahb Jul 2, 2024
98c3153
CGW: AP Parser: Fix expected state <serial> location
Cahb Jul 2, 2024
8a82815
CGW: Fix formatting of some source files
Cahb Jul 2, 2024
16a4fd6
Merge pull request #58 from Telecominfraproject/fix/minor_fixes_and_f…
Cahb Jul 2, 2024
afc9171
CGW: Dockerfile: revert (temporarily) root user
Cahb Jul 2, 2024
03485a3
Merge pull request #59 from Telecominfraproject/fix/dockerfile_tempor…
Cahb Jul 2, 2024
58e59cc
CGW: Allow disabling topomap handling through env var
Cahb Jul 2, 2024
b14b5ed
Build: enable temporarily debug-only build by default
Cahb Jul 2, 2024
760bb4c
Merge pull request #61 from Telecominfraproject/tmp/enable_default_de…
Cahb Jul 2, 2024
7fa2658
Merge pull request #60 from Telecominfraproject/feat/allow_disabling_…
Cahb Jul 2, 2024
2531373
CGW: TopoMap: Disable by default
Cahb Jul 4, 2024
21793ef
Revert "Build: enable temporarily debug-only build by default"
Cahb Jul 4, 2024
7bf8e1e
Utils: Kafka producer: change default subnet to localhost
Cahb Jul 4, 2024
91ca720
Utils: simulation runner: fix sim not starting
Cahb Jul 4, 2024
bbbfe14
Merge pull request #62 from Telecominfraproject/fix/pre_release_fixes
Cahb Jul 4, 2024
d8d7558
Target main branch as well
Jul 5, 2024
5b032e3
Default tag now latest for helm chart
Jul 5, 2024
befbf5a
Default tag now latest for helm chart
Jul 5, 2024
72f9171
Merge pull request #65 from Telecominfraproject/target_main_branch
carsten989 Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#
name: CI

on:
push:
paths-ignore:
- '**.md'
branches:
- main
- next
- 'release/*'
tags:
- 'v*'
pull_request:
branches:
- main
- next
- 'release/*'

defaults:
run:
shell: bash

jobs:
docker:
runs-on: ubuntu-latest
env:
DOCKER_REGISTRY_URL: tip-tip-wlan-cloud-ucentral.jfrog.io
DOCKER_REGISTRY_USERNAME: ucentral
steps:
- name: Checkout actions repo
uses: actions/checkout@v4
with:
repository: Telecominfraproject/.github
path: github

- name: Build and push Docker image
uses: ./github/composite-actions/docker-image-build
with:
image_name: cgw
registry: tip-tip-wlan-cloud-ucentral.jfrog.io
registry_user: ucentral
registry_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Notify on failure via Slack
if: failure() && github.ref == 'refs/heads/main'
uses: rtCamp/action-slack-notify@v2
env:
SLACK_USERNAME: GitHub Actions failure notifier
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: "${{ job.status }}"
SLACK_ICON: https://raw.githubusercontent.com/quintessence/slack-icons/master/images/github-logo-slack-icon.png
SLACK_TITLE: Docker build failed for OWGW service

trigger-deploy-to-dev:
runs-on: ubuntu-latest
#if: github.ref == 'refs/heads/main'
if: github.ref == 'zzzzzzz'
needs:
- docker
steps:
- name: Checkout actions repo
uses: actions/checkout@v4
with:
repository: Telecominfraproject/.github
path: github

- name: Trigger deployment of the latest version to dev instance and wait for result
uses: ./github/composite-actions/trigger-workflow-and-wait
with:
owner: Telecominfraproject
repo: wlan-testing
workflow: cgw-dev-deployment.yaml
token: ${{ secrets.WLAN_TESTING_PAT }}
ref: master
inputs: '{"just_component": "true"}'
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Generated by Cargo
# will have compiled files and executables
debug/
target/
output/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
Loading