Python3 - robotframework-sshlibrary throws serialization.Encoding.Raw error


Srinivas <srinivas.rachakonda@...>
 

Hi Jamo,

 

For the Gerrit: https://git.opendaylight.org/gerrit/c/integration/test/+/90617 (Fix python3 issues in Netvirt )

 

  1. I was able to get pass logs without warnings for Upgrade script.
  2. But for the job: srini-netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-rocky-upstream-stateful-itm-direct-tunnels-magnesium
    1. The script is failing during the SSH connection.
    2. It is seen that first time SSH connection gets established, while the next time it fails with below error message:

 

Documentation:

Logs into the SSH server using key-based authentication.

Start / End / Elapsed:

20200626 00:57:41.221 / 20200626 00:57:41.819 / 00:00:00.598

00:57:41.222

TRACE

Arguments: [ 'jenkins' | '/home/jenkins/.ssh/id_rsa' | 'any' | delay='0.5s' ]

00:57:41.222

INFO

Logging into '10.30.170.33:22' as 'jenkins'.

00:57:41.819

FAIL

AttributeError: Raw

00:57:41.819

DEBUG

Traceback (most recent call last):

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/library.py", line 885, in login_with_public_key is_truthy(look_for_keys), delay)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/library.py", line 892, in _login login_output = login_method(username, *args)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/abstractclient.py", line 208, in login_with_public_key allow_agent, look_for_keys)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/pythonclient.py", line 84, in _login_with_public_key timeout=float(self.config.timeout))

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/client.py", line 406, in connect t.start_client(timeout=timeout)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/pythonclient.py", line 37, in _custom_start_client self._orig_start_client(*args, **kwargs)

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/transport.py", line 660, in start_client raise e

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run self._handler_table[ptype](self, m)

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/transport.py", line 2199, in _negotiate_keys self.kex_engine.start_kex()

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/kex_curve25519.py", line 54, in start_kex serialization.Encoding.Raw, serialization.PublicFormat.Raw

File "/tmp/v/robot/lib64/python3.6/enum.py", line 326, in __getattr__ raise AttributeError(name) from None

 

 

I think this issue is with robotframework-sshlibrary( 3.1.1)

and with cryptography dependency.

https://github.com/paramiko/paramiko/issues/1472

 

 

I could not find a solution or fix for this and need help  on this.

 

 

Thanks,

Srinivas

+91-9243478719

 


Srinivas <srinivas.rachakonda@...>
 

Hi Jamo,

 

I have raised the below review:

 

https://git.opendaylight.org/gerrit/c/releng/builder/+/90806

 

The issue is :- paramiko 2.7.1 has requirement for cryptography>=2.5

 

Thanks,

Srinivas

+91-9243478719

 

From: integration-dev@... <integration-dev@...> On Behalf Of Srinivas via lists.opendaylight.org
Sent: 27 June 2020 00:28
To: 'Jamo Luhrsen' <jluhrsen@...>; 'Anil Belur' <abelur@...>
Cc: integration-dev@...; karthikeyan.k@...; 'Dayavanti Gopal Kamath' <dayavanti.gopal.kamath@...>; 'Manjunath NP' <manjunath.np@...>; 'P S Ravikanth' <ravikanth.ps@...>
Subject: [integration-dev] Python3 - robotframework-sshlibrary throws serialization.Encoding.Raw error

 

Hi Jamo,

 

For the Gerrit: https://git.opendaylight.org/gerrit/c/integration/test/+/90617 (Fix python3 issues in Netvirt )

 

  1. I was able to get pass logs without warnings for Upgrade script.
  2. But for the job: srini-netvirt-csit-1node-0cmb-1ctl-2cmp-openstack-rocky-upstream-stateful-itm-direct-tunnels-magnesium
    1. The script is failing during the SSH connection.
    2. It is seen that first time SSH connection gets established, while the next time it fails with below error message:

 

Documentation:

Logs into the SSH server using key-based authentication.

Start / End / Elapsed:

20200626 00:57:41.221 / 20200626 00:57:41.819 / 00:00:00.598

00:57:41.222

TRACE

Arguments: [ 'jenkins' | '/home/jenkins/.ssh/id_rsa' | 'any' | delay='0.5s' ]

00:57:41.222

INFO

Logging into '10.30.170.33:22' as 'jenkins'.

00:57:41.819

FAIL

AttributeError: Raw

00:57:41.819

DEBUG

Traceback (most recent call last):

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/library.py", line 885, in login_with_public_key is_truthy(look_for_keys), delay)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/library.py", line 892, in _login login_output = login_method(username, *args)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/abstractclient.py", line 208, in login_with_public_key allow_agent, look_for_keys)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/pythonclient.py", line 84, in _login_with_public_key timeout=float(self.config.timeout))

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/client.py", line 406, in connect t.start_client(timeout=timeout)

File "/tmp/v/robot/lib/python3.6/site-packages/SSHLibrary/pythonclient.py", line 37, in _custom_start_client self._orig_start_client(*args, **kwargs)

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/transport.py", line 660, in start_client raise e

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/transport.py", line 2083, in run self._handler_table[ptype](self, m)

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/transport.py", line 2199, in _negotiate_keys self.kex_engine.start_kex()

File "/tmp/v/robot/lib/python3.6/site-packages/paramiko/kex_curve25519.py", line 54, in start_kex serialization.Encoding.Raw, serialization.PublicFormat.Raw

File "/tmp/v/robot/lib64/python3.6/enum.py", line 326, in __getattr__ raise AttributeError(name) from None

 

 

I think this issue is with robotframework-sshlibrary( 3.1.1)

and with cryptography dependency.

https://github.com/paramiko/paramiko/issues/1472

 

 

I could not find a solution or fix for this and need help  on this.

 

 

Thanks,

Srinivas

+91-9243478719