Feature #3041
Restore from backup, disaster recovery and network interfaces
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-base | |||
Target version: | v6.6-rc1 | |||
Resolution: | NEEDINFO: | No |
Description
Primary scenario
a configuration backup is restored on a new hardware
Secondary scenario
disks are moved to a new hardware
The admin must fix the network configuration coming from the backup set, by replacing the old MAC addresses.
The following list of actions assigns the MAC addresses from the new network adapters to the old interfaces names, then applies the new configuration:
1) restore config from backup 2) db networks setprop ethX hwaddr A:B:C:D ... 3) rm /etc/udev/rules.d/70-persistent-net.rules 4) action interface-config-reset 5) action interface-config-write 6) reboot
The last step could be replaced by
6.1) service network stop 6.2) udevadm trigger --subsystem-match=net 6.3) service network start
An hypothetical Server Manager page could guide the admin to assign the new MAC addresses on the old interface names. Then applies the new configuration by running an event.
As the green interface is already configured, the helper page can take this information into account to ease the green MAC assignment.
Associated revisions
interface-update: reset udev rules. Refs #3041
The new action clears /etc/udev/rules.d/70-persistent-net.rules and
triggers the udev net event to regenerate it.
nic-info helper: loop on every card if invoked w/o arguments. Refs #3041
nic-info: fixed link status check. Refs #3041
The check requires sudo.
Fixed Tracker notifications. Refs #3041
Bump Nethgui 065125b1c9b31228efb137ff246a395be8f9b6af. Refs #3041
NetworkAdapter: new RenameInterface UI module. Refs #3041
This new module helps assigning physical ethernet cards to interfaces
in networks DB.
Supposed scenarios:
- restore backup on new hardware
- NIC replacement
- moving disks to a new hardware
New nethserver-config-network command. Refs #3041
- `udev-update-network` helper replaces `update-networks-db`: the new
script catches udev events for a single device, preventing duplicate
actions. Note that udev events are asynchronous and can run
concurrently. Binding to udev is in
`root/etc/udev/rules.d/95-NetworksDB.rules`
- action `nethserver-base-initialize-db` now implements
`initialize_networks_db()` function to replace
`update-networks-db`. The new functions relies on `nic-info`.
- the new nethserver-config-network can be invoked interactively or
automatically on boot in rc.local template. It acts only on green
interfaces and exits immediately if all interfaces are correctly
mapped.
Added l10n for AdminTodos. Refs #3041
Merge branch 'b3041' into v6.6. Refs #3041
Restore from backup, disaster recovery and network interfaces
Removed restore "on same hardware" option. Refs #3041
The NetworkAdapter UI module implements interface renaming now.
Restore UI module: show AdminTodo notifications after restore. Refs #3041
nethserver-config-network: fix logic. Refs #3041
Web interface: fix list of old interfaces. Refs #3041
Bump Nethgui 065125b1c9b31228efb137ff246a395be8f9b6af. Refs #3041
Disaster recovery section. Refs #3041
NetworkAdapter: fixed translations for RenameInterface. Refs #3041
- removed button "Assign interfaces" from index view
- enhanced display of link status and list layout
Merge pull request #60 from DavidePrincipi/b3041
Disaster recovery section. Refs #3041
History
#1 Updated by Davide Principi over 6 years ago
- Category set to nethserver-base
- Status changed from NEW to TRIAGED
- Target version set to v6.6-rc1
- % Done changed from 0 to 20
#2 Updated by Davide Principi over 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Davide Principi
- % Done changed from 20 to 30
#3 Updated by Davide Principi over 6 years ago
- Subject changed from Assign new network adapter to old interface name to Restore from backup, disaster recovery and network interfaces
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
was: "Assign new network adapter to old interface name"
Test case 1/aSingle network interface system:
- shutdown a configured system
- replace the network card or move system disk to an other machine
- power on the new system
The old green configuration must be moved on the new card automatically. The system must be reachable from the green network.
Test case 1/bMultiple network interfaces system
- all interfaces must have a role
- shutdown a configured system
- replace the green network card
- power on the new system
The old green configuration must be moved on the new card automatically. The system must be reachable from the green network.
Test case 1/cMultiple network interfaces system
- shutdown a configured system
- replace all the cards, or move system disk to another machine
- power on the new system
At the end of system boot procedure, the system asks to pick up the new cards for the green interfaces. Follow on-screen instructions. The system must be reachable from green networks.
NOTE: The boot prompt lasts 120 seconds.
Test case 2/aMultiple network interfaces system:
- prepare a backup of machine1
- restore configuration backup of machine1
No alert must be shown.
Test case 2/bSingle network interface system:
- prepare a backup of machine1
- install and configure a system on machine2
- restore configuration backup of machine1 into machine2
An alert pop up must direct the admin to the Rename Interface page.
Test case 2/cMultiple network interfaces system:
- prepare a backup of machine1
- install and configure a system on machine2
- restore configuration backup of machine1 into machine2
An alert pop up must direct the admin to the Rename Interface page.
#4 Updated by Davide Principi over 6 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
In nethserver-testing 6.6:
nethserver-backup-config-1.3.1-1.4.g1b43681.ns6.noarch.rpmnethserver-base-2.5.5-50.66.gc1dd7f0.ns6.noarch.rpm
nethserver-base-2.5.5-50.68.g8e27d8d.ns6.noarch.rpmnethserver-httpd-admin-1.3.6-2.24.g6be15f7.ns6.noarch.rpm
nethserver-httpd-admin-1.3.6-2.26.gd871325.ns6.noarch.rpm
#5 Updated by Davide Principi over 6 years ago
Packager note
Documentation pull
https://github.com/nethesis/nethserver-docs/pull/60
#6 Updated by Davide Marini over 6 years ago
- File Schermata da 2015-03-02 17_06_58.png added
- File 2c_1.png added
- File 2c_2.png added
- File 2b_1.png added
- File 2b_2.png added
Case 1/a: verified
the system show the message
"Reconfiguring network", after few seconds the interface is up and working
Case 1/b: verified
the system show the message
"Reconfiguring network", after few seconds the interface is up and working
Case 1/c : verified: see attached
Case 2/a : verified
Case 2/b : verified see attached
Case 2/c : verified see attached
#7 Updated by Davide Marini over 6 years ago
- Status changed from ON_QA to VERIFIED
- % Done changed from 70 to 90
#8 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
Released in nethserver-base:
nethserver-httpd-admin-1.3.7-1.ns6.noarch.rpm
nethserver-base-2.6.0-1.ns6.noarch.rpm
nethserver-backup-config-1.4.0-1.ns6.noarch.rpm