Skip to content

Conversation

@DaanHoogland
Copy link
Contributor

Description

This PR...

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)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

@boring-cyborg boring-cyborg bot added component:integration-test Python Warning... Python code Ahead! labels Feb 10, 2023
@DaanHoogland
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

updateConfigurationResponse = self.apiclient.updateConfiguration(updateConfigurationCmd)
self.debug("updated the parameter %s with value %s" % (
updateConfigurationResponse.name, updateConfigurationResponse.value))
self.cleanup = []
Copy link
Member

Choose a reason for hiding this comment

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

it is empty by default, right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it is in this file only filled by deploy_vm()

Copy link
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

code lgtm

@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

@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

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

@DaanHoogland
Copy link
Contributor Author

@blueorangutan test matrix

@blueorangutan
Copy link

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

@codecov
Copy link

codecov bot commented Feb 10, 2023

Codecov Report

Merging #7190 (2692fed) into main (23d8981) will increase coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #7190      +/-   ##
============================================
+ Coverage     12.63%   12.67%   +0.03%     
- Complexity     8613     8639      +26     
============================================
  Files          2711     2716       +5     
  Lines        255752   256112     +360     
  Branches      39873    39926      +53     
============================================
+ Hits          32325    32456     +131     
- Misses       219320   219528     +208     
- Partials       4107     4128      +21     
Impacted Files Coverage Δ
...ma/src/main/java/com/cloud/user/UserAccountVO.java 46.31% <0.00%> (-4.94%) ⬇️
...ne/schema/src/main/java/com/cloud/user/UserVO.java 42.85% <0.00%> (-4.02%) ⬇️
...om/cloud/api/query/dao/UserAccountJoinDaoImpl.java 20.00% <0.00%> (-1.74%) ⬇️
...java/com/cloud/api/query/vo/UserAccountJoinVO.java 27.08% <0.00%> (-0.58%) ⬇️
...loud/hypervisor/kvm/resource/VRouterVifDriver.java 5.40% <0.00%> (-0.16%) ⬇️
...ain/java/org/apache/cloudstack/saml/SAMLUtils.java 64.80% <0.00%> (-0.14%) ⬇️
server/src/main/java/com/cloud/api/ApiServer.java 1.83% <0.00%> (-0.05%) ⬇️
...in/java/com/cloud/server/ManagementServerImpl.java 5.65% <0.00%> (-0.01%) ⬇️
...java/com/cloud/agent/manager/AgentManagerImpl.java 4.94% <0.00%> (-0.01%) ⬇️
...ain/java/com/cloud/api/query/QueryManagerImpl.java 2.95% <0.00%> (-0.01%) ⬇️
... and 22 more

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

@blueorangutan
Copy link

Trillian Build Failed (tid-6153)

@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Feb 10, 2023
@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_02_deploy_vm_with_extraconfig_kvm Error 38.53 test_deploy_vm_extra_config_data.py
test_03_update_vm_with_extraconfig_kvm Error 132.82 test_deploy_vm_extra_config_data.py
test_01_deploy_vm_on_specific_host Error 37.09 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 4.32 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 5.38 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 4.37 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 4.33 test_vm_deployment_planner.py

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_07_deploy_vm_with_extraconfig_xenserver Error 46.71 test_deploy_vm_extra_config_data.py
test_01_deploy_vm_on_specific_host Error 10.43 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 9.41 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 9.40 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 11.41 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 10.46 test_vm_deployment_planner.py

@blueorangutan
Copy link

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

Test Result Time (s) Test File
test_05_deploy_vm_with_extraconfig_vmware Error 4.40 test_deploy_vm_extra_config_data.py
test_01_deploy_vm_on_specific_host Error 11.69 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 10.69 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 10.66 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 12.66 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 13.67 test_vm_deployment_planner.py

@weizhouapache
Copy link
Member

@DaanHoogland
you need to create vm using VirtualMachine.create, or roll back all changes on deploy/destroy vm

@DaanHoogland
Copy link
Contributor Author

@blueorangutan package

@blueorangutan
Copy link

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

@DaanHoogland
Copy link
Contributor Author

@weizhouapache I reverted changes on test_vm_deployment_planner as the failures seem intemitted, and I don't see a reason. I reverted most changes on test_deploy_vm_extra_config_data, but added the possibility to call on the marvin object directly.

@blueorangutan
Copy link

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

@weizhouapache
Copy link
Member

@weizhouapache I reverted changes on test_vm_deployment_planner as the failures seem intemitted, and I don't see a reason. I reverted most changes on test_deploy_vm_extra_config_data, but added the possibility to call on the marvin object directly.

The vm, which is created by deployVirtualMachine.deployVirtualMachineCmd, cannot be cleaned up by tearDown class.
need to use VirtualMachine.create, like other tests, then it can be cleaned up in tearDown.

@DaanHoogland
Copy link
Contributor Author

@weizhouapache I reverted changes on test_vm_deployment_planner as the failures seem intemitted, and I don't see a reason. I reverted most changes on test_deploy_vm_extra_config_data, but added the possibility to call on the marvin object directly.

The vm, which is created by deployVirtualMachine.deployVirtualMachineCmd, cannot be cleaned up by tearDown class. need to use VirtualMachine.create, like other tests, then it can be cleaned up in tearDown.

Yes, I realise that. I think that is a big change now, it got me some request signing errors trying. I want to merge as is.

@sonarqubecloud
Copy link

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

No Coverage information No Coverage information
No Duplication information No Duplication information

@DaanHoogland DaanHoogland marked this pull request as ready for review February 13, 2023 12:22
Copy link
Contributor

@nvazquez nvazquez left a comment

Choose a reason for hiding this comment

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

Code LGTM, can we run a final round of tests?

@DaanHoogland
Copy link
Contributor Author

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

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

Test Result Time (s) Test File

@weizhouapache
Copy link
Member

Merging based on Simulator CI and Trillian test results

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.

4 participants