Project

General

Profile

Bug #10521

Error in migration (ldap backup not found because ending by .gz)

Added by François ARMAND 8 months ago. Updated 7 months ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Target version (plugin):
Severity:
User visibility:
Effort required:
Priority:
0

Description

My migration from Rudder 4.0 to 4.1 didn't work because slapd was not correctly migrated.

It was so because to trigger the migration, the migration-script look in backup for:

find "/var/rudder/ldap/backup/" -regextype sed -regex "^/var/rudder/ldap/backup/openldap-data-pre-upgrade-\([0-9]\{14\}\)\.ldif$" 

But my backup folder contains:

root@server:/home/vagrant# ls -la /var/rudder/ldap/backup/
total 116
drwxr-xr-x 2 root root  4096 Mar 28 14:56 .
drwxr-xr-x 4 root root  4096 Mar 28 11:08 ..
-rw-r--r-- 1 root root  3745 Mar 28 11:09 openldap-data-20170328110930.ldif.gz
-rw-r--r-- 1 root root  3745 Mar 28 11:09 openldap-data-20170328110933.ldif.gz
-rw-r--r-- 1 root root 47710 Mar 28 14:53 openldap-data-20170328145342.ldif.gz
-rw-r--r-- 1 root root 47120 Mar 28 14:41 openldap-data-pre-upgrade-20170328144136.ldif.gz
-rw-r--r-- 1 root root    13 Mar 28 14:41 openldap-data-pre-upgrade-20170328144136.libdb-version

Only .gz files.
This certainly happened because the install was awaiting for an interactive output for some time, and the agent run and zipped the content of the backup directory.


Subtasks

Bug #10522: Cannot install Rudder 4.1 due to merge error in parent ticketReleasedBenoît PECCATTE

Bug #10523: Cannot install Rudder 4.1 due to merge error in parent ticket (rpm)ReleasedBenoît PECCATTE

Associated revisions

Revision 18cb406f
Added by Benoît PECCATTE 8 months ago

Fixes #10521: Error in migration (ldap backup not found because ending by .gz)

History

#1 Updated by Benoît PECCATTE 8 months ago

  • Status changed from New to In progress
  • Assignee set to Benoît PECCATTE

#2 Updated by Benoît PECCATTE 8 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Benoît PECCATTE to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1323

#3 Updated by Benoît PECCATTE 8 months ago

  • Status changed from Pending technical review to Pending release

#4 Updated by Vincent MEMBRÉ 7 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.19, 4.0.4 and 4.1.1 which were released today.

Also available in: Atom PDF