[R4.1-106]- Automation: fix scp test cases, copy ssh-keys to VM

Bug #1758304 reported by alok kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
High
alok kumar
Trunk
Invalid
High
alok kumar

Bug Description

sanity tests which uses scp between VMs are failing due to ssh keys not getting copied on VMs.

fix it as below:

1. currently fab method fab_put_file_to_vm is used to copy key to VM which infact fails.
      Enhance the method copy_file_to_vm which can copy from remote to VM now and use this to copy keys from config to VM.
2. if ssh key is not available on config node, generate it.
3. copy only private key on source VM
4. copy only public key on destination VM.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/41006
Submitter: alok kumar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/41007
Submitter: alok kumar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/41006
Submitter: alok kumar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/41006
Committed: http://github.com/Juniper/contrail-test-ci/commit/d849d476af4ad59b75417cb1aab78c3efcc3427d
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit d849d476af4ad59b75417cb1aab78c3efcc3427d
Author: Alok Kumar <email address hidden>
Date: Fri Mar 23 16:16:30 2018 +0530

Fix for scp cases in sanity

1. currently fab method fab_put_file_to_vm is used
 to copy key to VM which infact fails. Enhance the
 method copy_file_to_vm which can copy from remote
 to VM now and use this to copy keys from config to VM.
2. if ssh key is not available on config node, generate it.
3. copy only private key on source VM
4. copy only public key on destination VM

Closes-bug: #1758304

Change-Id: I0a82f72a7ad34abf70fcbb7ae06c9128e176b1e9

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/41007
Committed: http://github.com/Juniper/contrail-test/commit/b9dbd368583d7b26e807eb74efa904a9997be625
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit b9dbd368583d7b26e807eb74efa904a9997be625
Author: Alok Kumar <email address hidden>
Date: Fri Mar 23 16:21:35 2018 +0530

Fix for scp cases in sanity

1. copy only private key on source VM
2. copy only public key on destination VM

Closes-bug: #1758304

Change-Id: Ida91641198b656408e20ae19e55dcf3df1836adf

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/41279
Submitter: alok kumar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Review in progress for https://review.opencontrail.org/41280
Submitter: alok kumar (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/41279
Committed: http://github.com/Juniper/contrail-test/commit/a1e4a7f1dc9fb8a6b7fe58eaeb57cea112b73a98
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit a1e4a7f1dc9fb8a6b7fe58eaeb57cea112b73a98
Author: Alok Kumar <email address hidden>
Date: Mon Apr 2 13:02:53 2018 +0530

Revert back copying ssh keys in ci sanity case

Closes-bug: #1758304

Change-Id: I446f50dd2eea34c9b978ae92c0501c3f8e3753b3

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/41280
Committed: http://github.com/Juniper/contrail-test-ci/commit/0acd690608fe8a5f7f91f03f1bfe75438d15f680
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 0acd690608fe8a5f7f91f03f1bfe75438d15f680
Author: Alok Kumar <email address hidden>
Date: Mon Apr 2 13:07:33 2018 +0530

Handle the exception when keys are not in /tmp

Closes-bug: #1758304

Change-Id: If7669c075cedd145cf32b9bfcc453c6873c50c65

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.