[ https://issues.apache.org/jira/browse/CLOUDSTACK-5307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861416#comment-13861416 ]
Kishan Kavala commented on CLOUDSTACK-5307: ------------------------------------------- Jessica, There are 2 API calls sent from UI. In the 2nd call projectId is sent twice. http://localhost:8080/client/api?command=listRouters&zoneid=b315fdc8-f018-4875-8ac3-f8ed4d31edf8&listAll=true&page=1&pagesize=20&response=json&sessionkey=0tyxov%2FVjxYLGiqu2O4ZwW7lLkM%3D&projectid=be1d7bc9-154a-45fa-8f25-4f36e80f14a3&forvpc=false&_=1388745961754 http://localhost:8080/client/api?command=listRouters&zoneid=b315fdc8-f018-4875-8ac3-f8ed4d31edf8&listAll=true&page=1&pagesize=20&projectid=-1&response=json&sessionkey=0tyxov%2FVjxYLGiqu2O4ZwW7lLkM%3D&projectid=be1d7bc9-154a-45fa-8f25-4f36e80f14a3&forvpc=false&_=1388745961795 > Same router is listed twice in router view of project > ----------------------------------------------------- > > Key: CLOUDSTACK-5307 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5307 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: UI > Affects Versions: 4.3.0 > Reporter: shweta agarwal > Assignee: Jessica Wang > Priority: Minor > Fix For: 4.3.0 > > Attachments: tow times router listing.png > > > Repro steps : > 1. Create a project. > 2. Create a VM > 3. Goto Router or VPC router view either via infrastructure ->router or via > infrastructure->zone->physical network - > network service provider -> > virtual router->router or > infrastructure->zone->physical network - > network service provider -> vpc > virtual router->router > bug: > Same router is shown twice > API calls: > http://10.147.40.27:8080/client/api?command=listRouters&listAll=true&page=1&pagesize=20&response=json&sessionkey=Z75KXzYgYh7eR8tFxVNqX%2FUtBVw%3D&projectid=31511e06-9fb3-480a-b0b8-6a502207d062&forvpc=false&_=1385705460290 > Response: > { "listroutersresponse" : { "count":1 ,"router" : [ > {"id":"8800bb36-e96c-4af5-be5e-2dd5fde71b6a","zoneid":"71c3d210-e0f7-4ea0-80b3-1a3769cdaeb2","zonename":"xen","dns1":"10.140.50.6","networkdomain":"cs5cloud.internal","gateway":"10.147.51.1","name":"r-33-VM","podid":"a294449c-0048-4102-b438-0afc67d9854f","hostid":"713fafd1-b2df-4461-8b9a-db6fa1c6c8bd","hostname":"Rack1Pod1Host24","linklocalip":"169.254.3.173","linklocalmacaddress":"0e:00:a9:fe:03:ad","linklocalnetmask":"255.255.0.0","linklocalnetworkid":"89e82b30-1456-4c5d-8346-761a9bfde0c4","publicip":"10.147.51.90","publicmacaddress":"06:35:34:00:00:79","publicnetmask":"255.255.255.0","publicnetworkid":"c1e501e4-41a3-47a0-8cf3-472895bc68ae","guestipaddress":"10.1.1.1","guestmacaddress":"02:00:19:3f:00:02","guestnetmask":"255.255.255.0","guestnetworkid":"0c5d1cb8-9756-4b04-a551-bc53d7553420","templateid":"5d5b6245-fc06-4d7b-9d26-9656d6a991fe","created":"2013-11-28T11:57:33+0530","state":"Running","projectid":"31511e06-9fb3-480a-b0b8-6a502207d062","project":"shweta","domainid":"1","domain":"ROOT","serviceofferingid":"0852bf4c-3f04-4747-89b2-a37f6828149c","serviceofferingname":"System > Offering For Software > Router","isredundantrouter":false,"redundantstate":"UNKNOWN","version":"3.0","role":"VIRTUAL_ROUTER","nic":[{"id":"bf7dbef2-7f7d-41a9-9963-680d8e0551bf","networkid":"0c5d1cb8-9756-4b04-a551-bc53d7553420","networkname":"project","netmask":"255.255.255.0","ipaddress":"10.1.1.1","isolationuri":"vlan://1049","broadcasturi":"vlan://1049","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:19:3f:00:02"},{"id":"f070d8e4-88be-4f5e-a6e9-2d883fa026d3","networkid":"89e82b30-1456-4c5d-8346-761a9bfde0c4","netmask":"255.255.0.0","gateway":"169.254.0.1","ipaddress":"169.254.3.173","traffictype":"Control","isdefault":false,"macaddress":"0e:00:a9:fe:03:ad"},{"id":"d2110f33-dc7f-49a5-bb35-808ee2ba9251","networkid":"c1e501e4-41a3-47a0-8cf3-472895bc68ae","netmask":"255.255.255.0","gateway":"10.147.51.1","ipaddress":"10.147.51.90","isolationuri":"vlan://51","broadcasturi":"vlan://51","traffictype":"Public","isdefault":true,"macaddress":"06:35:34:00:00:79"}],"requiresupgrade":true} > ] } } > http://10.147.40.27:8080/client/api?command=listRouters&listAll=true&page=1&pagesize=20&projectid=-1&response=json&sessionkey=Z75KXzYgYh7eR8tFxVNqX%2FUtBVw%3D&projectid=31511e06-9fb3-480a-b0b8-6a502207d062&forvpc=false&_=1385705460399 > { "listroutersresponse" : { "count":1 ,"router" : [ > {"id":"8800bb36-e96c-4af5-be5e-2dd5fde71b6a","zoneid":"71c3d210-e0f7-4ea0-80b3-1a3769cdaeb2","zonename":"xen","dns1":"10.140.50.6","networkdomain":"cs5cloud.internal","gateway":"10.147.51.1","name":"r-33-VM","podid":"a294449c-0048-4102-b438-0afc67d9854f","hostid":"713fafd1-b2df-4461-8b9a-db6fa1c6c8bd","hostname":"Rack1Pod1Host24","linklocalip":"169.254.3.173","linklocalmacaddress":"0e:00:a9:fe:03:ad","linklocalnetmask":"255.255.0.0","linklocalnetworkid":"89e82b30-1456-4c5d-8346-761a9bfde0c4","publicip":"10.147.51.90","publicmacaddress":"06:35:34:00:00:79","publicnetmask":"255.255.255.0","publicnetworkid":"c1e501e4-41a3-47a0-8cf3-472895bc68ae","guestipaddress":"10.1.1.1","guestmacaddress":"02:00:19:3f:00:02","guestnetmask":"255.255.255.0","guestnetworkid":"0c5d1cb8-9756-4b04-a551-bc53d7553420","templateid":"5d5b6245-fc06-4d7b-9d26-9656d6a991fe","created":"2013-11-28T11:57:33+0530","state":"Running","projectid":"31511e06-9fb3-480a-b0b8-6a502207d062","project":"shweta","domainid":"1","domain":"ROOT","serviceofferingid":"0852bf4c-3f04-4747-89b2-a37f6828149c","serviceofferingname":"System > Offering For Software > Router","isredundantrouter":false,"redundantstate":"UNKNOWN","version":"3.0","role":"VIRTUAL_ROUTER","nic":[{"id":"bf7dbef2-7f7d-41a9-9963-680d8e0551bf","networkid":"0c5d1cb8-9756-4b04-a551-bc53d7553420","networkname":"project","netmask":"255.255.255.0","ipaddress":"10.1.1.1","isolationuri":"vlan://1049","broadcasturi":"vlan://1049","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:19:3f:00:02"},{"id":"f070d8e4-88be-4f5e-a6e9-2d883fa026d3","networkid":"89e82b30-1456-4c5d-8346-761a9bfde0c4","netmask":"255.255.0.0","gateway":"169.254.0.1","ipaddress":"169.254.3.173","traffictype":"Control","isdefault":false,"macaddress":"0e:00:a9:fe:03:ad"},{"id":"d2110f33-dc7f-49a5-bb35-808ee2ba9251","networkid":"c1e501e4-41a3-47a0-8cf3-472895bc68ae","netmask":"255.255.255.0","gateway":"10.147.51.1","ipaddress":"10.147.51.90","isolationuri":"vlan://51","broadcasturi":"vlan://51","traffictype":"Public","isdefault":true,"macaddress":"06:35:34:00:00:79"}],"requiresupgrade":true} > ] } } > Because there are two call , and each response returns same router hence two > routers are listed here. -- This message was sent by Atlassian JIRA (v6.1.5#6160)