Skip to content

USHIFT-1941: Fix osconfig tests failing due to unplanned reboots and service failures#2652

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
ggiguash:fix_greenboot_restarts
Nov 27, 2023
Merged

USHIFT-1941: Fix osconfig tests failing due to unplanned reboots and service failures#2652
openshift-merge-bot[bot] merged 1 commit intoopenshift:mainfrom
ggiguash:fix_greenboot_restarts

Conversation

@ggiguash
Copy link
Contributor

@ggiguash ggiguash commented Nov 25, 2023

Besides adding Wait Until Greenboot Health Check Exited calls following the Reboot MicroShift Host function, the following fixes were implemented:

  • Make the systemctl command retry less frequently (once in 15s instead of 10s) not to hit the 10s start limit
  • Fixed the Systemctl enable --now call, which was wrong because Systemctl does not expect such usage
  • Limited the journalctl output to 32K characters instead of 100 lines. The 32K characters is the max size of RF buffer anyway.

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

openshift-ci-robot commented Nov 25, 2023

@ggiguash: This pull request references USHIFT-1941 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set.

Details

In response to this:

  • Implement a generic function for setting a service start limit override.
  • Set the limit to 10 in the cleanup-data test

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 openshift-ci bot requested review from dhellmann and jogeo November 25, 2023 08:38
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 25, 2023
@ggiguash ggiguash force-pushed the fix_greenboot_restarts branch from d29e041 to 0b1a277 Compare November 26, 2023 07:25
@ggiguash ggiguash marked this pull request as draft November 26, 2023 07:53
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 26, 2023
@ggiguash ggiguash force-pushed the fix_greenboot_restarts branch 3 times, most recently from 9c99414 to 3c09b0d Compare November 26, 2023 10:37
@ggiguash ggiguash marked this pull request as ready for review November 26, 2023 10:39
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 26, 2023
@openshift-ci openshift-ci bot requested a review from jerpeter1 November 26, 2023 10:40
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 26, 2023

@ggiguash: This pull request references USHIFT-1941 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set.

Details

In response to this:

  • Implement a generic function for setting and restoring a service start limit override.
  • Set the limit to 10 in the cleanup-data test

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.

@ggiguash
Copy link
Contributor Author

/test metal-periodic-test microshift-metal-tests

@ggiguash ggiguash force-pushed the fix_greenboot_restarts branch from 3c09b0d to 9ddbd2a Compare November 26, 2023 15:26
@ggiguash
Copy link
Contributor Author

/test metal-periodic-test

@ggiguash ggiguash force-pushed the fix_greenboot_restarts branch 2 times, most recently from 23fc2b6 to 47d7ee6 Compare November 27, 2023 13:07
@ggiguash ggiguash force-pushed the fix_greenboot_restarts branch from 47d7ee6 to 6da5dff Compare November 27, 2023 13:08
@ggiguash ggiguash changed the title USHIFT-1941: Services may fail due to restart limit in cleanup data tests USHIFT-1941: Fix osconfig tests failing due to unplanned reboots and service failures Nov 27, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 27, 2023

@ggiguash: This pull request references USHIFT-1941 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set.

Details

In response to this:

Also, make systemctl command retry less frequently not to hit the start limit.

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

openshift-ci-robot commented Nov 27, 2023

@ggiguash: This pull request references USHIFT-1941 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.15.0" version, but no target version was set.

Details

In response to this:

Besides adding Wait Until Greenboot Health Check Exited calls following the Reboot MicroShift Host function, the following fixes were implemented:

  • Make the systemctl command retry less frequently (once in 15s instead of 10s) not to hit the 10s start limit
  • Fixed the Systemctl enable --now call, which was wrong because Systemctl does not expect such usage
  • Limited the journalctl output to 32K characters instead of 100 lines. The 32K characters is the max size of RF buffer anyway.

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.

@ggiguash
Copy link
Contributor Author

/test metal-periodic-test
/test microshift-metal-tests

@ggiguash
Copy link
Contributor Author

/test metal-periodic-test

Copy link
Contributor

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 27, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhellmann, ggiguash

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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
Copy link

/retest-required

Remaining retests: 0 against base HEAD 15e3e7b and 2 for PR HEAD 6da5dff in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 27, 2023

@ggiguash: all tests passed!

Full PR test history. Your PR dashboard.

Details

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.

@openshift-merge-bot openshift-merge-bot bot merged commit 4c154e4 into openshift:main Nov 27, 2023
@ggiguash ggiguash deleted the fix_greenboot_restarts branch November 28, 2023 06:40
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants