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

Handle properly missing area files subdir #6

Open
rezib opened this issue Feb 28, 2019 · 0 comments
Open

Handle properly missing area files subdir #6

rezib opened this issue Feb 28, 2019 · 0 comments

Comments

@rezib
Copy link
Member

rezib commented Feb 28, 2019

hpc-config-push fails when an area subdir is missing:

root@<node>:~/ccnhpc/rpalancher# hpc-config-push
[hiera-eyaml-core] Loaded config from /root/.eyaml/config.yaml
Traceback (most recent call last):
  File "/usr/sbin/hpc-config-push", line 1169, in <module>
    main()
  File "/usr/sbin/hpc-config-push", line 1162, in main
    copy_reenc_private_files()
  File "/usr/sbin/hpc-config-push", line 564, in copy_reenc_private_files
    private_files_area_build_dir)
  File "/usr/sbin/hpc-config-push", line 72, in conf_copy
    shutil.copy2(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.5/shutil.py", line 257, in copy2
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.5/shutil.py", line 120, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: 'hpc-privatedata/files/<cluster>/user'

It must either ignore the missing dir or print a meaningful error.

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