Bug #3381

Network configuration: alias IP overwritten

Added by Giacomo Sanchietti over 5 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

When configuring multiple alias IP, an alias could be overwritten if there is a "hole" between existing alias ids.

Steps to reproduce
  • Open the Network page and create 3 IP aliases
  • Delete the second alias
  • Create a new alias
Current wrong behavior
  • The latest alias will be overwritten
Expected behavior
  • A new alias must be created

Associated revisions

Revision 911d6661
Added by Giacomo Sanchietti over 5 years ago

Merge pull request #14 from DavidePrincipi/aliashole

Fix alias numbering if a "hole" exists. Refs #3381

History

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

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

#3 Updated by Giacomo Sanchietti over 5 years ago

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

Pull request merged.

#4 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
Packages in nethserver-testing:
  • nethserver-base-2.10.1-1.2.g911d666.ns6.noarch.rpm
Test case
  • Check the bug is not reproducible

#5 Updated by Giacomo Sanchietti over 5 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

After creation of 3 IP aliases:

[root@localhost ~]# db networks show
eth0=ethernet
    bootproto=none
    device=eth0
    gateway=192.168.5.253
    hwaddr=08:00:27:77:C3:22
    ipaddr=192.168.5.246
    netmask=255.255.255.0
    onboot=yes
    role=green
eth0:0=alias
    ipaddr=10.0.0.246
    netmask=255.255.255.0
    role=alias
eth0:1=alias
    ipaddr=10.0.1.246
    netmask=255.255.255.0
    role=alias
eth0:2=alias
    ipaddr=10.0.2.246
    netmask=255.255.255.0
    role=alias
ppp0=xdsl-disabled
    AuthType=auto
    Password=
    name=PPPoE
    provider=xDSL provider
    role=red
    user=

After deleting:

[root@localhost ~]# db networks show
eth0=ethernet
    bootproto=none
    device=eth0
    gateway=192.168.5.253
    hwaddr=08:00:27:77:C3:22
    ipaddr=192.168.5.246
    netmask=255.255.255.0
    onboot=yes
    role=green
eth0:0=alias
    ipaddr=10.0.0.246
    netmask=255.255.255.0
    role=alias
eth0:2=alias
    ipaddr=10.0.2.246
    netmask=255.255.255.0
    role=alias
ppp0=xdsl-disabled
    AuthType=auto
    Password=
    name=PPPoE
    provider=xDSL provider
    role=red
    user=

After re-creating, the UI suggests eth0:1:

[root@localhost ~]# db networks show
eth0=ethernet
    bootproto=none
    device=eth0
    gateway=192.168.5.253
    hwaddr=08:00:27:77:C3:22
    ipaddr=192.168.5.246
    netmask=255.255.255.0
    onboot=yes
    role=green
eth0:0=alias
    ipaddr=10.0.0.246
    netmask=255.255.255.0
    role=alias
eth0:1=alias
    ipaddr=10.3.0.246
    netmask=255.255.255.0
    role=alias
eth0:2=alias
    ipaddr=10.0.2.246
    netmask=255.255.255.0
    role=alias
ppp0=xdsl-disabled
    AuthType=auto
    Password=
    name=PPPoE
    provider=xDSL provider
    role=red
    user=

#7 Updated by Giacomo Sanchietti over 5 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in
  • 6.7/nethserver-updates: nethserver-base-2.10.2-1.ns6.noarch.rpm
    *7.2/nethserver-testing: nethserver-base-2.10.2-1.93.gbe447b7.ns7.noarch.rpm

Also available in: Atom PDF