找回密码
 注册
查看: 844|回复: 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.6 y6 r- t, t. P; W1 n% B
  from cryptography.hazmat.backends import default_backend/ Z! A8 |9 s* w* v% }9 u
( t2 g# }5 y% ]4 F' a: H
解决办法:
5 G8 Q- Q5 K7 G  H) J安装python2-cryptography  即可:
3 J6 B! K$ g5 V+ U( u  M. h: ]( ~7 d; [* H- H% B. p2 s9 _
[root@openstack-gnocchi ~]# yum install -y python2-cryptography
0 A+ V6 `% x4 Y$ QLoaded plugins: fastestmirror- ~5 p( F  ~6 o' c* i3 Z
Loading mirror speeds from cached hostfile
* Z# L; i8 `$ r( v * base: mirrors.aliyun.com8 A1 r/ D& T# A  j: x
* epel: mirrors.tuna.tsinghua.edu.cn
  z' t  {8 N  \' k; v* `+ J) Q * extras: mirrors.tuna.tsinghua.edu.cn: B  [) X: H) d
* updates: mirrors.tuna.tsinghua.edu.cn0 V+ H# d) e% u7 }& e
Resolving Dependencies7 U% m1 y4 D6 `: p- B9 n6 l
--> Running transaction check  [8 q2 P5 D0 r  @' N: X
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed7 E3 ]" o, j; l' ?/ s# M% r
--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64
5 V4 c! T; Q+ ]; ^--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_644 u$ B2 ~& Q9 G) j& }
--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64
  U/ Z9 p; u& Z, H6 a--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64, a  `4 p! A8 z1 d
--> Running transaction check. ]0 z. [: I" O0 Q# I, f4 \5 [2 U
---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed7 [4 f0 a" v9 i' N& O5 z6 s
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64! _5 L8 H# _8 F3 s7 Y) o
---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed# K' {2 g8 K" n' e& w
---> Package python-idna.noarch 0:2.4-1.el7 will be installed
; E% \3 L: a; s5 C---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed4 q' i; j7 W& ]" d
--> Running transaction check
. g# E1 Y! ^0 I7 r9 U% o. r0 R---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed) w: N# b. D% ?) b; w+ x& [* y
--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch7 T  S7 c! P$ s; z9 J8 F
--> Running transaction check
0 P* K* l/ l6 p5 w; T, p% I) V---> Package python-ply.noarch 0:3.4-11.el7 will be installed
2 j! i- r7 m' D) w: J9 v--> Finished Dependency Resolution0 F6 n0 t) d/ W6 G
Dependencies Resolved. [& v) i6 ]% G
====================================================================================================================================
; C0 q- o6 r8 n; G2 ?, Z Package                                  Arch                       Version                         Repository                Size
2 x& Q: k8 s% C; f! I2 x====================================================================================================================================$ [$ C& o' Q! [6 y, K
Installing:
7 y9 }  U, E$ X1 c python2-cryptography                     x86_64                     1.7.2-2.el7                     base                     502 k( G" j: t' p6 E! B  ^$ t& k
Installing for dependencies:
' I5 Z$ P$ X# S: T  _ python-cffi                              x86_64                     1.6.0-5.el7                     base                     218 k
7 n  ?! X, N9 R# K. r% a5 x: M+ P) M2 H python-enum34                            noarch                     1.0.4-1.el7                     base                      52 k0 L0 a; s: ?! G5 M
python-idna                              noarch                     2.4-1.el7                       base                      94 k/ }4 b( h3 y. L: U
python-ply                               noarch                     3.4-11.el7                      base                     123 k
( E1 R* o/ D0 F! Y6 q python-pycparser                         noarch                     2.14-1.el7                      base                     104 k
4 p4 E: O9 o8 o: U8 t3 T. i& y; L/ ~ python2-pyasn1                           noarch                     0.1.9-7.el7                     base                     100 k3 c9 s6 V2 @7 t4 k) T7 j
Transaction Summary% v5 {8 S/ b' O, o4 O
====================================================================================================================================+ ^1 e9 [: Q2 @! L2 W, F
Install  1 Package (+6 Dependent packages), h2 w. c8 c% e  I
Total download size: 1.2 M2 E  h( I0 }& Q
Installed size: 6.1 M9 E# W4 W* v" s! f: _
Downloading packages:
+ c7 E  ?5 {  V( H* `% }/ ^" g(1/7): python-pycparser-2.14-1.el7.noarch.rpm                                                                | 104 kB  00:00:01     ( i# u5 K) F- |3 h+ g# W, ?
(2/7): python-idna-2.4-1.el7.noarch.rpm                                                                      |  94 kB  00:00:01     
9 ~+ O3 Y. h; \7 k) f! s) {(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                    | 218 kB  00:00:02     
/ O1 q! o1 k' {* Q1 U(4/7): python-ply-3.4-11.el7.noarch.rpm                                                                      | 123 kB  00:00:02     / m  C+ `3 s( z' O- [( O  I
(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                           | 502 kB  00:00:01     
2 B/ i2 b' [" A$ J$ u(6/7): python-enum34-1.0.4-1.el7.noarch.rpm                                                                  |  52 kB  00:00:02     & v1 Q" y4 q) ]3 v2 k0 J' L
(7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                 | 100 kB  00:00:01     
  [- s* d2 D0 q0 d( G% w6 {------------------------------------------------------------------------------------------------------------------------------------  Q" g( R* f" S  L
Total                                                                                               374 kB/s | 1.2 MB  00:00:03     
1 |5 t7 D6 E2 N- G  GRunning transaction check+ _6 x& f2 h  h
Running transaction test1 I  m9 o2 O$ a3 p3 g# P2 [# h
Transaction test succeeded5 q7 t8 S) m# O4 {+ X/ L
Running transaction+ w5 }2 @" O9 M1 n) b
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                1/7 ' j2 k- m$ v; Z) u8 ^) p% r
  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                 2/7 9 I' S6 ?' F4 T" ^* B2 h, S
  Installing : python-ply-3.4-11.el7.noarch                                                                                     3/7 0 D3 ~# l$ B* J, n( h9 B6 W% v
  Installing : python-pycparser-2.14-1.el7.noarch                                                                               4/7 " Q! |- `# v# ~4 l% L; W
  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                   5/7
, m/ K* N/ Y7 m: T  Installing : python-idna-2.4-1.el7.noarch                                                                                     6/7 + Z. R* P3 R& R1 n2 G
  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
' \; i' z& N. K  Verifying  : python-idna-2.4-1.el7.noarch                                                                                     1/7 ! A1 `& u# G2 n9 g2 T
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                               2/7 7 t' [4 S! M" x, @$ t
  Verifying  : python-ply-3.4-11.el7.noarch                                                                                     3/7
5 K3 T- r; u# L  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                   4/7
* ?- N5 D. |, d. `1 W2 X  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                 5/7
# c* n/ l7 E7 F  d* u6 C( }7 O  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                6/7 - g3 E0 R7 I/ N/ [
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
7 }' z4 a. q1 W) ]Installed:
2 D$ _# A% \* n& E+ c9 `. g8 i  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                         
$ I. P, ]/ @% t& bDependency Installed:
6 e7 c- m8 L7 ^  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             % s' v0 M( G# \" D$ q1 K  d
  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        5 V3 r$ `5 Z/ |; j% a! I  d) E
Complete!# N* p3 v7 l7 m# Q6 ?, h
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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