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

kubernetes config is throwing config exception #1273

Closed
harshad16 opened this issue Jul 27, 2022 · 6 comments · Fixed by #1279
Closed

kubernetes config is throwing config exception #1273

harshad16 opened this issue Jul 27, 2022 · 6 comments · Fixed by #1279
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. thoth/potential-observation This is a potential observation we need to learn from! triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@harshad16
Copy link
Member

Describe the bug
Version: v0.36.3

Observing issue related to Kubernetes config

  File \"/opt/app-root/src/thoth/user_api/api_v1.py\", line 96, in <module>
    _OPENSHIFT = OpenShift()
  File \"/opt/app-root/lib64/python3.8/site-packages/thoth/common/openshift.py\", line 122, in __init__
    k8s_client = config.new_client_from_config()
  File \"/opt/app-root/lib64/python3.8/site-packages/kubernetes/config/kube_config.py\", line 846, in new_client_from_config
    load_kube_config(config_file=config_file, context=context,
  File \"/opt/app-root/lib64/python3.8/site-packages/kubernetes/config/kube_config.py\", line 792, in load_kube_config
    loader = _get_kube_config_loader(
  File \"/opt/app-root/lib64/python3.8/site-packages/kubernetes/config/kube_config.py\", line 751, in _get_kube_config_loader
    raise ConfigException(
kubernetes.config.config_exception.ConfigException: Invalid kube-config file. No configuration found.

To Reproduce
Steps to reproduce the behavior:

  1. Execute user-api
  2. See error
@harshad16 harshad16 added the kind/bug Categorizes issue or PR as related to a bug. label Jul 27, 2022
@harshad16
Copy link
Member Author

/triage accepted
/priority critical-urgent
/sig devsecops

@sesheta sesheta added triage/accepted Indicates an issue or PR is ready to be actively worked on. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. labels Jul 27, 2022
@harshad16
Copy link
Member Author

@harshad16
Copy link
Member Author

similar to: thoth-station/amun-api#618

@Gregory-Pereira
Copy link
Member

/cc @Gregory-Pereira

@harshad16
Copy link
Member Author

harshad16 commented Aug 15, 2022

Tried to figure out the issue.
The openshift 0.12.1 and kubernetes 12.0.1 version is having issue and throwing

Max retries exceeded with url: /version (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1ebcb07ca0>: Failed to establish a new connection: [Errno 111] Connection refused')

Based on the filled issues:
kubernetes-client/python#1333

It seems currently downgrading the only option.

kubernetes==11.0.0
openshift==0.11.0

@harshad16
Copy link
Member Author

Unfortunately, this downgrade would cause the reopening of the issue.
#1251

@goern goern added the thoth/potential-observation This is a potential observation we need to learn from! label Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. sig/devsecops Categorizes an issue or PR as relevant to SIG DevSecOps. thoth/potential-observation This is a potential observation we need to learn from! triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants