In Contrail GUI, Networks List, Network Selection is Not Persistent after a Network Policy Was Assigned to a Network

Bug #1706289 reported by Anda-Maria Nicolae
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenContrail
New
Undecided
Unassigned

Bug Description

Hi all,

I am using Contrail version 3.2.4.0 on an CentOS 7.3 server. I have 4 VMs on the respective server: 1st VM is Contrail Controller node, 2nd VM is OpenStack node and 3rd and 4th VM are Contrail Compute nodes.

I have created 3 virtual networks, named Net-1, Net-2 and Net-3 in this order, and a network policy, named poli1.
Please see the attached first-step.jpg.

In Contrail GUI, in Configure -> Networking -> Networks, I select the 2nd network, Net-2, I edit it and assign to it the network policy poli1. Please see the attached second-step.jpg.

After I click on the Save button, in the list of networks, Net-2 is not anymore on the 2nd position as it was initially before assigning to it a network policy.
Net-2 is on the last position in the list of networks, and on the 2nd position now it is Net-3. So, Net-2 has moved from its original position in the list of networks, but the network selection did not moved accordingly. Now, Net-3 is mistakenly selected instead of Net-2. Please see the attached third-step.jpg.

Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :
Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :
Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :
Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :

I don't quite understand why after a network is modified and the Save button is pressed, the respective network has to be moved at the bottom of the network list.

At the beginning, I thought that the fix for this bug was to move the network selection at the end of the list, where the network is now located.

However, this fix will not work if the network list is sorted after network name: user has the network list sorted, then the user adds a network policy to a network. Then, the respective network moves at the bottom of the network list and the sorting is not preserved.

The fix would be to keep the network at the same position in the network list.

Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :

Thank you for your response. The fix for bug #1539481 is working only if the Network list is sorted according to a field ('Network' field, for example). Indeed, if the network list is sorted after 'Network' field, after adding the network policy to a network, respective network's position in the list remains unchanged.

However, in my case, the network list is not sorted after any field. In this case, after adding the network policy to a network, the respective network is still moved to the bottom of the list and network selection remains at the original position of the respective network.

So the fix for bug #1539481 does not fix my bug.

Revision history for this message
Siva Bavanasi (kbsiva) wrote :

Hi Anda,

As for screenshot third-step.jpg, Network field is sorted(we can see up arrow next to Network) and bug #1539481 addresses it.

However without sorting, GUI doesn't have control over order of network list(order driven by API Server) and hence may see wrong selections and that could be diffrent issue.

Revision history for this message
Anda-Maria Nicolae (anicolae) wrote :

Hi Siva,

Ok then, I understand. I will then create another bug for the issues specified in my previous comment.

Thanks,
Anda

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.