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

Adding OAI RAN and UE test deployment scripts #227

Merged
merged 18 commits into from
Jan 22, 2024

Conversation

josephthaliath
Copy link
Contributor

@josephthaliath josephthaliath commented Dec 18, 2023

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind cleanup
/kind design
/kind documentation
/kind failing-test

kind feature

/kind flake

What this PR does / why we need it:

This PR is adding new test scripts for deploying OAI RAN and core NFs

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

New test scripts are included for deploying OAI RAN and core NFs using Nephio

Copy link
Contributor

nephio-prow bot commented Dec 18, 2023

Hi @josephthaliath. Thanks for your PR.

I'm waiting for a nephio-project member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@johnbelamaric
Copy link
Member

/ok-to-test

I also fixed it so that won't be needed anymore (gave the sig-automation team Triage access on this repo)

Copy link
Member

@electrocucaracha electrocucaracha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephthaliath I made few suggestions on these files, don't forget to add information into the description of the PR

@@ -27,18 +27,26 @@ source "${LIBDIR}/k8s.sh"
# shellcheck source=e2e/lib/kpt.sh
source "${LIBDIR}/kpt.sh"

#adding directory path to register repository to have upstream packages in repository subdirectory when used with packagevariantset
#TODO: to change the private catalog repository to nephio catalog repository after PR approval
kpt alpha repo register --namespace default https://github.com/josephthaliath/catalog.git --directory=workloads/oai --name=oai-ran-packages
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephthaliath are you using this PR for these tests?

kind: WorkloadCluster
template:
annotations:
approval.nephio.org/policy: initial
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like you have a line ending at in the file, maybe it's added by your text editor

upstream:
repo: oai-ran-packages
package: oai-ran-operator
revision: v1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure that this is the right revision?

Suggested change
revision: v1
revision: r2

Comment on lines 50 to 52
k8s_wait_ready_replicas "deployment" "oai-upf-controller" "$(k8s_get_capi_kubeconfig "edge")" "oai-operators"
k8s_wait_ready_replicas "deployment" "oai-ran-operator" "$(k8s_get_capi_kubeconfig "regional")" "oai-ran-operators"
k8s_wait_ready_replicas "deployment" "oai-ran-operator" "$(k8s_get_capi_kubeconfig "edge")" "oai-ran-operators"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can store the value of kubeconfig of the edge and reuse it.

Suggested change
k8s_wait_ready_replicas "deployment" "oai-upf-controller" "$(k8s_get_capi_kubeconfig "edge")" "oai-operators"
k8s_wait_ready_replicas "deployment" "oai-ran-operator" "$(k8s_get_capi_kubeconfig "regional")" "oai-ran-operators"
k8s_wait_ready_replicas "deployment" "oai-ran-operator" "$(k8s_get_capi_kubeconfig "edge")" "oai-ran-operators"
_edge_kubeconfig="$(k8s_get_capi_kubeconfig "edge")"
k8s_wait_ready_replicas "deployment" "oai-upf-controller" "$_edge_kubeconfig" "oai-operators"
k8s_wait_ready_replicas "deployment" "oai-ran-operator" "$(k8s_get_capi_kubeconfig "regional")" "oai-ran-operators"
k8s_wait_ready_replicas "deployment" "oai-ran-operator" "$_edge_kubeconfig" "oai-ran-operators"

Comment on lines 84 to 101
cat <<EOF | kubectl apply -f -
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariant
metadata:
name: oai-cucp
spec:
upstream:
repo: oai-ran-packages
package: pkg-example-cucp-bp
revision: v1
downstream:
repo: regional
package: oai-ran-cucp
annotations:
approval.nephio.org/policy: initial
injectors:
- name: regional
EOF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we can create a separate file for this.

Comment on lines 30 to 34
# shellcheck source=e2e/lib/porch.sh
source "${LIBDIR}/porch.sh"

# shellcheck source=e2e/lib/_assertions.sh
source "${LIBDIR}/_assertions.sh"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that the functions stored in these files are being used

Comment on lines 30 to 34
# shellcheck source=e2e/lib/porch.sh
source "${LIBDIR}/porch.sh"

# shellcheck source=e2e/lib/_assertions.sh
source "${LIBDIR}/_assertions.sh"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing here, I don't think those are being used

Comment on lines 68 to 85
cat <<EOF | kubectl apply -f -
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariant
metadata:
name: oai-ue
spec:
upstream:
repo: oai-ran-packages
package: pkg-example-ue-bp
revision: v1
downstream:
repo: edge
package: oai-ran-ue
annotations:
approval.nephio.org/policy: initial
injectors:
- name: edge
EOF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep this code in a separate yaml file

@radoslawc
Copy link
Collaborator

/approve

@nephio-prow nephio-prow bot added the approved label Jan 2, 2024
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
@electrocucaracha
Copy link
Member

@josephthaliath could you fill some information in the PR's description? I'll be reviewing the errors

@josephthaliath
Copy link
Contributor Author

@josephthaliath could you fill some information in the PR's description? I'll be reviewing the errors

@electrocucaracha , I have updated PR description

@radoslawc
Copy link
Collaborator

/test e2e-free5gc-ubuntu-focal
/test e2e-oai-ubuntu-jammy

@electrocucaracha
Copy link
Member

@radoslawc this PR depends on #230

Copy link
Member

@electrocucaracha electrocucaracha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These suggestions require merging the #230

e2e/tests/oai/002-oai-operators.yaml Outdated Show resolved Hide resolved
e2e/tests/oai/004-ran-cucp.yaml Outdated Show resolved Hide resolved
e2e/tests/oai/004-ran-cucp.yaml Outdated Show resolved Hide resolved
e2e/tests/oai/004.sh Outdated Show resolved Hide resolved
e2e/tests/oai/004.sh Outdated Show resolved Hide resolved
e2e/tests/oai/005.sh Outdated Show resolved Hide resolved
e2e/tests/oai/005.sh Outdated Show resolved Hide resolved
josephthaliath and others added 7 commits January 17, 2024 21:31
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
@electrocucaracha
Copy link
Member

@josephthaliath did you rebase this PR with the latest changes?

@electrocucaracha
Copy link
Member

It seems like the tests are passing the 75 min threshold, so we will need this change to increase the timeout

@arora-sagar
Copy link
Contributor

@josephthaliath Can you avoid deploying RAN operator on the core cluster if possible?

@arora-sagar
Copy link
Contributor

@josephthaliath @electrocucaracha I merged this with main branch and everything went well. The end to end test was working fine. Here you can see some numbers.

./init.sh --> 12 mins
001.sh --> 20:49:23 -- 21:06:04 --> 15 mins
002.sh --> 21:06:58 -- 21:09:59 --> 3 mins
003.sh --> 21:11:37 -- 21:42:26 --> 31 mins 
004.sh --> 22:00:46 -- 22:24:15 --> 24 mins
005.sh --> 22:26:10 -- 22:27:43 --> 1 min

I think the timeout for end to end test should be 100 or 120 mins to be on the safe side. We can reduce it if we see it takes less time.

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephthaliath I don't think this file is needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arora-sagar . Thanks. added by mistake. removed it.

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
@electrocucaracha
Copy link
Member

/lgtm
/approve

Copy link
Contributor

nephio-prow bot commented Jan 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: electrocucaracha, radoslawc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [electrocucaracha,radoslawc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@electrocucaracha
Copy link
Member

/override e2e-free5gc-fedora-34
/override e2e-free5gc-ubuntu-focal
/override e2e-oai-ubuntu-jammy

Copy link
Contributor

nephio-prow bot commented Jan 22, 2024

@electrocucaracha: Overrode contexts on behalf of electrocucaracha: e2e-free5gc-fedora-34, e2e-free5gc-ubuntu-focal, e2e-oai-ubuntu-jammy

In response to this:

/override e2e-free5gc-fedora-34
/override e2e-free5gc-ubuntu-focal
/override e2e-oai-ubuntu-jammy

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nephio-prow nephio-prow bot merged commit b4c1d96 into nephio-project:main Jan 22, 2024
5 checks passed
dkosteck pushed a commit to vjayaramrh/test-infra that referenced this pull request Aug 15, 2024
* Changes to add ue and ran deployment scripts

* changes to repo register and name corrections

* changes to file permissions

* Some OAI RAN fixes

Signed-off-by: Victor Morales <v.morales@samsung.com>

* remove private catalog repository reference

* Changes to correct scripts to work on different setups

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>

* Change repo name in 002-oai-operators.yaml

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* Update repo in 004-ran-cucp.yaml

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* Update year in 004-ran-cucp.yaml

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* year update in 004.sh

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* Update repo information in 004.sh

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* update year in 005.sh

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* Update repo in 005.sh

Co-authored-by: Victor Morales <chipahuac@hotmail.com>

* changes to deploy ran operator only in regional and edge cluster

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>

* Corrections to package variant names

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>

* removing the file added by mistake

Signed-off-by: josephthaliath <jo.thaliath@samsung.com>

---------

Signed-off-by: Victor Morales <v.morales@samsung.com>
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
Co-authored-by: Victor Morales <v.morales@samsung.com>
Co-authored-by: Victor Morales <chipahuac@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants