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

adds prow job to install nephio components on kubeadm cluster #297

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

vjayaramrh
Copy link
Collaborator

@vjayaramrh vjayaramrh commented Aug 19, 2024

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 adds prow job support to deploy Nephio management components on a kubeadm cluster. The files to review as part of this PR are

  .prow.yaml
   e2e/provision/init.sh
   e2e/provision/install_sandbox.sh
   e2e/provision/playbooks/deploy_kubeadm_k8s.yml
   e2e/terraform/main.tf
   e2e/terraform/modules/gcp/main.tf
   e2e/terraform/modules/gcp/variables.tf

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
Please review and merge #296 prior to merging this PR. This PR includes files from the #296 PR

Does this PR introduce a user-facing change?:

NONE

@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-fedora-34

@vjayaramrh vjayaramrh force-pushed the ci_kubeadm branch 2 times, most recently from 0ea00b7 to 0c37574 Compare August 19, 2024 20:19
@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-ubuntu-jammy

@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-ubuntu-jammy

@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-fedora-34

@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-ubuntu-jammy

1 similar comment
@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-ubuntu-jammy

@arora-sagar
Copy link
Contributor

@vjayaramrh Didn't we decide to bump the fedora version to 40 instead of 34 after R3?

@vjayaramrh
Copy link
Collaborator Author

vjayaramrh commented Aug 20, 2024

@vjayaramrh Didn't we decide to bump the fedora version to 40 instead of 34 after R3?

Good point, we could atleast for the kubeadm cluster deployment as a first step.

@vjayaramrh vjayaramrh force-pushed the ci_kubeadm branch 3 times, most recently from e2e6bf3 to 6a614e7 Compare August 20, 2024 16:07
@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-ubuntu-jammy

Copy link
Contributor

nephio-prow bot commented Aug 20, 2024

@vjayaramrh: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test presubmit-test-infra-inrepoconfig-validation

Use /test all to run all jobs.

In response to this:

/test e2e-kubeadm-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.

vjayaramrh and others added 4 commits August 20, 2024 11:55
allows for installing nonKIND K8S cluster on ubuntu and fedora for e2e test cases
…ephio-project#46) (nephio-project#296)

* add support for installing nonKIND cluster via kubeadm

allows for installing nonKIND K8S cluster on ubuntu and fedora for e2e test cases

* Add support for installing nonKIND cluster via kubeadm, moving file locations

Co-authored-by: Vishwanath Jayaraman <[email protected]>

* Change yml file suffix in main

---------

Co-authored-by: vjayaramrh <[email protected]>
@vjayaramrh vjayaramrh force-pushed the ci_kubeadm branch 2 times, most recently from 3ea8634 to 76dbd84 Compare August 20, 2024 19:39
@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-ubuntu-jammy

@vjayaramrh
Copy link
Collaborator Author

/test e2e-kubeadm-fedora-38

Copy link
Contributor

nephio-prow bot commented Aug 21, 2024

@vjayaramrh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
e2e-kubeadm-fedora-40 3ea8634 link false /test e2e-kubeadm-fedora-40

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

- name: e2e-kubeadm-ubuntu-jammy
annotations:
labels:
run_if_changed: '^e2e/'
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we refine these. I feel it's overkill running all of these jobs every time there is a change made anywhere in the e2e dir

Copy link
Collaborator Author

@vjayaramrh vjayaramrh Aug 21, 2024

Choose a reason for hiding this comment

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

I am up for any suggestions, (As a side note, this job is optional for PR merge at the moment)
CC: @radoslawc

Copy link
Collaborator

Choose a reason for hiding this comment

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

@efiacor @vjayaramrh that's my feeling as well, this however would require modularising each job as they are now defined in single place. I've created issue for that: nephio-project/sig-release#47

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay lets merge this PR and take the other issue in another PR.

- name: e2e-kubeadm-fedora-38
annotations:
labels:
run_if_changed: '^e2e/'
Copy link
Contributor

Choose a reason for hiding this comment

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

as above

HOME=${NEPHIO_HOME:-/home/$NEPHIO_USER}
REPO_DIR=${NEPHIO_REPO_DIR:-$HOME/test-infra}
DOCKERHUB_USERNAME=${DOCKERHUB_USERNAME:-""}
DOCKERHUB_TOKEN=${DOCKERHUB_TOKEN:-""}
FAIL_FAST=${FAIL_FAST:-$(get_metadata fail_fast "false")}
# MGMT_CLUSTER_TYPE is intended to be set by prow jobs
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the case? Where is it set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I tagged you and added a comment in .prow.yml file where this is set

@@ -75,6 +75,14 @@ fact_caching_connection = /tmp
EOT

# Management cluster creation
if [[ ${MGMT_CLUSTER_TYPE:-kind} == "kubeadm" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Silly question but do we get multiple mgmt clusters if this executes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If Google GKE or REd Hat decides to add their clusters to CI/CD, then we could get different types. For now it will just be kind and kubeadm.

- "-c"
- |
set -eE; cd "$(git rev-parse --show-toplevel)/e2e/terraform"; trap 'terraform destroy -target module.gcp-ubuntu-jammy -auto-approve' EXIT;
terraform init && timeout 120m terraform apply -target module.gcp-ubuntu-jammy -var="fail_fast=true" -var="mgmt_cluster_type=kubeadm" -auto-approve
Copy link
Collaborator Author

@vjayaramrh vjayaramrh Aug 21, 2024

Choose a reason for hiding this comment

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

@efiacor FYI The prow job sets the management cluster type here

@radoslawc
Copy link
Collaborator

/approve

Copy link
Contributor

nephio-prow bot commented Aug 22, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nephio-prow nephio-prow bot added the approved label Aug 22, 2024
@arora-sagar
Copy link
Contributor

/lgtm

@nephio-prow nephio-prow bot added the lgtm label Aug 22, 2024
@nephio-prow nephio-prow bot merged commit f90ff7b into nephio-project:main Aug 22, 2024
9 of 10 checks passed
@vjayaramrh vjayaramrh deleted the ci_kubeadm branch December 9, 2024 12:19
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