Skip to content

Multiple SSH Keys support#5965

Merged
nvazquez merged 60 commits intoapache:mainfrom
shapeblue:mul-ssh-keys
Mar 2, 2022
Merged

Multiple SSH Keys support#5965
nvazquez merged 60 commits intoapache:mainfrom
shapeblue:mul-ssh-keys

Conversation

@davidjumani
Copy link
Copy Markdown
Contributor

@davidjumani davidjumani commented Feb 8, 2022

Description

Is a continuation of #5215
The result of the GSoC project
Adds support for multiple SSH Keys for VMs.

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

  • Major
  • Minor

Screenshots (if appropriate):

Screenshot from 2022-02-08 16-18-45

Screenshot from 2022-02-08 16-18-25

Screenshot from 2022-02-10 13-01-23

bicrxm added 30 commits July 2, 2021 13:49
… the resetvmsshinternal, and added in details
@davidjumani
Copy link
Copy Markdown
Contributor Author

@davidjumani code looks good to me. tested ok.

I have few questions or suggestions

(1) for existing vms which has SSH.PublicKey in user_vm_details before cloudstack upgrade, would be good to add a record SSH.KeyPairNames in the table ?

(2) the URL of ssh keypair page is http://localhost:5050/#/ssh/. What if there are multiple ssh keypairs with same name on the platform ? uuid looks better than ssh keypair name.

(3) on UI, can the existing ssh keypair be checked by default when open the dialog of reset ssh keypair ?

I've addressed points 1 & 3 in this PR. Point 2 might require a larger change since the uuid field was recently added to ssh keyparis

@blueorangutan
Copy link
Copy Markdown

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

@davidjumani
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@davidjumani 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-3420)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36647 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5965-t3420-kvm-centos7.zip
Smoke tests completed. 92 look OK, 0 have errors
Only failed tests results shown below:

Test Result Time (s) Test File

@davidjumani
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

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

@davidjumani
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Member

@weizhouapache weizhouapache left a comment

Choose a reason for hiding this comment

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

thanks @davidjumani

I have tested this again, everything looks good.
cc @nvazquez

@nvazquez nvazquez marked this pull request as draft February 24, 2022 11:49
@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File
test_07_deploy_kubernetes_ha_cluster Failure 3622.52 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 0.07 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 69.29 test_kubernetes_clusters.py

@weizhouapache
Copy link
Copy Markdown
Member

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

Test Result Time (s) Test File
test_07_deploy_kubernetes_ha_cluster Failure 3622.52 test_kubernetes_clusters.py
test_08_upgrade_kubernetes_ha_cluster Failure 0.07 test_kubernetes_clusters.py
test_09_delete_kubernetes_ha_cluster Failure 0.04 test_kubernetes_clusters.py
ContextSuite context=TestKubernetesCluster>:teardown Error 69.29 test_kubernetes_clusters.py

@davidjumani
this needs more investigation.

might it be caused by systemvm template /cloud-init ?

@andrijapanicsb
Copy link
Copy Markdown
Contributor

LGTM, tested briefly and it looks good.

@davidjumani
Copy link
Copy Markdown
Contributor Author

@weizhouapache Seems unrelated. I'll kick the tests again

@davidjumani
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

@davidjumani 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-3444)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 35994 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr5965-t3444-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermittent failure detected: /marvin/tests/smoke/test_kubernetes_clusters.py

@davidjumani
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link
Copy Markdown

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

@davidjumani
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@davidjumani davidjumani marked this pull request as ready for review February 28, 2022 08:08
@blueorangutan
Copy link
Copy Markdown

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

Test Result Time (s) Test File

@nvazquez nvazquez merged commit 85c5997 into apache:main Mar 2, 2022
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.

8 participants