找回密码
 注册
查看: 843|回复: 0

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-6-15 17:00:03 | 显示全部楼层 |阅读模式
/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.
: M8 \9 e4 a$ n1 b4 \7 }/ }1 ~  from cryptography.hazmat.backends import default_backend
- y! _; R$ d" J7 P) V2 |, p* s6 `3 Z
解决办法:
7 r* |5 [# l* U9 G8 S( y& h安装python2-cryptography  即可:
2 x" n! O+ z$ B2 s: u9 ?6 {" Z% h. N
3 {" e  z/ |3 I[root@openstack-gnocchi ~]# yum install -y python2-cryptography" L$ k. _9 h4 |' H1 v& w6 y3 b
Loaded plugins: fastestmirror
& i# |0 s2 w  O4 vLoading mirror speeds from cached hostfile
. B" k5 I3 w0 ^3 l* N$ I * base: mirrors.aliyun.com6 g1 G) X0 i' z
* epel: mirrors.tuna.tsinghua.edu.cn
4 A1 d/ p, N0 A: ~% } * extras: mirrors.tuna.tsinghua.edu.cn) W# d" N% I  f. H  p5 |
* updates: mirrors.tuna.tsinghua.edu.cn
) d6 G% P* ^5 G' X% G" O- yResolving Dependencies, ?2 r) C8 W  |( x# a
--> Running transaction check
* l" h: E* Q9 l4 M- G" X---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
! u* X1 N) k2 K9 X$ |--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64) ?8 d/ G5 n% k7 t+ _
--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
' o2 ?6 z# M. E) T$ ~4 c$ [7 \--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64
  K6 Y: F- X; Z6 b4 ^& u2 \--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
7 t; {# @5 r1 w5 T4 Q3 z--> Running transaction check
- Y4 ~: R' m% ^6 ~---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed8 G* D1 g5 F2 ?
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
3 o4 b! \2 M: c: J---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
& z2 Y( |7 {. @6 G- _" }: G---> Package python-idna.noarch 0:2.4-1.el7 will be installed; F! n) d0 _/ Q5 I5 \' i
---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
' k/ P9 G" R8 o--> Running transaction check
& d- A4 Z8 ^) ?7 z---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed
2 ?' I: t' K% z6 q! f) i/ O--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch5 L0 V5 A5 J. ]0 M
--> Running transaction check
2 W3 R4 w, m4 F1 J* i---> Package python-ply.noarch 0:3.4-11.el7 will be installed; X8 w" A9 \0 w6 L
--> Finished Dependency Resolution
% O" b) D! z7 L* l- W- T6 ^) |8 }Dependencies Resolved
5 \7 N$ w7 G) c$ O7 C2 @4 t====================================================================================================================================
; g$ G& a8 c5 y7 v: Q- Q Package                                  Arch                       Version                         Repository                Size1 s0 O! u" t3 a8 }  }- f4 k1 _
====================================================================================================================================* K6 m/ E2 H" C9 O" x2 o
Installing:# p3 P6 x" w$ D. q% J
python2-cryptography                     x86_64                     1.7.2-2.el7                     base                     502 k6 R2 d" B) o4 Q
Installing for dependencies:* M) [8 o; R+ R; k: A
python-cffi                              x86_64                     1.6.0-5.el7                     base                     218 k4 |9 b. l; M1 E
python-enum34                            noarch                     1.0.4-1.el7                     base                      52 k
9 P* g* h* ^' x python-idna                              noarch                     2.4-1.el7                       base                      94 k8 J! ]* d) f- i6 V3 n1 l* `
python-ply                               noarch                     3.4-11.el7                      base                     123 k
! [1 r3 b. \' U4 W4 ^, e* Q* @5 \ python-pycparser                         noarch                     2.14-1.el7                      base                     104 k
3 [* z! Q% k9 r$ q5 _( G* r" O) {7 { python2-pyasn1                           noarch                     0.1.9-7.el7                     base                     100 k
; Y" t/ `' |$ E. d2 i  cTransaction Summary
" S' s  {8 O: _6 o9 J5 |====================================================================================================================================
8 Y/ D4 ?* ]& C; @3 u% H9 W% `9 d4 eInstall  1 Package (+6 Dependent packages)
+ j# v& b6 k( u& \9 QTotal download size: 1.2 M
1 {" V9 `( G  O$ V" U  Z! DInstalled size: 6.1 M  Y# {8 c2 z9 G
Downloading packages:
9 n" l) W8 R3 ~% y3 m+ v(1/7): python-pycparser-2.14-1.el7.noarch.rpm                                                                | 104 kB  00:00:01     & e. b: G) U; @" Y6 O6 A# }8 c8 k
(2/7): python-idna-2.4-1.el7.noarch.rpm                                                                      |  94 kB  00:00:01     
" t6 ?' B+ j$ [9 R9 @2 `) V(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                    | 218 kB  00:00:02     
  h" ]! R) ^; ]2 w9 o(4/7): python-ply-3.4-11.el7.noarch.rpm                                                                      | 123 kB  00:00:02     0 y( i0 w% R# ]$ P. j) z$ k- n" w& a
(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                           | 502 kB  00:00:01     
8 A+ \8 v0 a& b" U* i4 K(6/7): python-enum34-1.0.4-1.el7.noarch.rpm                                                                  |  52 kB  00:00:02     
' F; b* Q6 h! \+ R5 H(7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                 | 100 kB  00:00:01     2 Y8 }+ Q6 }( {* z9 A: q
------------------------------------------------------------------------------------------------------------------------------------0 ]4 d2 u) V6 k! _% V) B4 r0 A; k
Total                                                                                               374 kB/s | 1.2 MB  00:00:03     1 _  X9 V2 s4 Y' [* I
Running transaction check
0 _0 I* K: i7 ~$ H/ B4 C  mRunning transaction test( R* H2 m+ f2 j4 K( q% L/ e3 F  i
Transaction test succeeded3 R+ r: v% N$ c, b9 L# p
Running transaction
! g; x4 o4 q! J, m1 C* E  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                1/7 7 z: e  f, h4 O1 Q, R# y! f' {( e$ h
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                 2/7
: M& S% A  r3 [% U# B  Installing : python-ply-3.4-11.el7.noarch                                                                                     3/7 ( d7 W& [2 B4 n$ K+ t3 X' H' C
  Installing : python-pycparser-2.14-1.el7.noarch                                                                               4/7 1 w( |) u- t2 J8 l7 w5 @& \
  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                   5/7
1 z$ R. H' _3 {, P  Installing : python-idna-2.4-1.el7.noarch                                                                                     6/7
7 f+ a) ]1 s! A6 n  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
/ f3 |1 l/ v3 J2 @" F  Verifying  : python-idna-2.4-1.el7.noarch                                                                                     1/7 6 q- R+ {! e9 N; Y4 \1 k
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                               2/7 6 E5 q- H5 s. {( R9 i: Y' V+ N9 r
  Verifying  : python-ply-3.4-11.el7.noarch                                                                                     3/7
! @0 {' @5 h* l% n! b2 c  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                   4/7 1 }9 F2 }8 T9 P9 k, J7 \) I
  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                 5/7 4 u  h+ t( e3 @% W; Z  o, s) ]
  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                6/7
) U! j$ D6 S% B& f* [, \  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7 8 P3 Q: C; D/ e# ]9 P; D) [0 U
Installed:
2 T) \2 E7 d: w) M1 o  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                         8 F* ~# f8 ?. t* i8 Y. N/ W* P
Dependency Installed:
3 t* ]/ s7 i  z) g  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            
& C1 T$ c; G& a6 z  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        
. I5 y! }% g" C# C) M7 ^2 DComplete!+ f5 p9 }3 N/ W: j/ _
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:09 , Processed in 0.019289 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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