[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mice Xia resolved CLOUDSTACK-2109.
----------------------------------

    Resolution: Fixed

error handling had been improved and this should have been fixed, please 
re-open it if still reproducible
                
> UI shows removed Nics 
> ----------------------
>
>                 Key: CLOUDSTACK-2109
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2109
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: UI
>    Affects Versions: 4.2.0
>         Environment: Xen hypervisor
> build:CloudStack-non-OSS-MASTER-232-rhel6.3.tar.gz
>            Reporter: shweta agarwal
>             Fix For: 4.2.0
>
>
> Repro steps:
> Create a VM
> Add 9  nics  to the VM
> As Vm can have maximum 7 NICs last two will fail hence will be marked as 
> removed in nic table in db
> Bug:
> Even though Nics are removed successfully they are shown in UI
> Expected result:
> UI should only show active nics of the VM
> DB shows Nics as removed :
> "id"  "uuid"  "instance_id"   "mac_address"   "ip4_address"   "netmask"       
> "gateway"       "ip_type"       "broadcast_uri" "network_id"    "mode"  
> "state" "strategy"      "reserver_name" "reservation_id"        "device_id"   
>   "update_time"   "isolation_uri" "ip6_address"   "default_nic"   "vm_type"   
>     "created"       "removed"       "ip6_gateway"   "ip6_cidr"      
> "secondary_ip"
> "8"   "779399c2-b1f8-4a5a-95d2-373ee1c97cc4"  "3"     "02:00:18:18:00:01"     
> "10.1.1.194"    "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1049"   "204" 
>   "Dhcp"  "Reserved"      "Start" "ExternalGuestNetworkGuru"      
> "84246f21-a495-47d4-8f06-cf7ff422f8a1"  "0"     "2013-04-19 09:26:39"   
> "vlan://1049"   NULL    "1"     "User"  "2013-04-19 11:09:10"   NULL    NULL  
>   NULL    "0"
> "20"  "18941cd8-5511-4fb5-bd70-6876fe47e91e"  "3"     "06:f1:18:00:00:29"     
> "10.147.51.130" "255.255.255.0" "10.147.51.1"   "Ip4"   "vlan://51"     "207" 
>   "Dhcp"  "Reserved"      "Create"        "DirectNetworkGuru"     NULL    "2" 
>     "2013-04-19 09:27:04"   "vlan://51"     NULL    "0"     "User"  
> "2013-04-19 11:26:07"   NULL    NULL    NULL    "0"
> "24"  "d328b70d-86ad-45fc-8273-aefc6465d226"  "3"     "02:00:58:64:00:03"     
> "10.1.1.67"     "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1049"   "204" 
>   "Dhcp"  "Reserved"      "Start" "ExternalGuestNetworkGuru"      
> "84246f21-a495-47d4-8f06-cf7ff422f8a1"  "3"     "2013-04-19 09:27:16"   
> "vlan://1049"   NULL    "0"     "User"  "2013-04-19 11:33:14"   NULL    NULL  
>   NULL    "0"
> "25"  "c63fc0bf-f6ab-4753-acbb-a14770886719"  "3"     "02:00:0e:c3:00:04"     
> "10.1.1.250"    "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1049"   "204" 
>   "Dhcp"  "Reserved"      "Start" "ExternalGuestNetworkGuru"      
> "84246f21-a495-47d4-8f06-cf7ff422f8a1"  "4"     "2013-04-19 09:27:28"   
> "vlan://1049"   NULL    "0"     "User"  "2013-04-19 11:33:56"   NULL    NULL  
>   NULL    "0"
> "29"  "d42b3a7f-8e8c-4712-99e9-786197ef8fb1"  "3"     "02:00:00:01:00:08"     
> "10.1.1.171"    "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1049"   "204" 
>   "Dhcp"  "Reserved"      "Start" "ExternalGuestNetworkGuru"      
> "84246f21-a495-47d4-8f06-cf7ff422f8a1"  "6"     "2013-04-19 09:27:52"   
> "vlan://1049"   NULL    "0"     "User"  "2013-04-19 13:20:22"   NULL    NULL  
>   NULL    "0"
> "30"  "444a6520-c86d-48ea-91d2-d9bd73902812"  "3"     "02:00:19:2d:00:01"     
> "10.1.1.60"     "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1043"   "209" 
>   "Dhcp"  "Deallocating"  "Start" "ExternalGuestNetworkGuru"      NULL    "7" 
>     "2013-04-19 09:34:33"   "vlan://1043"   NULL    "0"     "User"  
> "2013-04-19 13:30:19"   "2013-04-19 13:34:33"   NULL    NULL    "0"
> "34"  "bbd0a8b0-1913-4306-8b4d-45750bf52c27"  "3"     "02:00:56:37:00:01"     
> "10.1.1.192"    "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1050"   "208" 
>   "Dhcp"  "Deallocating"  "Start" "ExternalGuestNetworkGuru"      NULL    "8" 
>     "2013-04-19 09:34:33"   "vlan://1050"   NULL    "0"     "User"  
> "2013-04-19 13:31:13"   "2013-04-19 13:34:33"   NULL    NULL    "0"
> "38"  "170bb5af-b355-4cb4-8376-490d3e032f80"  "3"     "02:00:07:af:00:03"     
> "10.1.1.35"     "255.255.255.0" "10.1.1.1"      "Ip4"   "vlan://1044"   "206" 
>   "Dhcp"  "Deallocating"  "Start" "ExternalGuestNetworkGuru"      NULL    "9" 
>     "2013-04-19 09:34:09"   "vlan://1044"   NULL    "0"     "User"  
> "2013-04-19 13:31:33"   "2013-04-19 13:34:09"   NULL    NULL    "0"
> "39"  "ae94bf81-a369-4e7c-b5ee-4c76e96c1236"  "3"     "06:ad:24:00:00:23"     
> "10.147.51.124" "255.255.255.0" "10.147.51.1"   "Ip4"   "vlan://51"     "207" 
>   "Dhcp"  "Deallocating"  "Create"        "DirectNetworkGuru"     NULL    
> "10"    "2013-04-19 09:34:10"   "vlan://51"     NULL    "0"     "User"  
> "2013-04-19 13:31:58"   "2013-04-19 13:34:10"   NULL    NULL    "0"
> UI shows Removed nics as well
> (snap shot attached)
> API call 
> http://10.147.59.212:8080/client/api?command=listVirtualMachines&details=nics&id=264433a0-e53c-49ad-81fa-64eeb98b8ab8&response=json&sessionkey=KqnMHlwPiMEQAPhaYlo5lGWcB%2BI%3D&_=1366359875515
> Response:
> { "listvirtualmachinesresponse" : { "count":1 ,"virtualmachine" : [  
> {"id":"264433a0-e53c-49ad-81fa-64eeb98b8ab8","name":"a","displayname":"a","account":"admin","domainid":"37deb784-a8df-11e2-8675-0648d80000bc","domain":"ROOT","created":"2013-04-19T07:09:09-0400","state":"Running","haenable":false,"zoneid":"4f5aead9-1d0c-49c0-adf3-99bec467d0d4","zonename":"z","hostid":"6b4e5086-42cc-4853-b912-d685a62229f2","hostname":"Rack1Pod1Host27","guestosid":"37f1dfda-a8df-11e2-8675-0648d80000bc","securitygroup":[],"nic":[{"id":"779399c2-b1f8-4a5a-95d2-373ee1c97cc4","networkid":"fd88f16f-0310-42e1-960d-7956789c4981","networkname":"n1","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.194","isolationuri":"vlan://1049","broadcasturi":"vlan://1049","traffictype":"Guest","type":"Isolated","isdefault":true,"macaddress":"02:00:18:18:00:01"},{"id":"18941cd8-5511-4fb5-bd70-6876fe47e91e","networkid":"82acd9d7-7578-4339-8f46-4294af79ccb0","networkname":"shared","netmask":"255.255.255.0","gateway":"10.147.51.1","ipaddress":"10.147.51.130","isolationuri":"vlan://51","broadcasturi":"vlan://51","traffictype":"Guest","type":"Shared","isdefault":false,"macaddress":"06:f1:18:00:00:29"},{"id":"d328b70d-86ad-45fc-8273-aefc6465d226","networkid":"fd88f16f-0310-42e1-960d-7956789c4981","networkname":"n1","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.67","isolationuri":"vlan://1049","broadcasturi":"vlan://1049","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:58:64:00:03"},{"id":"c63fc0bf-f6ab-4753-acbb-a14770886719","networkid":"fd88f16f-0310-42e1-960d-7956789c4981","networkname":"n1","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.250","isolationuri":"vlan://1049","broadcasturi":"vlan://1049","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:0e:c3:00:04"},{"id":"d42b3a7f-8e8c-4712-99e9-786197ef8fb1","networkid":"fd88f16f-0310-42e1-960d-7956789c4981","networkname":"n1","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.171","isolationuri":"vlan://1049","broadcasturi":"vlan://1049","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:00:01:00:08"},{"id":"444a6520-c86d-48ea-91d2-d9bd73902812","networkid":"56d36f09-0db8-4530-8664-62ff2c98ca97","networkname":"n4","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.60","isolationuri":"vlan://1043","broadcasturi":"vlan://1043","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:19:2d:00:01"},{"id":"bbd0a8b0-1913-4306-8b4d-45750bf52c27","networkid":"c34d32a8-7bb6-4754-a631-74cf2f20ed3d","networkname":"n5","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.192","isolationuri":"vlan://1050","broadcasturi":"vlan://1050","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:56:37:00:01"},{"id":"170bb5af-b355-4cb4-8376-490d3e032f80","networkid":"e7c1c514-58a4-437f-a926-a00f8b125048","networkname":"n3","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.35","isolationuri":"vlan://1044","broadcasturi":"vlan://1044","traffictype":"Guest","type":"Isolated","isdefault":false,"macaddress":"02:00:07:af:00:03"},{"id":"ae94bf81-a369-4e7c-b5ee-4c76e96c1236","networkid":"82acd9d7-7578-4339-8f46-4294af79ccb0","networkname":"shared","netmask":"255.255.255.0","gateway":"10.147.51.1","ipaddress":"10.147.51.124","isolationuri":"vlan://51","broadcasturi":"vlan://51","traffictype":"Guest","type":"Shared","isdefault":false,"macaddress":"06:ad:24:00:00:23"}],"hypervisor":"XenServer","instancename":"i-2-3-VM","tags":[],"affinitygroup":[],"jobstatus":0}
>  ] } }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to