Bug #3374

Samba recycle bin migration

Added by Filippo Carletti over 5 years ago. Updated over 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-samba
Target version:v6.7
Security class: Resolution:
Affected version:v6.7 NEEDINFO:No

Description

After migration from smeserver, all ibays have the recycle bin set to disabled status.
Old prop:
RecycleBin=enabled
After migration:
SmbRecycleBinStatus=disabled

Associated revisions

Revision 4a6f07a8
Added by Giacomo Sanchietti over 5 years ago

Migration: handle RecycleBin prop. Refs #3374

Revision fdaaa652
Added by Giacomo Sanchietti over 5 years ago

Migration: handle RecycleBin prop. Refs #3374

History

#1 Updated by Giacomo Sanchietti over 5 years ago

  • Tracker changed from Enhancement to Bug
  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Affected version set to v6.7

Steps to reproduce

1. Explode an old backup with at least two configured ibays, one with the recycle bin enabled and one with recycle bin disabled:

ibay1=ibay|CgiBin|disabled|Gid|5004|Group|shared|Name|ibay1|PasswordSet|no|PublicAccess|none|Uid|5004|UserAccess|wr-admin-rd-group
ibay2=ibay|CgiBin|disabled|Gid|5004|Group|shared|Name|ibay2|PasswordSet|no|PublicAccess|none|Uid|5004|UserAccess|wr-admin-rd-group|RecycleBin|enabled

2. Start the migration:
signal-event migration-import /root/migrate

#2 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
In nethserver-testing:
  • nethserver-samba-1.5.4-1.1.g4a6f07a.ns6.noarch.rpm
Test case
  • Check the bug is not reproducible

#5 Updated by Luca Gasparini over 5 years ago

  • Assignee set to Luca Gasparini

#6 Updated by Luca Gasparini over 5 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

From smeserver:

[root@smeserver ~]# db accounts show ibay1
ibay1=ibay
    CgiBin=disabled
    Gid=5000
    Group=shared
    Name=ibay1
    PasswordSet=no
    PublicAccess=none
    RecycleBin=enabled
    Uid=5000
    UserAccess=wr-group-rd-group

[root@smeserver ~]# db accounts show ibay2
ibay2=ibay
    CgiBin=disabled
    Gid=5001
    Group=shared
    Name=ibay2
    PasswordSet=no
    PublicAccess=none
    Uid=5001
    UserAccess=wr-group-rd-group

Backup copied from smeserver to Nethserver and executed migration.
After migration on Nethserver:

# db accounts show ibay1 | grep SmbRecycleBinStatus
SmbRecycleBinStatus=disabled

# db accounts show ibay2 | grep SmbRecycleBinStatus
SmbRecycleBinStatus=disabled

Install package on Nethserver:

# rpm -q nethserver-samba
nethserver-samba-1.5.4-1.ns6.noarch

yum --enablerepo=nethserver-testing clean all
yum --enablerepo=nethserver-testing install nethserver-samba

---> Package nethserver-samba.noarch 0:1.5.4-1.ns6 will be updated
---> Package nethserver-samba.noarch 0:1.5.4-1.1.g4a6f07a.ns6 will be an update

# rpm -q nethserver-samba
nethserver-samba-1.5.4-1.1.g4a6f07a.ns6.noarch

Run new migration on Nethserver.
After migration on Nethserver:

# db accounts show ibay1 | grep SmbRecycleBinStatus
SmbRecycleBinStatus=enabled

# db accounts show ibay2 | grep SmbRecycleBinStatus
SmbRecycleBinStatus=disabled

#7 Updated by Giacomo Sanchietti over 5 years ago

  • Assignee deleted (Luca Gasparini)

#8 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in
  • 6.7/nethserver-updates: nethserver-samba-1.5.5-1.ns6.noarch.rpm
  • 7.2/nethserver-testing: nethserver-samba-1.5.5-1.22.g7754607.ns7.noarch.rpm

Also available in: Atom PDF