Skip to content

fix #314 #359

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 4 commits into from
Aug 29, 2024
Merged

fix #314 #359

merged 4 commits into from
Aug 29, 2024

Conversation

KfreeZ
Copy link
Contributor

@KfreeZ KfreeZ commented Aug 28, 2024

Description

this is a fix for #314

root cause: the error happens when script was trying to delete the pipeline before the update is done.
solution: to avoid the error when delete the pipeline, wait for all pods ready, then delete.

Issues

#314

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)

Dependencies

'n/a'

Tests

CI/CD is covering this

Copy link
Contributor

@zhlsunshine zhlsunshine left a comment

Choose a reason for hiding this comment

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

LGTM

@irisdingbj irisdingbj merged commit f9204f0 into opea-project:main Aug 29, 2024
8 checks passed

pods_count=$(kubectl get pods -n $MODIFY_STEP_NAMESPACE -o jsonpath='{.items[*].metadata.name}' | wc -w)
# Wait until all pods are ready
wait_until_all_pod_ready $MODIFY_STEP_NAMESPACE 300s
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could leads test failure. wait_until_all_pod_ready doesn't support the case when some pods are being deleted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for reminding, I will keep monitoring it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please enhance wait_until_all_pod_ready so it can omit those pods with Terminating status when it tries to get the list of pods to wait for ready?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I am just about to do it

@KfreeZ KfreeZ deleted the fix314 branch August 30, 2024 00:54
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