Bug #2667

Backup data: can't install package if backup is in progress

Added by Giacomo Sanchietti over 7 years ago. Updated over 7 years ago.

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

100%

Category:nethserver-backup-data
Target version:v6.5-rc1
Security class: Resolution:
Affected version:v6.5-beta3 NEEDINFO:No

Description

If a backup is in progress it's not possible to update nethserver-backup-data rpm due to a cpio error.
The error occurs when /mnt/backup is mounted because it's part of nethserver-backup-data package.

Solution
Remove /mnt/backup directory from nethserver-backup-data rpm and create the directory inside the backup script.

Associated revisions

Revision cc56716a
Added by Giacomo Sanchietti over 7 years ago

Mount directory: create dir when needed. Refs #2667

History

#1 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.5-rc1
  • % Done changed from 0 to 20
  • Affected version set to v6.5-beta3

#2 Updated by Giacomo Sanchietti over 7 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 7 years ago

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

#4 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Packages in nethserver-testing:
  • nethserver-backup-data-1.0.8-4.0gitcc56716a.ns6.noarch.rpm
Test case 1
  • Check /mnt/backup (if exists) is not owned by rpm
    rpm -qf /mnt/backup
    
Test case 2
  • Set a custom mount directory
    config setprop backup-data Mount /tmp/mycustomdir
    
  • Execute the backup and check the directory is correctly created
    backup-data
    
Test case 3
  • Install the old package
  • Configure the backup and mount the backup directory
  • Try to update to the new package
  • Upgrade must be fine
  • If an error about removing /mnt/backup occurs, it can be safely ignored (it should not happen in production)

#5 Updated by Alessio Fattorini over 7 years ago

  • Assignee set to Alessio Fattorini

#6 Updated by Alessio Fattorini over 7 years ago

Packages in nethserver-testing:
  • nethserver-backup-data-1.0.8-4.0gitcc56716a.ns6.noarch.rpm

Installed.

Test case 1

  • Check /mnt/backup (if exists) is not owned by rpm
# rpm -qf /mnt/backup
errore: file /mnt/backup: No such file or directory

Test case 2

  • Set a custom mount directory
    [...]
  • Execute the backup and check the directory is correctly created
    [...]
# config setprop backup-data Mount /tmp/mycustomdir
# backup-data
#
# file /tmp/mycustomdir/
/tmp/mycustomdir/: directory

#7 Updated by Alessio Fattorini over 7 years ago

Test case 3

  • Install the old package
Installed:
  nethserver-backup-data.noarch 0:1.0.8-1.ns6
  • Configure the backup and mount the backup directory
  1. /etc/e-smith/events/actions/mount-nfs /mnt/backup #
  • Try to update to the new package
  • Upgrade must be fine
  • If an error about removing /mnt/backup occurs, it can be safely ignored (it should not happen in production)
Updated:
  nethserver-backup-data.noarch 0:1.0.8-4.0gitcc56716a.ns6

No error

VERIFIED

#8 Updated by Alessio Fattorini over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Alessio Fattorini)
  • % Done changed from 70 to 90

#9 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

#10 Updated by Davide Principi over 7 years ago

In nethserver-updates:
nethserver-release-6.5-4.ns6.rc1.noarch.rpm
nethserver-devbox-1.4.0-1.ns6.noarch.rpm
nethserver-backup-data-1.0.9-1.ns6.noarch.rpm
nethserver-base-2.1.0-1.ns6.noarch.rpm
nethserver-directory-2.0.1-1.ns6.noarch.rpm
nethserver-firewall-base-1.1.0-1.ns6.noarch.rpm
nethserver-hosts-1.0.7-1.ns6.noarch.rpm
nethserver-httpd-2.3.0-1.ns6.noarch.rpm
nethserver-httpd-admin-1.2.1-1.ns6.noarch.rpm
nethserver-hylafax-1.0.5-1.ns6.noarch.rpm
nethserver-ibays-2.0.3-1.ns6.noarch.rpm
nethserver-lib-2.0.1-1.ns6.noarch.rpm
nethserver-mail-server-1.6.1-1.ns6.noarch.rpm
nethserver-nethgui-1.4.0-1.ns6.noarch.rpm
nethserver-ntopng-1.1.2-1.ns6.noarch.rpm
nethserver-nut-1.0.7-1.ns6.noarch.rpm
nethserver-openssh-1.0.5-1.ns6.noarch.rpm
nethserver-roundcubemail-0.0.2-1.ns6.noarch.rpm
nethserver-samba-1.4.2-1.ns6.noarch.rpm
nethserver-shorewall-1.0.4-1.ns6.noarch.rpm
nethserver-sogo-thunderbird-1.1.1-1.ns6.noarch.rpm
nethserver-vpn-1.1.2-1.ns6.noarch.rpm
sogo-frontends-1.3.0-1.ns6.noarch.rpm

Also available in: Atom PDF