Sanity: test_vm_file_trf_scp_tests fails on Vcenter-only due to keyless authentication for SCP

Bug #1668810 reported by Sarath
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.2
In Progress
High
Senthilnathan Murugappan
R4.0
New
High
Senthilnathan Murugappan
Trunk
New
High
Senthilnathan Murugappan

Bug Description

This is script failure on Vcenter-only and below is the errors.

2017-02-15 15:03:17,092 - DEBUG - Running remote_cmd, Cmd : timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:, host_string: ubuntu@169.254.0.4, password: ubuntugateway: root@10.204.216.183, gateway password: c0ntrail123
2017-02-15 15:03:17,092 - DEBUG - timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:
2017-02-15 15:04:08,073 - ERROR - Unable to run command timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:: Command failed to finish in 50.0 seconds
Traceback (most recent call last):
  File "tcutils/fabutils.py", line 106, in remote_cmd
    output = _run(cmd, timeout=timeout, pty=not as_daemon)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 677, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 1088, in run
    shell_escape=shell_escape, capture_buffer_size=capture_buffer_size,
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 931, in _run_command
    capture_buffer_size=capture_buffer_size)
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 813, in _execute
    worker.raise_if_needed()
  File "/usr/local/lib/python2.7/dist-packages/fabric/thread_handling.py", line 12, in wrapper
    callable(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/io.py", line 32, in output_loop
    OutputLooper(*args, **kwargs).loop()
  File "/usr/local/lib/python2.7/dist-packages/fabric/io.py", line 87, in loop
    raise CommandTimeout(timeout=self.timeout)
CommandTimeout: Command failed to finish in 50.0 seconds
2017-02-15 15:04:13,078 - DEBUG - None
2017-02-15 15:04:13,078 - DEBUG - {'timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:': None}
2017-02-15 15:04:13,224 - DEBUG - Running remote_cmd, Cmd : sync, host_string: ubuntu@169.254.0.4, password: ubuntugateway: root@10.204.216.183, gateway password: c0ntrail123
2017-02-15 15:04:13,224 - DEBUG - sync
2017-02-15 15:04:14,166 - DEBUG - None
2017-02-15 15:04:14,311 - DEBUG - Running remote_cmd, Cmd : wc -c testfile, host_string: ubuntu@169.254.0.4, password: ubuntugateway: root@10.204.216.182, gateway password: c0ntrail123
2017-02-15 15:04:14,311 - DEBUG - wc -c testfile
2017-02-15 15:04:15,355 - DEBUG - wc: testfile: No such file or directory
2017-02-15 15:04:15,356 - WARNING - File of size 1000 is not trasferred fine to 180.47.160.4 by scp
2017-02-15 15:04:15,484 - DEBUG - Running remote_cmd, Cmd : rm -f testfile, host_string: ubuntu@169.254.0.4, password: ubuntugateway: root@10.204.216.182, gateway password: c0ntrail123
2017-02-15 15:04:15,484 - DEBUG - rm -f testfile
2017-02-15 15:04:16,434 - DEBUG - None
2017-02-15 15:04:26,552 - DEBUG - Running remote_cmd, Cmd : dd bs=1000 count=1 if=/dev/zero of=testfile, host_string: ubuntu@169.254.0.4, password: ubuntugateway: root@10.204.216.183, gateway password: c0ntrail123
2017-02-15 15:04:26,553 - DEBUG - dd bs=1000 count=1 if=/dev/zero of=testfile
2017-02-15 15:04:27,474 - DEBUG - 1+0 records in
1+0 records out
1000 bytes (1.0 kB) copied, 6.4911e-05 s, 15.4 MB/s
2017-02-15 15:04:27,602 - DEBUG - Running remote_cmd, Cmd : timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:, host_string: ubuntu@169.254.0.4, password: ubuntugateway: root@10.204.216.183, gateway password: c0ntrail123
2017-02-15 15:04:27,602 - DEBUG - timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:
2017-02-15 15:05:18,583 - ERROR - Unable to run command timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:: Command failed to finish in 50.0 seconds
Traceback (most recent call last):
  File "tcutils/fabutils.py", line 106, in remote_cmd
    output = _run(cmd, timeout=timeout, pty=not as_daemon)
  File "/usr/local/lib/python2.7/dist-packages/fabric/network.py", line 677, in host_prompting_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 1088, in run
    shell_escape=shell_escape, capture_buffer_size=capture_buffer_size,
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 931, in _run_command
    capture_buffer_size=capture_buffer_size)
  File "/usr/local/lib/python2.7/dist-packages/fabric/operations.py", line 813, in _execute
    worker.raise_if_needed()
  File "/usr/local/lib/python2.7/dist-packages/fabric/thread_handling.py", line 12, in wrapper
    callable(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/fabric/io.py", line 32, in output_loop
    OutputLooper(*args, **kwargs).loop()
  File "/usr/local/lib/python2.7/dist-packages/fabric/io.py", line 87, in loop
    raise CommandTimeout(timeout=self.timeout)
CommandTimeout: Command failed to finish in 50.0 seconds
2017-02-15 15:05:23,586 - DEBUG - None
2017-02-15 15:05:23,586 - DEBUG - {'timeout 40 scp -o StrictHostKeyChecking=no testfile ubuntu@[180.47.160.4]:': None}

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

Review in progress for https://review.opencontrail.org/29192
Submitter: Sarath (<email address hidden>)

Revision history for this message
Sarath (nsarath) wrote :

>> Senthil will implement diff approach for this script.

-----Original Message-----
From: Senthilnathan Murugappan
Sent: Wednesday, March 01, 2017 3:42 AM
To: Sarathbabu Narasimhan <email address hidden>; Jeba Paulaiyan <email address hidden>
Subject: Re: Change in Juniper/contrail-test[R3.2]: as keyless used for scp this is not for "vcenter-only" and V...

Unless its urgent please hold this commit. I am planning to remove the nova keypairs and copy the pub files as a separate task. Once done you may use these testcases for vcenter too.

- Senthil

On 2/28/17, 4:49 PM, "Sarath (Code Review)" <email address hidden> wrote:

    Hello Senthilnathan Murugappan,

    I'd like you to do a code review. Please visit

        https://review.opencontrail.org/29192

    to review the following change.

    Change subject: as keyless used for scp this is not for "vcenter-only" and VM file transfer tests covered through TFTP Closes-Bug:#1668810
    ......................................................................

    as keyless used for scp this is not for "vcenter-only" and VM file transfer tests covered through TFTP
    Closes-Bug:#1668810

    Change-Id: Ic58fcffe592b18c1043c7a854eef51a22053494f
    ---
    M scripts/vm_regression/test_vm.py
    1 file changed, 1 insertion(+), 1 deletion(-)

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.