Skip to content

CLOUDSTACK-9491: incorrect parsing of device list to find ethernet index of plugged NIC - #1681

Merged
asfgit merged 1 commit into
apache:4.9from
murali-reddy:router_eth_device_index
Nov 23, 2016
Merged

CLOUDSTACK-9491: incorrect parsing of device list to find ethernet index of plugged NIC#1681
asfgit merged 1 commit into
apache:4.9from
murali-reddy:router_eth_device_index

Conversation

@murali-reddy

Copy link
Copy Markdown
Contributor

In VmwareResource, findRouterEthDeviceIndex() method find ethernet interface index given
the mac address. This method is used, once a nic is plugged to determine ethernet interface.
"/proc/sys/net/ipv4/conf" from the VR and looped through the devices to find the right
ethernet interface. Howver current logic read it once, and loops through the device list.
Its observerd device may not show up '/proc/sys/net/ipv4/conf' immediatly once NIC is plugged
in the VM from vCenter.

Fix ensured, while waiting for 15 sec in the loop, read the latest content from /proc/sys/net/ipv4/conf
, so that right device list is processed.

Manual tested VPC scenarios of adding new tiers which uses findRouterEthDeviceIndex, to find the guest/public network ethernet index.

@serg38

Copy link
Copy Markdown

@murali-reddy This issue might be related to PR1660. Do you mind testing against latest master to see if you it is addressed already?

@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@serg38 Though same code path, i ran into different issue. When i was adding new tier to VPC, eth3 was plugged into VR from vCenter. As commented in the function there is delay for ethernet device to appear in the guest instance.

I could see code loops through eth0, eth1, eth2 only, because it read the '/proc/sys/net/ipv4/conf' too early.

@serg38

Copy link
Copy Markdown

@murali-reddy Thanks for the explanation. LGTM for code review

@abhinandanprateek

Copy link
Copy Markdown
Contributor

The fix looks like the correct thing to do.
@muali-reddy LGTM for code review.

@sateesh-chodapuneedi

Copy link
Copy Markdown
Member

@murali-reddy Makes sense to get fresh listing of virtual NICs in next iteration as the first iteration might have missed the hot-plugged virtual NIC (for VPC tier being configured). Though one side effect is we will loop through all the virtual NICs, except the newly hot-plugged NIC, at least one more time.
Can you please see if we can avoid repeating the command 'ip address show' for the virtual NICs that were already verified to be not matching.

@jburwell

Copy link
Copy Markdown
Contributor

@murali-reddy have you had a chance to address @sateesh-chodapuneedi comments?

@jburwell

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@jburwell a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-25

@jburwell

Copy link
Copy Markdown
Contributor

@blueorangutan test centos7 vmware55u3

@blueorangutan

Copy link
Copy Markdown

@jburwell a Trillian-Jenkins test job (centos7 mgmt + vmware55u3) has been kicked to run smoke tests

@jburwell

Copy link
Copy Markdown
Contributor

@murali-reddy is there a way to create or update a Marvin test case to verify this fix?

@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@sateesh-chodapuneedi added optimization for now, but its better we eliminate the whole logic of finding device index from the VR.

@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@jburwell function 'findRouterEthDeviceIndex' which is modified, is invoked when ever a new tier to VPC is added (virtual NIC is hot-plugged). Many VPC tests run againest the VMware environment will cover this scenario.

@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test centos7 vmware55u3

@blueorangutan

Copy link
Copy Markdown

@murali-reddy a Trillian-Jenkins test job (centos7 mgmt + vmware55u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-58)
Environment: vmware-55u3 (x2), Advanced Networking
Total time taken: 33200 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr1681-t58-vmware-55u3.zip
Test completed. 41 look ok, 12 have errors

TestResultTime (s)
test_oobm_zchange_passwordFailure20.361
test_04_rvpc_privategw_static_routesFailure383.174
test_03_vpc_privategw_restart_vpc_cleanupFailure212.325
test_02_vpc_privategw_static_routesFailure232.360
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Failure585.633
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_falseFailure459.765
test_01_vpc_privategw_aclFailure106.756
test_01_redundant_vpc_site2site_vpnFailure412.476
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80Failure425.171
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueFailure399.796
test_router_dhcphostsError827.549
test_isolate_network_password_serverError825.097
test_extendPhysicalNetworkVlanError0.031
test_dedicatePublicIpRangeError0.213
test_04_rvpc_network_garbage_collector_nicsError227.392
test_04_rvpc_internallb_haproxy_stats_on_all_interfacesError455.683
test_03_vpc_internallb_haproxy_stats_on_all_interfacesError370.529
test_02_routervm_iptables_policiesError920.696
test_01_vpc_site2site_vpnError491.171
test_01_vpc_remote_access_vpnError0.094
test_01_test_vm_volume_snapshotError151.079
test_01_single_VPC_iptables_policiesError1010.381
ContextSuite context=TestRouterDHCPHosts>:teardownError843.716
ContextSuite context=TestDedicateGuestVlanRange>:setupError0.000
test_router_dns_guestipquerySuccess76.635
test_router_dns_externalipquerySuccess0.070
test_rolepermission_lifecycle_updateSuccess6.566
test_rolepermission_lifecycle_listSuccess6.263
test_rolepermission_lifecycle_deleteSuccess6.158
test_rolepermission_lifecycle_createSuccess6.179
test_rolepermission_lifecycle_concurrent_updatesSuccess6.302
test_role_lifecycle_update_role_inuseSuccess6.197
test_role_lifecycle_updateSuccess11.258
test_role_lifecycle_listSuccess6.282
test_role_lifecycle_deleteSuccess11.247
test_role_lifecycle_createSuccess6.212
test_role_inuse_deletionSuccess6.184
test_role_account_acls_multiple_mgmt_serversSuccess7.661
test_role_account_aclsSuccess7.971
test_releaseIPSuccess288.086
test_reboot_routerSuccess599.543
test_public_ip_user_accountSuccess10.186
test_public_ip_admin_accountSuccess40.235
test_oobm_multiple_mgmt_server_ownershipSuccess14.558
test_oobm_issue_power_statusSuccess10.557
test_oobm_issue_power_softSuccess15.557
test_oobm_issue_power_resetSuccess15.549
test_oobm_issue_power_onSuccess15.593
test_oobm_issue_power_offSuccess15.590
test_oobm_issue_power_cycleSuccess15.658
test_oobm_enabledisable_across_clusterzonesSuccess57.971
test_oobm_enable_feature_validSuccess5.150
test_oobm_enable_feature_invalidSuccess0.089
test_oobm_disable_feature_validSuccess5.158
test_oobm_disable_feature_invalidSuccess5.168
test_oobm_configure_invalid_driverSuccess0.077
test_oobm_configure_default_driverSuccess0.076
test_oobm_background_powerstate_syncSuccess19.591
test_nic_secondaryip_add_removeSuccess212.565
test_network_rules_acquired_public_ip_3_Load_Balancer_RuleSuccess76.621
test_network_rules_acquired_public_ip_2_nat_ruleSuccess61.475
test_network_rules_acquired_public_ip_1_static_nat_ruleSuccess125.136
test_network_aclSuccess201.411
test_deployvm_userdispersingSuccess60.629
test_deployvm_userdata_postSuccess30.423
test_deployvm_userdataSuccess186.248
test_deployvm_userconcentratedSuccess55.702
test_deployvm_firstfitSuccess196.124
test_deploy_vm_multipleSuccess222.462
test_deploy_vm_from_isoSuccess432.595
test_deploy_vmSuccess0.023
test_delete_accountSuccess318.066
test_default_role_deletionSuccess6.285
test_create_pvlan_networkSuccess5.163
test_createRegionSuccess0.031
test_createPortablePublicIPRangeSuccess15.274
test_createPortablePublicIPAcquireSuccess15.482
test_assign_and_removal_lbSuccess148.732
test_advZoneVirtualRouterSuccess0.019
test_UpdateStorageOverProvisioningFactorSuccess0.098
test_UpdateConfigParamWithScopeSuccess0.099
test_DeployVmAntiAffinityGroup_in_projectSuccess261.861
test_DeployVmAntiAffinityGroupSuccess176.286
test_CreateTemplateWithDuplicateNameSuccess221.386
test_10_destroy_cpvmSuccess271.790
test_10_attachAndDetach_isoSuccess71.825
test_09_reboot_routerSuccess171.122
test_09_expunge_vmSuccess125.215
test_09_destroy_ssvmSuccess268.768
test_09_delete_detached_volumeSuccess26.076
test_08_start_routerSuccess156.080
test_08_reboot_cpvmSuccess156.594
test_08_migrate_vmSuccess85.962
test_08_list_system_templatesSuccess0.031
test_07_stop_routerSuccess20.251
test_07_restore_vmSuccess0.072
test_07_reboot_ssvmSuccess158.292
test_07_list_public_templatesSuccess0.039
test_07_list_default_isoSuccess0.040
test_06_stop_cpvmSuccess226.725
test_06_router_advancedSuccess0.078
test_06_download_detached_volumeSuccess60.450
test_06_destroy_vmSuccess10.116
test_05_template_permissionsSuccess0.062
test_05_stop_ssvmSuccess208.743
test_05_rvpc_multi_tiersSuccess670.737
test_05_router_basicSuccess0.053
test_05_iso_permissionsSuccess0.044
test_05_detach_volumeSuccess110.256
test_04_restart_network_wo_cleanupSuccess5.793
test_04_extract_templateSuccess10.814
test_04_extract_IsoSuccess5.113
test_04_delete_attached_volumeSuccess20.200
test_04_create_fat_type_disk_offeringSuccess0.054
test_04_cpvm_internalsSuccess1.131
test_04_change_offering_smallSuccess97.976
test_03_ssvm_internalsSuccess3.486
test_03_restart_network_cleanupSuccess150.913
test_03_reboot_vmSuccess5.134
test_03_list_snapshotsSuccess0.051
test_03_download_attached_volumeSuccess15.223
test_03_delete_vm_snapshotsSuccess275.219
test_03_delete_templateSuccess5.107
test_03_delete_service_offeringSuccess0.037
test_03_delete_isoSuccess95.094
test_03_delete_disk_offeringSuccess0.030
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routersSuccess747.514
test_03_RVR_Network_check_router_stateSuccess370.433
test_02_sys_template_readySuccess0.112
test_02_start_vmSuccess20.186
test_02_router_internal_advSuccess1.014
test_02_revert_vm_snapshotsSuccess229.115
test_02_redundant_VPC_default_routesSuccess773.247
test_02_port_fwd_on_non_src_natSuccess55.519
test_02_list_templatesSuccess0.032
test_02_list_cpvm_vmSuccess0.106
test_02_isolate_network_FW_PF_default_routes_egress_falseSuccess256.184
test_02_edit_templateSuccess90.088
test_02_edit_service_offeringSuccess0.067
test_02_edit_isoSuccess0.058
test_02_edit_disk_offeringSuccess0.034
test_02_deploy_vm_root_resizeSuccess6.231
test_02_create_sparse_type_disk_offeringSuccess0.050
test_02_create_lb_rule_non_natSuccess207.287
test_02_attach_volumeSuccess60.452
test_02_VPC_default_routesSuccess358.088
test_01_updatevolumedetailSuccess5.090
test_01_sys_vm_startSuccess0.147
test_01_stop_vmSuccess10.119
test_01_snapshot_root_diskSuccess181.873
test_01_router_internal_basicSuccess0.504
test_01_reset_vm_on_rebootSuccess25.239
test_01_primary_storage_nfsSuccess38.521
test_01_port_fwd_on_src_natSuccess111.912
test_01_nicSuccess700.705
test_01_list_volumesSuccess0.021
test_01_list_sec_storage_vmSuccess0.107
test_01_isolate_network_FW_PF_default_routes_egress_trueSuccess311.392
test_01_deploy_vm_root_resizeSuccess6.186
test_01_create_volumeSuccess525.905
test_01_create_vm_snapshotsSuccess161.916
test_01_create_templateSuccess140.821
test_01_create_service_offeringSuccess0.107
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLSuccess1417.998
test_01_create_lb_rule_src_natSuccess207.774
test_01_create_isoSuccess66.269
test_01_create_disk_offeringSuccess0.086
test_01_VPC_nics_after_destroySuccess676.058
test_00_deploy_vm_root_resizeSuccess6.308
login_test_saml_userSuccess21.636
test_vm_nic_adapter_vmxnet3Skipped0.001
test_static_role_account_aclsSkipped0.017
test_deploy_vgpu_enabled_vmSkipped0.005
test_08_resize_volumeSkipped5.105
test_07_resize_failSkipped10.241
test_06_copy_templateSkipped0.000
test_06_copy_isoSkipped0.000
test_01_scale_vmSkipped66.423
test_01_primary_storage_iscsiSkipped0.051

@sateesh-chodapuneedi

Copy link
Copy Markdown
Member

Code LGTM, 👍 +1

@yadvr

Copy link
Copy Markdown
Member

LGTM, some test failures have been addressed here: #1692

@jburwell

Copy link
Copy Markdown
Contributor

@murali-reddy could you please squash your commits?

@yadvr

Copy link
Copy Markdown
Member

@murali-reddy can you squash your commits
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-86

…dex of plugged NIC
In VmwareResource, findRouterEthDeviceIndex() method find ethernet interface index given
the mac address. This method is used, once a nic is plugged to determine ethernet interface.
"/proc/sys/net/ipv4/conf" from the VR and looped through the devices to find the right
ethernet interface. However current logic read it once, and loops through the device list.
Its observerd device may not show up '/proc/sys/net/ipv4/conf' immediatly once NIC is plugged
in the VM from vCenter.Fix ensured, while waiting for 15 sec in the loop, read the latest
content from /proc/sys/net/ipv4/conf, so that right device list is processed.
@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@murali-reddy a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-114

@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test centos7 vmware55u3

@blueorangutan

Copy link
Copy Markdown

@murali-reddy a Trillian-Jenkins test job (centos7 mgmt + vmware55u3) has been kicked to run smoke tests

@murali-reddy

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test centos7 vmware55u3

@blueorangutan

Copy link
Copy Markdown

@murali-reddy a Trillian-Jenkins test job (centos7 mgmt + vmware55u3) has been kicked to run smoke tests

@jburwell

Copy link
Copy Markdown
Contributor

@rhtyd could you check into the status of the test run for this PR?

@yadvr

yadvr commented Nov 1, 2016

Copy link
Copy Markdown
Member

Invalid params were provided, the hypervisor to be passed was vmware-55u3. I'll fix this in blueorangutan as it currently does not check/validate the hypervisor name properly. Kicked a new job manually from Jenkins.

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-232)
Environment: vmware-55u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 37364 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr1681-t232-vmware-55u3.zip
Test completed. 45 look ok, 3 have error(s)

TestResultTime (s)Test File
test_03_vpc_internallb_haproxy_stats_on_all_interfacesFailure333.42test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Failure121.34test_internal_lb.py
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80Failure156.35test_internal_lb.py
test_01_vpc_site2site_vpnError495.89test_vpc_vpn.py
test_01_redundant_vpc_site2site_vpnError807.67test_vpc_vpn.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLError1295.34test_vpc_redundant.py
test_01_vpc_remote_access_vpnSuccess166.30test_vpc_vpn.py
test_02_VPC_default_routesSuccess399.32test_vpc_router_nics.py
test_01_VPC_nics_after_destroySuccess775.75test_vpc_router_nics.py
test_05_rvpc_multi_tiersSuccess759.90test_vpc_redundant.py
test_04_rvpc_network_garbage_collector_nicsSuccess1619.27test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routersSuccess817.78test_vpc_redundant.py
test_02_redundant_VPC_default_routesSuccess688.69test_vpc_redundant.py
test_09_delete_detached_volumeSuccess36.51test_volumes.py
test_06_download_detached_volumeSuccess85.74test_volumes.py
test_05_detach_volumeSuccess110.73test_volumes.py
test_04_delete_attached_volumeSuccess20.21test_volumes.py
test_03_download_attached_volumeSuccess26.01test_volumes.py
test_02_attach_volumeSuccess64.50test_volumes.py
test_01_create_volumeSuccess530.34test_volumes.py
test_03_delete_vm_snapshotsSuccess280.23test_vm_snapshots.py
test_02_revert_vm_snapshotsSuccess227.15test_vm_snapshots.py
test_01_test_vm_volume_snapshotSuccess231.41test_vm_snapshots.py
test_01_create_vm_snapshotsSuccess161.71test_vm_snapshots.py
test_deploy_vm_multipleSuccess288.30test_vm_life_cycle.py
test_deploy_vmSuccess0.02test_vm_life_cycle.py
test_advZoneVirtualRouterSuccess0.02test_vm_life_cycle.py
test_10_attachAndDetach_isoSuccess26.76test_vm_life_cycle.py
test_09_expunge_vmSuccess125.19test_vm_life_cycle.py
test_08_migrate_vmSuccess80.82test_vm_life_cycle.py
test_07_restore_vmSuccess0.07test_vm_life_cycle.py
test_06_destroy_vmSuccess10.14test_vm_life_cycle.py
test_03_reboot_vmSuccess5.11test_vm_life_cycle.py
test_02_start_vmSuccess25.20test_vm_life_cycle.py
test_01_stop_vmSuccess10.11test_vm_life_cycle.py
test_CreateTemplateWithDuplicateNameSuccess276.43test_templates.py
test_08_list_system_templatesSuccess0.02test_templates.py
test_07_list_public_templatesSuccess0.03test_templates.py
test_05_template_permissionsSuccess0.04test_templates.py
test_04_extract_templateSuccess15.34test_templates.py
test_03_delete_templateSuccess5.08test_templates.py
test_02_edit_templateSuccess90.16test_templates.py
test_01_create_templateSuccess130.78test_templates.py
test_10_destroy_cpvmSuccess261.57test_ssvm.py
test_09_destroy_ssvmSuccess263.50test_ssvm.py
test_08_reboot_cpvmSuccess156.37test_ssvm.py
test_07_reboot_ssvmSuccess158.21test_ssvm.py
test_06_stop_cpvmSuccess231.67test_ssvm.py
test_05_stop_ssvmSuccess203.50test_ssvm.py
test_04_cpvm_internalsSuccess1.03test_ssvm.py
test_03_ssvm_internalsSuccess3.36test_ssvm.py
test_02_list_cpvm_vmSuccess0.09test_ssvm.py
test_01_list_sec_storage_vmSuccess0.14test_ssvm.py
test_01_snapshot_root_diskSuccess81.27test_snapshots.py
test_04_change_offering_smallSuccess126.97test_service_offerings.py
test_03_delete_service_offeringSuccess0.03test_service_offerings.py
test_02_edit_service_offeringSuccess0.06test_service_offerings.py
test_01_create_service_offeringSuccess0.08test_service_offerings.py
test_02_sys_template_readySuccess0.10test_secondary_storage.py
test_01_sys_vm_startSuccess0.16test_secondary_storage.py
test_09_reboot_routerSuccess176.00test_routers.py
test_08_start_routerSuccess155.90test_routers.py
test_07_stop_routerSuccess20.24test_routers.py
test_06_router_advancedSuccess0.05test_routers.py
test_05_router_basicSuccess0.07test_routers.py
test_04_restart_network_wo_cleanupSuccess5.56test_routers.py
test_03_restart_network_cleanupSuccess186.00test_routers.py
test_02_router_internal_advSuccess0.89test_routers.py
test_01_router_internal_basicSuccess0.50test_routers.py
test_router_dns_guestipquerySuccess77.02test_router_dns.py
test_router_dns_externalipquerySuccess0.05test_router_dns.py
test_router_dhcphostsSuccess155.63test_router_dhcphosts.py
test_01_updatevolumedetailSuccess0.06test_resource_detail.py
test_01_reset_vm_on_rebootSuccess65.45test_reset_vm_on_reboot.py
test_createRegionSuccess0.04test_regions.py
test_create_pvlan_networkSuccess5.19test_pvlan.py
test_dedicatePublicIpRangeSuccess0.31test_public_ip_range.py
test_04_rvpc_privategw_static_routesSuccess1294.48test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupSuccess1177.77test_privategw_acl.py
test_02_vpc_privategw_static_routesSuccess802.10test_privategw_acl.py
test_01_vpc_privategw_aclSuccess197.78test_privategw_acl.py
test_01_primary_storage_nfsSuccess37.58test_primary_storage.py
test_createPortablePublicIPRangeSuccess10.16test_portable_publicip.py
test_createPortablePublicIPAcquireSuccess15.33test_portable_publicip.py
test_isolate_network_password_serverSuccess94.12test_password_server.py
test_UpdateStorageOverProvisioningFactorSuccess0.10test_over_provisioning.py
test_oobm_zchange_passwordSuccess15.51test_outofbandmanagement.py
test_oobm_multiple_mgmt_server_ownershipSuccess16.52test_outofbandmanagement.py
test_oobm_issue_power_statusSuccess10.51test_outofbandmanagement.py
test_oobm_issue_power_softSuccess15.51test_outofbandmanagement.py
test_oobm_issue_power_resetSuccess10.51test_outofbandmanagement.py
test_oobm_issue_power_onSuccess15.51test_outofbandmanagement.py
test_oobm_issue_power_offSuccess15.53test_outofbandmanagement.py
test_oobm_issue_power_cycleSuccess15.51test_outofbandmanagement.py
test_oobm_enabledisable_across_clusterzonesSuccess57.30test_outofbandmanagement.py
test_oobm_enable_feature_validSuccess5.14test_outofbandmanagement.py
test_oobm_enable_feature_invalidSuccess0.09test_outofbandmanagement.py
test_oobm_disable_feature_validSuccess5.15test_outofbandmanagement.py
test_oobm_disable_feature_invalidSuccess0.09test_outofbandmanagement.py
test_oobm_configure_invalid_driverSuccess0.07test_outofbandmanagement.py
test_oobm_configure_default_driverSuccess0.18test_outofbandmanagement.py
test_oobm_background_powerstate_syncSuccess23.71test_outofbandmanagement.py
test_extendPhysicalNetworkVlanSuccess15.33test_non_contigiousvlan.py
test_01_nicSuccess817.03test_nic.py
test_releaseIPSuccess494.18test_network.py
test_reboot_routerSuccess690.23test_network.py
test_public_ip_user_accountSuccess10.18test_network.py
test_public_ip_admin_accountSuccess40.24test_network.py
test_network_rules_acquired_public_ip_3_Load_Balancer_RuleSuccess76.51test_network.py
test_network_rules_acquired_public_ip_2_nat_ruleSuccess61.70test_network.py
test_network_rules_acquired_public_ip_1_static_nat_ruleSuccess125.58test_network.py
test_delete_accountSuccess343.29test_network.py
test_02_port_fwd_on_non_src_natSuccess55.49test_network.py
test_01_port_fwd_on_src_natSuccess111.70test_network.py
test_nic_secondaryip_add_removeSuccess293.25test_multipleips_per_nic.py
login_test_saml_userSuccess21.70test_login.py
test_assign_and_removal_lbSuccess149.04test_loadbalance.py
test_02_create_lb_rule_non_natSuccess207.59test_loadbalance.py
test_01_create_lb_rule_src_natSuccess208.70test_loadbalance.py
test_03_list_snapshotsSuccess0.07test_list_ids_parameter.py
test_02_list_templatesSuccess0.04test_list_ids_parameter.py
test_01_list_volumesSuccess0.03test_list_ids_parameter.py
test_07_list_default_isoSuccess0.05test_iso.py
test_05_iso_permissionsSuccess0.05test_iso.py
test_04_extract_IsoSuccess5.16test_iso.py
test_03_delete_isoSuccess95.18test_iso.py
test_02_edit_isoSuccess0.05test_iso.py
test_01_create_isoSuccess21.32test_iso.py
test_04_rvpc_internallb_haproxy_stats_on_all_interfacesSuccess732.30test_internal_lb.py
test_dedicateGuestVlanRangeSuccess10.23test_guest_vlan_range.py
test_UpdateConfigParamWithScopeSuccess0.12test_global_settings.py
test_rolepermission_lifecycle_updateSuccess6.62test_dynamicroles.py
test_rolepermission_lifecycle_listSuccess6.44test_dynamicroles.py
test_rolepermission_lifecycle_deleteSuccess6.41test_dynamicroles.py
test_rolepermission_lifecycle_createSuccess6.25test_dynamicroles.py
test_rolepermission_lifecycle_concurrent_updatesSuccess6.37test_dynamicroles.py
test_role_lifecycle_update_role_inuseSuccess6.23test_dynamicroles.py
test_role_lifecycle_updateSuccess11.32test_dynamicroles.py
test_role_lifecycle_listSuccess6.38test_dynamicroles.py
test_role_lifecycle_deleteSuccess6.26test_dynamicroles.py
test_role_lifecycle_createSuccess6.28test_dynamicroles.py
test_role_inuse_deletionSuccess6.22test_dynamicroles.py
test_role_account_acls_multiple_mgmt_serversSuccess7.70test_dynamicroles.py
test_role_account_aclsSuccess8.01test_dynamicroles.py
test_default_role_deletionSuccess6.30test_dynamicroles.py
test_04_create_fat_type_disk_offeringSuccess0.11test_disk_offerings.py
test_03_delete_disk_offeringSuccess0.04test_disk_offerings.py
test_02_edit_disk_offeringSuccess0.05test_disk_offerings.py
test_02_create_sparse_type_disk_offeringSuccess0.07test_disk_offerings.py
test_01_create_disk_offeringSuccess0.11test_disk_offerings.py
test_deployvm_userdispersingSuccess65.71test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userconcentratedSuccess56.55test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_firstfitSuccess211.43test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userdata_postSuccess65.68test_deploy_vm_with_userdata.py
test_deployvm_userdataSuccess232.26test_deploy_vm_with_userdata.py
test_02_deploy_vm_root_resizeSuccess6.41test_deploy_vm_root_resize.py
test_01_deploy_vm_root_resizeSuccess6.20test_deploy_vm_root_resize.py
test_00_deploy_vm_root_resizeSuccess6.28test_deploy_vm_root_resize.py
test_deploy_vm_from_isoSuccess237.60test_deploy_vm_iso.py
test_DeployVmAntiAffinityGroupSuccess221.73test_affinity_groups.py
test_08_resize_volumeSkipped10.13test_volumes.py
test_07_resize_failSkipped15.30test_volumes.py
test_06_copy_templateSkipped0.00test_templates.py
test_static_role_account_aclsSkipped0.02test_staticroles.py
test_01_scale_vmSkipped66.34test_scale_vm.py
test_01_primary_storage_iscsiSkipped0.03test_primary_storage.py
test_06_copy_isoSkipped0.00test_iso.py
test_deploy_vgpu_enabled_vmSkipped0.01test_deploy_vgpu_enabled_vm.py

@jburwell

Copy link
Copy Markdown
Contributor

@murali-reddy could you please investigate the following test case failures:

  • test_03_vpc_internallb_haproxy_stats_on_all_interfaces
  • test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80
  • test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80
  • test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL

@jburwell

Copy link
Copy Markdown
Contributor

@murali-reddy have you had a chance to investigate the test failures?

@yadvr

Copy link
Copy Markdown
Member

LGTM on tests, the failures wrt VPC are known intermittent issues. I'm not sure about the internal lb failures, I'll kick another test round since there have been several changes on the base branch.

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-226

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test centos7 vmware55u3

@blueorangutan

Copy link
Copy Markdown

@rhtyd unsupported parameters provided. Supported mgmt server os are: centos6, centos7, ubuntu. Supported hypervisors are: kvm-centos6, kvm-centos7, kvm-ubuntu, xenserver-65sp1, xenserver-62sp1, vmware-60u2, vmware-55u3, vmware-51u1, vmware-50u1

@yadvr

Copy link
Copy Markdown
Member

@blueorangutan test centos7 vmware-55u3

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-55u3) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-378)
Environment: vmware-55u3 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35100 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr1681-t378-vmware-55u3.zip
Test completed. 45 look ok, 3 have error(s)

TestResultTime (s)Test File
test_04_rvpc_privategw_static_routesFailure881.18test_privategw_acl.py
test_01_vpc_site2site_vpnError491.85test_vpc_vpn.py
test_01_redundant_vpc_site2site_vpnError692.86test_vpc_vpn.py
test_03_restart_network_cleanupError141.19test_routers.py
test_03_vpc_privategw_restart_vpc_cleanupError679.12test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupError729.79test_privategw_acl.py
test_01_vpc_remote_access_vpnSuccess166.72test_vpc_vpn.py
test_02_VPC_default_routesSuccess380.57test_vpc_router_nics.py
test_01_VPC_nics_after_destroySuccess712.43test_vpc_router_nics.py
test_05_rvpc_multi_tiersSuccess692.84test_vpc_redundant.py
test_04_rvpc_network_garbage_collector_nicsSuccess1665.06test_vpc_redundant.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routersSuccess720.00test_vpc_redundant.py
test_02_redundant_VPC_default_routesSuccess735.66test_vpc_redundant.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLSuccess1377.56test_vpc_redundant.py
test_09_delete_detached_volumeSuccess25.86test_volumes.py
test_06_download_detached_volumeSuccess85.81test_volumes.py
test_05_detach_volumeSuccess105.23test_volumes.py
test_04_delete_attached_volumeSuccess10.19test_volumes.py
test_03_download_attached_volumeSuccess20.38test_volumes.py
test_02_attach_volumeSuccess48.73test_volumes.py
test_01_create_volumeSuccess477.51test_volumes.py
test_03_delete_vm_snapshotsSuccess280.24test_vm_snapshots.py
test_02_revert_vm_snapshotsSuccess242.30test_vm_snapshots.py
test_01_test_vm_volume_snapshotSuccess337.50test_vm_snapshots.py
test_01_create_vm_snapshotsSuccess159.40test_vm_snapshots.py
test_deploy_vm_multipleSuccess228.68test_vm_life_cycle.py
test_deploy_vmSuccess0.03test_vm_life_cycle.py
test_advZoneVirtualRouterSuccess0.02test_vm_life_cycle.py
test_10_attachAndDetach_isoSuccess27.19test_vm_life_cycle.py
test_09_expunge_vmSuccess125.17test_vm_life_cycle.py
test_08_migrate_vmSuccess71.37test_vm_life_cycle.py
test_07_restore_vmSuccess0.11test_vm_life_cycle.py
test_06_destroy_vmSuccess10.15test_vm_life_cycle.py
test_03_reboot_vmSuccess5.14test_vm_life_cycle.py
test_02_start_vmSuccess20.24test_vm_life_cycle.py
test_01_stop_vmSuccess5.12test_vm_life_cycle.py
test_CreateTemplateWithDuplicateNameSuccess261.64test_templates.py
test_08_list_system_templatesSuccess0.03test_templates.py
test_07_list_public_templatesSuccess0.04test_templates.py
test_05_template_permissionsSuccess0.06test_templates.py
test_04_extract_templateSuccess20.59test_templates.py
test_03_delete_templateSuccess5.11test_templates.py
test_02_edit_templateSuccess90.13test_templates.py
test_01_create_templateSuccess125.87test_templates.py
test_10_destroy_cpvmSuccess236.74test_ssvm.py
test_09_destroy_ssvmSuccess268.77test_ssvm.py
test_08_reboot_cpvmSuccess156.56test_ssvm.py
test_07_reboot_ssvmSuccess158.70test_ssvm.py
test_06_stop_cpvmSuccess176.78test_ssvm.py
test_05_stop_ssvmSuccess213.78test_ssvm.py
test_04_cpvm_internalsSuccess1.29test_ssvm.py
test_03_ssvm_internalsSuccess3.96test_ssvm.py
test_02_list_cpvm_vmSuccess0.14test_ssvm.py
test_01_list_sec_storage_vmSuccess0.14test_ssvm.py
test_01_snapshot_root_diskSuccess31.23test_snapshots.py
test_04_change_offering_smallSuccess91.85test_service_offerings.py
test_03_delete_service_offeringSuccess0.04test_service_offerings.py
test_02_edit_service_offeringSuccess0.05test_service_offerings.py
test_01_create_service_offeringSuccess0.15test_service_offerings.py
test_02_sys_template_readySuccess0.13test_secondary_storage.py
test_01_sys_vm_startSuccess0.17test_secondary_storage.py
test_09_reboot_routerSuccess125.88test_routers.py
test_08_start_routerSuccess105.86test_routers.py
test_07_stop_routerSuccess25.35test_routers.py
test_06_router_advancedSuccess0.10test_routers.py
test_05_router_basicSuccess0.06test_routers.py
test_04_restart_network_wo_cleanupSuccess117.79test_routers.py
test_02_router_internal_advSuccess1.24test_routers.py
test_01_router_internal_basicSuccess0.60test_routers.py
test_router_dns_guestipquerySuccess79.68test_router_dns.py
test_router_dns_externalipquerySuccess0.05test_router_dns.py
test_router_dhcphostsSuccess185.26test_router_dhcphosts.py
test_01_updatevolumedetailSuccess5.11test_resource_detail.py
test_01_reset_vm_on_rebootSuccess75.90test_reset_vm_on_reboot.py
test_createRegionSuccess0.04test_regions.py
test_create_pvlan_networkSuccess5.23test_pvlan.py
test_dedicatePublicIpRangeSuccess0.43test_public_ip_range.py
test_02_vpc_privategw_static_routesSuccess759.17test_privategw_acl.py
test_01_vpc_privategw_aclSuccess183.97test_privategw_acl.py
test_01_primary_storage_nfsSuccess38.28test_primary_storage.py
test_createPortablePublicIPRangeSuccess15.20test_portable_publicip.py
test_createPortablePublicIPAcquireSuccess15.44test_portable_publicip.py
test_isolate_network_password_serverSuccess89.14test_password_server.py
test_UpdateStorageOverProvisioningFactorSuccess0.16test_over_provisioning.py
test_oobm_zchange_passwordSuccess20.52test_outofbandmanagement.py
test_oobm_multiple_mgmt_server_ownershipSuccess16.50test_outofbandmanagement.py
test_oobm_issue_power_statusSuccess10.53test_outofbandmanagement.py
test_oobm_issue_power_softSuccess15.52test_outofbandmanagement.py
test_oobm_issue_power_resetSuccess10.51test_outofbandmanagement.py
test_oobm_issue_power_onSuccess15.52test_outofbandmanagement.py
test_oobm_issue_power_offSuccess15.52test_outofbandmanagement.py
test_oobm_issue_power_cycleSuccess15.52test_outofbandmanagement.py
test_oobm_enabledisable_across_clusterzonesSuccess57.23test_outofbandmanagement.py
test_oobm_enable_feature_validSuccess5.16test_outofbandmanagement.py
test_oobm_enable_feature_invalidSuccess0.10test_outofbandmanagement.py
test_oobm_disable_feature_validSuccess0.21test_outofbandmanagement.py
test_oobm_disable_feature_invalidSuccess0.13test_outofbandmanagement.py
test_oobm_configure_invalid_driverSuccess0.09test_outofbandmanagement.py
test_oobm_configure_default_driverSuccess0.09test_outofbandmanagement.py
test_oobm_background_powerstate_syncSuccess29.58test_outofbandmanagement.py
test_extendPhysicalNetworkVlanSuccess15.29test_non_contigiousvlan.py
test_01_nicSuccess652.35test_nic.py
test_releaseIPSuccess228.69test_network.py
test_reboot_routerSuccess605.97test_network.py
test_public_ip_user_accountSuccess10.27test_network.py
test_public_ip_admin_accountSuccess40.51test_network.py
test_network_rules_acquired_public_ip_3_Load_Balancer_RuleSuccess76.81test_network.py
test_network_rules_acquired_public_ip_2_nat_ruleSuccess61.95test_network.py
test_network_rules_acquired_public_ip_1_static_nat_ruleSuccess124.89test_network.py
test_delete_accountSuccess243.46test_network.py
test_02_port_fwd_on_non_src_natSuccess55.71test_network.py
test_01_port_fwd_on_src_natSuccess111.71test_network.py
test_nic_secondaryip_add_removeSuccess243.80test_multipleips_per_nic.py
login_test_saml_userSuccess24.64test_login.py
test_assign_and_removal_lbSuccess137.83test_loadbalance.py
test_02_create_lb_rule_non_natSuccess207.28test_loadbalance.py
test_01_create_lb_rule_src_natSuccess204.28test_loadbalance.py
test_03_list_snapshotsSuccess0.09test_list_ids_parameter.py
test_02_list_templatesSuccess0.04test_list_ids_parameter.py
test_01_list_volumesSuccess0.03test_list_ids_parameter.py
test_07_list_default_isoSuccess0.06test_iso.py
test_05_iso_permissionsSuccess0.06test_iso.py
test_04_extract_IsoSuccess5.15test_iso.py
test_03_delete_isoSuccess95.12test_iso.py
test_02_edit_isoSuccess0.05test_iso.py
test_01_create_isoSuccess21.89test_iso.py
test_04_rvpc_internallb_haproxy_stats_on_all_interfacesSuccess625.89test_internal_lb.py
test_03_vpc_internallb_haproxy_stats_on_all_interfacesSuccess454.97test_internal_lb.py
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Success1180.26test_internal_lb.py
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80Success836.80test_internal_lb.py
test_dedicateGuestVlanRangeSuccess10.25test_guest_vlan_range.py
test_UpdateConfigParamWithScopeSuccess0.13test_global_settings.py
test_rolepermission_lifecycle_updateSuccess7.05test_dynamicroles.py
test_rolepermission_lifecycle_listSuccess6.99test_dynamicroles.py
test_rolepermission_lifecycle_deleteSuccess6.82test_dynamicroles.py
test_rolepermission_lifecycle_createSuccess6.80test_dynamicroles.py
test_rolepermission_lifecycle_concurrent_updatesSuccess6.99test_dynamicroles.py
test_role_lifecycle_update_role_inuseSuccess6.80test_dynamicroles.py
test_role_lifecycle_updateSuccess11.96test_dynamicroles.py
test_role_lifecycle_listSuccess6.83test_dynamicroles.py
test_role_lifecycle_deleteSuccess11.96test_dynamicroles.py
test_role_lifecycle_createSuccess6.96test_dynamicroles.py
test_role_inuse_deletionSuccess6.89test_dynamicroles.py
test_role_account_acls_multiple_mgmt_serversSuccess9.25test_dynamicroles.py
test_role_account_aclsSuccess9.32test_dynamicroles.py
test_default_role_deletionSuccess7.02test_dynamicroles.py
test_04_create_fat_type_disk_offeringSuccess0.09test_disk_offerings.py
test_03_delete_disk_offeringSuccess0.04test_disk_offerings.py
test_02_edit_disk_offeringSuccess0.06test_disk_offerings.py
test_02_create_sparse_type_disk_offeringSuccess0.07test_disk_offerings.py
test_01_create_disk_offeringSuccess0.11test_disk_offerings.py
test_deployvm_userdispersingSuccess86.22test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userconcentratedSuccess131.30test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_firstfitSuccess201.51test_deploy_vms_with_varied_deploymentplanners.py
test_deployvm_userdata_postSuccess30.55test_deploy_vm_with_userdata.py
test_deployvm_userdataSuccess322.41test_deploy_vm_with_userdata.py
test_02_deploy_vm_root_resizeSuccess6.77test_deploy_vm_root_resize.py
test_01_deploy_vm_root_resizeSuccess6.75test_deploy_vm_root_resize.py
test_00_deploy_vm_root_resizeSuccess6.86test_deploy_vm_root_resize.py
test_deploy_vm_from_isoSuccess243.65test_deploy_vm_iso.py
test_DeployVmAntiAffinityGroupSuccess227.14test_affinity_groups.py
test_08_resize_volumeSkipped10.14test_volumes.py
test_07_resize_failSkipped10.30test_volumes.py
test_06_copy_templateSkipped0.00test_templates.py
test_static_role_account_aclsSkipped0.02test_staticroles.py
test_01_scale_vmSkipped33.88test_scale_vm.py
test_01_primary_storage_iscsiSkipped0.04test_primary_storage.py
test_06_copy_isoSkipped0.00test_iso.py
test_deploy_vgpu_enabled_vmSkipped0.00test_deploy_vgpu_enabled_vm.py

@yadvr

Copy link
Copy Markdown
Member

LGTM, failures related to vpc/rvr are known intermittent failures. We'll kick another test round on #1753, #1754 etc. and work towards fixing them for vmware and xenserver separately. Merging this based on code reviews and tests.

@asfgit
asfgit merged commit b449351 into apache:4.9Nov 23, 2016
asfgit pushed a commit that referenced this pull request Nov 23, 2016
CLOUDSTACK-9491: incorrect parsing of device list to find ethernet index of plugged NICIn VmwareResource, findRouterEthDeviceIndex() method find ethernet interface index given
the mac address. This method is used, once a nic is plugged to determine ethernet interface.
"/proc/sys/net/ipv4/conf" from the VR and looped through the devices to find the right
ethernet interface. Howver current logic read it once, and loops through the device list.
Its observerd device may not show up '/proc/sys/net/ipv4/conf' immediatly once NIC is plugged
in the VM from vCenter.
Fix ensured, while waiting for 15 sec in the loop, read the latest content from /proc/sys/net/ipv4/conf
, so that right device list is processed.
Manual tested VPC scenarios of adding new tiers which uses findRouterEthDeviceIndex, to find the guest/public network ethernet index.
* pr/1681:
CLOUDSTACK-9491: incorrect parsing of device list to find ethernet index of plugged NIC
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@murali-reddy@serg38@abhinandanprateek@sateesh-chodapuneedi@jburwell@blueorangutan@yadvr@asfgit