Project

General

Profile

Actions

Bug #40876

open

slave node ssh_pub_key type is "ssh-ed25519" when create new node

Added by yite gu almost 5 years ago. Updated almost 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
teuthology
Crash signature (v1):
Crash signature (v2):

Description

my teutholog use master branch,and it lately.
my steps:
1、create new slave nodes,run command:python create_nodes.py
log:
2019-07-22 05:41:51,764.764 INFO:create_nodes.py:Creating plana031.easystack.cn
2019-07-22 05:41:51,764.764 INFO:teuthology.orchestra.remote:Trying to reconnect to host
/home/teuthology/teuthology/virtualenv/lib/python2.7/site-packages/paramiko/ecdsakey.py:164: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.ecdsa_curve.curve_class(), pointinfo
/home/teuthology/teuthology/virtualenv/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
m.add_string(self.Q_C.public_numbers().encode_point())
/home/teuthology/teuthology/virtualenv/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:96: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.curve, Q_S_bytes
/home/teuthology/teuthology/virtualenv/lib/python2.7/site-packages/paramiko/kex_ecdh_nist.py:111: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
hm.add_string(self.Q_C.public_numbers().encode_point())
/home/teuthology/teuthology/virtualenv/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/ciphers.py:114: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
operation
/home/teuthology/teuthology/virtualenv/lib/python2.7/site-packages/cryptography/hazmat/backends/openssl/ciphers.py:140: UserWarning: implicit cast from 'char *' to a different pointer type: will be forbidden in the future (check that the types are as you expect; use an explicit ffi.cast() if they are correct)
self._backend._ffi.from_buffer(data), len(data)
2019-07-22 05:41:51,927.927 INFO:teuthology.orchestra.run.plana031:Running:
2019-07-22 05:41:51,928.928 INFO:teuthology.orchestra.run.plana031:> true
2019-07-22 05:41:52,010.010 INFO:teuthology.orchestra.run.plana031:Running:
2019-07-22 05:41:52,010.010 INFO:teuthology.orchestra.run.plana031:> uname -m
2019-07-22 05:41:52,092.092 INFO:teuthology.orchestra.run.plana031.stdout:x86_64
2019-07-22 05:41:52,093.093 INFO:teuthology.orchestra.run.plana031:Running:
2019-07-22 05:41:52,093.093 INFO:teuthology.orchestra.run.plana031:> cat /etc/os-release
2019-07-22 05:41:52,175.175 INFO:teuthology.orchestra.run.plana031.stdout:NAME="CentOS Linux"
2019-07-22 05:41:52,176.176 INFO:teuthology.orchestra.run.plana031.stdout:VERSION="7 (Core)"
2019-07-22 05:41:52,176.176 INFO:teuthology.orchestra.run.plana031.stdout:ID="centos"
2019-07-22 05:41:52,176.176 INFO:teuthology.orchestra.run.plana031.stdout:ID_LIKE="rhel fedora"
2019-07-22 05:41:52,177.177 INFO:teuthology.orchestra.run.plana031.stdout:VERSION_ID="7"
2019-07-22 05:41:52,177.177 INFO:teuthology.orchestra.run.plana031.stdout:PRETTY_NAME="CentOS Linux 7 (Core)"
2019-07-22 05:41:52,177.177 INFO:teuthology.orchestra.run.plana031.stdout:ANSI_COLOR="0;31"
2019-07-22 05:41:52,177.177 INFO:teuthology.orchestra.run.plana031.stdout:CPE_NAME="cpe:/o:centos:centos:7"
2019-07-22 05:41:52,178.178 INFO:teuthology.orchestra.run.plana031.stdout:HOME_URL="https://www.centos.org/"
2019-07-22 05:41:52,178.178 INFO:teuthology.orchestra.run.plana031.stdout:BUG_REPORT_URL="https://bugs.centos.org/"
2019-07-22 05:41:52,178.178 INFO:teuthology.orchestra.run.plana031.stdout:
2019-07-22 05:41:52,178.178 INFO:teuthology.orchestra.run.plana031.stdout:CENTOS_MANTISBT_PROJECT="CentOS-7"
2019-07-22 05:41:52,179.179 INFO:teuthology.orchestra.run.plana031.stdout:CENTOS_MANTISBT_PROJECT_VERSION="7"
2019-07-22 05:41:52,179.179 INFO:teuthology.orchestra.run.plana031.stdout:REDHAT_SUPPORT_PRODUCT="centos"
2019-07-22 05:41:52,179.179 INFO:teuthology.orchestra.run.plana031.stdout:REDHAT_SUPPORT_PRODUCT_VERSION="7"
2019-07-22 05:41:52,179.179 INFO:teuthology.orchestra.run.plana031.stdout:
2019-07-22 05:41:52,183.183 INFO:teuthology.lock.ops:Updating plana031.easystack.cn on lock server
2019-07-22 05:41:52,206.206 INFO:teuthology.lock.ops:Creating new node plana031.easystack.cn on lock server
2、Then,I want to see new slave node ssh_pub_key,run command:teuthology-lock --list -a
resulet: {
"is_vm": false,
"locked": true,
"locked_since": "2019-07-22 05:42:20.196040",
"locked_by": "initial@setup",
"up": true,
"mac_address": null,
"name": "plana031.easystack.cn",
"os_version": "7",
"machine_type": "plana",
"vm_host": null,
"os_type": "centos",
"arch": "x86_64",
"ssh_pub_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHAzviwm5GUYPcAg/BewXJG4SUqNm7S95RUcGk8BSnk5",
"description": "Initial node creation"
},
This is not the result I want,this ssh_pub_key type should be “ssh-rsa”.
I guess this problem due to paramiko and cryptography,but I'm not sure.

Actions #1

Updated by yite gu almost 5 years ago

vi /etc/ssh/sshd_config at slave node. modify the following:

#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

this problem resolved

Actions #2

Updated by yite gu almost 5 years ago

yite gu wrote:

vi /etc/ssh/sshd_config at slave node. modify the following:

#HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key

this problem resolved

sytemctl restart sshd

Actions

Also available in: Atom PDF