cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

cks: fix events

Open shwstppr opened this issue 1 year ago • 1 comments

Description

Fixes #8043

Types of changes

  • [ ] Breaking change (fix or feature that would cause existing functionality to change)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] 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

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?

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

shwstppr avatar May 10 '24 04:05 shwstppr

Codecov Report

Attention: Patch coverage is 9.75610% with 185 lines in your changes missing coverage. Please review.

Project coverage is 14.95%. Comparing base (c779b1c) to head (1ffae17). Report is 22 commits behind head on 4.19.

Files Patch % Lines
...bernetes/cluster/KubernetesClusterManagerImpl.java 0.00% 43 Missing :warning:
...KubernetesClusterResourceModifierActionWorker.java 0.00% 31 Missing :warning:
...ubernetes/cluster/KubernetesServiceHelperImpl.java 8.33% 22 Missing :warning:
...bernetes/version/KubernetesVersionManagerImpl.java 53.33% 6 Missing and 1 partial :warning:
...s/version/UpdateKubernetesSupportedVersionCmd.java 0.00% 7 Missing :warning:
.../src/main/java/com/cloud/vm/UserVmManagerImpl.java 0.00% 7 Missing :warning:
...r/actionworkers/KubernetesClusterActionWorker.java 0.00% 6 Missing :warning:
...kubernetes/cluster/DeleteKubernetesClusterCmd.java 0.00% 6 Missing :warning:
.../apache/cloudstack/api/ApiCommandResourceType.java 44.44% 4 Missing and 1 partial :warning:
...er/actionworkers/KubernetesClusterScaleWorker.java 0.00% 5 Missing :warning:
... and 14 more
Additional details and impacted files
@@             Coverage Diff              @@
##               4.19    #9070      +/-   ##
============================================
- Coverage     14.96%   14.95%   -0.01%     
- Complexity    10994    11005      +11     
============================================
  Files          5373     5377       +4     
  Lines        469248   469628     +380     
  Branches      58967    59124     +157     
============================================
+ Hits          70220    70255      +35     
- Misses       391253   391594     +341     
- Partials       7775     7779       +4     
Flag Coverage Δ
uitests 4.29% <ø> (-0.01%) :arrow_down:
unittests 15.67% <9.75%> (-0.01%) :arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar May 10 '24 04:05 codecov[bot]

@blueorangutan package

shwstppr avatar May 14 '24 14:05 shwstppr

@shwstppr 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 avatar May 14 '24 15:05 blueorangutan

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

blueorangutan avatar May 14 '24 16:05 blueorangutan

@blueorangutan package

shwstppr avatar May 16 '24 10:05 shwstppr

@shwstppr 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 avatar May 16 '24 10:05 blueorangutan

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

blueorangutan avatar May 16 '24 11:05 blueorangutan

@blueorangutan package

shwstppr avatar May 20 '24 08:05 shwstppr

@shwstppr 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 avatar May 20 '24 08:05 blueorangutan

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

blueorangutan avatar May 20 '24 09:05 blueorangutan

@blueorangutan test

shwstppr avatar May 20 '24 10:05 shwstppr

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

blueorangutan avatar May 20 '24 10:05 blueorangutan

[SF] Trillian Build Failed (tid-10217)

blueorangutan avatar May 20 '24 11:05 blueorangutan

@blueorangutan test

shwstppr avatar May 21 '24 21:05 shwstppr

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

blueorangutan avatar May 21 '24 21:05 blueorangutan

@DaanHoogland this PR just fixes events for different CKS actions for both k8s cluster and k8s supported versions. Mainly the resources linked to the events. I'm not sure what can be added in a doc PR. Do you have any suggestions?

shwstppr avatar May 22 '24 09:05 shwstppr

@DaanHoogland this PR just fixes events for different CKS actions for both k8s cluster and k8s supported versions. Mainly the resources linked to the events. I'm not sure what can be added in a doc PR. Do you have any suggestions?

It is not specific to this PR, but I think we can look at more specific event documentation. I had a quick search of the docs and do not see any event documentation for other resources either. Just a thought. Forget it for now.

DaanHoogland avatar May 22 '24 09:05 DaanHoogland

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

Test Result Time (s) Test File
test_01_events_resource Error 418.55 test_events_resource.py
test_02_trigger_shutdown Failure 341.77 test_safe_shutdown.py

blueorangutan avatar May 22 '24 09:05 blueorangutan

@blueorangutan package

shwstppr avatar May 31 '24 08:05 shwstppr

@shwstppr 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 avatar May 31 '24 08:05 blueorangutan

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

blueorangutan avatar May 31 '24 09:05 blueorangutan

@blueorangutan test

DaanHoogland avatar Jun 04 '24 07:06 DaanHoogland

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

blueorangutan avatar Jun 04 '24 07:06 blueorangutan

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

Test Result Time (s) Test File

blueorangutan avatar Jun 04 '24 21:06 blueorangutan

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Jun 06 '24 09:06 github-actions[bot]

@blueorangutan package

DaanHoogland avatar Jun 12 '24 07:06 DaanHoogland

@DaanHoogland 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 avatar Jun 12 '24 07:06 blueorangutan

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

blueorangutan avatar Jun 12 '24 09:06 blueorangutan

@shwstppr LGTM but pl check if the package-lock.json needs to be removed and re-added in format/version 1, if only required:

npm i --lockfile-version 1

This is because, changing the lock file version may not work with older/other npm versions or cause unknown consequences due to change in direct/indirect dependencies; full UI QA may be necessary when/if this happens.

rohityadavcloud avatar Jun 12 '24 11:06 rohityadavcloud

Thanks @rohityadavcloud. Reverted package-lock.json. I must've added it by mistake

shwstppr avatar Jun 12 '24 11:06 shwstppr