RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1254689 - Storing big file as a secret in vault raises traceback
Summary: Storing big file as a secret in vault raises traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-18 16:29 UTC by Petr Vobornik
Modified: 2015-11-19 12:05 UTC (History)
3 users (show)

Fixed In Version: ipa-4.2.0-8.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 12:05:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2362 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2015-11-19 10:40:46 UTC

Description Petr Vobornik 2015-08-18 16:29:27 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/freeipa/ticket/5231

VERSION: 4.2.90.201508141119GITfe91c37, API_VERSION: 2.148

{{{
-sh-4.3$ dd if=/dev/zero of=huge-file bs=1024k count=100; ipa vault-archive SharedG3 --shared --in=huge-file; rm -rf huge-file
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.219098 s, 479 MB/s
ipa: ERROR: non-public: MemoryError: 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ipalib/backend.py", line 130, 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 1091, in forward
    return self.api.Command.vault_archive_internal(*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 761, in run
    return self.forward(*args, **options)
  File "/usr/lib/python2.7/site-packages/ipalib/frontend.py", line 782, in forward
    return self.Backend.rpcclient.forward(self.name, *args, **kw)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 950, in forward
    return self._call_command(command, params)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 927, in _call_command
    return command(*params)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 1078, in _call
    return self.__request(name, args)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 1047, in __request
    verbose=self.__verbose >= 3,
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1280, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 614, in single_request
    self.send_content(h, request_body)
  File "/usr/lib/python2.7/site-packages/ipalib/rpc.py", line 425, in send_content
    connection.endheaders(request_body)
  File "/usr/lib/python2.7/site-packages/ipapython/nsslib.py", line 291, in endheaders
    httplib.HTTPConnection.endheaders(self, message)
  File "/usr/lib64/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python2.7/httplib.py", line 891, in _send_output
    msg += message_body
MemoryError
ipa: ERROR: an internal error has occurred
}}}

Comment 1 Petr Vobornik 2015-08-26 14:17:33 UTC
Fixed upstream
master:
https://fedorahosted.org/freeipa/changeset/02ab34c60b5e624ef0653a473316633a5618b07c
ipa-4-2:
https://fedorahosted.org/freeipa/changeset/9fc82bc66992eaa5daeed80e366e10986a8583d8

Maximum file size for data in vault-archive command was set to 1MB.

Comment 3 Scott Poore 2015-09-02 22:56:27 UTC
Verified.

Version ::

ipa-server-4.2.0-8.el7.x86_64

Results ::

[root@master ~]# ipa vault-add myvault_shared --shared --type=symmetric --password=Secret123
----------------------------
Added vault "myvault_shared"
----------------------------
  Vault name: myvault_shared
  Type: symmetric
  Salt: uSV/PLryw6ezPOoS3F9ghw==
  Owner users: admin
  Shared vault: True

[root@master ~]# dd if=/dev/zero of=huge-file bs=1024k count=100
100+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 0.0987493 s, 1.1 GB/s

[root@master ~]# ls -lh huge-file 
-rw-r--r--. 1 root root 100M Sep  2 17:51 huge-file

[root@master ~]# ipa vault-archive myvault_shared --shared --password=Secret123 --in=huge-file 
ipa: ERROR: invalid 'in': Size of data exceeds the limit. Current vault data size limit is 1048576 B

[root@master ~]# ipa vault-archive myvault_shared --shared --password=Secret123 --in=/usr/share/dict/linux.words 
ipa: ERROR: invalid 'in': Size of data exceeds the limit. Current vault data size limit is 1048576 B

Comment 4 errata-xmlrpc 2015-11-19 12:05:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2362.html


Note You need to log in before you can comment on or make changes to this bug.