Skip to content

Cleanup APIs getCommandName - #7022

Merged
DaanHoogland merged 4 commits into
apache:mainfrom
scclouds:normalize-apis-getcommandname
Jan 3, 2023
Merged

Cleanup APIs getCommandName#7022
DaanHoogland merged 4 commits into
apache:mainfrom
scclouds:normalize-apis-getcommandname

Conversation

@ezntt

@ezntt ezntt commented Dec 26, 2022

Copy link
Copy Markdown
Contributor

Description

It was noticed that the APIs (most of them) follow a pattern in which the response name equals to APINAME.toLowerCase() + 'response', which is the value returned by getCommandName method.

Therefore, I am proposing the removal of the different repeated getCommandName instructions throughout the APIs. Additionally, it also removed API name/response name declarations from the affected classes; the API name values were moved to the name parameter in @APICommand.

To help me in the process of normalizing the code base, I created a script that iterates through the APIs using the existing method in class ApiXmlDocWriter. The number of APIs that did not follow the standard is 88, so they weren't changed, and they can be seen in the collapse below with their respective response name and how they would be if they were in the majority standard:

Unchanged APIs

1. Class org.apache.cloudstack.api.command.LdapCreateAccountCmd unchanged.
	 actual  response name - createaccountresponse
	expected response name - ldapcreateaccountresponse

2. Class org.apache.cloudstack.api.command.admin.iso.CopyIsoCmdByAdmin unchanged.
	 actual  response name - copytemplateresponse
	expected response name - copyisoresponse

3. Class org.apache.cloudstack.api.command.LdapImportUsersCmd unchanged.
	 actual  response name - ldapuserresponse
	expected response name - importldapusersresponse

4. Class org.apache.cloudstack.storage.datastore.util.ListElastistorPoolCmd unchanged.
	 actual  response name - listElastistorPoolResponse
	expected response name - listelastistorpoolresponse

5. Class com.cloud.api.commands.ListSrxFirewallsCmd unchanged.
	 actual  response name - listsrxfirewallresponse
	expected response name - listsrxfirewallsresponse

6. Class org.apache.cloudstack.api.command.admin.vm.RestoreVMCmdByAdmin unchanged.
	 actual  response name - restorevmresponse
	expected response name - restorevirtualmachineresponse

7. Class org.apache.cloudstack.api.ListUcsBladeCmd unchanged.
	 actual  response name - listucsbladeresponse
	expected response name - listucsbladesresponse

8. Class org.apache.cloudstack.api.BaremetalProvisionDoneNotificationCmd unchanged.
	 actual  response name - baremetalprovisiondone
	expected response name - notifybaremetalprovisiondoneresponse

9. Class com.cloud.api.commands.DeleteServicePackageOfferingCmd unchanged.
	 actual  response name - deleteServicePackage
	expected response name - deleteservicepackageofferingresponse

10. Class org.apache.cloudstack.api.command.admin.systemvm.ScaleSystemVMCmd unchanged.
	 actual  response name - changeserviceforsystemvmresponse
	expected response name - scalesystemvmresponse

11. Class org.apache.cloudstack.api.command.LdapListConfigurationCmd unchanged.
	 actual  response name - ldapconfigurationresponse
	expected response name - listldapconfigurationsresponse

12. Class org.apache.cloudstack.api.command.admin.storage.ListSecondaryStagingStoresCmd unchanged.
	 actual  response name - listsecondarystagingstoreresponse
	expected response name - listsecondarystagingstoresresponse

13. Class org.apache.cloudstack.api.command.user.autoscale.CreateAutoScalePolicyCmd unchanged.
	 actual  response name - autoscalepolicyresponse
	expected response name - createautoscalepolicyresponse

14. Class org.apache.cloudstack.api.commands.DeleteSspCmd unchanged.
	 actual  response name - deleteStratosphereSsp
	expected response name - deletestratospheresspresponse

15. Class org.apache.cloudstack.api.command.admin.resource.CleanVMReservationsCmd unchanged.
	 actual  response name - cleanvmreservationresponse
	expected response name - cleanvmreservationsresponse

16. Class org.apache.cloudstack.storage.datastore.util.ListElastistorInterfaceCmd unchanged.
	 actual  response name - listElastistorInterfaceResponse
	expected response name - listelastistorinterfaceresponse

17. Class org.apache.cloudstack.api.command.admin.internallb.StartInternalLBVMCmd unchanged.
	 actual  response name - startinternallbvmresponse
	expected response name - startinternalloadbalancervmresponse

18. Class org.apache.cloudstack.api.command.LdapUserSearchCmd unchanged.
	 actual  response name - ldapuserresponse
	expected response name - searchldapresponse

19. Class org.apache.cloudstack.api.command.user.autoscale.CreateAutoScaleVmGroupCmd unchanged.
	 actual  response name - autoscalevmgroupresponse
	expected response name - createautoscalevmgroupresponse

20. Class org.apache.cloudstack.api.AddBaremetalPxePingServerCmd unchanged.
	 actual  response name - addbaremetalpxeresponse
	expected response name - addbaremetalpxepingserverresponse

21. Class org.apache.cloudstack.api.command.admin.region.ListPortableIpRangesCmd unchanged.
	 actual  response name - listportableipresponse
	expected response name - listportableiprangesresponse

22. Class org.apache.cloudstack.api.command.user.vm.AddIpToVmNicCmd unchanged.
	 actual  response name - addiptovmnicresponse
	expected response name - addiptonicresponse

23. Class com.cloud.api.commands.StopNetScalerVMCmd unchanged.
	 actual  response name - stopNetScalerVmresponse
	expected response name - stopnetscalervpxresponse

24. Class org.apache.cloudstack.api.DeleteUcsManagerCmd unchanged.
	 actual  response name - deleteUcsManagerResponse
	expected response name - deleteucsmanagerresponse

25. Class org.apache.cloudstack.api.command.user.autoscale.DisableAutoScaleVmGroupCmd unchanged.
	 actual  response name - disableautoscalevmGroupresponse
	expected response name - disableautoscalevmgroupresponse

26. Class com.cloud.api.commands.AddCiscoVnmcResourceCmd unchanged.
	 actual  response name - addCiscoVnmcResource
	expected response name - addciscovnmcresourceresponse

27. Class org.apache.cloudstack.api.command.LdapListUsersCmd unchanged.
	 actual  response name - ldapuserresponse
	expected response name - listldapusersresponse

28. Class org.apache.cloudstack.api.command.GetServiceProviderMetaDataCmd unchanged.
	 actual  response name - spmetadataresponse
	expected response name - getspmetadataresponse

29. Class org.apache.cloudstack.network.opendaylight.api.commands.ListOpenDaylightControllersCmd unchanged.
	 actual  response name - listOpenDaylightControllers
	expected response name - listopendaylightcontrollersresponse

30. Class org.apache.cloudstack.api.command.admin.storage.UpdateImageStoreCmd unchanged.
	 actual  response name - updateImageStore
	expected response name - updateimagestoreresponse

31. Class com.cloud.api.commands.DeleteCiscoVnmcResourceCmd unchanged.
	 actual  response name - deleteCiscoVnmcResource
	expected response name - deleteciscovnmcresourceresponse

32. Class org.apache.cloudstack.api.command.admin.internallb.StopInternalLBVMCmd unchanged.
	 actual  response name - stopinternallbvmresponse
	expected response name - stopinternalloadbalancervmresponse

33. Class org.apache.cloudstack.api.command.SAML2LoginAPIAuthenticatorCmd unchanged.
	 actual  response name - loginresponse
	expected response name - samlssoresponse

34. Class com.cloud.api.commands.ListNiciraNvpDeviceNetworksCmd unchanged.
	 actual  response name - listniciranvpdevicenetworks
	expected response name - listniciranvpdevicenetworksresponse

35. Class com.cloud.api.commands.ListNetscalerControlCenterCmd unchanged.
	 actual  response name - listNetscalerControlCenter
	expected response name - listnetscalercontrolcenterresponse

36. Class org.apache.cloudstack.api.command.admin.network.ListNetworkDeviceCmd unchanged.
	 actual  response name - listnetworkdevice
	expected response name - listnetworkdeviceresponse

37. Class org.apache.cloudstack.network.opendaylight.api.commands.DeleteOpenDaylightControllerCmd unchanged.
	 actual  response name - deleteOpenDaylightController
	expected response name - deleteopendaylightcontrollerresponse

38. Class org.apache.cloudstack.api.ListUcsManagerCmd unchanged.
	 actual  response name - listucsmanagerreponse
	expected response name - listucsmanagersresponse

39. Class org.apache.cloudstack.api.command.LdapDeleteConfigurationCmd unchanged.
	 actual  response name - ldapconfigurationresponse
	expected response name - deleteldapconfigurationresponse

40. Class org.apache.cloudstack.api.command.user.snapshot.ArchiveSnapshotCmd unchanged.
	 actual  response name - createsnapshotresponse
	expected response name - archivesnapshotresponse

41. Class org.apache.cloudstack.api.command.admin.address.AcquirePodIpCmdByAdmin unchanged.
	 actual  response name - acquirepodipaddress
	expected response name - acquirepodipaddressresponse

42. Class com.cloud.api.commands.ListBrocadeVcsDevicesCmd unchanged.
	 actual  response name - listbrocadevcsdeviceresponse
	expected response name - listbrocadevcsdevicesresponse

43. Class org.apache.cloudstack.api.command.admin.vm.ResetVMSSHKeyCmdByAdmin unchanged.
	 actual  response name - resetSSHKeyforvirtualmachineresponse
	expected response name - resetsshkeyforvirtualmachineresponse

44. Class org.apache.cloudstack.api.command.admin.internallb.ListInternalLBVMsCmd unchanged.
	 actual  response name - listinternallbvmsresponse
	expected response name - listinternalloadbalancervmsresponse

45. Class com.cloud.api.commands.ListCiscoVnmcResourcesCmd unchanged.
	 actual  response name - listCiscoVnmcResources
	expected response name - listciscovnmcresourcesresponse

46. Class org.apache.cloudstack.api.command.user.volume.GetUploadParamsForVolumeCmd unchanged.
	 actual  response name - postuploadvolumeresponse
	expected response name - getuploadparamsforvolumeresponse

47. Class org.apache.cloudstack.api.command.user.autoscale.EnableAutoScaleVmGroupCmd unchanged.
	 actual  response name - enableautoscalevmGroupresponse
	expected response name - enableautoscalevmgroupresponse

48. Class com.cloud.api.commands.DeleteCiscoAsa1000vResourceCmd unchanged.
	 actual  response name - deleteCiscoAsa1000vResource
	expected response name - deleteciscoasa1000vresourceresponse

49. Class org.apache.cloudstack.api.ListUcsProfileCmd unchanged.
	 actual  response name - listucsprofileresponse
	expected response name - listucsprofilesresponse

50. Class org.apache.cloudstack.api.command.user.autoscale.CreateConditionCmd unchanged.
	 actual  response name - conditionresponse
	expected response name - createconditionresponse

51. Class com.cloud.api.commands.ListCiscoAsa1000vResourcesCmd unchanged.
	 actual  response name - listCiscoAsa1000vResources
	expected response name - listciscoasa1000vresourcesresponse

52. Class com.cloud.api.commands.DeployNetscalerVpxCmd unchanged.
	 actual  response name - deployNetscalerVpx
	expected response name - deploynetscalervpxresponse

53. Class org.apache.cloudstack.storage.datastore.util.ListElastistorVolumeCmd unchanged.
	 actual  response name - listElastistorVolumeResponse
	expected response name - listelastistorvolumeresponse

54. Class org.apache.cloudstack.api.command.admin.region.DeletePortableIpRangeCmd unchanged.
	 actual  response name - deleteportablepublicipresponse
	expected response name - deleteportableiprangeresponse

55. Class com.cloud.api.commands.ListNiciraNvpDevicesCmd unchanged.
	 actual  response name - listniciranvpdeviceresponse
	expected response name - listniciranvpdevicesresponse

56. Class org.apache.cloudstack.api.AddBaremetalKickStartPxeCmd unchanged.
	 actual  response name - addbaremetalpxeresponse
	expected response name - addbaremetalpxekickstartserverresponse

57. Class org.apache.cloudstack.api.command.user.loadbalancer.DeleteLBStickinessPolicyCmd unchanged.
	 actual  response name - deleteLBstickinessrruleresponse
	expected response name - deletelbstickinesspolicyresponse

58. Class org.apache.cloudstack.api.command.admin.affinitygroup.UpdateVMAffinityGroupCmdByAdmin unchanged.
	 actual  response name - updatevirtualmachineresponse
	expected response name - updatevmaffinitygroupresponse

59. Class com.cloud.api.commands.RegisterServicePackageCmd unchanged.
	 actual  response name - registerNetscalerServicePackage
	expected response name - registernetscalerservicepackageresponse

60. Class org.apache.cloudstack.api.command.SAML2LogoutAPIAuthenticatorCmd unchanged.
	 actual  response name - logoutresponse
	expected response name - samlsloresponse

61. Class org.apache.cloudstack.api.command.LdapAddConfigurationCmd unchanged.
	 actual  response name - ldapconfigurationresponse
	expected response name - addldapconfigurationresponse

62. Class com.cloud.api.commands.ListBigSwitchBcfDevicesCmd unchanged.
	 actual  response name - listbigswitchbcfdeviceresponse
	expected response name - listbigswitchbcfdevicesresponse

63. Class com.cloud.api.commands.ListRegisteredServicePackageCmd unchanged.
	 actual  response name - listregisteredservicepackage
	expected response name - listregisteredservicepackagesresponse

64. Class org.apache.cloudstack.api.command.user.template.GetUploadParamsForTemplateCmd unchanged.
	 actual  response name - postuploadtemplateresponse
	expected response name - getuploadparamsfortemplateresponse

65. Class org.apache.cloudstack.api.command.user.autoscale.ListCountersCmd unchanged.
	 actual  response name - counterresponse
	expected response name - listcountersresponse

66. Class org.apache.cloudstack.api.command.user.loadbalancer.CreateLBStickinessPolicyCmd unchanged.
	 actual  response name - createLBStickinessPolicy
	expected response name - createlbstickinesspolicyresponse

67. Class com.cloud.api.commands.AddCiscoAsa1000vResourceCmd unchanged.
	 actual  response name - addCiscoAsa1000vResource
	expected response name - addciscoasa1000vresourceresponse

68. Class org.apache.cloudstack.api.command.user.network.UpdateNetworkACLItemCmd unchanged.
	 actual  response name - createnetworkaclresponse
	expected response name - updatenetworkaclitemresponse

69. Class com.cloud.api.commands.ListBrocadeVcsDeviceNetworksCmd unchanged.
	 actual  response name - listbrocadevcsdevicenetworks
	expected response name - listbrocadevcsdevicenetworksresponse

70. Class com.cloud.api.commands.DeleteNetscalerControlCenterCmd unchanged.
	 actual  response name - deleteNetscalerControlCenter
	expected response name - deletenetscalercontrolcenterresponse

71. Class org.apache.cloudstack.api.commands.AddSspCmd unchanged.
	 actual  response name - addStratosphereSsp
	expected response name - addstratospheresspresponse

72. Class org.apache.cloudstack.network.opendaylight.api.commands.AddOpenDaylightControllerCmd unchanged.
	 actual  response name - addOpenDaylightController
	expected response name - addopendaylightcontrollerresponse

73. Class org.apache.cloudstack.api.command.admin.storage.AddImageStoreS3CMD unchanged.
	 actual  response name - addImageStoreS3Response
	expected response name - addimagestores3response

74. Class org.apache.cloudstack.api.command.user.network.MoveNetworkAclItemCmd unchanged.
	 actual  response name - moveNetworkAclItemResponse
	expected response name - movenetworkaclitemresponse

75. Class org.apache.cloudstack.api.command.admin.storage.PreparePrimaryStorageForMaintenanceCmd unchanged.
	 actual  response name - prepareprimarystorageformaintenanceresponse
	expected response name - enablestoragemaintenanceresponse

76. Class org.apache.cloudstack.api.command.admin.storage.CancelPrimaryStorageMaintenanceCmd unchanged.
	 actual  response name - cancelprimarystoragemaintenanceresponse
	expected response name - cancelstoragemaintenanceresponse

77. Class org.apache.cloudstack.api.command.admin.autoscale.CreateCounterCmd unchanged.
	 actual  response name - counterresponse
	expected response name - createcounterresponse

78. Class org.apache.cloudstack.api.command.user.project.ActivateProjectCmd unchanged.
	 actual  response name - activaterojectresponse
	expected response name - activateprojectresponse

79. Class org.apache.cloudstack.api.command.user.iso.GetUploadParamsForIsoCmd unchanged.
	 actual  response name - postuploadisoresponse
	expected response name - getuploadparamsforisoresponse

80. Class com.cloud.api.commands.ListPaloAltoFirewallsCmd unchanged.
	 actual  response name - listpaloaltofirewallresponse
	expected response name - listpaloaltofirewallsresponse

81. Class org.apache.cloudstack.api.command.user.autoscale.CreateAutoScaleVmProfileCmd unchanged.
	 actual  response name - autoscalevmprofileresponse
	expected response name - createautoscalevmprofileresponse

82. Class org.apache.cloudstack.api.AddUcsManagerCmd unchanged.
	 actual  response name - addUcsManagerResponse
	expected response name - adducsmanagerresponse

83. Class com.cloud.api.commands.ListNetscalerLoadBalancersCmd unchanged.
	 actual  response name - listnetscalerloadbalancerresponse
	expected response name - listnetscalerloadbalancersresponse

84. Class org.apache.cloudstack.api.command.admin.iso.ListIsoPermissionsCmdByAdmin unchanged.
	 actual  response name - listtemplatepermissionsresponse
	expected response name - listisopermissionsresponse

85. Class com.cloud.api.commands.ListCiscoNexusVSMsCmd unchanged.
	 actual  response name - listcisconexusvsmscmdresponse
	expected response name - listcisconexusvsmsresponse

86. Class org.apache.cloudstack.api.command.admin.address.ReleasePodIpCmdByAdmin unchanged.
	 actual  response name - releasepodipresponse
	expected response name - releasepodipaddressresponse

87. Class org.apache.cloudstack.api.command.ListSamlAuthorizationCmd unchanged.
	 actual  response name - listsamlauthorizationsresponse
	expected response name - listsamlauthorizationresponse

88. Class org.apache.cloudstack.api.command.user.region.ha.gslb.RemoveFromGlobalLoadBalancerRuleCmd unchanged.
	 actual  response name - removefromloadbalancerruleresponse
	expected response name - removefromgloballoadbalancerruleresponse

Total of APIs verified: 693.
Total of unchanged APIs: 88.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

How Has This Been Tested?

After the changes, I've built the project locally and succeeded.

@DaanHoogland

Copy link
Copy Markdown
Contributor

@ezntt , good initiative. What do you propose we do with the remaining 88?

return cmdName;
}

public static String getResponseNameByClass(Class<?> clazz) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this being used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ezntt , good initiative. What do you propose we do with the remaining 88?

As the PR is intended to clean up the repeated code (it will not change the APIs behavior), I would rather not touch those 88 APIs here. My proposal for those remaining 88 APIs is a later discussion on how we should handle them and if changing them would affect any other place.

is this being used?

Yes, it is used in class UploadListener.java:

    public static final Map<String, String> responseNameMap;
    static {
        Map<String, String> tempMap = new HashMap<String, String>();
        tempMap.put(Type.ISO.toString(), BaseCmd.getResponseNameByClass(ExtractIsoCmd.class));
        tempMap.put(Type.TEMPLATE.toString(), BaseCmd.getResponseNameByClass(ExtractTemplateCmd.class));
        tempMap.put(Type.VOLUME.toString(), BaseCmd.getResponseNameByClass(ExtractVolumeCmd.class));
        tempMap.put("DEFAULT", "extractresponse");
        responseNameMap = Collections.unmodifiableMap(tempMap);
    }

Comment thread api/src/main/java/org/apache/cloudstack/api/BaseCmd.java Outdated
Comment thread api/src/main/java/org/apache/cloudstack/api/BaseCmd.java
@DaanHoogland

Copy link
Copy Markdown
Contributor

@ezntt please note, most actions fail. Maybe some compilation issue?

also change 2 missing APIs
@ezntt ezntt changed the title Normalize APIs getCommandName Cleanup APIs getCommandName Dec 27, 2022
@codecov

codecov Bot commented Dec 27, 2022

Copy link
Copy Markdown

Codecov Report

Merging #7022 (4dc1a7a) into main (ca7e1ac) will increase coverage by 0.22%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #7022      +/-   ##
============================================
+ Coverage     11.31%   11.54%   +0.22%     
- Complexity     7334     7510     +176     
============================================
  Files          2494     2494              
  Lines        246787   246680     -107     
  Branches      38533    38534       +1     
============================================
+ Hits          27933    28471     +538     
+ Misses       215255   214528     -727     
- Partials       3599     3681      +82     
Impacted Files Coverage Δ
...e/cloudstack/api/command/QuotaTariffUpdateCmd.java 41.66% <0.00%> (-2.34%) ⬇️
...ache/cloudstack/api/command/QuotaStatementCmd.java 29.03% <0.00%> (-2.22%) ⬇️
...apache/cloudstack/api/command/QuotaBalanceCmd.java 44.44% <0.00%> (-1.99%) ⬇️
...che/cloudstack/api/command/QuotaTariffListCmd.java 65.21% <0.00%> (-1.45%) ⬇️
...he/cloudstack/api/command/LinkDomainToLdapCmd.java 51.42% <0.00%> (-1.35%) ⬇️
...e/cloudstack/api/command/LinkAccountToLdapCmd.java 47.50% <0.00%> (-1.29%) ⬇️
...apache/cloudstack/api/command/QuotaCreditsCmd.java 66.66% <0.00%> (-0.91%) ⬇️
...stack/api/command/QuotaEmailTemplateUpdateCmd.java 81.81% <0.00%> (-0.54%) ⬇️
server/src/main/java/com/cloud/api/ApiServlet.java 39.28% <0.00%> (ø)
.../java/com/cloud/storage/upload/UploadListener.java 0.00% <0.00%> (ø)
... and 120 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@apache apache deleted a comment from blueorangutan Dec 29, 2022
@apache apache deleted a comment from blueorangutan Dec 29, 2022
@apache apache deleted a comment from blueorangutan Dec 29, 2022
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5126

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5691)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44721 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5691-kvm-centos7.zip
Smoke tests completed. 106 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@DaanHoogland

Copy link
Copy Markdown
Contributor

@ezntt are you done with the changes you want for this PR?

@ezntt

ezntt commented Dec 30, 2022

Copy link
Copy Markdown
Contributor Author

@ezntt are you done with the changes you want for this PR?

@DaanHoogland yes, I'm done with these changes

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@DaanHoogland DaanHoogland reopened this Dec 31, 2022
@DaanHoogland

Copy link
Copy Markdown
Contributor

@weizhouapache do you approve now?
What testing would we need for this? other than a full regression test suite, that is. cc @ezntt

Comment thread api/src/main/java/org/apache/cloudstack/api/BaseCmd.java
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5724)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 38227 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5724-xenserver-71.zip
Smoke tests completed. 106 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5727)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 39768 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5727-xenserver-71.zip
Smoke tests completed. 106 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5725)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 45662 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5725-vmware-67u3.zip
Smoke tests completed. 106 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5728)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 45798 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5728-vmware-67u3.zip
Smoke tests completed. 105 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 667.70 test_kubernetes_clusters.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5726)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 46350 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5726-kvm-centos7.zip
Smoke tests completed. 105 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 574.06 test_kubernetes_clusters.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-5729)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 51282 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7022-t5729-kvm-centos7.zip
Smoke tests completed. 104 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_08_upgrade_kubernetes_ha_cluster Failure 558.12 test_kubernetes_clusters.py
test_03_create_redundant_VPC_1tier_2VMs_2IPs_2PF_ACL_reboot_routers Failure 468.18 test_vpc_redundant.py

@GutoVeronezi GutoVeronezi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CLGTM

Nice clean up, @ezntt.

@sonarqubecloud

sonarqubecloud Bot commented Jan 2, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

55.6% 55.6% Coverage
0.0% 0.0% Duplication

@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Jan 3, 2023
@DaanHoogland
DaanHoogland merged commit a9b49f3 into apache:main Jan 3, 2023
@ezntt
ezntt deleted the normalize-apis-getcommandname branch February 6, 2023 18:13
@GutoVeronezi GutoVeronezi mentioned this pull request Feb 27, 2023
12 tasks
shwstppr added a commit to shwstppr/hackerbook that referenced this pull request Mar 29, 2023
apache/cloudstack#7022 simplified API class implementation.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
yadvr pushed a commit to shapeblue/hackerbook that referenced this pull request Mar 29, 2023
apache/cloudstack#7022 simplified API class implementation.

Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants