Skip to content

Added update, enable, disable events to the updateStoragePool API#9543

Merged
DaanHoogland merged 4 commits into
apache:mainfrom
shapeblue:PrimaryStorageEvents
Sep 5, 2024
Merged

Added update, enable, disable events to the updateStoragePool API#9543
DaanHoogland merged 4 commits into
apache:mainfrom
shapeblue:PrimaryStorageEvents

Conversation

@harikrishna-patnala

@harikrishna-patnala harikrishna-patnala commented Aug 19, 2024

Copy link
Copy Markdown
Member

Description

This PR addresses the issue #8494

Fixes the issue of missing Enable, Disable action events when trying to do that using updateStoragePool. Also added new Action event UPDATE.PS to the actual update storage pool event.

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)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

Screenshot 2024-08-19 at 5 52 15 PM

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SL] 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.

@codecov

codecov Bot commented Aug 19, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 4.16%. Comparing base (2ba64f2) to head (fe0a3bd).
Report is 75 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (2ba64f2) and HEAD (fe0a3bd). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (2ba64f2) HEAD (fe0a3bd)
unittests 1 0
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #9543       +/-   ##
============================================
- Coverage     15.54%   4.16%   -11.38%     
============================================
  Files          5499     377     -5122     
  Lines        481706   30889   -450817     
  Branches      58660    5466    -53194     
============================================
- Hits          74879    1288    -73591     
+ Misses       398541   29455   -369086     
+ Partials       8286     146     -8140     
Flag Coverage Δ
uitests 4.16% <ø> (-0.01%) ⬇️
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10695

Comment on lines +151 to +157
if (name != null ||
(tags != null && !tags.isEmpty()) ||
capacityIops != null ||
capacityBytes != null ||
(details != null && !details.isEmpty()) ||
url != null ||
isTagARule != null) {

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.

We could use ObjectUtils.anyNotNull() for all non collection variables and CollectionUtils.isNotEmpty() for details and tags.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated the code. Thanks @JoaoJandre

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10721

@kiranchavala kiranchavala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

DISABLE, ENABLE, UPDATE PS events are properly generated

Screenshot 2024-08-21 at 1 47 52 PM

@kiranchavala

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@kiranchavala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@JoaoJandre JoaoJandre 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, did not test it

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-11123)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 57312 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9543-t11123-kvm-ol8.zip
Smoke tests completed. 135 look OK, 4 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_DeployVmAffinityGroup Error 1.42 test_affinity_groups.py
test_01_non_strict_host_anti_affinity Error 3.71 test_nonstrict_affinity_group.py
test_02_non_strict_host_affinity Error 3.61 test_nonstrict_affinity_group.py
test_01_secure_vm_migration Error 402.58 test_vm_life_cycle.py
test_13_migrate_volume_and_change_offering Error 121.12 test_volumes.py

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

test_13_migrate_volume_and_change_offering failure is because of this PR change, will update the PR accordingly.

cc @DaanHoogland

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10770

@harikrishna-patnala

Copy link
Copy Markdown
Member Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-11154)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 53649 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9543-t11154-kvm-ol8.zip
Smoke tests completed. 138 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_04_deploy_vnf_appliance Error 103.03 test_vnf_templates.py
test_04_deploy_vnf_appliance Error 103.03 test_vnf_templates.py
test_05_delete_vnf_template Error 1.10 test_vnf_templates.py
ContextSuite context=TestVnfTemplates>:teardown Error 2.24 test_vnf_templates.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-11180)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 50425 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9543-t11180-kvm-ol8.zip
Smoke tests completed. 139 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

Comment thread server/src/main/java/com/cloud/storage/StorageManagerImpl.java
@harikrishna-patnala

Copy link
Copy Markdown
Member Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@harikrishna-patnala a [SL] 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.

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

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 10838

@sureshanaparti

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@sureshanaparti a [SL] 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 [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10839

@yadvr

yadvr commented Sep 4, 2024

Copy link
Copy Markdown
Member

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-11324)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 54960 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9543-t11324-kvm-ol8.zip
Smoke tests completed. 138 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_02_redundant_VPC_default_routes Failure 395.88 test_vpc_redundant.py
test_05_rvpc_multi_tiers Failure 488.42 test_vpc_redundant.py
test_05_rvpc_multi_tiers Error 488.44 test_vpc_redundant.py

@DaanHoogland DaanHoogland merged commit 716ab20 into apache:main Sep 5, 2024
@DaanHoogland DaanHoogland deleted the PrimaryStorageEvents branch September 5, 2024 06:39
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Sep 6, 2024
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.

Have an event generated for disable/enable primary storage

7 participants