Skip to content
Open
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
0cd18bb
Resolved merge conflicts
rsarwad Sep 7, 2022
1f568cf
Merge branch '11191_move_enb_context' of https://github.com/rsarwad/m…
rsarwad Sep 8, 2022
19d5564
Modified code to port s1ap_state
rsarwad Sep 10, 2022
dad8f87
fix(agw): Modified code to port s1ap_state_t structure to protobuf st…
rsarwad Sep 15, 2022
271f4be
Resolved merge conflicts
rsarwad Sep 21, 2022
70a39ee
Merge branch '11191_move_enb_context' of https://github.com/rsarwad/m…
rsarwad Sep 27, 2022
a0ddafb
chore(ci): extracxt magma package version and trigger workflow (#13983)
Sep 29, 2022
d61dc1a
Merge branch '11191_move_enb_context' of https://github.com/rsarwad/m…
rsarwad Sep 29, 2022
1bd2b73
chore(nms): Improve generic commands functionality (#14014)
voisey Sep 29, 2022
ea91f38
fix(agw): all `ROOTCA_PATH` variables are deleted (#14037)
mpfirrmann Sep 29, 2022
c30befd
fix(ci): use correct variable offered by dispatch action (#14038)
Sep 29, 2022
09ca86f
fix(amf): VoNR configuration support (#14039)
ganeshg87 Sep 29, 2022
d82bb81
feat(ci): Move and edit release scripts/workflows (#14011)
MoritzThomasHuebner Sep 29, 2022
b1368b4
fix(subscriberdb): Detach inactive subscribers when syncing (#14024)
sebathomas Sep 30, 2022
7064547
fix(agw): Port enb context from C structure to protobuf structure in …
rsarwad Sep 30, 2022
96a0047
Resolved merge conflicts
rsarwad Oct 3, 2022
a231e46
chore: cache key of bazel base and image tag are updated (#14041)
nstng Oct 4, 2022
93f229e
chore: pip performance is improved by ipv4 over ipv6 precedence (#14057)
nstng Oct 4, 2022
12029dc
chore(ci): enable manual execution of the integ test magma_deb in ci …
Oct 4, 2022
01466f5
Upgrading magma version to 1.8.0 (#13869)
tmdzk Oct 4, 2022
7ef993a
docs(agw): start-up procedure for containerized AGW is improved (#14077)
mpfirrmann Oct 4, 2022
f49152a
chore: delete non-existing directories from dockerignore file (#14081)
alexzurbonsen Oct 4, 2022
79a196a
chore: deprecated debian stretch specific files and scripts are remov…
mpfirrmann Oct 4, 2022
eb377c0
fix(lte): Fixed `detect_init_system` (#14034)
MoritzThomasHuebner Oct 5, 2022
c1720c7
fix(agw): Do not check for health of "shared_mconfig" (#14082)
sebathomas Oct 5, 2022
04facb1
chore: Bump node-fetch (#13857)
lucasgonze Oct 5, 2022
fc0fb24
fix(nms): statistics not showing for non super users (#14079)
paulocalaes Oct 6, 2022
d2f07dd
chore(agw): reduce python container build context (#14085)
wolfseb Oct 6, 2022
6bc53c5
docs: Fix double stop of magmad in Quick Start Guide (#14001)
voisey Oct 6, 2022
2dd1bd0
docs: cut docs for 1.8.0 release (#14065)
wolfseb Oct 6, 2022
5129889
docs: Fix typo in FeG build section (#14088)
voisey Oct 6, 2022
849f777
chore(ci): s1ap integ tests against dockerized agw (#13884)
alexzurbonsen Oct 6, 2022
e04ebfe
fix(amf): Fixing session ambr value when policy attached (#14098)
Sathyaj27 Oct 6, 2022
a586181
fix: vagrant box cache location is pointing to correct folder (#14092)
nstng Oct 7, 2022
5d2e6db
Addressed self comments
rsarwad Oct 3, 2022
a96800d
Merge remote-tracking branch 'upstream/master' into rsarwad_move_s1ap…
rsarwad Oct 7, 2022
d2f5aed
fix(agw): fix always true asserts in s1ap integ tests (#14091)
wolfseb Oct 7, 2022
ff3fa47
chore: Clean up boolean arguments in fabfiles (#14032)
vktng Oct 10, 2022
e221374
chore: integ test workflows are reproducible (#14097)
nstng Oct 10, 2022
4102608
Merge remote-tracking branch 'upstream/master' into rsarwad_move_s1ap…
rsarwad Oct 10, 2022
a28236f
Fixed cpp lint errors
rsarwad Oct 10, 2022
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
7 changes: 0 additions & 7 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*
!.cache/test_certs
!fb/config/

!.devcontainer/
!third_party/
Expand Down Expand Up @@ -29,12 +28,6 @@
!lte/gateway/deploy
!lte/gateway/docker/deploy

!devmand/cloud/
!devmand/gateway/
!devmand/protos/

!fb/src/dpi/

!orc8r/cloud/configs/
!orc8r/lib/
!orc8r/cloud/go/
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/agw-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ concurrency:

env:
DEVCONTAINER_IMAGE: "ghcr.io/magma/magma/devcontainer:latest"
BAZEL_BASE_IMAGE: "ghcr.io/magma/magma/bazel-base:sha-4a878d8"
CACHE_KEY: bazel-base-image
BAZEL_BASE_IMAGE: "ghcr.io/magma/magma/bazel-base:latest"
# see GH14041
CACHE_KEY: bazel-base-image-sha-c4de1e5
REMOTE_DOWNLOAD_OPTIMIZATION: true

jobs:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ on:
- master

env:
BAZEL_BASE_IMAGE: "ghcr.io/magma/magma/bazel-base:sha-4a878d8"
CACHE_KEY: bazel-base-image
BAZEL_BASE_IMAGE: "ghcr.io/magma/magma/bazel-base:latest"
# see GH14041
CACHE_KEY: bazel-base-image-sha-c4de1e5
REMOTE_DOWNLOAD_OPTIMIZATION: true

concurrency:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ jobs:
runs-on: macos-12
outputs:
artifacts: ${{ steps.publish_packages.outputs.artifacts }}
magma_package: ${{ steps.publish_packages.outputs.magma_package }}
steps:
- uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # pin@v2
with:
Expand Down Expand Up @@ -179,6 +180,14 @@ jobs:
if [[ "$HTTP_STATUS" != "2"* ]]; then
PUBLISH_ERROR="true"
fi
# extract magma debian package version
match="magma_[0-9]+\.[0-9]+\.[0-9]+-[0-9]+-[a-z0-9]+_[a-z0-9]+.deb"
if [[ $i =~ $match ]]; then
magma_package=${i#magma_}
magma_package=${magma_package%_[a-z0-9]*.deb}
magma_package='magma='${magma_package}
echo "::set-output name=magma_package::${magma_package}"
fi
done
# set output
if [[ "$PUBLISH_ERROR" != "true" ]]; then
Expand Down Expand Up @@ -991,3 +1000,15 @@ jobs:
SLACK_ICON_EMOJI: ":heavy_check_mark:"
SLACK_COLOR: "#00FF00"
SLACK_FOOTER: ' '
trigger-debian-integ-test:
if: always() && github.event_name == 'push' && github.repository_owner == 'magma' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: agw-build
steps:
- name: Trigger debian integ test workflow
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: magma/magma
event-type: build-all-artifact
client-payload: '{ "artifact": "${{ needs.agw-build.outputs.magma_package }}" }'
53 changes: 53 additions & 0 deletions .github/workflows/docker-promote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 2022 The Magma Authors.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: docker promote

on:
workflow_dispatch:
inputs:
branch_tag:
description: 'Branch version number'
required: true
release_tag:
description: 'Release version number'
required: true

jobs:
docker-promote:
runs-on: ubuntu-latest
env:
BRANCH_TAG: ${{ inputs.branch_tag }}
RELEASE_TAG: ${{ inputs.release_tag }}
MAGMA_ARTIFACTORY: artifactory.magmacore.org
steps:
- uses: tspascoal/get-user-teams-membership@533553aa88900a17c59177d65bcf8c5c97ff1a90 # [email protected]
name: Check if user has rights to promote
id: checkUserMember
with:
username: ${{ github.actor }}
team: 'approvers-ci'
GITHUB_TOKEN: ${{ secrets.github_token }}
- if: ${{ steps.checkUserMember.outputs.isTeamMember == 'false' }}
run: |
echo "User is not a member of the team"
exit 1
- uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # Pin v2.0.0
name: Login to Artifactory
with:
registry: docker.${{ env.MAGMA_ARTIFACTORY }}
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
- run: |
wget https://github.com/magma/magma/raw/master/orc8r/tools/docker/promote.sh
chmod 755 promote.sh
# Promote Docker images
./promote.sh
5 changes: 3 additions & 2 deletions .github/workflows/gcc-problems.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ on:
- master
- 'v1.*'
env:
BAZEL_BASE_IMAGE: "ghcr.io/magma/magma/bazel-base:sha-4a878d8"
CACHE_KEY: bazel-base-image
BAZEL_BASE_IMAGE: "ghcr.io/magma/magma/bazel-base:latest"
# see GH14041
CACHE_KEY: bazel-base-image-sha-c4de1e5
REMOTE_DOWNLOAD_OPTIMIZATION: true

concurrency:
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/helm-promote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2022 The Magma Authors.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: helm promote

on:
workflow_dispatch:
inputs:
magma_version:
description: 'Magma version number'
required: true

jobs:
helm-promote:
runs-on: ubuntu-latest
env:
MAGMA_VERSION: ${{ inputs.magma_version }}
MAGMA_ARTIFACTORY: https://artifactory.magmacore.org:443/artifactory
HELM_CHART_MUSEUM_TOKEN: ${{ secrets.HELM_CHART_MUSEUM_TOKEN }}
HELM_CHART_MUSEUM_USERNAME: ${{ secrets.HELM_CHART_MUSEUM_USERNAME }}
steps:
- uses: tspascoal/get-user-teams-membership@533553aa88900a17c59177d65bcf8c5c97ff1a90 # [email protected]
name: Check if user has rights to promote
id: checkUserMember
with:
username: ${{ github.actor }}
team: 'approvers-ci'
GITHUB_TOKEN: ${{ secrets.github_token }}
- if: ${{ steps.checkUserMember.outputs.isTeamMember == 'false' }}
run: |
echo "User is not a member of the team"
exit 1
- run: |
wget https://github.com/magma/magma/raw/master/orc8r/tools/helm/promote.sh
chmod 755 promote.sh
# Promote Helm charts
./promote.sh orc8r-${MAGMA_VERSION}.tgz
./promote.sh cwf-orc8r-${MAGMA_VERSION}.tgz
./promote.sh feg-orc8r-${MAGMA_VERSION}.tgz
./promote.sh lte-orc8r-${MAGMA_VERSION}.tgz
./promote.sh domain-proxy-${MAGMA_VERSION}.tgz
2 changes: 0 additions & 2 deletions .github/workflows/lte-integ-test-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ jobs:
run: |
cd lte/gateway
vagrant ssh -c 'cd ~/magma; bazel/scripts/remote_cache_bazelrc_setup.sh "${{ env.CACHE_KEY }}" "${{ env.REMOTE_DOWNLOAD_OPTIMIZATION }}" "${{ secrets.BAZEL_REMOTE_PASSWORD }}";' magma
vagrant ssh -c 'sudo sed -i "s@#precedence ::ffff:0:0/96 100@precedence ::ffff:0:0/96 100@" /etc/gai.conf;' magma
vagrant ssh -c 'cd ~/magma; bazel build --profile=bazel_profile_lte_integ_tests `bazel query "kind(.*_binary, //orc8r/... union //lte/... union //feg/...)"`;' magma
vagrant ssh -c 'sudo sed -i "s@precedence ::ffff:0:0/96 100@#precedence ::ffff:0:0/96 100@" /etc/gai.conf;' magma
- name: Linking bazel-built script executables to '/usr/local/bin/'
run: |
cd lte/gateway
Expand Down
65 changes: 65 additions & 0 deletions .github/workflows/lte-integ-test-containerized.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Copyright 2022 The Magma Authors.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name: LTE integ test containerized AGW

on:
workflow_dispatch: null
workflow_run:
workflows:
- build-all
branches:
- master
types:
- completed

jobs:
lte-integ-test-containerized:
if: github.event.workflow_run.conclusion == 'success' && (github.repository_owner == 'magma' || github.event_name == 'workflow_dispatch')
runs-on: macos-12
steps:
- name: Cache magma-dev-box
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # pin@v3
with:
path: ~/.vagrant.d/boxes/magmacore-VAGRANTSLASH-magma_dev
key: vagrant-box-magma-dev-v1.2.20220801
- name: Cache magma-test-box
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # pin@v3
with:
path: ~/.vagrant.d/boxes/magmacore-VAGRANTSLASH-magma_test
key: vagrant-box-magma-test
- name: Cache magma-trfserver-box
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # pin@v3
with:
path: ~/.vagrant.d/boxes/magmacore-VAGRANTSLASH-magma_trfserver
key: vagrant-box-magma-trfserver-v20220722
- uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a # pin@v2
with:
python-version: '3.8.10'
- name: Install pre requisites
run: |
pip3 install --upgrade pip
pip3 install ansible fabric3 jsonpickle requests PyYAML
vagrant plugin install vagrant-vbguest vagrant-disksize vagrant-reload
- name: Open up network interfaces for VM
run: |
sudo mkdir -p /etc/vbox/
echo '* 192.168.0.0/16' | sudo tee /etc/vbox/networks.conf
echo '* 3001::/64' | sudo tee -a /etc/vbox/networks.conf
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # pin@v3
- name: Run the integration test
env:
DOCKER_REGISTRY: docker-ci.artifactory.magmacore.org/
MAGMA_DEV_CPUS: 3
MAGMA_DEV_MEMORY_MB: 9216
working-directory: lte/gateway
run: |
fab --show=debug --set DOCKER_REGISTRY=${DOCKER_REGISTRY} integ_test_containerized
12 changes: 4 additions & 8 deletions .github/workflows/lte-integ-test-magma-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ name: LTE integ test magma-deb

on:
workflow_dispatch: null
workflow_run:
workflows:
- build-all
branches:
- master
types:
- completed
repository_dispatch:
types: [build-all-artifact]

jobs:
lte-integ-test-magma-deb:
Expand All @@ -30,7 +25,7 @@ jobs:
- name: Cache magma-deb-box
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # pin@v3
with:
path: ~/.vagrant.d/boxes/magmacore-VAGRANTSLASH-magma_deb
path: ~/.vagrant.d/boxes/ubuntu-VAGRANTSLASH-focal64
key: vagrant-box-magma-deb-focal64-20220804.0.0
- name: Cache magma-test-box
uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129 # pin@v3
Expand Down Expand Up @@ -59,6 +54,7 @@ jobs:
env:
MAGMA_DEV_CPUS: 3
MAGMA_DEV_MEMORY_MB: 9216
MAGMA_PACKAGE: ${{ github.event.client_payload.artifact }}
run: |
cd lte/gateway
fab integ_test_deb_installation
Expand Down
2 changes: 1 addition & 1 deletion cwf/gateway/deploy/roles/cwag/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
sysctl: name="net.ipv4.ip_forward" value=1 sysctl_set=yes state=present reload=yes

- name: Configure Debian interfaces
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
when: ansible_distribution == 'Ubuntu'
block:
- name: Add static IP to cwag_br0
become: true
Expand Down
2 changes: 1 addition & 1 deletion cwf/gateway/deploy/roles/ovs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# limitations under the License.

- name: Install openvswitch and dependencies
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
when: ansible_distribution == 'Ubuntu'
include_tasks: debian.yml

- name: Install openvswitch and dependencies
Expand Down
1 change: 0 additions & 1 deletion cwf/gateway/docker/c/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

ARG OS_DIST=ubuntu OS_RELEASE=focal EXTRA_REPO=https://artifactory.magmacore.org/artifactory/debian-test

# Stretch is required for c build
FROM $OS_DIST:$OS_RELEASE AS builder
ARG OS_DIST OS_RELEASE EXTRA_REPO

Expand Down
Loading