Enhancement #3235
Configuration backup: support restore of installed RPM
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-backup-config | |||
Target version: | v6.6 | |||
Resolution: | NEEDINFO: | No |
Description
In case of disaster recovery, the configuration backup should support the restore of previously installed modules.
The re-installation of previous modules should be optional but enabled by default.
- Server with following modules installed: nethserver-cgp, nethserver-mail-common
- The configuration backup save the list of all modules during the pre-backup-config event
- If the server bust be restored, the
restore-config
command must reinstall all RPMs, including nethserver-cgp and nethserver-mail-common
Associated revisions
Support restore of installed RPM. Refs #3235
createlinks: execute rpm reinstall on post-restore-config event. Refs #3235
History
#1 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from NEW to TRIAGED
- Target version set to v6.6
- % Done changed from 0 to 20
#2 Updated by Giacomo Sanchietti about 6 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 about 6 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
To disable the restore of installed modules:
config setprop backup-config reinstall disabled
#4 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 60 to 70
- nethserver-backup-config-1.4.1-1.1.g335aee0.ns6.noarch.rpm
- On a new machine A install some modules from Software Center
- Execute the configuration backup: backup-config
- Restore the configuration backup into another machine B
- Check all modules from machine A have been installed on machine B
#5 Updated by dz0 0te about 6 years ago
- Assignee set to dz0 0te
#6 Updated by dz0 0te about 6 years ago
- Assignee deleted (
dz0 0te) - NEEDINFO changed from No to Yes
System and Package Version installed
VM1 and VM2 : KVM - Clean install of Nethserver 6.6 fully updated
Package Installed: nethserver-backup-config-1.4.1-1.ns6.noarch
Other Package installed: Backup
Test Original Problem
Enhancement
Install Updated Package
yum --enablerepo=nethserver-testing update nethserver-backup-config-1.4.1-1.1.g335aee0.ns6
Test Results after update
VM1:
updated nethserver-backup-config
installed some other Groups: Basic firewall, Email, File server, POP3 connector, POP3 proxy, SMTP proxy, Spanish language, VPN, Web filter, Web server
backup-config
scp backup-config.tar.xz to VM2
shutdown VM1
VM2: (with ip different from VM1)
updated nethserver-backup-config
restore-config
very fast, i can connect to VM2 using ip of VM1
assign role to physical interface is requested
no packages restored
after a new restore-config, the all modules from VM1 have been installed on VM1
re login on VM2 , a new assign role to physical interface is requested
after that it's all OK
i don't know if this is the correct behavior expected from devs. If so, maybe in the manual should be documented the correct steps to restore.
Verified Or Reopen
NEEDINFO (see note)
Note
i don't know if this is the correct behavior expected from devs or if the restore should work with a single restore-config.
tested also from webui with the same results
BTW: tnx for this enhancement is really useful :)
#7 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from ON_QA to TRIAGED
- % Done changed from 70 to 20
- NEEDINFO changed from Yes to No
Note
i don't know if this is the correct behavior expected from devs or if the restore should work with a single restore-config.
tested also from webui with the same results
No, it's not the right behavior: the nethserver-backup-config-list-packages action is executed before the list of package is ready.
I will try to fix it.
BTW: tnx for this enhancement is really useful :)
Thanks to you for your effort!
#8 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Giacomo Sanchietti
- % Done changed from 20 to 30
#9 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
#10 Updated by Giacomo Sanchietti about 6 years ago
- Category deleted (
nethserver-backup-config) - Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
- nethserver-backup-config-1.4.1-1.2.ga5302f1.ns6.noarch.rpm
#11 Updated by Giacomo Sanchietti about 6 years ago
- Assignee deleted (
Giacomo Sanchietti)
#12 Updated by Giacomo Sanchietti about 6 years ago
- Category set to nethserver-backup-config
#13 Updated by dz0 0te about 6 years ago
- Assignee set to dz0 0te
#14 Updated by dz0 0te about 6 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
dz0 0te) - % Done changed from 70 to 90
System and Package Version installed
VM1 and VM2 : KVM - Clean install of Nethserver 6.6 fully updated
Package Installed: nethserver-backup-config-1.4.1-1.ns6.noarch
Other Package installed: Backup
Test Original Problem
Enhancement
Install Updated Package
yum --enablerepo=nethserver-testing update nethserver-backup-config-1.4.1-1.2.ga5302f1.ns6
Test Results after update
VM1:
updated nethserver-backup-config
installed some other Groups: Basic firewall, Email, File server, POP3 connector, POP3 proxy, SMTP proxy, Spanish language, VPN, Web filter, Web server
backup-config
scp backup-config.tar.xz to VM2
shutdown VM1
VM2: (with ip different from VM1)
updated nethserver-backup-config
restore-config
all packages were restored/installed
assign role to physical interface is requested
all OK (restore config+packet+ip)
Verified or Reopen
Verified
Note
...
#15 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
- nethserver-backup-config-1.4.2-1.ns6.noarch.rpm
Administrator and developer manual has been updated.