[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Girish Shilamkar closed CLOUDSTACK-5159.
----------------------------------------
    Resolution: Fixed

> Reset SSH keypair sometimes fails in Vmware
> -------------------------------------------
>
>                 Key: CLOUDSTACK-5159
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5159
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Test
>    Affects Versions: 4.2.1
>         Environment: Vmware
>            Reporter: Girish Shilamkar
>            Priority: Blocker
>
> Reset ssh keypair regression tests are failing while trying to ssh with new 
> ssh keypair (which was reset).
> Test Reset SSH keys for VM  already having SSH key
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/root/girish/test_reset_ssh_keypair.py", line 392, in 
> test_01_reset_ssh_keys
>     (virtual_machine.name, e))
> AssertionError: Failed to SSH into VM with new keypair: 
> 9d70d112-fab8-4eac-b4f5-a463b2ec31a5, Failed to bring up ssh service in time. 
> Waited 300s. Error is SSHException('not a valid DSA private key file',)
> ======================================================================
> FAIL: test_02_reset_ssh_key_password_enabled_template 
> (test_reset_ssh_keypair.TestResetSSHKeypair)
> Reset SSH keys for VM  created from password enabled template and
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/root/girish/test_reset_ssh_keypair.py", line 504, in 
> test_02_reset_ssh_key_password_enabled_template
>     (virtual_machine.name, e))
> AssertionError: Failed to SSH into VM with new keypair: 
> b5f0c846-49a2-403e-b826-d1320bf90dac, Failed to bring up ssh service in time. 
> Waited 300s. Error is SSHException('not a valid DSA private key file',)
> ======================================================================
> FAIL: test_03_reset_ssh_with_no_key 
> (test_reset_ssh_keypair.TestResetSSHKeypair)
> Reset SSH key for VM  having no SSH key
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/root/girish/test_reset_ssh_keypair.py", line 615, in 
> test_03_reset_ssh_with_no_key
>     (virtual_machine.name, e))
> AssertionError: Failed to SSH into VM with new keypair: 
> b6cda8bc-0bb6-4a73-a528-e66d20459e54, Failed to bring up ssh service in time. 
> Waited 300s. Error is SSHException('not a valid DSA private key file',)
> ======================================================================
> FAIL: test_04_reset_key_passwd_enabled_no_key 
> (test_reset_ssh_keypair.TestResetSSHKeypair)
> Reset SSH keys for VM  created from password enabled template and
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/root/girish/test_reset_ssh_keypair.py", line 727, in 
> test_04_reset_key_passwd_enabled_no_key
>     (virtual_machine.name, e))
> AssertionError: Failed to SSH into VM with new keypair: 
> a992c80b-9aa4-444a-8b82-b893bbf67c83, Failed to bring up ssh service in time. 
> Waited 300s. Error is SSHException('not a valid DSA private key file',)
> Manually trying to ssh does not work, of course.
> [root@autoclient1 girish]# ssh -i /tmp/K2BZGX.pem 10.223.243.48
> [email protected]'s password: 
> However this error is not always seen and sometimes even the same test 
> succeeds. 
> test_01_reset_ssh_keys (test_reset_ssh_keypair.TestResetSSHKeypair)
> Test Reset SSH keys for VM  already having SSH key ... ok
> This problem is only seen on vmware, the tests pass on kvm and xen.
> Steps to reproduce:
> 1. Create a template with sshkeypair enabled.
> 2. Generate sshkeypair for account
> 3. Deploy a vm, attach A PF rule to it
> 4. Stop the vm
> 5. Create sshkeypair for the account
> 6. Reset ssh key for the vm using newly create sshkeypair
> 7. Start vm
> 8. Ssh to vm using new ssh keypair using public ip from PF rule.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to