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

Backup using script results in error with Traceback #1

Closed jberanek closed 9 years ago

jberanek commented 9 years ago

Cloned the repository and attempted a backup operation, results below:

./isi_tools.py -t exports -u johnb -pw "MYPASSWORD" -n smartconnect.isilon.example.com backup
Traceback (most recent call last):
  File "./isi_tools.py", line 110, in <module>
    main()
  File "./isi_tools.py", line 104, in main
    api = isilon.API(args.clustername, args.user, args.password)
  File "/home/AD/johnb/Isilon_Tools/isilon/__init__.py", line 29, in __init__
    self.session = session.Session(clustername, username, password, services)
  File "/home/AD/johnb/Isilon_Tools/isilon/session.py", line 35, in __init__
    self.log.addHandler(logging.NullHandler())
AttributeError: 'module' object has no attribute 'NullHandler'
obergt commented 9 years ago

which version of python do you have installed? which version of OneFS do you have installed? the script was checked on OneFS 7.1. Also, Try to run the script from an external client that has access to the isilon.

Thanks, Tamir Obergot

On Mon, Mar 23, 2015 at 1:35 PM, jberanek notifications@github.com wrote:

Cloned the repository and attempted a backup operation, results below:

./isi_tools.py -t exports -u johnb -pw "MYPASSWORD" -n smartconnect.isilon.example.com backup Traceback (most recent call last): File "./isi_tools.py", line 110, in main() File "./isi_tools.py", line 104, in main api = isilon.API(args.clustername, args.user, args.password) File "/home/AD/johnb/Isilon_Tools/isilon/init.py", line 29, in init self.session = session.Session(clustername, username, password, services) File "/home/AD/johnb/Isilon_Tools/isilon/session.py", line 35, in init self.log.addHandler(logging.NullHandler()) AttributeError: 'module' object has no attribute 'NullHandler'

— Reply to this email directly or view it on GitHub https://github.com/obergt/Isilon_Tools/issues/1.

jberanek commented 9 years ago

Python 2.6.6, attempted to backup config from a 7.1.1 cluster.

Script was run on an external client, not the Isilon cluster itself.

jberanek commented 9 years ago

Just tested with the non-standard Python 2.7.5 that my CentOS 6 client also has installed, and the script does not error out and appears to provide a valid backup file.

obergt commented 9 years ago

Great! I'm closing the issue but, I will still look into it and update with the conclusion.