易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 942|回复: 2
收起左侧

执行openstack命令时出现告警 from cryptography import x509

[复制链接]
发表于 2022-5-7 11:15:26 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2022-5-9 15:32:52 | 显示全部楼层
问题解决方法:
! }) h% M( v8 n- }[root@controller1 ~]# openstack server list
& K( q4 ^$ A5 S1 B$ c7 e/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py:51: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
6 w$ i& o7 c3 }* H9 m- ]/ h  from cryptography import x509
' t1 d+ z' w  ]+--------------------------------------+------+--------+----------------------+-------+----------------+
) s7 U3 L8 ?# H: a' A* w| ID                                   | Name | Status | Networks             | Image | Flavor         |5 i) t4 }0 \  ^7 @: F( m% a5 }
+--------------------------------------+------+--------+----------------------+-------+----------------++ G$ k: t7 a; I+ Y' e
| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 |       | type-2c-2g-10g |* F2 `! {  H+ _- J# e5 S; D
+--------------------------------------+------+--------+----------------------+-------+----------------+$ }+ c7 V4 V7 x8 T4 E/ D% b
$ H: A. L+ t4 z, \) [: _
查看依赖:5 M+ R; C! F6 t# N2 b. K
[root@controller1 ~]# yum provides cryptography
( E; ^0 I4 k. T* bLoaded plugins: fastestmirror
1 Q' u1 N8 V" }9 l7 f' _! h6 XLoading mirror speeds from cached hostfile
+ r8 X: Q% ~  Lpython2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library
( E: _* i+ [2 H9 E/ N- \* }6 ^3 jRepo        : c7-media
4 u) t4 P6 c9 T$ z' r5 |; I! U, aMatched from:2 m' c( c$ `7 G2 Q9 G  j4 e
Filename    : /usr/lib64/python2.7/site-packages/cryptography& W) ?8 J9 {& M9 h& z/ x
! P. k$ C% y( u

! v) k7 A3 E" n* @( Q6 z" H  ^/ n
python2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library/ B' `2 m9 t8 e
Repo        : @base
4 v+ Y4 ^9 z* }# Y0 d: oMatched from:
5 f  s  S% M9 `9 `Filename    : /usr/lib64/python2.7/site-packages/cryptography
; ^* \' E, p' t; q/ i5 N3 v! C: ~: n5 f& _% R: i! ^- ^
9 a  ^- Q( {. ^4 q9 \
重新yum安装下:8 V, R& {( k% b% f
( s- ~, J# i% M# Y% @* l: O$ y
[root@controller1 ~]# yum reinstall -y python2-cryptography
8 e% F! o% {5 p' Y" Y6 ]Loaded plugins: fastestmirror
( E4 t4 ~$ D) n( Y- HLoading mirror speeds from cached hostfile
. T" R' Z3 U7 MResolving Dependencies
" F% \1 l* a+ E1 ]--> Running transaction check5 B, \3 B& n8 W( k9 S1 [+ a3 e! _
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be reinstalled" u9 d# R7 w/ G# {  N
--> Finished Dependency Resolution* T3 K# l! g* j0 Y2 r& A
3 H) v6 e( c5 M* T/ ^$ t
Dependencies Resolved
: w, I( w; u/ h$ F, T  P. y
7 E. D; d9 h" x1 W=========================================================================================================================================5 c2 Z- E9 l; V" O
Package                                  Arch                       Version                          Repository                    Size- H& J: m7 S& K/ s0 f' F
=========================================================================================================================================) T3 g  h) g9 d8 L
Reinstalling:
! i4 x9 A( U# V' x: n0 X8 D% v python2-cryptography                     x86_64                     1.7.2-2.el7                      c7-media                     502 k  e, r1 h" |8 v6 k
' b3 N0 F( W/ ], x5 F7 s
Transaction Summary
7 C$ M4 |5 A6 N: n=========================================================================================================================================0 \8 {7 H7 Z- v7 _, Z5 m$ {: S
Reinstall  1 Package' _+ h: x8 @7 r0 h) B" r0 F
, R' O. I7 t/ ]3 Y" Q
Total download size: 502 k
0 t1 M$ c6 K: K# w& p5 ]2 @: @0 {. ]Installed size: 2.6 M
5 S9 h7 M+ [, @. c8 d& Z4 TDownloading packages:
: I# t! d) i6 `' g) a% E- D6 p" u* hpython2-cryptography-1.7.2-2.el7.x86_64.rpm                                                                       | 502 kB  00:00:00     
! g- r) [$ w* f$ v" h5 B  f+ S3 m1 LRunning transaction check
+ m- W: I( G4 n5 V+ T4 q0 yRunning transaction test# W' ?4 l& B/ L# q
Transaction test succeeded5 n6 z4 W! `4 C; v8 b
Running transaction
+ Y7 s- L) E* v. t, y  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                               1/1 * s4 T0 C9 I( @! ?  Y
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                               1/1
3 \' ^- K; x7 o5 o( I7 O1 m4 A/ ^7 C/ ?; R( V. }
Installed:4 D: c+ ]) t3 ~
  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                              4 X) g+ |, r0 J# r5 k
; X% o( |& B; Q, a7 q0 Q
Complete!
% P9 Q! O9 a0 G) o
- U2 i6 p+ y  G7 O9 N3 M2 z再次尝试:  f. @5 Q5 z) {7 r7 b! J6 P
[root@controller1 ~]# openstack server list 1 K7 \6 ^" K5 h, q( e1 b
+--------------------------------------+------+--------+----------------------+-------+----------------+6 P3 j; M$ w! W/ b* p
| ID                                   | Name | Status | Networks             | Image | Flavor         |- k3 Y1 K( u0 M+ F) E0 E2 Z
+--------------------------------------+------+--------+----------------------+-------+----------------+
, T( k( ]: |; _  U0 ^| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 |       | type-2c-2g-10g |
: Z, O( u0 E9 y; U- Q+--------------------------------------+------+--------+----------------------+-------+----------------+3 w" s. A# p: l% i4 ~8 B; D4 M4 c
 楼主| 发表于 2022-7-15 10:09:06 | 显示全部楼层
python2-cryptography-1.7. ...
, Y9 J/ C6 @' c) c如果通过yum无法安装时,可以采用如下方式进行( d& A: L  K" t; `4 s
先下载该rpm安装包文件5 w$ @: b8 Y  w2 ~- U1 I
上传到服务器上
4 W0 F/ P% L' D: O8 l执行yum install -y python2-cryptography-1.7.2-2.el7.x86_64.rpm
% [9 T# b+ t& a6 a; U即可解决问题。
! W& C4 i, j& x

python2-cryptography-1.7.2-2.el7.x86_64.rpm

502.45 KB, 下载次数: 0

python2-cryptography

您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 15:28 , Processed in 0.065234 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表