------- Comment From [email protected] 2018-09-10 05:16 EDT-------
Vorlon,

In the detailed steps , the commands have been simplified.
Let me put simple use case for ease to avoid confusion.

1)Create bond using nmcli utility with below attributes set:
one slave (eth0) , mode = active_backup ,  ipv4 is assigned to bond say 
30.1.2.100/24

2)Create VLAN on top of bond created in above step 1. ipv4 is assigned
to vlan say 30.1.3.100/24

3)Ping operation under test works for 30.1.2.1 and 30.1.3.1

4)Deactivate bond. Vlan also gets deactivated. Both 30.1.2.1 and 30.1.3.1 are 
not reachable.
Because ip routes no more exists on deactivation of bond. #This is expected as 
per my understanding

5)Activate bond. VLAN DOES NOT GET ACTIVATED AUTOMATICALLY. Only 30.1.2.1 is 
reachable.
Route for VLAN is not created. #This was working in combination with nmcli + 
other distros automatically, and as a end user need not do any operation with 
respect to VLAN.

6)For nmcli + Ubuntu, we are forced to Manually Activate VLAN, route is
then created for VLAN. 30.1.3.1 is now reachable.

Above steps can be repeated
1)Without assiging ip to bond as well
2)For some reasons if we want to add a new slave or delete a slave from bond OR 
change any attributes of bond say primary, primary_reselect etc, bond is 
deactivated, attributes of bond are modified and activated. In this process 
VLAN gets deactivated autmatically but not gets auto - activated resulting in 
loss of traffic

So either i suspect one of the two issues here
1)nmcli was internally handling this in case of other distros. i.e deactivated 
the vlan, when bond is deactivated and activate the vlan , when bond is 
activated.
OR
2)network kernel underlying module takes care of these notifications between 
bond and vlan. I suspected this because, as i did not see any log updates with 
respect to nmcli tool for automatically deactivating and activating VLAN

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1790098

Title:
  vlan created on bond fails auto activation on updating parent network
  bond

Status in Ubuntu on IBM z Systems:
  Incomplete
Status in network-manager package in Ubuntu:
  Incomplete

Bug description:
  Auto activation of Vlan created over network-bond fails if bond is 
deactivated and reactivated.
   
  Contact Information = Abhiram Kulkarni([email protected]), Mandar 
Deshpande([email protected]) 
   
  ---uname output---
  Linux S36MANDAR 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:14:23 UTC 2018 
s390x s390x s390x GNU/Linux
   
  Machine Type = s390x 
   
  ---Debugger---
  A debugger is not configured
   
  ---Steps to Reproduce---
   1. Created a network bond with static IP address (and no IPv6 address); 
active backup mode; ARP polling; single slave.

  2. Created a VLAN using said network bond with static IPv4 address
  (and no IPv6 address).

  3. Can ping from the appliance to a target on both links (the parent
  bond and the VLAN).

  4. Switched to another slave for the created bond

  5. Can still ping from the appliance to a target via the parent bond;
  however, cannot ping to the target via the VLAN.

  =============================================================================
  Detailed steps:

  1. Initial setup:
  ============
  root@S36MANDAR:~# nmcli c s
  NAME                UUID                                  TYPE      DEVICE  
  enc1a80             c3a2037d-60a3-3cb4-9234-45aed55f7093  ethernet  enc1a80 
  enc8f00             2423add6-1464-3765-877c-a214dc497492  ethernet  enc8f00 
  enc1d40             ff2d70f8-130e-3dc6-ab24-1dba07563605  ethernet  --      

  2. Create Netwrok-bond with one slave:
  ================================
  root@S36MANDAR:~# nmcli c add type bond con-name mybond1 ifname mybond1 
ipv4.method disabled ipv6.method ignore
  Connection 'mybond1' (4b918a65-43a6-4ec3-b3c4-388ed52b116d) successfully 
added.

  root@S36MANDAR:~# nmcli con add type ethernet ifname enc1d40 master mybond1
  Connection 'bond-slave-enc1d40' (cfe4b245-3dda-4f45-b7b4-6d40d144a02f) 
successfully added.
  root@S36MANDAR:~# nmcli con up bond-slave-enc1d40
  Connection successfully activated (D-Bus active path: 
/org/freedesktop/NetworkManager/ActiveConnection/18)
  root@S36MANDAR:~# nmcli c s
  NAME                UUID                                  TYPE      DEVICE  
  bond-slave-enc1d40  cfe4b245-3dda-4f45-b7b4-6d40d144a02f  ethernet  enc1d40 
  enc1a80             c3a2037d-60a3-3cb4-9234-45aed55f7093  ethernet  enc1a80 
  enc8f00             2423add6-1464-3765-877c-a214dc497492  ethernet  enc8f00 
  mybond1             4b918a65-43a6-4ec3-b3c4-388ed52b116d  bond      mybond1 
  enc1d40             ff2d70f8-130e-3dc6-ab24-1dba07563605  ethernet  --      

  3. Create vlan over mybond1:
  =======================
  root@S36MANDAR:~# nmcli con add type vlan con-name vlanbond.100 ifname 
vlanbond.100 dev mybond1 id 100  ipv4.method disabled ipv6.method ignore
  Connection 'vlanbond.100' (e054df42-97a0-492b-b2c9-b9571077493e) successfully 
added.
  root@S36MANDAR:~# nmcli c s
  NAME                UUID                                  TYPE      DEVICE    
   
  bond-slave-enc1d40  cfe4b245-3dda-4f45-b7b4-6d40d144a02f  ethernet  enc1d40   
   
  enc1a80             c3a2037d-60a3-3cb4-9234-45aed55f7093  ethernet  enc1a80   
   
  enc8f00             2423add6-1464-3765-877c-a214dc497492  ethernet  enc8f00   
   
  mybond1             4b918a65-43a6-4ec3-b3c4-388ed52b116d  bond      mybond1   
   
  vlanbond.100        e054df42-97a0-492b-b2c9-b9571077493e  vlan      
vlanbond.100 
  enc1d40             ff2d70f8-130e-3dc6-ab24-1dba07563605  ethernet  --        
   

  4. Reactivate bond : 
  =================
  root@S36MANDAR:~# nmcli con up mybond1
  Connection successfully activated (master waiting for slaves) (D-Bus active 
path: /org/freedesktop/NetworkManager/ActiveConnection/30)

  root@S36MANDAR:~# nmcli c s
  NAME                UUID                                  TYPE      DEVICE  
  enc1a80             c3a2037d-60a3-3cb4-9234-45aed55f7093  ethernet  enc1a80 
  enc1d40             ff2d70f8-130e-3dc6-ab24-1dba07563605  ethernet  enc1d40 
  enc8f00             2423add6-1464-3765-877c-a214dc497492  ethernet  enc8f00 
  mybond1             4b918a65-43a6-4ec3-b3c4-388ed52b116d  bond      mybond1 
  bond-slave-enc1d40  cfe4b245-3dda-4f45-b7b4-6d40d144a02f  ethernet  --      
  encw1810            4ddeb38e-d5f7-3814-abb7-be50b8da874e  ethernet  --      
  vlanbond.100        e054df42-97a0-492b-b2c9-b9571077493e  vlan      --      

  As is seen, vlan(vlanbond.100) did not get activated

  Now, if manually I make vlan connection up, it gets activated:

  root@S36MANDAR:~# nmcli  con up vlanbond.100
  NAME                UUID                                  TYPE      DEVICE    
   
  bond-slave-enc1d40  cfe4b245-3dda-4f45-b7b4-6d40d144a02f  ethernet  enc1d40   
   
  enc1a80             c3a2037d-60a3-3cb4-9234-45aed55f7093  ethernet  enc1a80   
   
  enc8f00             2423add6-1464-3765-877c-a214dc497492  ethernet  enc8f00   
   
  mybond1             4b918a65-43a6-4ec3-b3c4-388ed52b116d  bond      mybond1   
   
  vlanbond.100        e054df42-97a0-492b-b2c9-b9571077493e  vlan      
vlanbond.100 
  enc1d40             ff2d70f8-130e-3dc6-ab24-1dba07563605  ethernet  --        
   
  encw1810            4ddeb38e-d5f7-3814-abb7-be50b8da874e  ethernet  --

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1790098/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to