Skip to content

[blocker] CLOUDSTACK-9452: add python-argparse dependency on el6,7 rpms - #1634

Merged
asfgit merged 1 commit into
apache:4.9from
shapeblue:patchviasocket-49-py26fix
Aug 24, 2016
Merged

[blocker] CLOUDSTACK-9452: add python-argparse dependency on el6,7 rpms#1634
asfgit merged 1 commit into
apache:4.9from
shapeblue:patchviasocket-49-py26fix

Conversation

@yadvr

Copy link
Copy Markdown
Member

The patchviasocket script was rewritten in Python from PR #1533 and made
assumptions that Python 2.7 would be available. In case of CentOS, python 2.7
may not be available or installed. This change ensures that python-argparse
is installed which is used by this script.

/cc @wido@sverrirab@karuturi@jburwell

@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.

@yadvr
yadvrforce-pushed the patchviasocket-49-py26fix branch from 50e1d16 to cddf385CompareAugust 10, 2016 09:29
@sverrirab

Copy link
Copy Markdown

+1 from me (for what it's worth)

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian repo: http://packages.shapeblue.com/cloudstack/pr/1634
Job ID-77

The patchviasocket script was rewritten in Python from PR apache#1533 and made
assumptions that Python 2.7 would be available. In case of CentOS, python 2.7
may not be available or installed. This change ensures that python-argparse
is installed which is used by this script.
Expose cmd error in the logs when patch command fails.
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr
yadvrforce-pushed the patchviasocket-49-py26fix branch from cddf385 to 7b8ba24CompareAugust 10, 2016 10:56
@jburwell

Copy link
Copy Markdown
Contributor

LGTM for code

@yadvr

Copy link
Copy Markdown
MemberAuthor

@karuturi@jburwell can we merge this, this is only packaging related fix. Using above packages, installation confirmed that argparse was installed on el6/el7 kvm hosts.

@yadvr

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos6 mgmt + vmware-55u3) has been kicked to run smoke tests against packages at http://packages.shapeblue.com/cloudstack/pr/1634

@blueorangutan

Copy link
Copy Markdown

Trillian test result (trillian-pr1634-33-vmware-55u3-cs49):
Test completed. 39 look ok, 13 have errors

TestResultTime
test_DeployVmAntiAffinityGroup_in_projectSuccess242.223
test_create_pvlan_networkSuccess5.174
test_DeployVmAntiAffinityGroupSuccess222.027
test_dedicatePublicIpRangeError0.260
test_deploy_vgpu_enabled_vmSkipped0.003
test_deploy_vm_from_isoSuccess373.043
test_01_scale_vmSkipped66.406
test_00_deploy_vm_root_resizeSuccess6.358
test_01_deploy_vm_root_resizeSuccess6.338
test_02_deploy_vm_root_resizeSuccess6.345
test_01_router_internal_basicSuccess0.494
test_02_router_internal_advSuccess0.903
test_03_restart_network_cleanupSuccess140.928
test_04_restart_network_wo_cleanupSuccess5.591
test_05_router_basicSuccess0.032
test_06_router_advancedSuccess0.042
test_07_stop_routerSuccess25.274
test_08_start_routerSuccess120.878
test_09_reboot_routerSuccess140.902
test_deployvm_firstfitSuccess206.794
test_deployvm_userconcentratedSuccess96.038
test_deployvm_userdispersingSuccess60.780
test_deployvm_userdataSuccess151.369
test_deployvm_userdata_postSuccess25.429
test_01_sys_vm_startSuccess0.122
test_02_sys_template_readySuccess0.098
test_01_create_disk_offeringSuccess0.127
test_02_create_sparse_type_disk_offeringSuccess0.065
test_04_create_fat_type_disk_offeringSuccess0.067
test_02_edit_disk_offeringSuccess0.058
test_03_delete_disk_offeringSuccess0.037
test_default_role_deletionSuccess6.364
test_role_account_aclsSuccess7.961
test_role_account_acls_multiple_mgmt_serversSuccess7.946
test_role_inuse_deletionSuccess6.231
test_role_lifecycle_createSuccess6.400
test_role_lifecycle_deleteSuccess11.345
test_role_lifecycle_listSuccess6.348
test_role_lifecycle_updateSuccess11.434
test_role_lifecycle_update_role_inuseSuccess6.291
test_rolepermission_lifecycle_concurrent_updatesSuccess6.465
test_rolepermission_lifecycle_createSuccess6.343
test_rolepermission_lifecycle_deleteSuccess6.226
test_rolepermission_lifecycle_listSuccess6.391
test_rolepermission_lifecycle_updateSuccess6.513
test_01_create_service_offeringSuccess0.102
test_02_edit_service_offeringSuccess0.078
test_03_delete_service_offeringSuccess0.045
test_04_change_offering_smallSuccess96.948
test_UpdateConfigParamWithScopeSuccess0.145
ContextSuite context=TestDedicateGuestVlanRange>:setupError0.000
test_01_snapshot_root_diskSuccess157.389
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80Failure473.466
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Failure642.115
test_03_vpc_internallb_haproxy_stats_on_all_interfacesError355.933
test_04_rvpc_internallb_haproxy_stats_on_all_interfacesError487.776
test_01_list_sec_storage_vmSuccess0.133
test_02_list_cpvm_vmSuccess0.106
test_03_ssvm_internalsSuccess3.458
test_04_cpvm_internalsSuccess1.075
test_05_stop_ssvmSuccess168.743
test_06_stop_cpvmSuccess201.889
test_07_reboot_ssvmSuccess158.628
test_08_reboot_cpvmSuccess156.591
test_09_destroy_ssvmSuccess269.128
test_10_destroy_cpvmSuccess266.909
test_01_create_isoSuccess66.612
test_02_edit_isoSuccess0.083
test_03_delete_isoSuccess95.198
test_04_extract_IsoSuccess5.164
test_05_iso_permissionsSuccess0.050
test_06_copy_isoSkipped0.000
test_07_list_default_isoSuccess0.037
test_01_list_volumesSuccess0.021
test_02_list_templatesSuccess0.029
test_03_list_snapshotsSuccess0.064
test_static_role_account_aclsSkipped0.020
test_01_create_lb_rule_src_natSuccess208.166
test_02_create_lb_rule_non_natSuccess207.423
test_assign_and_removal_lbSuccess148.813
login_test_saml_userSuccess21.747
test_01_create_templateSuccess135.939
test_CreateTemplateWithDuplicateNameSuccess221.472
test_02_edit_templateSuccess90.116
test_03_delete_templateSuccess5.123
test_04_extract_templateSuccess10.319
test_05_template_permissionsSuccess0.047
test_06_copy_templateSkipped0.000
test_07_list_public_templatesSuccess0.029
test_08_list_system_templatesSuccess0.068
test_nic_secondaryip_add_removeSuccess222.996
test_network_aclSuccess156.582
test_delete_accountSuccess288.136
test_01_port_fwd_on_src_natSuccess111.745
test_02_port_fwd_on_non_src_natSuccess55.752
test_public_ip_admin_accountSuccess40.300
test_public_ip_user_accountSuccess10.288
test_reboot_routerSuccess609.980
test_releaseIPSuccess278.713
test_network_rules_acquired_public_ip_1_static_nat_ruleSuccess125.334
test_network_rules_acquired_public_ip_2_nat_ruleSuccess61.565
test_network_rules_acquired_public_ip_3_Load_Balancer_RuleSuccess76.872
test_vm_nic_adapter_vmxnet3Skipped0.001
test_advZoneVirtualRouterSuccess0.019
test_deploy_vmSuccess0.023
test_deploy_vm_multipleSuccess222.726
test_01_stop_vmSuccess5.101
test_02_start_vmSuccess20.211
test_03_reboot_vmSuccess5.131
test_06_destroy_vmSuccess10.126
test_07_restore_vmSuccess0.090
test_08_migrate_vmSuccess76.035
test_09_expunge_vmSuccess125.250
test_10_attachAndDetach_isoSuccess71.856
test_01_nicSuccess671.990
test_extendPhysicalNetworkVlanError0.031
test_01_test_vm_volume_snapshotError146.123
test_01_create_vm_snapshotsSuccess161.769
test_02_revert_vm_snapshotsSuccess195.950
test_03_delete_vm_snapshotsSuccess275.255
test_oobm_background_powerstate_syncSuccess15.838
test_oobm_configure_default_driverSuccess0.094
test_oobm_configure_invalid_driverSuccess0.082
test_oobm_disable_feature_invalidSuccess0.104
test_oobm_disable_feature_validSuccess5.172
test_oobm_enable_feature_invalidSuccess0.098
test_oobm_enable_feature_validSuccess5.176
test_oobm_enabledisable_across_clusterzonesSuccess53.525
test_oobm_issue_power_cycleSuccess15.573
test_oobm_issue_power_offSuccess15.576
test_oobm_issue_power_onSuccess15.583
test_oobm_issue_power_resetSuccess15.576
test_oobm_issue_power_softSuccess15.571
test_oobm_issue_power_statusSuccess10.546
test_oobm_multiple_mgmt_server_ownershipSuccess12.545
test_oobm_zchange_passwordSuccess20.588
test_UpdateStorageOverProvisioningFactorSuccess0.140
test_01_create_volumeSuccess513.042
test_02_attach_volumeSuccess53.973
test_03_download_attached_volumeSuccess20.340
test_04_delete_attached_volumeSuccess20.252
test_05_detach_volumeSuccess110.314
test_06_download_detached_volumeError45.471
test_07_resize_failSkipped15.316
test_08_resize_volumeSkipped5.118
test_09_delete_detached_volumeSuccess30.832
test_isolate_network_password_serverFailure168.605
test_createPortablePublicIPAcquireSuccess15.577
test_createPortablePublicIPRangeSuccess15.310
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLFailure559.905
test_02_redundant_VPC_default_routesSuccess729.590
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routersSuccess512.650
test_04_rvpc_network_garbage_collector_nicsSuccess846.858
test_05_rvpc_multi_tiersSuccess721.879
test_01_primary_storage_iscsiSkipped0.033
test_01_primary_storage_nfsSuccess37.098
test_01_vpc_privategw_aclFailure111.974
test_02_vpc_privategw_static_routesFailure217.688
test_03_vpc_privategw_restart_vpc_cleanupFailure217.559
test_04_rvpc_privategw_static_routesFailure403.800
test_01_VPC_nics_after_destroySuccess746.848
test_02_VPC_default_routesSuccess410.326
test_createRegionSuccess0.039
test_01_reset_vm_on_rebootSuccess25.307
test_01_updatevolumedetailSuccess0.104
test_router_dhcphostsFailure168.753
ContextSuite context=TestRouterDHCPHosts>:teardownError189.048
test_02_routervm_iptables_policiesFailure211.798
test_01_single_VPC_iptables_policiesError121.100
test_01_isolate_network_FW_PF_default_routes_egress_trueSuccess283.827
test_02_isolate_network_FW_PF_default_routes_egress_falseSuccess424.548
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueFailure415.926
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_falseFailure437.656
test_03_RVR_Network_check_router_stateSuccess366.057
test_01_redundant_vpc_site2site_vpnError738.662
test_01_vpc_remote_access_vpnError0.074
test_01_vpc_site2site_vpnError507.094
Trillian env - trillian-pr1634-33-vmware-55u3-cs49, Job ID 33
Marvin logs at: http://packages.shapeblue.com/cloudstack/pr/1634/trillian/trillian-pr1634-33-vmware-55u3-cs49

@jburwell

Copy link
Copy Markdown
Contributor

@rhtyd the test results from blueorangutan are looking pretty good. A couple of observations:

  1. The markdown for the table seems to be invalid as it is not rendering to a table
  2. Would it be possible to sort the rows in Failure, Skip, Success order? We are most interested in failures and skips. Placing them at the top will speed visual scanning up a bit.
  3. Include a summary of the environment used to run the tests

@yadvr

Copy link
Copy Markdown
MemberAuthor

@jburwell thanks

  • I've fixed the markdown issues -- see this for example -- CLOUDSTACK-9456: Migrate master to Spring 4.x #1638 (comment)
  • I'll fix the sorting issues, to sort status column
  • I've added summary at the bottom of the table, noting the hypervisor, mgmt server os, zone type and link to the marvin logs for anyone to inspect further

@yadvr

Copy link
Copy Markdown
MemberAuthor

We've enough LGTMs and test result (with vmware), I'll fire another Trillian job with KVM.

@blueorangutan

Copy link
Copy Markdown

Trillian test result (trillian-pr1634-49-kvm-centos68-cs49):
Test completed. 45 look ok, 7 have errors

TestResultTime (s)
test_04_rvpc_privategw_static_routesFailure173.220
test_03_vpc_privategw_restart_vpc_cleanupFailure87.754
test_02_vpc_privategw_static_routesFailure82.476
test_01_vpc_privategw_aclFailure47.131
test_extendPhysicalNetworkVlanError0.039
test_dedicatePublicIpRangeError0.322
test_01_vpc_remote_access_vpnError0.092
test_01_snapshot_root_diskError0.059
ContextSuite context=TestListIdsParams>:setupError0.000
ContextSuite context=TestDedicateGuestVlanRange>:setupError0.000
test_router_dhcphostsSuccess291.471
test_rolepermission_lifecycle_updateSuccess7.183
test_rolepermission_lifecycle_listSuccess6.939
test_rolepermission_lifecycle_deleteSuccess6.798
test_rolepermission_lifecycle_createSuccess6.862
test_rolepermission_lifecycle_concurrent_updatesSuccess6.969
test_role_lifecycle_update_role_inuseSuccess7.025
test_role_lifecycle_updateSuccess11.926
test_role_lifecycle_listSuccess6.845
test_role_lifecycle_deleteSuccess11.877
test_role_lifecycle_createSuccess6.825
test_role_inuse_deletionSuccess6.814
test_role_account_acls_multiple_mgmt_serversSuccess8.997
test_role_account_aclsSuccess9.337
test_releaseIPSuccess249.057
test_reboot_routerSuccess420.117
test_public_ip_user_accountSuccess10.306
test_public_ip_admin_accountSuccess40.320
test_oobm_zchange_passwordSuccess20.649
test_oobm_multiple_mgmt_server_ownershipSuccess18.590
test_oobm_issue_power_statusSuccess10.563
test_oobm_issue_power_softSuccess15.583
test_oobm_issue_power_resetSuccess15.595
test_oobm_issue_power_onSuccess15.583
test_oobm_issue_power_offSuccess15.592
test_oobm_issue_power_cycleSuccess15.599
test_oobm_enabledisable_across_clusterzonesSuccess58.881
test_oobm_enable_feature_validSuccess5.220
test_oobm_enable_feature_invalidSuccess0.135
test_oobm_disable_feature_validSuccess5.256
test_oobm_disable_feature_invalidSuccess0.155
test_oobm_configure_invalid_driverSuccess0.105
test_oobm_configure_default_driverSuccess0.118
test_oobm_background_powerstate_syncSuccess17.821
test_nic_secondaryip_add_removeSuccess194.173
test_network_rules_acquired_public_ip_3_Load_Balancer_RuleSuccess67.156
test_network_rules_acquired_public_ip_2_nat_ruleSuccess61.934
test_network_rules_acquired_public_ip_1_static_nat_ruleSuccess154.560
test_network_aclSuccess66.274
test_isolate_network_password_serverSuccess93.446
test_deployvm_userdispersingSuccess20.671
test_deployvm_userdata_postSuccess10.473
test_deployvm_userdataSuccess121.267
test_deployvm_userconcentratedSuccess86.630
test_deployvm_firstfitSuccess55.723
test_deploy_vm_multipleSuccess258.971
test_deploy_vm_from_isoSuccess428.730
test_deploy_vmSuccess0.027
test_delete_accountSuccess259.013
test_default_role_deletionSuccess6.919
test_create_pvlan_networkSuccess5.232
test_createRegionSuccess0.052
test_createPortablePublicIPRangeSuccess15.427
test_createPortablePublicIPAcquireSuccess15.699
test_assign_and_removal_lbSuccess134.011
test_advZoneVirtualRouterSuccess0.022
test_UpdateStorageOverProvisioningFactorSuccess0.154
test_UpdateConfigParamWithScopeSuccess0.157
test_DeployVmAntiAffinityGroup_in_projectSuccess197.434
test_DeployVmAntiAffinityGroupSuccess71.075
test_CreateTemplateWithDuplicateNameSuccess121.145
test_10_destroy_cpvmSuccess191.835
test_10_attachAndDetach_isoSuccess71.829
test_09_reboot_routerSuccess45.381
test_09_expunge_vmSuccess125.174
test_09_destroy_ssvmSuccess163.950
test_09_delete_detached_volumeSuccess15.699
test_08_start_routerSuccess30.316
test_08_resize_volumeSuccess15.476
test_08_reboot_cpvmSuccess131.901
test_08_migrate_vmSuccess41.761
test_08_list_system_templatesSuccess0.031
test_07_stop_routerSuccess10.164
test_07_restore_vmSuccess0.132
test_07_resize_failSuccess20.547
test_07_reboot_ssvmSuccess133.872
test_07_list_public_templatesSuccess0.035
test_07_list_default_isoSuccess0.063
test_06_stop_cpvmSuccess131.868
test_06_router_advancedSuccess0.059
test_06_download_detached_volumeSuccess15.344
test_06_destroy_vmSuccess126.011
test_05_template_permissionsSuccess0.069
test_05_stop_ssvmSuccess134.130
test_05_rvpc_multi_tiersSuccess493.002
test_05_router_basicSuccess0.064
test_05_iso_permissionsSuccess0.070
test_05_detach_volumeSuccess100.333
test_04_rvpc_network_garbage_collector_nicsSuccess848.811
test_04_rvpc_internallb_haproxy_stats_on_all_interfacesSuccess253.859
test_04_restart_network_wo_cleanupSuccess5.808
test_04_extract_templateSuccess5.401
test_04_extract_IsoSuccess5.173
test_04_delete_attached_volumeSuccess10.259
test_04_create_fat_type_disk_offeringSuccess0.081
test_04_cpvm_internalsSuccess1.336
test_04_change_offering_smallSuccess239.157
test_03_vpc_internallb_haproxy_stats_on_all_interfacesSuccess198.983
test_03_ssvm_internalsSuccess3.637
test_03_restart_network_cleanupSuccess65.585
test_03_reboot_vmSuccess125.935
test_03_download_attached_volumeSuccess15.382
test_03_delete_templateSuccess5.133
test_03_delete_service_offeringSuccess0.042
test_03_delete_isoSuccess95.231
test_03_delete_disk_offeringSuccess0.045
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routersSuccess508.708
test_03_RVR_Network_check_router_stateSuccess265.179
test_02_sys_template_readySuccess0.127
test_02_start_vmSuccess10.229
test_02_routervm_iptables_policiesSuccess187.674
test_02_router_internal_advSuccess1.048
test_02_redundant_VPC_default_routesSuccess550.962
test_02_port_fwd_on_non_src_natSuccess55.739
test_02_list_cpvm_vmSuccess0.139
test_02_isolate_network_FW_PF_default_routes_egress_falseSuccess253.682
test_02_internallb_roundrobin_1RVPC_3VM_HTTP_port80Success526.427
test_02_edit_templateSuccess90.208
test_02_edit_service_offeringSuccess0.088
test_02_edit_isoSuccess0.092
test_02_edit_disk_offeringSuccess0.066
test_02_deploy_vm_root_resizeSuccess6.991
test_02_create_sparse_type_disk_offeringSuccess0.079
test_02_create_lb_rule_non_natSuccess187.690
test_02_attach_volumeSuccess74.832
test_02_VPC_default_routesSuccess333.557
test_02_RVR_Network_FW_PF_SSH_default_routes_egress_falseSuccess329.590
test_01_vpc_site2site_vpnSuccess165.492
test_01_updatevolumedetailSuccess0.104
test_01_sys_vm_startSuccess0.178
test_01_stop_vmSuccess40.425
test_01_single_VPC_iptables_policiesSuccess319.157
test_01_router_internal_basicSuccess0.610
test_01_reset_vm_on_rebootSuccess130.985
test_01_redundant_vpc_site2site_vpnSuccess267.285
test_01_primary_storage_nfsSuccess35.964
test_01_port_fwd_on_src_natSuccess141.937
test_01_nicSuccess521.193
test_01_list_sec_storage_vmSuccess0.177
test_01_isolate_network_FW_PF_default_routes_egress_trueSuccess238.678
test_01_internallb_roundrobin_1VPC_3VM_HTTP_port80Success446.704
test_01_deploy_vm_root_resizeSuccess6.933
test_01_create_volumeSuccess861.863
test_01_create_templateSuccess70.970
test_01_create_service_offeringSuccess0.124
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLSuccess1062.368
test_01_create_lb_rule_src_natSuccess239.855
test_01_create_isoSuccess66.895
test_01_create_disk_offeringSuccess0.126
test_01_VPC_nics_after_destroySuccess574.847
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueSuccess318.416
test_00_deploy_vm_root_resizeSuccess253.906
login_test_saml_userSuccess24.513
test_vm_nic_adapter_vmxnet3Skipped0.000
test_static_role_account_aclsSkipped0.021
test_deploy_vgpu_enabled_vmSkipped0.005
test_06_copy_templateSkipped0.000
test_06_copy_isoSkipped0.000
test_03_delete_vm_snapshotsSkipped0.000
test_02_revert_vm_snapshotsSkipped0.000
test_01_test_vm_volume_snapshotSkipped0.000
test_01_scale_vmSkipped0.000
test_01_primary_storage_iscsiSkipped0.036
test_01_create_vm_snapshotsSkipped0.000

Trillian env - trillian-pr1634-49-kvm-centos68-cs49, Job ID 49
Hypervisor: kvm-centos68 (x2), Advanced Zone
Mgmt host os - 6
Marvin logs at: http://packages.shapeblue.com/cloudstack/pr/1634/trillian/trillian-pr1634-49-kvm-centos68-cs49

@yadvr

Copy link
Copy Markdown
MemberAuthor

Merging based on lgtms and test results (the failures are due to env issues, and failing tests not related to the pkging fix).

@asfgit
asfgit merged commit 7b8ba24 into apache:4.9Aug 24, 2016
asfgit pushed a commit that referenced this pull request Aug 24, 2016
[blocker] CLOUDSTACK-9452: add python-argparse dependency on el6,7 rpmsThe patchviasocket script was rewritten in Python from PR #1533 and made
assumptions that Python 2.7 would be available. In case of CentOS, python 2.7
may not be available or installed. This change ensures that python-argparse
is installed which is used by this script.
/cc @wido@sverrirab@karuturi@jburwell@blueorangutan package
* pr/1634:
CLOUDSTACK-9452: add python-argparse dependency on el6,7 rpms
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
lucas-a-martins pushed a commit to scclouds/cloudstack that referenced this pull request Jan 29, 2024
Permitir configuração manual das _flags_ envolvidas em uma migração KVM
Closesapache#1634
See merge request scclouds/scclouds!675
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.

5 participants

@yadvr@blueorangutan@sverrirab@jburwell@asfgit