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 1737575: DR: use observed directories vs assumptions for backup_etcd_client_certs #1052

Merged
merged 1 commit into from Aug 9, 2019

Conversation

hexfusion
Copy link
Contributor

@hexfusion hexfusion commented Aug 8, 2019

Currently, we use a poor assumption that the static pod revision will never go higher than 10[1]. As reported in BZ and confirmed with masters team this is not the case. While the controller would set a MaxEligibleRevision[2] this does mean a linear 0 -> N meaning although 0 - 9 is valid so is 20 - 29. So we no longer assume instead we populate an array with observed directories output from ls.

[1]https://github.com/openshift/machine-config-operator/compare/master...hexfusion:fx_etcd_backup?expand=1#diff-df2f7b2c367c15c3aa83f8b8e002b3d8L37
[2] https://github.com/openshift/library-go/blob/a5507e7eb29c0ec68b73bd355cf5d248586fd776/pkg/operator/staticpod/prune/cmd.go#L56

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1737575

@openshift-ci-robot
Copy link
Contributor

@hexfusion: This pull request references a valid Bugzilla bug. 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.

In response to this:

Bug 1737575: DR: use observed directories vs assumptions for backup_etcd_client_certs

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. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 8, 2019
@openshift-ci-robot
Copy link
Contributor

@hexfusion: This pull request references a valid Bugzilla bug.

In response to this:

Bug 1737575: DR: use observed directories vs assumptions for backup_etcd_client_certs

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.

@hexfusion
Copy link
Contributor Author

/test e2e-restore-cluster-state

@retroflexer
Copy link
Contributor

retroflexer commented Aug 8, 2019

Currently, we use a poor assumption that the static pod revision will never go higher than 10[1].

Looks good to me! Doing for 1..10 is definitely a poor way of discovering the pods.

Signed-off-by: Sam Batschelet <sbatsche@redhat.com>
@openshift-ci-robot
Copy link
Contributor

@hexfusion: This pull request references a valid Bugzilla bug.

In response to this:

Bug 1737575: DR: use observed directories vs assumptions for backup_etcd_client_certs

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.

@hexfusion
Copy link
Contributor Author

/test e2e-restore-cluster-state

@alaypatel07
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 8, 2019
@hexfusion
Copy link
Contributor Author

/pony Twilight Sparkle

@openshift-ci-robot
Copy link
Contributor

@hexfusion: pony image

In response to this:

/pony Twilight Sparkle

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.

Copy link
Contributor

@retroflexer retroflexer left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@kikisdeliveryservice
Copy link
Contributor

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 8, 2019
@kikisdeliveryservice
Copy link
Contributor

@hexfusion once this merged and soaks for a few days you'll have to open another pr/cherrypick this to get it backported into 4.1.z if necessary.

@runcom
Copy link
Member

runcom commented Aug 8, 2019

/lgtm

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alaypatel07, hexfusion, kikisdeliveryservice, retroflexer, runcom

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 [kikisdeliveryservice,runcom]

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

@hexfusion
Copy link
Contributor Author

/test e2e-aws

@hexfusion
Copy link
Contributor Author

level=fatal msg="failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform"

/test e2e-aws-upgrade

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@hexfusion
Copy link
Contributor Author

e2e-restore-cluster-state is broken @vrutkovs has some fixes he's working on for it.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

2 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit f22a9f4 into openshift:master Aug 9, 2019
@openshift-ci-robot
Copy link
Contributor

@hexfusion: All pull requests linked via external trackers have merged. The Bugzilla bug has been moved to the MODIFIED state.

In response to this:

Bug 1737575: DR: use observed directories vs assumptions for backup_etcd_client_certs

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

@hexfusion: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-restore-cluster-state d073939 link /test e2e-restore-cluster-state

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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.

@hexfusion
Copy link
Contributor Author

/cherrypick release-4.1

@openshift-cherrypick-robot

@hexfusion: new pull request created: #1054

In response to this:

/cherrypick release-4.1

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/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. 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.

None yet

9 participants