Skip to content

cnf_setup: Exit on setup failure or timeout #2114

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

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

kosstennbl
Copy link
Collaborator

@kosstennbl kosstennbl commented Jul 29, 2024

Description

Fix handling unsuccessful cnf setup, if resources are not ready after timeout - then setup should fail with exit 1.
Change specs accordingly, replace wait_count=0 with new option "ignore_setup_timeout".
Add cnf_setup function to ShellCmd and use it for installation of CNFs during specs.

Issues:

Refs: #1937 #2083

@kosstennbl kosstennbl force-pushed the setup-failure-fix branch 3 times, most recently from 5f545b1 to 177531b Compare July 29, 2024 14:56
@kosstennbl kosstennbl force-pushed the setup-failure-fix branch 2 times, most recently from 45a72e0 to 0ded1ba Compare July 30, 2024 13:04
@martin-mat martin-mat self-requested a review July 30, 2024 18:02
@martin-mat
Copy link
Collaborator

It looks that this change did its job and revealed issues with cnf setup in spec tests. They need to be addressed though.

@kosstennbl
Copy link
Collaborator Author

Issues with "envoy" chart are brought by #2116, they should be resolved for CI to pass.

@kosstennbl kosstennbl requested a review from martin-mat July 31, 2024 08:09
@martin-mat
Copy link
Collaborator

the change looks fine for me now, I will approve after the envoy issue is addressed.

@martin-mat
Copy link
Collaborator

rebase pls

@kosstennbl kosstennbl force-pushed the setup-failure-fix branch 2 times, most recently from f26345d to c5c49f6 Compare August 6, 2024 08:48
@martin-mat martin-mat self-requested a review August 6, 2024 12:16
Copy link
Collaborator

@martin-mat martin-mat left a comment

Choose a reason for hiding this comment

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

lgtm

@martin-mat martin-mat requested review from collivier and barmull August 6, 2024 12:17
Copy link
Member

@Smitholi67 Smitholi67 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@svteb svteb left a comment

Choose a reason for hiding this comment

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

lgtm

Fix handling unsuccessful cnf setup, if resources are not ready
after timeout - then setup should fail with exit 1.
Change specs accordingly, replace wait_count=0 with new option
"ignore_setup_timeout".
Add cnf_setup function to ShellCmd and use it for
installation of CNFs during specs.

Refs: lfn-cnti#1937 lfn-cnti#2083
Signed-off-by: Konstantin Yarovoy <[email protected]>
@martin-mat martin-mat merged commit 3006e37 into lfn-cnti:main Aug 15, 2024
87 checks passed
martin-mat added a commit to martin-mat/cnf-testsuite that referenced this pull request Aug 16, 2024
After lfn-cnti#2114 was merged, an issue was revealed
with image size - protected repo spec test.
It was discovered only after merging.
Until this is fixed, disabling this variant
of the image size spec test.

Refs: lfn-cnti#2114 lfn-cnti#2136

Signed-off-by: Martin Matyas <[email protected]>
martin-mat added a commit to martin-mat/cnf-testsuite that referenced this pull request Aug 16, 2024
After lfn-cnti#2114 was merged, an issue was revealed
with image size - protected repo spec test.
It was discovered only after merging.
Until this is fixed, disabling this variant
of the image size spec test.

Refs: lfn-cnti#2114 lfn-cnti#2136

Signed-off-by: Martin Matyas <[email protected]>
martin-mat added a commit that referenced this pull request Aug 16, 2024
After #2114 was merged, an issue was revealed
with image size - protected repo spec test.
It was discovered only after merging.
Until this is fixed, disabling this variant
of the image size spec test.

Refs: #2114 #2136

Signed-off-by: Martin Matyas <[email protected]>
@kosstennbl kosstennbl deleted the setup-failure-fix branch August 19, 2024 13:53
LuciaSirova pushed a commit that referenced this pull request Mar 27, 2025
Fix handling unsuccessful cnf setup, if resources are not ready
after timeout - then setup should fail with exit 1.
Change specs accordingly, replace wait_count=0 with new option
"ignore_setup_timeout".
Add cnf_setup function to ShellCmd and use it for
installation of CNFs during specs.

Refs: #1937 #2083

Signed-off-by: Konstantin Yarovoy <[email protected]>
LuciaSirova pushed a commit that referenced this pull request Mar 27, 2025
After #2114 was merged, an issue was revealed
with image size - protected repo spec test.
It was discovered only after merging.
Until this is fixed, disabling this variant
of the image size spec test.

Refs: #2114 #2136

Signed-off-by: Martin Matyas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants