易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 848|回复: 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.4 g) C9 y  e; `, `1 }
  from cryptography.hazmat.backends import default_backend
3 [8 R5 w: a& \( r9 O* G9 z1 Z' y) t3 w7 b3 `- B
解决办法:* f8 x. Q" k- W& l5 A3 J4 {% Y
安装python2-cryptography  即可:& _" E. ?; a) m" j( n+ i+ J

6 O/ I/ W5 Y  j7 x5 y# ^) P# Q[root@openstack-gnocchi ~]# yum install -y python2-cryptography, |9 l. u: p  X/ l1 |8 x) G
Loaded plugins: fastestmirror
  i: z6 R0 N5 s" rLoading mirror speeds from cached hostfile. Q) ^) v( z" t4 T  r& r
* base: mirrors.aliyun.com
/ Y0 k' v' |! i. l * epel: mirrors.tuna.tsinghua.edu.cn& a+ A# z- v$ b1 @: ^+ l
* extras: mirrors.tuna.tsinghua.edu.cn
, `8 p8 x' U) S+ t- d1 P$ p1 U. z2 O * updates: mirrors.tuna.tsinghua.edu.cn
3 D) E' M8 p+ a: yResolving Dependencies. {6 O, f- ?0 q. R
--> Running transaction check2 [' ?3 f7 m$ p
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed9 C1 C7 s7 M6 G7 ~% B  l) S- F" M
--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64
1 Y/ j4 j3 \; j8 p7 F$ H--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
6 V7 r7 q" b* u) x--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64" F5 P# |) V* W% ]
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
0 W7 q/ J& q: O) J--> Running transaction check
$ n4 P  t7 R4 K& B2 P: k---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed  `7 m, y6 ]/ p0 z- n; h
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
, A% H. n' `- Q9 _. A9 K9 H---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
' X' y' Q$ @9 r6 M3 D. D0 S! S---> Package python-idna.noarch 0:2.4-1.el7 will be installed! l/ `2 n* A' I
---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed) c, f0 l. Y! ~* S% K
--> Running transaction check
0 y1 P# a; n# Y" ^: p  S---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed
( o3 `! ]& l' b$ n$ U+ |- D--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
  y8 q5 Q8 y1 n$ \--> Running transaction check4 t! u1 R: o$ q' l
---> Package python-ply.noarch 0:3.4-11.el7 will be installed' ?& {, L1 @5 s: L( Q# E2 q
--> Finished Dependency Resolution
$ M  y3 d/ _* w/ r& R3 t' c' S4 KDependencies Resolved3 _3 b! F* T. N( a
====================================================================================================================================0 |) N0 {1 F9 c8 G) Z0 \- G% `
Package                                  Arch                       Version                         Repository                Size& N9 ^2 u8 A* h
====================================================================================================================================. @9 L% _, ?/ O$ K* X# C7 G: _
Installing:) g$ C: _" S. v( o
python2-cryptography                     x86_64                     1.7.2-2.el7                     base                     502 k0 V  J# s: R/ b$ W3 m$ a" L
Installing for dependencies:' w& W% N* P' G5 t  P
python-cffi                              x86_64                     1.6.0-5.el7                     base                     218 k
" n" @) `% S  z& }6 @& l4 q python-enum34                            noarch                     1.0.4-1.el7                     base                      52 k
3 h2 D9 c# h' H python-idna                              noarch                     2.4-1.el7                       base                      94 k' Y* @8 N( \+ ?: `
python-ply                               noarch                     3.4-11.el7                      base                     123 k
/ ?! _6 s6 V6 n) T, J0 ] python-pycparser                         noarch                     2.14-1.el7                      base                     104 k5 c! v6 \; {0 @9 X7 a
python2-pyasn1                           noarch                     0.1.9-7.el7                     base                     100 k
; R/ z) l' a/ J; Y3 V+ Q! ATransaction Summary) }8 S, ^* V1 ^' l
====================================================================================================================================" o# B) g( l2 m& t
Install  1 Package (+6 Dependent packages)
) Y9 S! R1 w' r( c1 ]4 K7 j& dTotal download size: 1.2 M
" f( z+ ~* m3 t' {Installed size: 6.1 M5 [0 l5 {7 E/ D9 ?" M
Downloading packages:% N7 ~; R3 j2 N. [, V# x$ t
(1/7): python-pycparser-2.14-1.el7.noarch.rpm                                                                | 104 kB  00:00:01     
  P/ ^! U" ?8 L/ V(2/7): python-idna-2.4-1.el7.noarch.rpm                                                                      |  94 kB  00:00:01     
( e$ O* U+ }: m) A* `9 h2 n' R(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                    | 218 kB  00:00:02     
% i% I+ A( @: K; f* D7 g/ A3 G! r(4/7): python-ply-3.4-11.el7.noarch.rpm                                                                      | 123 kB  00:00:02     
. ]+ o/ g- [1 H1 k& h+ G% F(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                           | 502 kB  00:00:01     + ~- y6 }0 R; o
(6/7): python-enum34-1.0.4-1.el7.noarch.rpm                                                                  |  52 kB  00:00:02     
2 z% t8 C6 |2 h# ](7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                 | 100 kB  00:00:01     2 u% B/ Y; N7 A$ m
------------------------------------------------------------------------------------------------------------------------------------1 ?' Z$ K+ z8 C' `4 U+ p, X
Total                                                                                               374 kB/s | 1.2 MB  00:00:03     , r: _. v% z! w6 q' K
Running transaction check3 v) \0 e- _) u
Running transaction test6 \# A# }8 [0 T1 X
Transaction test succeeded6 @4 G9 m5 _  u  e; N; \( j: }
Running transaction7 _9 ]) x0 M3 t" E& k3 c
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                1/7 ) T5 N+ X8 M% k0 f& _3 {& j/ c- O
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                 2/7 . h; Q) c. n5 f! h2 y  ^
  Installing : python-ply-3.4-11.el7.noarch                                                                                     3/7 % `6 R+ k- ~: c7 O; _: f: L
  Installing : python-pycparser-2.14-1.el7.noarch                                                                               4/7
$ T5 h- p, [( ^: D  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                   5/7 ' y3 ?) |! ]7 \. R
  Installing : python-idna-2.4-1.el7.noarch                                                                                     6/7 / q9 z8 U0 m9 t& ]
  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7 3 x0 B8 p7 l% a( L
  Verifying  : python-idna-2.4-1.el7.noarch                                                                                     1/7
# x! |" K: R/ L$ X! g& Y  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                               2/7
9 ~* b% P) q3 H6 J  Verifying  : python-ply-3.4-11.el7.noarch                                                                                     3/7 / n* V6 X( h% @
  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                   4/7
6 I: R3 L0 i; R$ C0 s2 a  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                 5/7
- n! k+ \  l0 T% w" H8 X  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                6/7 3 h, Z+ ^  t/ l5 V! d5 g; J, T
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7 . E/ P2 T6 ], Q" w
Installed:
, k. x0 x7 k# @% }* j  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                         7 P% ?5 c! F3 I" E6 ~5 G4 ?
Dependency Installed:+ Z" y! R" P( L) y
  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             0 x6 N4 H' n, \* _- _
  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        
0 g- t8 ^3 P/ e$ j! f' n, VComplete!
+ i" @% q7 R  v
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 20:57 , Processed in 0.042408 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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