Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1442681

Summary: ipa-backup --logs raises error
Product: Red Hat Enterprise Linux 7 Reporter: Abhijeet Kasurde <akasurde>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED WORKSFORME QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: fbarreto, ksiddiqu, pvoborni, rcritten, tscherf
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-02 06:42:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
console.log
none
ipa-backup.log none

Description Abhijeet Kasurde 2017-04-17 06:10:42 UTC
Description of problem:

[root@ipaserver01 ~]# ipa-backup --logs
Preparing backup on ipaserver01.testrelm.test
Stopping IPA services
Backing up ipaca in TESTRELM-TEST to LDIF
[Errno 2] No such file or directory: u'/var/lib/dirsrv/slapd-TESTRELM-TEST/ldif/TESTRELM-TEST-ipaca.ldif'

Version-Release number of selected component (if applicable):
# rpm -qa ipa-server 389-ds-base selinux-policy
389-ds-base-1.3.6.1-5.el7.x86_64
selinux-policy-3.13.1-141.el7.noarch
ipa-server-4.5.0-6.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Install IPA server on fresh machine
2. ipa-backup --logs

Actual results:
Fails with above error

Expected results:
Backup should be successful.

Comment 3 Abhijeet Kasurde 2017-04-17 06:14:29 UTC
Created attachment 1271978 [details]
console.log

Comment 4 Abhijeet Kasurde 2017-04-17 06:15:16 UTC
Created attachment 1271979 [details]
ipa-backup.log

Comment 5 Abhijeet Kasurde 2017-04-17 06:50:03 UTC
ipa-backup without `--logs` is also not working. Marking this as TestBlocker as this is basic requirement for test run.

Comment 6 Abhijeet Kasurde 2017-04-18 06:49:40 UTC
Removing testblocker as I am able to proceed using latest RHEL and IPA build.

Comment 7 Petr Vobornik 2017-04-20 16:47:33 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/6887

Comment 8 fbarreto 2017-04-28 15:45:52 UTC
I was not able to reproduce the bug. I tried with ipa-server-4.5.0-6.el7.x86_64 and ipa-server-4.5.0-8.el7.x86_64 in RHEL 7.4.

Version of components:
# rpm -qa ipa-server 389-ds-base selinux-policy
389-ds-base-1.3.6.1-9.el7.x86_64
selinux-policy-3.13.1-145.el7.noarch
ipa-server-4.5.0-6.el7.x86_64

[root@vm-188 dirsrv]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.4 Beta (Maipo)

Output of the ipa-backup command:


With ipa-server-4.5.0-8.el7.x86_64
[root@vm-188 tmp]# ipa-backup --logs
Preparing backup on vm-188.abc.idm.lab.eng.brq.redhat.com
Stopping IPA services
Backing up ipaca in DOM-188-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM to LDIF
Backing up userRoot in DOM-188-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM to LDIF
Backing up DOM-188-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM
Backing up files
Backed up to /var/lib/ipa/backup/ipa-full-2017-04-28-17-05-19
Starting IPA service
The ipa-backup command was successful


With ipa-server-4.5.0-6.el7.x86_64
[root@vm-113 rpms_ipa]# ipa-backup --logs
Preparing backup on vm-113.abc.idm.lab.eng.brq.redhat.com
Stopping IPA services
Backing up ipaca in DOM-113-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM to LDIF
Backing up userRoot in DOM-113-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM to LDIF
Backing up DOM-113-ABC-IDM-LAB-ENG-BRQ-REDHAT-COM
Backing up files
Backed up to /var/lib/ipa/backup/ipa-full-2017-04-28-17-42-32
Starting IPA service
The ipa-backup command was successful


Am I missing something?

Comment 9 Abhijeet Kasurde 2017-05-02 06:42:20 UTC
[root@ipaserver01 ~]# ipa-backup --logs
Preparing backup on ipaserver01.testrelm.test
Stopping IPA services
Backing up ipaca in TESTRELM-TEST to LDIF
Backing up userRoot in TESTRELM-TEST to LDIF
Backing up TESTRELM-TEST
Backing up files
Backed up to /var/lib/ipa/backup/ipa-full-2017-05-02-02-10-48
Starting IPA service
The ipa-backup command was successful

I am unable to reproduce this issue on ipa-server-4.5.0-9.el7.x86_64

Closing as WORKSFORME, will re-open if required.

Thanks for your help.