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

Deprecation checker blocks deploy on Kubernetes 1.9 #102

Closed
seleznev opened this issue Jul 26, 2019 · 0 comments · Fixed by #103
Closed

Deprecation checker blocks deploy on Kubernetes 1.9 #102

seleznev opened this issue Jul 26, 2019 · 0 comments · Fixed by #103
Labels
bug Something isn't working P0 Need to fix ASAP

Comments

@seleznev
Copy link
Collaborator

I tried to deploy into Kubernetes 1.9 cluster and get following error:

$ k8s-handle deploy --use-kubeconfig --section deploy --sync-mode
2019-07-25 11:19:13 INFO:k8s_handle.templating:Trying to generate file from template "configmap.yaml.j2" in "/tmp/k8s-handle"
2019-07-25 11:19:13 INFO:k8s_handle.templating:File "/tmp/k8s-handle/configmap.yaml" successfully generated
2019-07-25 11:19:13 INFO:k8s_handle.templating:Trying to generate file from template "deployment.yaml.j2" in "/tmp/k8s-handle"
2019-07-25 11:19:13 INFO:k8s_handle.templating:File "/tmp/k8s-handle/deployment.yaml" successfully generated
2019-07-25 11:19:13 INFO:k8s_handle.templating:Trying to generate file from template "service.yaml.j2" in "/tmp/k8s-handle"
2019-07-25 11:19:13 INFO:k8s_handle.templating:File "/tmp/k8s-handle/service.yaml" successfully generated
2019-07-25 11:19:14 INFO:k8s_handle:Default namespace "io"
/usr/local/lib/python3.6/site-packages/urllib3-1.25.3-py3.6.egg/urllib3/connectionpool.py:851: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning)
Traceback (most recent call last):
  File "/usr/local/bin/k8s-handle", line 11, in <module>
    load_entry_point('k8s-handle==0.0.0', 'console_scripts', 'k8s-handle')()
  File "/usr/local/lib/python3.6/site-packages/k8s_handle-0.0.0-py3.6.egg/k8s_handle/__init__.py", line 219, in main
    args.func(args_dict)
  File "/usr/local/lib/python3.6/site-packages/k8s_handle-0.0.0-py3.6.egg/k8s_handle/__init__.py", line 27, in handler_deploy
    _handler_deploy_destroy(args, COMMAND_DEPLOY)
  File "/usr/local/lib/python3.6/site-packages/k8s_handle-0.0.0-py3.6.egg/k8s_handle/__init__.py", line 68, in _handler_deploy_destroy
    args.get('show_logs')
  File "/usr/local/lib/python3.6/site-packages/k8s_handle-0.0.0-py3.6.egg/k8s_handle/__init__.py", line 107, in _handler_provision
    d = ApiDeprecationChecker(client.VersionApi().get_code().git_version[1:])
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/apis/version_api.py", line 55, in get_code
    (data) = self.get_code_with_http_info(**kwargs)
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/apis/version_api.py", line 124, in get_code_with_http_info
    collection_formats=collection_formats)
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/api_client.py", line 334, in call_api
    _return_http_data_only, collection_formats, _preload_content, _request_timeout)
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/api_client.py", line 168, in __call_api
    _request_timeout=_request_timeout)
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/api_client.py", line 355, in request
    headers=headers)
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/rest.py", line 231, in GET
    query_params=query_params)
  File "/usr/local/lib/python3.6/site-packages/kubernetes-9.0.0-py3.6.egg/kubernetes/client/rest.py", line 222, in request
    raise ApiException(http_resp=r)
kubernetes.client.rest.ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Thu, 25 Jul 2019 11:19:14 GMT', 'Content-Length': '186'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"forbidden: User \"2gis-test\" cannot get path \"/version/\"","reason":"Forbidden","details":{},"code":403}

Looks like it should be warning, not fatal error. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Need to fix ASAP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant