HOSTDEV-1136 now show a more friendly message if source or target path don't exist

================================================================================

Host Infrastructure / HOSTDEV-1136
pysync: show nice message when folders don't exist

Type:              Bug                               Status:        Open                       Assignee: Tal Yalon
Priority:          Minor                             Resolution:    Unresolved                 Reporter: Arnon Yaari
Affects Version/s:                                   Fix Version/s: 0.34
Components: projector                                                                          Created: 2013-08-15 18:15
Labels:                                                                                        Updated: 2013-08-22 17:21

Issue Links:

Sub-Tasks:

Description:
{noformat}
(work)  mainline git:(develop) projector repository sync root m-izbox-arnony
INFO:infi.projector.plugins.builtins.repository:pysync --python --skip-source=.cache --skip-source=.git --skip-source=.gitignore --skip-source=.installed.cfg --skip-source=.projector --skip-source=MANIFEST.in --skip-source=bin --skip-source=bootstrap.py --skip-source=develop-eggs --skip-source=eggs --skip-source=parts --skip-source=setup.py --skip-source=src/*egg-info --skip-source=src/**/version.py --skip-source=buildout.cfg --skip-source=setup.in --skip-target=.cache --skip-target=.git --skip-target=.gitignore --skip-target=.installed.cfg --skip-target=.projector --skip-target=MANIFEST.in --skip-target=bin --skip-target=bootstrap.py --skip-target=develop-eggs --skip-target=eggs --skip-target=parts --skip-target=setup.py --skip-target=src/*egg-info --skip-target=src/**/version.py --skip-target=buildout.cfg --skip-target=setup.in root@m-izbox-arnony:/opt/infinidat/izbox
INFO:paramiko.transport:Connected (version 2.0, client OpenSSH_5.3)
INFO:paramiko.transport:Authentication (publickey) successful!
INFO:paramiko.transport:Secsh channel 1 opened.
INFO:paramiko.transport.sftp:[chan 1] Opened sftp connection (server version 3)
Traceback (most recent call last):
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/bin/projector", line 9, in <module>
    load_entry_point('infi.projector==0.6.6', 'console_scripts', 'projector')()
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/lib/python2.7/site-packages/infi.projector-0.6.6-py2.7.egg/infi/projector/scripts/init.py", line 11, in projector
    parse_commandline_arguments(argv)
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/lib/python2.7/site-packages/infi.projector-0.6.6-py2.7.egg/infi/projector/commandline_parser/init.py", line 127, in parse_commandline_arguments
    selected_plugin.parse_commandline_arguments(arguments)
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/lib/python2.7/site-packages/infi.projector-0.6.6-py2.7.egg/infi/projector/plugins/builtins/repository/init.py", line 67, in parse_commandline_arguments
    method()
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/lib/python2.7/site-packages/infi.projector-0.6.6-py2.7.egg/infi/projector/plugins/builtins/repository/init.py", line 310, in sync
    return main(args)
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/lib/python2.7/site-packages/infi.pysync-0.0.4-py2.7.egg/infi/pysync/init.py", line 309, in main
    remote_path = sftp.remote_path()
  File "/Users/arnony/.pythonbrew/venvs/Python-default/work/lib/python2.7/site-packages/infi.pysync-0.0.4-py2.7.egg/infi/pysync/sftp.py", line 59, in remote_path
    return self.normalize(os.path.normpath(path))
  File "build/bdist.macosx-10.8-x86_64/egg/paramiko/sftp_client.py", line 492, in normalize
  File "build/bdist.macosx-10.8-x86_64/egg/paramiko/sftp_client.py", line 689, in _request
  File "build/bdist.macosx-10.8-x86_64/egg/paramiko/sftp_client.py", line 736, in _read_response
  File "build/bdist.macosx-10.8-x86_64/egg/paramiko/sftp_client.py", line 762, in _convert_status
IOError: [Errno 2] No such file
{noformat}

Comments:
HOSTDEV-1137

- added -i/--identity support to read a host key file supplied by command line
- nicer error when trying to sync source path that's not a directory

================================================================================

Host Infrastructure / HOSTDEV-1137
add -i to pysync and projector repository sync

Type:              New Feature                       Status:        Open                       Assignee: Tal Yalon
Priority:          Minor                             Resolution:    Unresolved                 Reporter: Arnon Yaari
Affects Version/s:                                   Fix Version/s: 0.34
Components: projector                                                                          Created: 2013-08-15 18:19
Labels:                                                                                        Updated: 2013-08-22 17:21

Issue Links:

Sub-Tasks:

Description:
None

Comments:
Finished release v0.0.8.