Bug #3306

bond confuses network configuration

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

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

100%

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

Description

A bond makes the server-manager network page behave inconsistently.
Follow these steps to see the problem:
  1. use a machine with at least two ethernet interfaces
  2. create a bond with two slaves
  3. go to the dashboard
  4. you'd see a yellow todo saying:
     Assign role to network interface
    A role must be assigned to a new network card
    

    Also the Network page add an option to delete one of the slaves.
    And rebooting the server, the network reconfiguration triggers.

Associated revisions

Revision 6343eafb
Added by Giacomo Sanchietti over 5 years ago

eth-unmapped: handle bond interfaces. Refs #3306

Revision 0f32b41b
Added by Giacomo Sanchietti over 5 years ago

Web UI: fix bond slave mac address. Refs #3306

History

#1 Updated by Filippo Carletti almost 6 years ago

Note: the bug affects also version 6.6.

The problem is that the /usr/libexec/nethserver/eth-unmapped uses mac addresses, but all slaves have the same mac.

Original mac can be found in /proc/net/bonding/bondX:

# grep HW /proc/net/bonding/bond0
Permanent HW addr: 08:00:27:6a:67:ae
Permanent HW addr: 08:00:27:e9:86:08

#2 Updated by Giacomo Sanchietti over 5 years ago

  • Category set to nethserver-base
  • Status changed from NEW to TRIAGED
  • Target version set to v6.7
  • % Done changed from 0 to 20

#3 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

#4 Updated by Giacomo Sanchietti over 5 years ago

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

#5 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
Package in nethserver-testing:
  • nethserver-base-2.9.4-1.2.g1fb355d.ns6.noarch.rpm
Test case 1
  • Configure a bond, check the Dashboard display the wrong message
  • Update the package
  • Check the wrong message is gone
Test case 2
  • After test case 1
  • Reboot the machine
  • Check the system doesn't require network reconfiguration
Test case 3
  • On a Virtual Machine (VM), add a new ethernet and configure it with a orange or blue role
  • Shutdown the VM, change the mac address of the ethernet
  • After the boot, check the system requires network reconfiguration for the missing ethernet card
Test case 4
  • After test case 2
  • Shutdown the VM, change the mac address of a ethernet which is part of the bond
  • After the boot, check the system requires network reconfiguration for the missing ethernet card
  • You should ignore the message and be able to reconfigure the bond from the web interface

#6 Updated by Nicola Rauso over 5 years ago

  • Assignee set to Nicola Rauso

#7 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Nicola Rauso)
  • % Done changed from 70 to 20

The bug also affects /usr/libexec/nethserver/nic-info script which is used from the web interface.

#8 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

#9 Updated by Giacomo Sanchietti over 5 years ago

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

#10 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
Package in nethserver-testing:
  • nethserver-base-2.9.4-1.3.g0f32b41.ns6.noarch.rpm
Test case 1
  • Configure a bond, check the Dashboard display the wrong message
  • Update the package
  • Check the wrong message is gone
Test case 2
  • After test case 1
  • Reboot the machine
  • Check the system doesn't require network reconfiguration
Test case 3
  • On a Virtual Machine (VM), add a new ethernet and configure it with a orange or blue role
  • Shutdown the VM, change the mac address of the ethernet
  • After the boot, check the system requires network reconfiguration for the missing ethernet card
Test case 4
  • After test case 2
  • Shutdown the VM, change the mac address of a ethernet which is part of the bond
  • After the boot, check the system requires network reconfiguration for the missing ethernet card
  • You should ignore the message and be able to reconfigure the bond from the web interface
Test case 5
  • Check all interfaces are correctly displayed inside the "Network" page

#11 Updated by Nicola Rauso over 5 years ago

  • Assignee set to Nicola Rauso

#12 Updated by Nicola Rauso over 5 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Nicola Rauso)
  • % Done changed from 70 to 90

Tested all cases: OK

Test case 1
  • Configure a bond, check the Dashboard display the wrong message
  • Update the package
  • Check the wrong message is gone
Test case 2
  • After test case 1
  • Reboot the machine
  • Check the system doesn't require network reconfiguration
Test case 3
  • On a Virtual Machine (VM), add a new ethernet and configure it with a orange or blue role
  • Shutdown the VM, change the mac address of the ethernet
  • After the boot, check the system requires network reconfiguration for the missing ethernet card
Test case 4
  • After test case 2
  • Shutdown the VM, change the mac address of a ethernet which is part of the bond
  • After the boot, check the system requires network reconfiguration for the missing ethernet card
  • You should ignore the message and be able to reconfigure the bond from the web interface
Test case 5
  • Check all interfaces are correctly displayed inside the "Network" page

#13 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-base-2.9.5-1.ns6.noarch.rpm

Also available in: Atom PDF