-
Notifications
You must be signed in to change notification settings - Fork 38
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
Conversation
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 Once the patch is verified, the new status will be reflected by the 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. |
/ok-to-test I also fixed it so that won't be needed anymore (gave the sig-automation team Triage access on this repo) |
There was a problem hiding this 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
e2e/tests/oai/002.sh
Outdated
@@ -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 |
There was a problem hiding this comment.
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?
e2e/tests/oai/002-oai-operators.yaml
Outdated
kind: WorkloadCluster | ||
template: | ||
annotations: | ||
approval.nephio.org/policy: initial |
There was a problem hiding this comment.
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
e2e/tests/oai/002-oai-operators.yaml
Outdated
upstream: | ||
repo: oai-ran-packages | ||
package: oai-ran-operator | ||
revision: v1 |
There was a problem hiding this comment.
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?
revision: v1 | |
revision: r2 |
e2e/tests/oai/002.sh
Outdated
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" |
There was a problem hiding this comment.
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.
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" |
e2e/tests/oai/004.sh
Outdated
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 |
There was a problem hiding this comment.
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.
e2e/tests/oai/004.sh
Outdated
# shellcheck source=e2e/lib/porch.sh | ||
source "${LIBDIR}/porch.sh" | ||
|
||
# shellcheck source=e2e/lib/_assertions.sh | ||
source "${LIBDIR}/_assertions.sh" |
There was a problem hiding this comment.
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
e2e/tests/oai/005.sh
Outdated
# shellcheck source=e2e/lib/porch.sh | ||
source "${LIBDIR}/porch.sh" | ||
|
||
# shellcheck source=e2e/lib/_assertions.sh | ||
source "${LIBDIR}/_assertions.sh" |
There was a problem hiding this comment.
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
e2e/tests/oai/005.sh
Outdated
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 |
There was a problem hiding this comment.
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
Signed-off-by: Victor Morales <v.morales@samsung.com>
Some OAI RAN fixes
/approve |
Signed-off-by: josephthaliath <jo.thaliath@samsung.com>
@josephthaliath could you fill some information in the PR's description? I'll be reviewing the errors |
@electrocucaracha , I have updated PR description |
/test e2e-free5gc-ubuntu-focal |
@radoslawc this PR depends on #230 |
There was a problem hiding this 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
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>
@josephthaliath did you rebase this PR with the latest changes? |
It seems like the tests are passing the 75 min threshold, so we will need this change to increase the timeout |
@josephthaliath Can you avoid deploying RAN operator on the core cluster if possible? |
@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.
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>
test-infra_18jan_v1.diff
Outdated
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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>
/lgtm |
[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:
Approvers can indicate their approval by writing |
/override e2e-free5gc-fedora-34 |
@electrocucaracha: Overrode contexts on behalf of electrocucaracha: e2e-free5gc-fedora-34, e2e-free5gc-ubuntu-focal, e2e-oai-ubuntu-jammy In response to this:
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. |
* 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>
What type of PR is this?
kind feature
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?: