易陆发现互联网技术论坛

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

kolla_ansible/cmd/genpwd.py:22: CryptographyDeprecationWarning openstack

[复制链接]
发表于 2022-6-15 17:00:03 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
/usr/lib/python2.7/site-packages/kolla_ansible/cmd/genpwd.py:22: 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.
& e4 L9 \% v3 y0 @5 V7 }+ m  from cryptography.hazmat.backends import default_backend- f: h/ h4 A& j
' [' a2 d9 ]; f- ^# h& ~
解决办法:
' r7 U' p( e! M8 a! B2 C! b( G安装python2-cryptography  即可:4 ?& g2 F. T) {, [( }! x; z2 l" S
3 d1 p. H, f5 d9 r
[root@openstack-gnocchi ~]# yum install -y python2-cryptography# k5 r% u, W; n& B, |5 H6 [
Loaded plugins: fastestmirror
1 D  x7 E, g9 A* gLoading mirror speeds from cached hostfile: g% ~# B2 M  T9 V1 _+ v: Q
* base: mirrors.aliyun.com
: i) v5 y& s( W! [7 M! o * epel: mirrors.tuna.tsinghua.edu.cn8 _: y1 j* o8 k1 U$ c7 J
* extras: mirrors.tuna.tsinghua.edu.cn
7 q; u+ R5 J' ]' m' ~9 E * updates: mirrors.tuna.tsinghua.edu.cn" y' S# q- E# j1 A1 R! m, t
Resolving Dependencies4 G) l. {4 d" e0 Z% B) Z
--> Running transaction check7 m/ }: b; i" |) V5 v4 ]0 e6 h5 A1 P6 Q
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
6 j) _) ]# C/ K# G5 H1 n9 ]--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64
0 R4 Z  ]3 V2 W, V# ]1 j--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64  }7 q2 U+ G0 X& k
--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64: X: U7 C; A$ F$ u- O5 U" q
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64) ?. U2 y, v* Y
--> Running transaction check- v8 ^$ p5 j7 u% Y, q; C
---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed& K0 Q: S8 G1 f0 k/ K
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64" s2 H: F3 O$ N7 ~1 O0 J
---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
4 A% L! b  G6 X' o. S& K# W9 w---> Package python-idna.noarch 0:2.4-1.el7 will be installed
' D1 A! i) P3 e& d: J* U---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed# G0 B2 |4 ?$ ~# E( `2 k7 m7 V
--> Running transaction check
2 X+ [) |' Q% k3 Q---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed2 i7 J# Y0 h. z! Z, V
--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
4 n7 r6 y$ |+ K  [--> Running transaction check, J" T/ n4 C( H) h* C
---> Package python-ply.noarch 0:3.4-11.el7 will be installed
. r2 T/ _$ V# v8 P- T--> Finished Dependency Resolution
& z" y' W4 y4 l) |0 qDependencies Resolved
6 t. d3 \) W9 @9 L- ?/ F2 P====================================================================================================================================/ z( e) B" r' i) W7 Y+ V0 k* Y  r
Package                                  Arch                       Version                         Repository                Size
& E! A+ u; i6 _- @9 u4 ]5 U7 i====================================================================================================================================
" J, m; X3 L; Q. P/ I) m! ~% rInstalling:+ ~* h% i. R+ l6 K
python2-cryptography                     x86_64                     1.7.2-2.el7                     base                     502 k' Z! R) J  a% k! d
Installing for dependencies:
$ z4 {& u. Q( {: P$ f9 z python-cffi                              x86_64                     1.6.0-5.el7                     base                     218 k! G1 w/ m7 y# ~! w
python-enum34                            noarch                     1.0.4-1.el7                     base                      52 k) P& C8 x1 M# h4 n) t7 b
python-idna                              noarch                     2.4-1.el7                       base                      94 k2 X+ w# k9 B: D3 N7 _! Z( D
python-ply                               noarch                     3.4-11.el7                      base                     123 k3 R( R. {# G' N2 u0 y
python-pycparser                         noarch                     2.14-1.el7                      base                     104 k
3 n2 [' j# {! P* T( F6 S python2-pyasn1                           noarch                     0.1.9-7.el7                     base                     100 k
. N6 Y* {6 \+ p$ B7 P7 b7 v- ?8 ]Transaction Summary% x3 B  I! R& c. x3 \* @5 v: K
====================================================================================================================================3 `) C2 U- f- f6 d  Z0 f! p+ k- A# k
Install  1 Package (+6 Dependent packages)
7 u+ g) _. K# Y7 d2 ATotal download size: 1.2 M& G: a5 N5 X( C! D" [; t% G+ Z  E
Installed size: 6.1 M# b2 u; W% h4 e: H: _9 B
Downloading packages:
# w7 y7 f* [; O: X9 R(1/7): python-pycparser-2.14-1.el7.noarch.rpm                                                                | 104 kB  00:00:01     / z5 O  [+ b; w1 m$ t
(2/7): python-idna-2.4-1.el7.noarch.rpm                                                                      |  94 kB  00:00:01     . S" F! {( p3 }2 P$ I- P; t
(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                    | 218 kB  00:00:02     1 f- k& U5 \( V/ q0 T' x
(4/7): python-ply-3.4-11.el7.noarch.rpm                                                                      | 123 kB  00:00:02     
1 l/ N7 Y$ A. s2 E7 E(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                           | 502 kB  00:00:01     
4 U# P. H- P4 R& e(6/7): python-enum34-1.0.4-1.el7.noarch.rpm                                                                  |  52 kB  00:00:02     . M4 X8 d- B7 s4 Y- z2 C$ V
(7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                 | 100 kB  00:00:01     % }7 U" a3 E+ \0 C% r) V4 [
------------------------------------------------------------------------------------------------------------------------------------
+ Z5 c8 P6 C) s+ C- n/ ?8 ?Total                                                                                               374 kB/s | 1.2 MB  00:00:03     # B8 ]# k& h0 D% e! a" d
Running transaction check8 a* g6 M2 k6 l: N) U
Running transaction test! ~4 _% X5 k' B; h9 Q/ \/ e
Transaction test succeeded- X; _5 d2 O+ o9 I
Running transaction3 s  ~, C: d$ U( f9 O5 k$ K) |
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                1/7 8 T7 q/ r$ `, u) e9 {" V$ c
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                 2/7
; Z; z7 x: R; A( z1 b  Installing : python-ply-3.4-11.el7.noarch                                                                                     3/7
/ ^& N, h8 Y# w& X7 r  Installing : python-pycparser-2.14-1.el7.noarch                                                                               4/7
$ g! \: H! B7 |) [2 h6 C8 b+ G  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                   5/7
, P/ D0 m! g' A1 i" I  }  Installing : python-idna-2.4-1.el7.noarch                                                                                     6/7
' q. ?$ Y; T& N3 A, a( U5 X" m" N, ?; D  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7 7 {9 u  j8 }6 c  M& _& T- H5 q
  Verifying  : python-idna-2.4-1.el7.noarch                                                                                     1/7 ' h; S" ~! J6 a
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                               2/7
! _( `1 s/ Z: K  {& d  Verifying  : python-ply-3.4-11.el7.noarch                                                                                     3/7 : T* m6 N0 H3 Z& S& z% Q; b
  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                   4/7 + D( x0 T) k; G' d' H0 I5 s4 y$ V
  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                 5/7
& ?& V3 `7 }+ P/ t  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                6/7 # H+ i6 ^& z3 c+ p$ f* w- c9 W' m, _1 O
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
6 e2 I. x" \) T  a2 kInstalled:
1 J8 v1 ]( D  P# b& h8 Q" e  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                         
& M! }( Y* K: k( k( J( ]Dependency Installed:, h& g- r4 _; ?# a0 M2 K
  python-cffi.x86_64 0:1.6.0-5.el7         python-enum34.noarch 0:1.0.4-1.el7           python-idna.noarch 0:2.4-1.el7             1 @+ X( |; `0 M3 `# V
  python-ply.noarch 0:3.4-11.el7           python-pycparser.noarch 0:2.14-1.el7         python2-pyasn1.noarch 0:0.1.9-7.el7        
/ z5 O8 N* C8 e: q( ^Complete!
" d. O- C4 i. s( [2 |) a$ ~
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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