Skip to content

Add and improve logs in ACS bootstrap process - #6890

Merged
yadvr merged 2 commits into
apache:mainfrom
scclouds:add-logs-MS-init
Nov 3, 2023
Merged

yadvr merged 2 commits into
apache:mainfrom
scclouds:add-logs-MS-init

Conversation

@stephankruggg

Copy link
Copy Markdown
Contributor

Description

ACS bootstrap process contains code that might cause exceptions, which are not logged; thus, it can make it hard for developers and operators to understand what is happening to the system and breaking the boot of the application. This PR intends to improve and add new logs to this process in order to facilitate troubleshooting.

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

How Has This Been Tested?

I applied the changes in a local lab and checked if the messages were being correctly logged.

@stephankruggg stephankruggg changed the title Add and improve logs Add and improve logs in ACS bootstrap process Nov 9, 2022
@codecov

codecov Bot commented Nov 9, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #6890 (f67c580) into main (1843632) will increase coverage by 16.27%.
Report is 659 commits behind head on main.
The diff coverage is 75.00%.

@@              Coverage Diff              @@
##               main    #6890       +/-   ##
=============================================
+ Coverage     10.87%   27.15%   +16.27%     
- Complexity     7117    28467    +21350     
=============================================
  Files          2485     5119     +2634     
  Lines        245499   417565   +172066     
  Branches      38334    78992    +40658     
=============================================
+ Hits          26699   113379    +86680     
- Misses       215530   289002    +73472     
- Partials       3270    15184    +11914     
Flag Coverage Δ
simulator-marvin-tests 25.14% <75.00%> (?)
uitests 4.87% <ø> (?)
unit-tests 14.42% <66.66%> (?)

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

Files Changed Coverage Δ
.../module/model/impl/DefaultModuleDefinitionSet.java 83.33% <75.00%> (+3.64%) ⬆️

... and 4007 files with indirect coverage changes

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

@sonarqubecloud

sonarqubecloud Bot commented Nov 9, 2022

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

i´d approve if any debug log statements that do parameter evaluation were guarded.

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

LGTM, I just pointed out a minor improvement.

@yadvr yadvr added this to the 4.19.0.0 milestone Apr 19, 2023
@yadvr

yadvr commented Apr 19, 2023

Copy link
Copy Markdown
Member

@blueorangutan package

@yadvr yadvr closed this Apr 19, 2023
@yadvr yadvr reopened this Apr 19, 2023
@yadvr

yadvr commented Apr 19, 2023

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@sonarqubecloud

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

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@blueorangutan

Copy link
Copy Markdown

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

@yadvr

yadvr commented May 23, 2023

Copy link
Copy Markdown
Member

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rohityadavcloud a [SF] 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 6108

@GutoVeronezi

Copy link
Copy Markdown
Contributor

@DaanHoogland @rohityadavcloud can we run the tests for this one?

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_05_vmschedule_test_e2e Failure 255.92 test_vm_schedule.py

@DaanHoogland

Copy link
Copy Markdown
Contributor

double check:
@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_02_trigger_shutdown Failure 336.60 test_safe_shutdown.py
test_08_upgrade_kubernetes_ha_cluster Failure 646.17 test_kubernetes_clusters.py
test_05_vmschedule_test_e2e Failure 265.94 test_vm_schedule.py

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

Code LGTM

@shwstppr

shwstppr commented Oct 2, 2023

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@shwstppr

shwstppr commented Oct 3, 2023

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-7818)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44101 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6890-t7818-kvm-centos7.zip
Smoke tests completed. 112 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 682.74 test_kubernetes_clusters.py

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

in my opinion debug logging should still be guarded if parameter expansion is done, but as I am alone in this opnion I am no longer going to ask for changes in that perspect, the rest looks good.

@GutoVeronezi
GutoVeronezi self-requested a review October 10, 2023 12:22
@DaanHoogland

Copy link
Copy Markdown
Contributor

@GutoVeronezi still want to review?

@yadvr
yadvr merged commit 8fa8cef into apache:main Nov 3, 2023
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Nov 8, 2023
* Add and improve logs

* Fix unnecessary calls

---------

Co-authored-by: Stephan Krug <stephan.krug@scclouds.com.br>
weizhouapache added a commit to weizhouapache/cloudstack that referenced this pull request Nov 13, 2023
Sign up for free to 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.

7 participants