Skip to content

Direct download certificates additions and improvements - #6104

Merged
nvazquez merged 23 commits into
apache:mainfrom
shapeblue:directdownloadimprovements
Apr 12, 2022
Merged

nvazquez merged 23 commits into
apache:mainfrom
shapeblue:directdownloadimprovements

Conversation

@nvazquez

@nvazquez nvazquez commented Mar 14, 2022

Copy link
Copy Markdown
Contributor

Description

This PR adds some improvements around the direct download functionality:

  • Add a new API for certificates listing
  • Add a new API to provision an uploaded certificate to a host
  • Refactor the revokeTemplateDirectDownloadCertificate API
  • Refactor the uploadTemplateDirectDownloadCertificate API

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?

@nvazquez nvazquez added this to the 4.17.0.0 milestone Mar 14, 2022
@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 2858

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

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

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

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

nvazquez and others added 2 commits March 14, 2022 08:38
Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 2865

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

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

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@nvazquez

nvazquez commented Apr 6, 2022

Copy link
Copy Markdown
Contributor Author

Thanks @weizhouapache - fixing the APINAME has fixed the issue of the ID on cmk, have fixed your comments and retested
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

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

@nvazquez

nvazquez commented Apr 6, 2022

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3827)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31603 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6104-t3827-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@weizhouapache

Copy link
Copy Markdown
Member

tested OK with following apis.

upload templatedirectdownloadcertificate
list templatedirectdownloadcertificates
list templatedirectdownloadcertificates listhosts=true
provision templatedirectdownloadcertificate
revoke templatedirectdownloadcertificate

verified keystore OK by keytool

small suggestion:
would be good to add id of the certificate to the response of upload templatedirectdownloadcertificate ?
now the response looks like

{
  "count": 3,
  "directdownloadcertificatehoststatus": [
    {
      "details": "",
      "hostid": "6435a58b-86e0-43d5-81b0-25c0a73dce0d",
      "hostname": "kvm1",
      "status": "UPLOADED"
    },
    {
      "details": "",
      "hostid": "41bd94dc-4903-4891-bbe4-f093097f844a",
      "hostname": "kvm2",
      "status": "UPLOADED"
    },
    {
      "details": "",
      "hostid": "a6ca44ed-394f-4607-925f-99d825be7839",
      "hostname": "kvm3",
      "status": "UPLOADED"
    }
  ]
}

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

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

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@nvazquez 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
Copy Markdown

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

@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3852)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 33004 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr6104-t3852-kvm-centos7.zip
Smoke tests completed. 93 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@nvazquez
nvazquez merged commit 5435b0a into apache:main Apr 12, 2022
shwstppr pushed a commit to shapeblue/cloudstack that referenced this pull request May 17, 2022
…ache#6104) (#140)

* Direct download certificates additions and improvements (apache#6104)

* Add direct download certificates listing

* Restore class to original project

* Small refactor

* Register API

* Apply suggestions from code review

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>

* Refactor after review

* Fix checkstyle

* Add hosts mapping to API response

* Improvements on revoke certificate

* Refactor revoke certificate API

* Fix condition

* Filter only certificates not revoked for revokeCertificate API

* Improve upload certificate and add provision certificate API

* Improve certificate response output

* Address review comments

* Refactor revoke cert test

* Fix marvin test

* Address review comments

* Fix issues

* Improvements

* Refactor upload template API response

* Fix response

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>

* Fix pom version

Co-authored-by: Suresh Kumar Anaparti <sureshkumar.anaparti@gmail.com>
@apache apache deleted a comment from blueorangutan Oct 31, 2022
@apache apache deleted a comment from blueorangutan Oct 31, 2022
@nvazquez

Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants