FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

kvm: fix error when enable SSL for kvm agent by weizhouapache · Pull Request #7923 · apache/cloudstack · GitHub

kvm: fix error when enable SSL for kvm agent - #7923

Merged
DaanHoogland merged 1 commit into
apache:4.18from
weizhouapache:4.18-fix-kvm-agent-ssl
Dec 7, 2023
Merged

DaanHoogland merged 1 commit into
apache:4.18from
weizhouapache:4.18-fix-kvm-agent-ssl

Conversation

weizhouapache commented Aug 30, 2023
edited
Loading

Copy link
Copy Markdown
Member

Description

This PR fixes the error: 'Failed to find passphrase for keystore: cloud.jks'

This was implemented in PR #6200 and #6371 , but broken in PR #6348.
The issue has been fixed in PR #7693, not sure if this change is required or not

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?

Copy link
Copy Markdown
Member Author

@blueorangutan package

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@weizhouapache could describe the steps to reproducee the error?

Copy link
Copy Markdown

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

codecov Bot commented Aug 30, 2023
edited
Loading

Copy link
Copy Markdown

Codecov Report

Merging #7923 (26702b8) into 4.18 (0b3438b) will decrease coverage by 0.01%.
Report is 4 commits behind head on 4.18.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##               4.18    #7923      +/-   ##
============================================
- Coverage     13.07%   13.06%   -0.01%     
+ Complexity     9110     9108       -2     
============================================
  Files          2720     2720              
  Lines        257526   257533       +7     
  Branches      40150    40150              
============================================
- Hits          33661    33656       -5     
- Misses       219636   219649      +13     
+ Partials       4229     4228       -1     
Files Coverage Δ
...oud/hypervisor/vmware/resource/VmwareResource.java 4.48% <0.00%> (ø)
...ervisor/kvm/resource/LibvirtComputingResource.java 18.45% <0.00%> (ø)
.../hypervisor/kvm/storage/LinstorStorageAdaptor.java 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

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

Copy link
Copy Markdown
Member Author

@weizhouapache could describe the steps to reproducee the error?

@GutoVeronezi
you can search "cloud.jks" in agent.log on any 4.18.0.0 kvm host. for example,

2023-08-30 12:56:33,603 INFO  [kvm.resource.LibvirtComputingResource] (main:null) (logid:) Failed to find passphrase for keystore: cloud.jks

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

yadvr commented Aug 30, 2023

Copy link
Copy Markdown
Member

@weizhouapache is that a critical/blocker issue for 4.18.1, could env loose the passphrase key from agent.properties on usage or upgrade?

@blueorangutan test

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member Author

@weizhouapache is that a critical/blocker issue for 4.18.1, could env loose the passphrase key from agent.properties on usage or upgrade?

@blueorangutan test

@rohityadavcloud
not critical I think, the keystore passphrase is saved in agent.properties without issue.
the issue is, the URL check of direct-download templates may fail

apache deleted a comment from blueorangutan Aug 30, 2023

Copy link
Copy Markdown

[SF] Trillian test result (tid-7608)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45992 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7923-t7608-kvm-centos7.zip
Smoke tests completed. 107 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_upgrade_kubernetes_cluster Failure 558.50 test_kubernetes_clusters.py

weizhouapache modified the milestones: 4.18.2.0, 4.18.1.0 Aug 31, 2023

Copy link
Copy Markdown
Member Author

@blueorangutan test rocky8 kvm-rocky8

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member Author

@blueorangutan test ubuntu22 kvm-ubuntu22

Copy link
Copy Markdown

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

yadvr requested a review from DaanHoogland August 31, 2023 06:48

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

clgtm

Copy link
Copy Markdown
Member Author

The URL check issue has been fixed by #7693 in another way

I am not sure if this PR will break the feature. let's NOT merge it into 4.18.1.0

cc @rohityadavcloud @DaanHoogland @nvazquez

}

private void enableSSLForKvmAgent(final Map<String, Object> params) {
private void enableSSLForKvmAgent() {

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We could have some unit tests for this method.

Copy link
Copy Markdown

[SF] Trillian test result (tid-7611)
Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8
Total time taken: 41113 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7923-t7611-kvm-rocky8.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 removed this from the 4.18.1.0 milestone Aug 31, 2023

Copy link
Copy Markdown

[SF] Trillian test result (tid-7860)
Environment: kvm-rocky8 (x2), Advanced Networking with Mgmt server r8
Total time taken: 44760 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7923-t7860-kvm-rocky8.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

Copy link
Copy Markdown
Contributor

@weizhouapache is this covoured by any tests?

Copy link
Copy Markdown
Member Author

@weizhouapache is this covoured by any tests?

@DaanHoogland no...

weizhouapache marked this pull request as draft October 6, 2023 08:37
DaanHoogland modified the milestones: 4.18.2.0, unplanned Oct 6, 2023

Copy link
Copy Markdown
Contributor

@weizhouapache is this ready for review/testing or more work is needed?

…en enable SSL for kvm agent

This was implemented in PR#6200 and apache#6371 , but broken in PR#6348
DaanHoogland force-pushed the 4.18-fix-kvm-agent-ssl branch from 5f312b2 to 26702b8 Compare October 18, 2023 08:16

Copy link
Copy Markdown
Contributor

@weizhouapache is this ready for review/testing or more work is needed?

@harikrishna-patnala , it needs some test(ing) i would put it on my list save the number of PRs on there. We could do with manual testing for now.

Copy link
Copy Markdown
Contributor

@blueorangutan package

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM based on manual testing. Uploaded a new download certificate, registered a new HTTPS template, no cloud.jks failures in agents' logs.

Copy link
Copy Markdown
Contributor

@weizhouapache is this ready now? see also #7923 (comment), will you add to that (in this PR)?

Copy link
Copy Markdown
Member Author

@weizhouapache is this ready now? see also #7923 (comment), will you add to that (in this PR)?

@DaanHoogland
sorry no, I am not going to do it

Copy link
Copy Markdown
Contributor

@weizhouapache is this ready now? see also #7923 (comment), will you add to that (in this PR)?

@DaanHoogland sorry no, I am not going to do it

ok, as @vladimirpetrov tested manually I gues we can merge this, right?

weizhouapache marked this pull request as ready for review December 6, 2023 08:54

Copy link
Copy Markdown
Member Author

@weizhouapache is this ready now? see also #7923 (comment), will you add to that (in this PR)?

@DaanHoogland sorry no, I am not going to do it

ok, as @vladimirpetrov tested manually I gues we can merge this, right?

@DaanHoogland @shwstppr
if there is no objection, let's merge this ?

shwstppr commented Dec 6, 2023

Copy link
Copy Markdown
Contributor

@blueorangutan package

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Contributor

@blueorangutan test

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

Test Result Time (s) Test File

DaanHoogland merged commit 7ea068c into apache:4.18 Dec 7, 2023
DaanHoogland deleted the 4.18-fix-kvm-agent-ssl branch December 7, 2023 08:10
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Dec 11, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

7 participants


Back | FazBrowse Home | New Git URL