易陆发现互联网技术论坛

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

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

[复制链接]
发表于 2022-5-7 11:15:26 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2022-5-9 15:32:52 | 显示全部楼层
问题解决方法:
8 b: y" g( d# T  n[root@controller1 ~]# openstack server list 3 Z2 Y; O# a2 P) }# M6 Y0 a: A; A
/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./ o# F& c8 k7 `- I' K. f2 g
  from cryptography import x509: T1 `: E) |  f% V: M
+--------------------------------------+------+--------+----------------------+-------+----------------+
* p' V$ F, n" E: x! [9 ~| ID                                   | Name | Status | Networks             | Image | Flavor         |
$ x0 v! ?& O  W1 w5 \+--------------------------------------+------+--------+----------------------+-------+----------------+& x) u+ Z5 ^; j1 I
| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 |       | type-2c-2g-10g |
- Y% `+ y( {+ W# d! d9 ]6 m+--------------------------------------+------+--------+----------------------+-------+----------------+; v: L3 o) r; b! n

4 q; w6 F' C5 ]2 S- c3 T查看依赖:
) D% Y! o7 r( ]/ P: Z! d' _( e[root@controller1 ~]# yum provides cryptography
7 x" }' p$ M1 K* P% C7 aLoaded plugins: fastestmirror$ D; {$ R4 _- x/ p6 z; ^* t) g
Loading mirror speeds from cached hostfile- @) t; X" W* \+ s$ h  c
python2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library
0 i2 q0 f. I8 N" q* oRepo        : c7-media
+ W" V5 b7 C/ \4 _* e$ S% ?6 LMatched from:/ {+ e% X5 J4 C7 b; _: N
Filename    : /usr/lib64/python2.7/site-packages/cryptography$ v( A! p  h# f$ F; d  D( I) y- S
+ O9 X" t) p! O& U
* o8 z* K% c) O4 r8 ^6 V

$ m5 r' M' x' \6 a' Fpython2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library
$ W8 c9 {4 v& G) i+ CRepo        : @base# P+ G/ l) d" J+ {, H$ G' I
Matched from:6 V5 i5 d1 a# N4 V8 j. w
Filename    : /usr/lib64/python2.7/site-packages/cryptography
3 z! L, u5 Z1 Y+ S) w" ^# n5 W4 j! s/ Q( Z  G
0 d) s$ u4 W' k6 K1 u
重新yum安装下:: i4 W$ K6 x2 J
" t. e4 f5 K2 i2 G. [
[root@controller1 ~]# yum reinstall -y python2-cryptography4 h# K) [6 H- R* S3 v
Loaded plugins: fastestmirror0 l/ e: j" b2 O6 s/ C5 I5 x
Loading mirror speeds from cached hostfile
" m0 T; e) ~: uResolving Dependencies
6 n% r) t7 R, n/ e--> Running transaction check& Z1 ^: n3 J/ o2 r% P( U/ L
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be reinstalled: A6 h, C$ j& e! }4 W, V% |
--> Finished Dependency Resolution
" t7 Y/ t( {; U  t6 R& z
: [9 r) G& s3 V: r2 [Dependencies Resolved
) V9 W/ k/ L. N$ R
& G8 v6 n) S1 Z2 U& @=========================================================================================================================================
8 A( Z" O# W$ ` Package                                  Arch                       Version                          Repository                    Size
. t0 d* E, Y* f8 ~7 Z=========================================================================================================================================! m$ J% _, [  U: B: I  V4 F3 A
Reinstalling:+ B7 ]# q1 ~& u! P* _; X
python2-cryptography                     x86_64                     1.7.2-2.el7                      c7-media                     502 k& g8 m1 p) n) d/ H
! |( r, W% d/ T8 i
Transaction Summary
& P" e; ?& F8 H1 h& y=========================================================================================================================================$ R" Q5 j9 B  |( L! k% E7 ?
Reinstall  1 Package6 P' {% E% m! z' Z  v9 W* C

5 l4 ~+ Z" B) p8 B0 s8 c2 ~Total download size: 502 k8 F2 K+ Q" h; i: B
Installed size: 2.6 M1 ?& r9 c  @- M8 p7 o
Downloading packages:
5 e3 S* z+ R; {, ^6 p$ Y# _: V* Spython2-cryptography-1.7.2-2.el7.x86_64.rpm                                                                       | 502 kB  00:00:00     + b7 `  ]6 f: m& n6 ^
Running transaction check
' E& o8 @) e5 N0 m: _) _Running transaction test% m0 K& [7 |5 j$ q, v7 Q8 o/ q0 D% n
Transaction test succeeded8 a/ ?, n0 c  c. Q' {
Running transaction
* G" {% l+ f( k: C7 g9 J7 Y8 P  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                               1/1
' ~) c1 J! A% p8 b- m* d  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                               1/1
; F/ j, ]1 K. ~, h' S8 o8 d, f$ E  ?) j, m/ \7 C* l
Installed:  q- L! t9 S/ I7 [( G2 V
  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                              0 l! a+ F/ ^+ J" I1 h) ^, r/ K

* J. B- W4 b% gComplete!
; P$ H# z' ~, s0 h- Y# u
6 B3 Q  Q  @% y$ c* U& J) N) H再次尝试:  b8 n/ Q) M6 k% z5 M$ K4 G8 W
[root@controller1 ~]# openstack server list # j% m0 ]8 Z9 E3 L) V3 a( E
+--------------------------------------+------+--------+----------------------+-------+----------------+, C2 y; U5 ?" [! Y6 s: A+ b
| ID                                   | Name | Status | Networks             | Image | Flavor         |& O, C9 E3 w& D2 z2 t
+--------------------------------------+------+--------+----------------------+-------+----------------+
6 C6 Z) w5 r6 B- ]0 g| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 |       | type-2c-2g-10g |* t' g: I  L" \# m
+--------------------------------------+------+--------+----------------------+-------+----------------+* I, U8 _4 Q. u
 楼主| 发表于 2022-7-15 10:09:06 | 显示全部楼层
python2-cryptography-1.7. ...2 ?. s3 ]3 T4 ?; x* r( ~( h3 {
如果通过yum无法安装时,可以采用如下方式进行
4 f5 W, Y( U6 d先下载该rpm安装包文件6 }/ r5 s5 Y/ q9 g# o) r; d  y
上传到服务器上7 ?; w% A& p+ S- W
执行yum install -y python2-cryptography-1.7.2-2.el7.x86_64.rpm
& S+ s/ [) D4 C) V' X2 q即可解决问题。
, p3 d) A, P, q6 p& A

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

502.45 KB, 下载次数: 0

python2-cryptography

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

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 19:04 , Processed in 0.047226 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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