#7647 Error message should be more useful while ipa-backup fails for insufficient space
Closed: fixed a month ago by fcami. Opened a year ago by rcritten.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1581583

Description of problem:
Default location for backup files is /var/lib/ipa/backup/, if it runs
out of memory backup fails. But the error message on
console is confusing. When you check /var/log/ipabackup.log, you come to know
that there is no memory left.

Version-Release number of selected component (if applicable):
ipa-server-4.5.4-10.el7_5.2.x86_64

How reproducible:
always

Steps to Reproduce:
1. install ipa master

2. $ cd /var/lib/ipa/backup and generate some file to fill the memory like
$ fallocate -l 10G temp.img

3. run ipa-backup

Actual results:
Errno 2] No such file or directory:
'/var/lib/dirsrv/slapd-TESTRELM-TEST/ldif/TESTRELM-TEST-ipaca.ldif'
The ipa-backup command failed. See /var/log/ipabackup.log for more
information

Expected results:
Some useful message regarding insufficient memory.

Additional info:
There is no file at the location for which it is failing when ipa
installed on fresh system:

root@master backup]# ll /var/lib/dirsrv/slapd-TESTRELM-TEST/ldif/
total 0

Metadata Update from @rcritten:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1581583

a year ago

Metadata Update from @fcami:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3112

2 months ago

master:

  • e6415ec ipa-backup: better error message if ENOSPC

ipa-4-7:

  • d6492fa ipa-backup: better error message if ENOSPC

Metadata Update from @fcami:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

2 months ago

Metadata Update from @fcami:
- Custom field affects_doc adjusted to on
- Issue status updated to: Open (was: Closed)

a month ago

Re-opening for the ipa-4-6 backport.

ipa-4-6:

  • e665675 ipa-backup: better error message if ENOSPC

Metadata Update from @fcami:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

a month ago

Login to comment on this ticket.

Metadata