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

Implement Error Handling for Kubernetes Version Mismatch in ZenML #2255

Open
1 task
strickvl opened this issue Jan 10, 2024 · 6 comments
Open
1 task

Implement Error Handling for Kubernetes Version Mismatch in ZenML #2255

strickvl opened this issue Jan 10, 2024 · 6 comments
Assignees
Labels
enhancement New feature or request internal To filter out internal PRs and issues

Comments

@strickvl
Copy link
Contributor

Open Source Contributors Welcomed!

Please comment below if you would like to work on this issue!

Contact Details [Optional]

[email protected]

What happened?

Users are encountering an error when the version of the ZenML Kubernetes orchestrator does not match the version of their actual Kubernetes deployment. The error message is not explicit about the cause of the issue, leading to confusion. An example of the error message is:

AttributeError: module 'kubernetes.client' has no attribute 'V1CronJob'

This error can be resolved by updating the ZenML Kubernetes integration (zenml integration install kubernetes -y), but the current error message does not guide users towards this solution.

Task Description

Implement a clear and informative error handling mechanism in ZenML to catch and adequately report Kubernetes version mismatches. The goal is to provide users with a specific error message that suggests updating the Kubernetes integration in ZenML when a version mismatch is detected.

Expected Outcome

  • ZenML should catch Kubernetes version mismatches and display an explicit error message to the user.
  • The error message should suggest a potential solution, such as updating the Kubernetes integration with ZenML.
  • This enhancement will aid users in quickly diagnosing and resolving version mismatch issues.

Steps to Implement

  • Analyze the current error handling mechanism for the Kubernetes orchestrator in ZenML.
  • Implement specific error handling that detects version mismatches between ZenML's Kubernetes orchestrator and the user's Kubernetes deployment.
  • Develop a clear and user-friendly error message that includes guidance on resolving the issue (e.g., updating the Kubernetes integration).
  • Test the implementation to ensure that version mismatches are correctly caught and reported.
  • Update documentation to include information about this error handling and steps to resolve version mismatches.

Additional Context

Improving error handling for version mismatches is critical for a smooth user experience, especially for those deploying pipelines in Kubernetes environments. This update will help users to quickly identify and address compatibility issues.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@strickvl strickvl added enhancement New feature or request internal To filter out internal PRs and issues labels Jan 10, 2024
@Dev-Khant
Copy link

Hi @strickvl, Can I pick this up and work on it?

@strickvl
Copy link
Contributor Author

Yes @Dev-Khant sounds good. Let us know if there's anything that's unclear along the way, and please make sure to follow our contribution guidelines, esp basing your branch/PR on the develop branch and not the default main branch. Thanks!

@Dev-Khant
Copy link

Hi @strickvl, I'm busy with work but I'll raise a PR when I get time. In the meantime, if someone asks you can assign this to them. Sorry for any inconvenience

@Aryan-Deshpande
Copy link

Hey can i get started on this ?

@Aryan-Deshpande
Copy link

Hi @strickvl I wanted to try and reproduce this error, does this error occur when the zenml k8s orchestrator is running?

@strickvl
Copy link
Contributor Author

@Aryan-Deshpande so the error happens just when you try to run a pipeline using the K8S orchestrator but the version of K8S doesn't match the one you have locally (i.e. installed by ZenML).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request internal To filter out internal PRs and issues
Projects
None yet
Development

No branches or pull requests

3 participants