Feature #3041

Restore from backup, disaster recovery and network interfaces

Added by Davide Principi almost 5 years ago. Updated almost 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue 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.

See also
https://access.redhat.com/discussions/1240213

Schermata da 2015-03-02 17_06_58.png - test case 1/c (10 KB) Davide Marini, 03/02/2015 11:10 AM

2c_1.png - 2/c 1 (41.9 KB) Davide Marini, 03/02/2015 11:41 AM

2c_2.png - 2/c 2 (52.1 KB) Davide Marini, 03/02/2015 11:41 AM

2b_1.png - 2/b 1 (36.8 KB) Davide Marini, 03/02/2015 12:04 PM

2b_2.png - 2/b 2 (35.5 KB) Davide Marini, 03/02/2015 12:05 PM

Associated revisions

Revision 8f82c035
Added by Davide Principi almost 5 years ago

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.

Revision 91bac0a8
Added by Davide Principi almost 5 years ago

nic-info helper: loop on every card if invoked w/o arguments. Refs #3041

Revision 0c85578c
Added by Davide Principi almost 5 years ago

nic-info: fixed link status check. Refs #3041

The check requires sudo.

Revision 065125b1
Added by Davide Principi almost 5 years ago

Fixed Tracker notifications. Refs #3041

Revision 6be15f79
Added by Davide Principi almost 5 years ago

Bump Nethgui 065125b1c9b31228efb137ff246a395be8f9b6af. Refs #3041

Revision 5a4bec10
Added by Davide Principi almost 5 years ago

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

Revision 40653e52
Added by Davide Principi almost 5 years ago

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.

Revision eb49f46d
Added by Davide Principi almost 5 years ago

Added l10n for AdminTodos. Refs #3041

Revision c1dd7f0a
Added by Davide Principi almost 5 years ago

Merge branch 'b3041' into v6.6. Refs #3041

Restore from backup, disaster recovery and network interfaces

Revision 872b07e5
Added by Davide Principi almost 5 years ago

Removed restore "on same hardware" option. Refs #3041

The NetworkAdapter UI module implements interface renaming now.

Revision 1b43681b
Added by Davide Principi almost 5 years ago

Restore UI module: show AdminTodo notifications after restore. Refs #3041

Revision 8e27d8de
Added by Giacomo Sanchietti almost 5 years ago

nethserver-config-network: fix logic. Refs #3041

Revision 69419934
Added by Giacomo Sanchietti almost 5 years ago

Web interface: fix list of old interfaces. Refs #3041

Revision d8713250
Added by Davide Principi almost 5 years ago

Bump Nethgui 065125b1c9b31228efb137ff246a395be8f9b6af. Refs #3041

Revision cf3742b5
Added by Davide Principi almost 5 years ago

Disaster recovery section. Refs #3041

Revision 6254cf84
Added by Davide Principi almost 5 years ago

NetworkAdapter: fixed translations for RenameInterface. Refs #3041

  • removed button "Assign interfaces" from index view
  • enhanced display of link status and list layout

Revision 13113bc3
Added by Davide Principi almost 5 years ago

Merge pull request #60 from DavidePrincipi/b3041

Disaster recovery section. Refs #3041

History

#1 Updated by Davide Principi almost 5 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 almost 5 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 almost 5 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/a
Single 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/b
Multiple 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/c
Multiple 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/a
Multiple network interfaces system:
  • prepare a backup of machine1
  • restore configuration backup of machine1

No alert must be shown.

Test case 2/b
Single 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/c
Multiple 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 almost 5 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.rpm
nethserver-base-2.5.5-50.66.gc1dd7f0.ns6.noarch.rpm
nethserver-base-2.5.5-50.68.g8e27d8d.ns6.noarch.rpm
nethserver-httpd-admin-1.3.6-2.24.g6be15f7.ns6.noarch.rpm
nethserver-httpd-admin-1.3.6-2.26.gd871325.ns6.noarch.rpm

#6 Updated by Davide Marini almost 5 years ago

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 almost 5 years ago

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

#8 Updated by Giacomo Sanchietti almost 5 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

Also available in: Atom PDF