[ https://issues.apache.org/jira/browse/CLOUDSTACK-4995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rayees Namathponnan closed CLOUDSTACK-4995. ------------------------------------------- Verified with latest automation runs > [Automation] Test case > TestResetSSHKeyUserRights.test_01_reset_keypair_normal_user, vm failed to > start after resetting key > --------------------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-4995 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4995 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Automation > Affects Versions: 4.2.1 > Environment: Automation > Reporter: Rayees Namathponnan > Assignee: Gaurav Aradhye > Fix For: 4.2.1, 4.3.0 > > > Test case > integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights.test_01_reset_keypair_normal_user > failed > Failed to start VM after resetting the KVM, observed below error in > automation log > The virtual machine dd14c584-03a3-4f3b-b872-ba2df291a266 failed to start even > after 10 minutes > -------------------- >> begin captured logging << -------------------- > paramiko.transport: DEBUG: starting thread (client mode): 0x1e260e50L > paramiko.transport: INFO: Connected (version 2.0, client OpenSSH_4.3) > paramiko.transport: DEBUG: kex algos:['diffie-hellman-group-exchange-sha1', > 'diffie-hellman-group14-sha1', 'diffie-hellman-group1-sha1'] server > key:['ssh-rsa', 'ssh-dss'] client encrypt:['aes128-cbc', '3des-cbc', > 'blowfish-cbc', 'cast128-cbc', 'arcfour128', 'arcfour256', 'arcfour', > 'aes192-cbc', 'aes256-cbc', 'rijndael-...@lysator.liu.se', 'aes128-ctr', > 'aes192-ctr', 'aes256-ctr'] server encrypt:['aes128-cbc', '3des-cbc', > 'blowfish-cbc', 'cast128-cbc', 'arcfour128', 'arcfour256', 'arcfour', > 'aes192-cbc', 'aes256-cbc', 'rijndael-...@lysator.liu.se', 'aes128-ctr', > 'aes192-ctr', 'aes256-ctr'] client mac:['hmac-md5', 'hmac-sha1', > 'hmac-ripemd160', 'hmac-ripemd...@openssh.com', 'hmac-sha1-96', > 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'hmac-ripemd160', > 'hmac-ripemd...@openssh.com', 'hmac-sha1-96', 'hmac-md5-96'] client > compress:['none', 'z...@openssh.com'] server compress:['none', > 'z...@openssh.com'] client lang:[''] server lang:[''] kex follows?False > paramiko.transport: DEBUG: Ciphers agreed: local=aes128-ctr, remote=aes128-ctr > paramiko.transport: DEBUG: using kex diffie-hellman-group1-sha1; server key > type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: local > hmac-sha1, remote hmac-sha1; compression: local none, remote none > paramiko.transport: DEBUG: Switch to new keys ... > paramiko.transport: DEBUG: Adding ssh-rsa host key for 10.223.122.106: > 0f8b3ff9dc4dce10340227dab3cac032 > paramiko.transport: DEBUG: Trying discovered key > 76be480fa6b8ad3b78082d6d19e4ee44 in /root/.ssh/id_rsa > paramiko.transport: DEBUG: userauth is OK > paramiko.transport: INFO: Authentication (publickey) failed. > paramiko.transport: DEBUG: userauth is OK > paramiko.transport: INFO: Authentication (password) successful! > sshClient: DEBUG: SSH connect: root@10.223.122.106 with passwd password > paramiko.transport: DEBUG: [chan 1] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 1] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 1 opened. > paramiko.transport: DEBUG: [chan 1] Sesch channel 1 request ok > paramiko.transport: DEBUG: [chan 1] EOF received (1) > paramiko.transport: DEBUG: [chan 1] EOF sent (1) > sshClient: DEBUG: {Cmd: cd /etc/init.d;wget > http://downloads.sourceforge.net/project/cloudstack/SSH%20Key%20Gen%20Script/cloud-set-guest-sshkey.in?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcloudstack%2Ffiles%2FSSH%2520Key%2520Gen%2520Script%2F&ts=1331225219&use_mirror=iweb > via Host: 10.223.122.106} {returns: []} > paramiko.transport: DEBUG: [chan 2] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 2] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 2 opened. > paramiko.transport: DEBUG: [chan 2] Sesch channel 2 request ok > paramiko.transport: DEBUG: [chan 2] EOF received (2) > paramiko.transport: DEBUG: [chan 2] EOF sent (2) > sshClient: DEBUG: {Cmd: chmod +x /etc/init.d/cloud-set-guest-sshkey.in via > Host: 10.223.122.106} {returns: []} > paramiko.transport: DEBUG: [chan 3] Max packet in: 34816 bytes > paramiko.transport: DEBUG: [chan 3] Max packet out: 32768 bytes > paramiko.transport: INFO: Secsh channel 3 opened. > paramiko.transport: DEBUG: [chan 3] Sesch channel 3 request ok > paramiko.transport: DEBUG: [chan 3] EOF received (3) > paramiko.transport: DEBUG: [chan 3] EOF sent (3) > sshClient: DEBUG: {Cmd: chkconfig --add cloud-set-guest-sshkey.in via Host: > 10.223.122.106} {returns: []} > paramiko.transport: DEBUG: EOF in transport thread > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Creating a normal user account > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Account created: > test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-R84LI6 > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Check if the VM is properly deployed or not? > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Stopping the virtual machine > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Creating a new SSH keypair for account: > test-TestResetSSHKeypair-test_01_reset_keypair_normal_user-R84LI6 > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Created a new keypair with name: J6QTW1.pem > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Writing the private key to local file > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: File path: /tmp/J6QTW1.pem > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Resetting the SSH key pair for instance: > dd14c584-03a3-4f3b-b872-ba2df291a266 > test_01_reset_keypair_normal_user > (integration.component.test_reset_ssh_keypair.TestResetSSHKeyUserRights): > DEBUG: Starting the virtual machine after resetting the keypair > --------------------- >> end captured logging << --------------------- > Stacktrace > File "/usr/local/lib/python2.7/unittest/case.py", line 318, in run > testMethod() > File > "/Repo_30X/ipcl/cloudstack/test/integration/component/test_reset_ssh_keypair.py", > line 1215, in test_01_reset_keypair_normal_user > % (vms[0].name, self.services["timeout"])) > File "/usr/local/lib/python2.7/unittest/case.py", line 393, in fail > raise self.failureException(msg) > The virtual machine dd14c584-03a3-4f3b-b872-ba2df291a266 failed to start even > after 10 minutes -- This message was sent by Atlassian JIRA (v6.1#6144)