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

Bug 1882785: Clean-up leased environments and detect broken state before running remote libvirt jobs. #14479

Conversation

jaypoulz
Copy link
Contributor

Since our environments are controlled via leases, a job with a lease knows that it should own its space upon acquiring that lease.

This allows us to remove any old conflicting resources (as long as we now identify those resources using the lease name), and verify that the state of the lease is clean before even attempting an install.

@jaypoulz
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 21, 2020
@hamzy
Copy link
Contributor

hamzy commented Dec 21, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 21, 2020
@jaypoulz jaypoulz changed the title Clean-up leased environments and detect broken state before running remote libvirt jobs. Bug 1882785: Clean-up leased environments and detect broken state before running remote libvirt jobs. Dec 21, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. label Dec 21, 2020
@openshift-ci-robot
Copy link
Contributor

@jaypoulz: This pull request references Bugzilla bug 1882785, which is invalid:

  • expected the bug to target the "4.7.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1882785: Clean-up leased environments and detect broken state before running remote libvirt jobs.

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Dec 21, 2020
@jaypoulz
Copy link
Contributor Author

/bugzilla refresh

@openshift-ci-robot
Copy link
Contributor

@jaypoulz: This pull request references Bugzilla bug 1882785, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Dec 21, 2020
@jaypoulz jaypoulz force-pushed the jpz-ensure-clean-env-for-remote-libvirt-jobs branch from 8e9264d to b480fab Compare December 22, 2020 16:17
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2020
@jaypoulz jaypoulz force-pushed the jpz-ensure-clean-env-for-remote-libvirt-jobs branch 8 times, most recently from 988d364 to d8739b2 Compare December 22, 2020 19:13
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 22, 2020

@jaypoulz: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/rehearse/release-openshift-origin-installer-e2e-remote-libvirt-s390x-4.7 11d6c90943b65afc875d8596aeed0b55736edac8 link /test pj-rehearse
ci/rehearse/release-openshift-origin-installer-e2e-remote-libvirt-ppc64le-4.7 d8739b2071f8e5bef43796d68ec63472aab12cf1 link /test pj-rehearse

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.

@jaypoulz jaypoulz force-pushed the jpz-ensure-clean-env-for-remote-libvirt-jobs branch from d8739b2 to a4caf1a Compare December 22, 2020 20:57
@jaypoulz
Copy link
Contributor Author

/unhold

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 22, 2020
@jaypoulz
Copy link
Contributor Author

/assign @mandre

This has been tested in previous patches. The last edit is simply a rebase of what was working before minus a few debug statements. It would be valuable to get this in before shutdown since it will help keep our environments clean even when we're not actively monitoring them.

@hamzy
Copy link
Contributor

hamzy commented Dec 22, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2020
@jaypoulz
Copy link
Contributor Author

/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 22, 2020
@jaypoulz jaypoulz force-pushed the jpz-ensure-clean-env-for-remote-libvirt-jobs branch from a4caf1a to 2a64937 Compare December 22, 2020 22:39
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2020
…emote libvirt jobs.

The goal of this PR is to make no assumptions about the state of the environment lease when you get it. This allows us
to detect a bad state or connection issues to the environment before we start running the job. It will also
remove the need for manual clean-up of bad jobs since our job environments will be self-pruning. We know that the max
length of our infra names are 21 characters, so we use this knowledge to ensure we can inject the DNS records into
the right network.
@jaypoulz jaypoulz force-pushed the jpz-ensure-clean-env-for-remote-libvirt-jobs branch from 3f74537 to 8634bf5 Compare December 22, 2020 23:35
@jaypoulz
Copy link
Contributor Author

/unhold
/assign wking

Latest commit was tested, but rebased for clean-up purposes. All review feedback should be implemented.
More permanent solution to be pursued in https://bugzilla.redhat.com/show_bug.cgi?id=1910158

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 22, 2020
@wking
Copy link
Member

wking commented Dec 23, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 23, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hamzy, jaypoulz, wking

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 23, 2020
@openshift-merge-robot openshift-merge-robot merged commit e44fa08 into openshift:master Dec 23, 2020
@openshift-ci-robot
Copy link
Contributor

@jaypoulz: All pull requests linked via external trackers have merged:

Bugzilla bug 1882785 has been moved to the MODIFIED state.

In response to this:

Bug 1882785: Clean-up leased environments and detect broken state before running remote libvirt jobs.

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.

@openshift-ci-robot
Copy link
Contributor

@jaypoulz: Updated the following 5 configmaps:

  • prow-job-cluster-launch-installer-remote-libvirt-e2e configmap in namespace ci at cluster build02 using the following files:
    • key cluster-launch-installer-remote-libvirt-e2e.yaml using file ci-operator/templates/openshift/installer/cluster-launch-installer-remote-libvirt-e2e.yaml
  • prow-job-cluster-launch-installer-remote-libvirt-e2e configmap in namespace ci at cluster vsphere using the following files:
    • key cluster-launch-installer-remote-libvirt-e2e.yaml using file ci-operator/templates/openshift/installer/cluster-launch-installer-remote-libvirt-e2e.yaml
  • prow-job-cluster-launch-installer-remote-libvirt-e2e configmap in namespace ci at cluster api.ci using the following files:
    • key cluster-launch-installer-remote-libvirt-e2e.yaml using file ci-operator/templates/openshift/installer/cluster-launch-installer-remote-libvirt-e2e.yaml
  • prow-job-cluster-launch-installer-remote-libvirt-e2e configmap in namespace ci at cluster app.ci using the following files:
    • key cluster-launch-installer-remote-libvirt-e2e.yaml using file ci-operator/templates/openshift/installer/cluster-launch-installer-remote-libvirt-e2e.yaml
  • prow-job-cluster-launch-installer-remote-libvirt-e2e configmap in namespace ci at cluster build01 using the following files:
    • key cluster-launch-installer-remote-libvirt-e2e.yaml using file ci-operator/templates/openshift/installer/cluster-launch-installer-remote-libvirt-e2e.yaml

In response to this:

Since our environments are controlled via leases, a job with a lease knows that it should own its space upon acquiring that lease.

This allows us to remove any old conflicting resources (as long as we now identify those resources using the lease name), and verify that the state of the lease is clean before even attempting an install.

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.

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. bugzilla/severity-low Referenced Bugzilla bug's severity is low for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants