[3.0-2704] UI, Instance name is replaced by '-' under monitor-instance tab if we add subinterface for VM port

Bug #1538531 reported by musharani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.0
Fix Committed
High
Balamurugan Gopal
Trunk
Fix Committed
High
Balamurugan Gopal

Bug Description

Under Monitor -> Instance tab, Instance name got replaced by '-' if we add sub-interface for the port which is attached to the VM.
Before adding sub-interface it was showing the instance name.

Steps to repro:
============
1. Add network net1 under Configure -> Networking -> Networks
2. Add instance net1-inst1 for that network.
3. Check the instance name under Monitor -> Instance tab.
     It will show the instance name as net1-inst1
4. Then configure sub-interface under Configure -> Networking -> Ports -> Add sub-interface with vlan 1
5. Then check the instance name again under the same Monitor tab.
     Now it will show instance name as '-'

But it should show the instance name as net1-inst1.

Nova output:
==========
root@nodec41:~/contrail-fabric-utils# nova list
+--------------------------------------+------------+--------+------------+-------------+-----------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+------------+--------+------------+-------------+-----------------+
| 32685d65-286e-4a36-b951-b73b156b92cc | Host-02 | ACTIVE | - | Running | net5=2.2.0.1 |
| 59462645-59bf-4d39-9ad6-59a622815cf2 | net1-inst1 | ACTIVE | - | Running | net1=10.10.10.3 |
| 29256a6b-9896-4bdc-856f-3043c0af9785 | net2-inst1 | ACTIVE | - | Running | net2=20.20.20.1 |
| 021859bb-22cb-4dce-b16e-51be15ed755c | net3-inst1 | ACTIVE | - | Running | net3=30.30.30.1 |
| d34f9f7e-d857-4869-8d59-ade6a1c3be7a | net4-inst1 | ACTIVE | - | Running | net4=1.1.0.3 |
| 9dd0c4f6-b477-474f-963f-cf925976d07d | net6-inst1 | ACTIVE | - | Running | net6=60.60.60.3 |
| fc58b3d2-055e-4ec2-97be-9ef9b6938f0a | net7-inst1 | ACTIVE | - | Running | net7=7.7.7.3 |
| e5ce9af4-702f-4439-b13f-b9dd718820b8 | net8-inst1 | ACTIVE | - | Running | net8=8.8.8.3 |
+--------------------------------------+------------+--------+------------+-------------+-----------------+

Seeing this issue in build version 2704 on nodec41.

Tags: ui
Revision history for this message
musharani (musharani) wrote :
  • inst_issue.docx Edit (583.8 KiB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
Ankit Jain (ankitja)
Changed in juniperopenstack:
assignee: nobody → Rahul (rahuls)
Rahul (rahuls)
Changed in juniperopenstack:
assignee: Rahul (rahuls) → Balamurugan Gopal (gbala)
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/17030
Submitter: Balamurugan Gopal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/17738
Submitter: Balamurugan Gopal (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/17030
Committed: http://github.org/Juniper/contrail-web-controller/commit/cbc315b164a9b49b8afa4cc3dece0d574dd705eb
Submitter: Zuul
Branch: master

commit cbc315b164a9b49b8afa4cc3dece0d574dd705eb
Author: balamurugang <email address hidden>
Date: Tue Feb 9 21:27:02 2016 +0530

In Edit case of a Parent port, subinterface ref is getting set to empty - Fixed it

* In case of edit a parent port vmiRef was set to empty array because of
that the reference to the subInterface was removed - Fixed it.
* Added The name along with the UUID in the landing page grid.
* In landing page grid row It shows (N more) after 3 data exist In other place
it is followed as 2 so, Changed to 2.
* Not showing the sub-interface if it is a parent port.
* dropdownAutoWidth : false, is added for the drop down's to avoid the drop down
growing beyond the view area.
* Sub-interface cannot be removed In UI the checkbox is disabled
* In Delete case, If it is a parent port We show a message saying even the
subinterface will be delete do you want to conform then sending all the UUID of
children so that the children will be removed first and then the parent will be
removed.

Service Health Check is added in UI.
Closes-Bug: #1549112

API FIX
* The sub-interface remove is not supported in delete we are trying to update the
parent port so it was throwing some error - Fixed it.
* vm ref in subinterface was added for DNS resolution and stats.
Now it is not required
* The subinterface are removed and then the parentport is removed.
* The delete is handled in both delete and delete all

Removed the reference of that VM from the created/edited Sub-interface.
Closes-Bug: #1540789

The flow was like attach of VM will happen first and then the IP was created
because of that the ip was not setting to VM To avoid that
The interface IP is added first and then the compute is getting attachecd.

Removel of VM ref from the subinterface also solves the issue
Instance name is replaced by '-' under monitor-instance tab
Closes-Bug: #1538531

Port page not able to load sometimes
Issue:
TypeError: self.deviceOwner is not a function
- Placed the function return as inline.
So it will be not be looking for that variable.
Closes-Bug: #1542295

Change-Id: I0e198219f85904f30b2420ecac79ce332c1b29bc
Closes-Bug: #1543632

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/17738
Committed: http://github.org/Juniper/contrail-web-controller/commit/7decc642d139e8d45657552ea7b2fe0e33a3690c
Submitter: Zuul
Branch: R3.0

commit 7decc642d139e8d45657552ea7b2fe0e33a3690c
Author: balamurugang <email address hidden>
Date: Tue Feb 9 21:27:02 2016 +0530

In Edit case of a Parent port, subinterface ref is getting set to empty - Fixed it

* In case of edit a parent port vmiRef was set to empty array because of
that the reference to the subInterface was removed - Fixed it.
* Added The name along with the UUID in the landing page grid.
* In landing page grid row It shows (N more) after 3 data exist In other place
it is followed as 2 so, Changed to 2.
* Not showing the sub-interface if it is a parent port.
* dropdownAutoWidth : false, is added for the drop down's to avoid the drop down
growing beyond the view area.
* Sub-interface cannot be removed In UI the checkbox is disabled
* In Delete case, If it is a parent port We show a message saying even the
subinterface will be delete do you want to conform then sending all the UUID of
children so that the children will be removed first and then the parent will be
removed.

Service Health Check is added in UI.
Closes-Bug: #1549112

API FIX
* The sub-interface remove is not supported in delete we are trying to update the
parent port so it was throwing some error - Fixed it.
* vm ref in subinterface was added for DNS resolution and stats.
Now it is not required
* The subinterface are removed and then the parentport is removed.
* The delete is handled in both delete and delete all

Removed the reference of that VM from the created/edited Sub-interface.
Closes-Bug: #1540789

The flow was like attach of VM will happen first and then the IP was created
because of that the ip was not setting to VM To avoid that
The interface IP is added first and then the compute is getting attachecd.

Removel of VM ref from the subinterface also solves the issue
Instance name is replaced by '-' under monitor-instance tab
Closes-Bug: #1538531

Port page not able to load sometimes
Issue:
TypeError: self.deviceOwner is not a function
- Placed the function return as inline.
So it will be not be looking for that variable.
Closes-Bug: #1542295

Change-Id: I0e198219f85904f30b2420ecac79ce332c1b29bc
Closes-Bug: #1543632

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.