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

Rancher 2.2? #10

Open
stenwt opened this issue Apr 1, 2019 · 0 comments
Open

Rancher 2.2? #10

stenwt opened this issue Apr 1, 2019 · 0 comments

Comments

@stenwt
Copy link

stenwt commented Apr 1, 2019

I have a process I ran successfully against Rancher 2.1. After upgrading to Rancher 2.2, I get this failure:

Traceback (most recent call last):
  File "./rancher_project_creator.py", line 79, in <module>
    run_project_loop()
  File "./rancher_project_creator.py", line 69, in run_project_loop
    api = rancher_api()
  File "./rancher_project_creator.py", line 34, in rancher_api
    verify=os.getenv("RANCHER_VERIFY")
  File "/venv/rancher-client/lib/python3.6/site-packages/rancher.py", line 240, in __init__
    self._load_schemas()
  File "/venv/rancher-client/lib/python3.6/site-packages/rancher.py", line 359, in _load_schemas
    response = self._get_response(self._url)
  File "/venv/rancher-client/lib/python3.6/site-packages/rancher.py", line 310, in _get_response
    self._error(r.text)
  File "/venv/rancher-client/lib/python3.6/site-packages/rancher.py", line 299, in _error
    raise ApiError(self._unmarshall(text))
rancher.ApiError: (ApiError(...), 'API Error')

The code that fails is:

    rancher = rancher.Client(
        url=os.getenv("RANCHER_URL"),
        access_key=os.getenv("RANCHER_ACCESS_KEY"),
        secret_key=os.getenv("RANCHER_SECRET_KEY"),
        verify=os.getenv("RANCHER_VERIFY")
    )
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

No branches or pull requests

1 participant