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

NO-ISSUE: Add cluster name to OCI bucket name #2605

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eliorerz
Copy link
Contributor

@eliorerz eliorerz commented Jan 9, 2025

  • Set OCI bucket name to include cluster name
  • Upload terraform output to the generated bucket

/cc @talhil-rh

@openshift-ci-robot
Copy link

@eliorerz: This pull request explicitly references no jira issue.

In response to this:

  • Set OCI bucket name to include cluster name
  • Upload terraform output to the generated bucket

/cc @talhil-rh

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jan 9, 2025
Copy link

openshift-ci bot commented Jan 9, 2025

@eliorerz: GitHub didn't allow me to request PR reviews from the following users: talhil-rh.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

  • Set OCI bucket name to include cluster name
  • Upload terraform output to the generated bucket

/cc @talhil-rh

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-sigs/prow repository.

@eliorerz
Copy link
Contributor Author

eliorerz commented Jan 9, 2025

/hold

@openshift-ci openshift-ci bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jan 9, 2025
Copy link

openshift-ci bot commented Jan 9, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: eliorerz

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 9, 2025
Copy link

openshift-ci bot commented Jan 9, 2025

@eliorerz: all tests passed!

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

Comment on lines +478 to +480
self._upload_data_to_bucket(
terraform_output, f"terraform-output-{self._entity_config.cluster_id}.yaml", namespace, bucket_name
)
Copy link
Contributor

Choose a reason for hiding this comment

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

why? the bucket will be cleaned up after the test.
The terraform output is available in the OCI stack, so it's can be extracted from there directly using the API.

Copy link
Contributor Author

@eliorerz eliorerz Jan 10, 2025

Choose a reason for hiding this comment

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

QE in some cases are deploying the nodes and leave all the resources up

Copy link
Contributor

Choose a reason for hiding this comment

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

We would like to use it with Cypress flow. In this case, we need the ability to read the yaml from outside test-infra.
/cc @dudyas6

Copy link
Contributor

Choose a reason for hiding this comment

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

About the resource that not cleanup: we store a stack for it and it must run at the reverse order .
In case we abort test-infra . it would stay there.

in othercase i have a bug with cleanup , did we try this flow on OCI ?

namespace,
bucket_name,
self._config.oci_infrastructure_zip_file,
terraform_variables,
)
terraform_output = self._apply_job_from_stack(stack_id, random_name("job-"))
Copy link
Contributor

@adriengentil adriengentil Jan 10, 2025

Choose a reason for hiding this comment

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

Suggested change
terraform_output = self._apply_job_from_stack(stack_id, random_name("job-"))
terraform_output = self._apply_job_from_stack(stack_id, "create-infra")

as we applied it only once, it should be enough.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For my understanding QE has sometimes more then one job per cluster, that is why left it as it is.
@talhil-rh @dudyas6 Can you reffer to that?

Copy link
Contributor

@adriengentil adriengentil Jan 10, 2025

Choose a reason for hiding this comment

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

the job is attached to the stack where the cluster infra is defined /cc @bkopilov

@eliorerz eliorerz changed the title NO-ISSUE: Set OCI bucket name to include cluster name NO-ISSUE: Add cluster name to OCI bucket name Jan 10, 2025
@openshift-ci openshift-ci bot requested a review from dudyas6 January 10, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants