易陆发现互联网技术论坛

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

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

[复制链接]
发表于 2022-5-7 11:15:26 | 显示全部楼层 |阅读模式
购买主题 本主题需向作者支付 2 金钱 才能浏览
 楼主| 发表于 2022-5-9 15:32:52 | 显示全部楼层
问题解决方法:
( V) T. d" {8 J$ ][root@controller1 ~]# openstack server list ( b9 `# J" h" ?) Q- o
/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.: j) o  \) @$ B% f
  from cryptography import x509
; ?% M9 v4 }% c/ T6 b$ h' _: q+--------------------------------------+------+--------+----------------------+-------+----------------+
/ `: s: t1 g( o) X  k. i& \" O| ID                                   | Name | Status | Networks             | Image | Flavor         |
; A( k, \9 i6 Q1 w0 L2 i+--------------------------------------+------+--------+----------------------+-------+----------------+! a. {" E' @8 Z1 Z/ H
| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 |       | type-2c-2g-10g |2 F9 b. _9 v8 _/ \$ e0 K6 c- X
+--------------------------------------+------+--------+----------------------+-------+----------------+$ P3 D: m. F* K6 v1 i5 I
* F$ M: n+ x* o4 C9 s* y
查看依赖:7 p9 r$ @( X% h6 U) z& @' x: Y
[root@controller1 ~]# yum provides cryptography
7 M% M0 ~" a6 m! mLoaded plugins: fastestmirror
% T: u+ v9 q; P! _+ f1 \9 MLoading mirror speeds from cached hostfile* ?1 Q2 S7 M3 \9 o; i
python2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library& A1 b$ Y# o( Z3 z. x
Repo        : c7-media
, _4 H* a1 K+ x  p* c" kMatched from:
0 y/ C( B$ F+ Q& cFilename    : /usr/lib64/python2.7/site-packages/cryptography, B" f: k- t! A0 x
7 h( `* x# W3 S' A" i

3 j! H  z: |6 ?3 v& G8 w6 Y! ~( ]! S5 s0 A: N$ @
python2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library5 f# I8 o, ^; d5 S2 @$ H
Repo        : @base1 @( U  e& X8 e9 r# k1 W
Matched from:' F1 a4 Y1 L8 L4 q( A9 h# n8 |  @
Filename    : /usr/lib64/python2.7/site-packages/cryptography
3 b) v4 ~2 C( C
9 @- z5 ~7 Q4 p9 N( U) E  Y- V3 V
重新yum安装下:
* a4 R$ D  F. w3 l( }, _8 Y4 _2 o+ A4 b; |3 f# Y! u2 ?- L
[root@controller1 ~]# yum reinstall -y python2-cryptography
& D3 w7 L0 N) T9 WLoaded plugins: fastestmirror
4 P1 U6 p: Z; B/ y1 s+ FLoading mirror speeds from cached hostfile* t0 ^6 R' X7 H5 E: O6 [  Z% ?
Resolving Dependencies% L$ s3 j3 i. L" s" [9 L- A
--> Running transaction check2 h, l( r" \  s. x9 B
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be reinstalled
$ l6 {/ h; g3 Y& B/ `, Y--> Finished Dependency Resolution+ E* N# z2 |; {2 Q8 i. Z0 H* W

4 b; u0 K6 t. z0 }+ q$ J* \4 T/ @Dependencies Resolved0 Q! N7 Z) s/ o; T' d$ c# _
( r7 k. K9 C9 r; q+ f3 X3 \' E4 k% a
=========================================================================================================================================( E  T5 t" [$ M+ I% ~8 H3 \$ N
Package                                  Arch                       Version                          Repository                    Size9 _) u8 K$ p* t9 ]
=========================================================================================================================================: _1 M- g3 o  s/ x5 ?
Reinstalling:: x: @  P, D" m. x( J& W% _+ }
python2-cryptography                     x86_64                     1.7.2-2.el7                      c7-media                     502 k/ T7 v  K- X: {. l3 q

7 N: |3 v& D: ^* YTransaction Summary! g0 h9 b8 E( a; N# _2 v8 [( \
=========================================================================================================================================; a4 j, @" Q& j! i8 ?1 Q. f6 B4 F
Reinstall  1 Package
3 u5 h% `& P' z$ `$ z& L6 |
% V3 P* j' X" a' y2 b% STotal download size: 502 k
3 |; [9 q. C# bInstalled size: 2.6 M
, O& K  R3 _6 R6 K: R9 f8 }7 pDownloading packages:
4 h6 r8 q  R( `7 Z+ p+ qpython2-cryptography-1.7.2-2.el7.x86_64.rpm                                                                       | 502 kB  00:00:00       n. E! l5 ]0 q! `- ]4 c0 {
Running transaction check
  s  {) `, T1 U& Q5 p4 B$ PRunning transaction test
: L, z' [* i! |8 ~& nTransaction test succeeded
2 F% b8 J0 Z! H5 w* `Running transaction
0 _! E; G# `' ~4 }! H5 K% {  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                               1/1 / @2 e+ v2 G+ ], L
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                               1/1 - F% Q; F5 U2 l# W! B

- ^# w$ u; \1 d0 q5 E0 V: c! Z+ uInstalled:
6 D3 C" c1 |, E. U; g  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                              , u- \5 [4 t* v, ]4 \/ p4 o6 P
+ ]' O" @# Z9 K) k" [, e1 x& x
Complete!
# `9 g# Z' Q$ Z9 Q
! V: |/ K, c& C) w' y( Z, n9 }再次尝试:
6 m9 F0 D9 W/ B  K! q$ n* o$ e! Z[root@controller1 ~]# openstack server list
. T& N* a: d1 ?+--------------------------------------+------+--------+----------------------+-------+----------------+
0 G; @( u# k! W& B* V7 ~: b' V| ID                                   | Name | Status | Networks             | Image | Flavor         |  k3 t4 B2 w& U+ c) D
+--------------------------------------+------+--------+----------------------+-------+----------------+
! k$ A7 X" n2 t/ a4 [" d| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 |       | type-2c-2g-10g |- ^' W& y8 X( _2 S, F
+--------------------------------------+------+--------+----------------------+-------+----------------+
) F' _: M' e$ q( P( D! V* f
 楼主| 发表于 2022-7-15 10:09:06 | 显示全部楼层
python2-cryptography-1.7. ...
5 X# G+ T: y! |如果通过yum无法安装时,可以采用如下方式进行
+ a& j9 d* c# _0 {! l先下载该rpm安装包文件
$ v  K! J8 B$ W" d& ^; b上传到服务器上
5 n! Z  ?" k& S执行yum install -y python2-cryptography-1.7.2-2.el7.x86_64.rpm. F- ?5 K4 j9 c9 v) s
即可解决问题。0 W! z9 L* i7 s9 l! L

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

502.45 KB, 下载次数: 0

python2-cryptography

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

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-9 00:02 , Processed in 0.054120 second(s), 29 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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