obergt / Isilon_Tools

The script utilizing Isilon Platform API interface to back up shares, exports and quotas for use cases such as: DRP and backup necessaryconfiguration for DR.
24 stars 11 forks source link

Max retries exceeded with url #6

Open eburgueno opened 7 years ago

eburgueno commented 7 years ago

I am getting this error when trying to perform a backup, and I can't figure out why:

ERROR:logger_agent:Max retries exceeded with url.
Traceback (most recent call last):
  File "./isi_tools.py", line 147, in <module>
    main()
  File "./isi_tools.py", line 141, in main
    backup(api, args)
  File "./isi_tools.py", line 47, in backup
    objects = api.platform.get_object(item)
  File "./isilon/platform.py", line 38, in get_object
    r = self.api_call("GET", self.platform_url + "/zones")
  File "./isilon/session.py", line 75, in api_call
    self.connect()
  File "./isilon/session.py", line 124, in connect
    raise Exception("Max retries exceeded with url.")
Exception: Max retries exceeded with url.

Running in verbose mode doesn't really help much:

INFO 2017-03-14 12:36:33,223 --> ------------------------------------- Isilon Tools -------------------------------------
INFO 2017-03-14 12:36:33,226 --> Backup operation started on Isilon...
ERROR 2017-03-14 12:36:33,227 --> Path not found, opening the backup file in current directory
INFO 2017-03-14 12:36:33,227 --> Opening backup file ./shares_14_3_12_36.bck.
ERROR 2017-03-14 12:36:33,256 --> Max retries exceeded with url.

I am using python 2.7.5, requests 2.13.0 and my cluster is on OneFS 7.2.0.2

How could I debug the requests session? the POST in line 121 seems to be well formed:

self.session_url=https://<IP>:8080/session/1/session
data={"username": "root", "services": ["platform", "namespace"], "password": <pwd>}