VERSION: 220.127.116.11507201402GIT37b1af9, API_VERSION: 2.146
$ ipa vault-add SymmetricVault123 --desc="Symmetric vault" --type=symmetric --password-file=mypassword
ipa: ERROR: non-public: IOError: [Errno 2] No such file or directory: u'mypassword'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 129, in execute
result = self.Command[_name](*args, **options)
File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 443, in __call__
ret = self.run(*args, **options)
File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 1109, in run
return self.forward(*args, **options)
File "/usr/lib/python2.7/site-packages/ipalib/plugins/vault.py", line 594, in forward
with open(password_file, 'rb') as f:
IOError: [Errno 2] No such file or directory: u'mypassword'
ipa: ERROR: an internal error has occurred
Linked to Bugzilla bug: https://bugzilla.redhat.com/show_bug.cgi?id=1204501 (Red Hat Enterprise Linux 7)
I have posted [PATCH 021] Validate vault's file parameters. It addresses this bug as well as a couple of similar issues in the vault plugin.
Metadata Update from @alich:
- Issue assigned to cheimes
- Issue set to the milestone: FreeIPA 4.2.1
to comment on this ticket.