易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 840|回复: 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.- Y- z; E, B- E+ S
  from cryptography.hazmat.backends import default_backend
: |, K# y1 F, c7 ?! `" R. ]! v9 I$ z2 d$ d" [( i9 U
解决办法:1 I- I; C* d/ J0 j' @8 {
安装python2-cryptography  即可:
2 V% m0 B; J/ d$ t  J1 r4 l7 r
' `  k* E, q: m- e1 f- q[root@openstack-gnocchi ~]# yum install -y python2-cryptography
  V( D0 {/ `3 f# {% |. WLoaded plugins: fastestmirror% t! P# R' ~  ~" u# ]# Z- f% }
Loading mirror speeds from cached hostfile
1 ?* U6 G& l0 T$ y6 `) M2 \4 B * base: mirrors.aliyun.com+ z7 |% L+ i' D% N; o& ^
* epel: mirrors.tuna.tsinghua.edu.cn& d; \+ Q+ \4 ^, f' R9 \5 |: Z: b
* extras: mirrors.tuna.tsinghua.edu.cn& `0 }0 R- n3 g: \
* updates: mirrors.tuna.tsinghua.edu.cn, A4 h5 b. e3 j  H4 ?
Resolving Dependencies' g+ Y3 n  ]1 _, `. R
--> Running transaction check5 r0 e. J; F, [7 D( |  `
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed4 v; @1 ?5 z7 _7 M: {  k2 e  L
--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64
8 a+ K6 f; @7 A$ M7 Q* Z% w--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
. s- Z+ d" j, W: V% R" W--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64' {4 _7 t6 b8 Z1 Q
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
8 M- }' n* r4 x8 F6 _! a--> Running transaction check
' u- e7 i: W; P7 x7 ]/ u# ?---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed: r- v+ Y, }' y' ^' I
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
9 |8 [/ Q9 \  v3 k, X4 N  a---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed  y7 |8 K9 G1 D; I- v
---> Package python-idna.noarch 0:2.4-1.el7 will be installed
4 `- o8 Z' _/ r; ?) z+ g---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
5 G0 i* ]- x. q! {0 @--> Running transaction check  j' u! q- [5 k0 ~. F) h
---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed
% A. n1 @& J% E--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
5 U8 ~+ q3 p$ [# m8 L8 k--> Running transaction check
3 `' i: [2 a. x8 d1 r) t---> Package python-ply.noarch 0:3.4-11.el7 will be installed1 R2 O+ n  Z& @! a- [
--> Finished Dependency Resolution
( C) a2 b* t( ~( {6 oDependencies Resolved
" g& z+ e( z; \, _/ M====================================================================================================================================1 q1 L' I2 D0 i4 b7 J5 `3 {' {
Package                                  Arch                       Version                         Repository                Size
- _7 ?- j0 p/ [# b! M9 c$ l====================================================================================================================================; R1 `% h% c( T* l
Installing:
" k9 i0 ^" K$ G( D" a python2-cryptography                     x86_64                     1.7.2-2.el7                     base                     502 k- k' b# m5 |! {4 L; z/ J) d
Installing for dependencies:
5 x; X: A; P% j: p- U& v python-cffi                              x86_64                     1.6.0-5.el7                     base                     218 k9 @* K- {5 Y! w- f7 }8 ^7 n
python-enum34                            noarch                     1.0.4-1.el7                     base                      52 k6 o+ v5 W' h) A0 j3 E
python-idna                              noarch                     2.4-1.el7                       base                      94 k. _9 t8 q+ j4 V+ s$ n# [
python-ply                               noarch                     3.4-11.el7                      base                     123 k0 v& _( w) \4 ?& B3 j
python-pycparser                         noarch                     2.14-1.el7                      base                     104 k6 T! h9 u/ J& F/ L8 z
python2-pyasn1                           noarch                     0.1.9-7.el7                     base                     100 k2 q# A: Z9 B( l3 n8 x
Transaction Summary5 P( F+ a; O( R; Y  h: X
====================================================================================================================================1 X7 a: y4 c* l- V  u- H+ l; C
Install  1 Package (+6 Dependent packages)
5 ]3 _; I7 D/ u3 n6 _- \4 oTotal download size: 1.2 M
, d( y& g6 c* [. {! ?+ ^2 x4 Q' rInstalled size: 6.1 M8 e- Y" q$ h( E+ u2 _% g) h
Downloading packages:) l3 {) c- \$ p
(1/7): python-pycparser-2.14-1.el7.noarch.rpm                                                                | 104 kB  00:00:01     
  d0 A. M6 d! U/ \2 P9 L(2/7): python-idna-2.4-1.el7.noarch.rpm                                                                      |  94 kB  00:00:01     
5 B  R8 F- W: l& P(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                    | 218 kB  00:00:02     
# s. c+ F! ~& r* X" r2 d(4/7): python-ply-3.4-11.el7.noarch.rpm                                                                      | 123 kB  00:00:02     
- a, i# n0 }0 A(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                           | 502 kB  00:00:01     
6 J. f% O+ r- Y(6/7): python-enum34-1.0.4-1.el7.noarch.rpm                                                                  |  52 kB  00:00:02     
: U) ]! k8 K8 z5 B- `2 x( g(7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                 | 100 kB  00:00:01     
7 U4 g- e7 t* c& j6 v------------------------------------------------------------------------------------------------------------------------------------, z4 d5 h1 A1 b# P! [2 h
Total                                                                                               374 kB/s | 1.2 MB  00:00:03     
- c4 y4 o8 z1 w, B6 n7 X3 p. eRunning transaction check
0 E, H# m/ \7 E+ X3 |, bRunning transaction test
" I$ K0 w9 Q9 D5 n% t0 T2 xTransaction test succeeded- ~; i8 d* D3 j- w7 r0 q3 E
Running transaction) G% V" u2 j* s5 i
  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                1/7
- a& V' M0 A# R  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                 2/7
4 K$ j* a& f0 @- x7 ~  Installing : python-ply-3.4-11.el7.noarch                                                                                     3/7 ( m( L! Q; _4 Y# d1 o
  Installing : python-pycparser-2.14-1.el7.noarch                                                                               4/7
# V2 [0 L; v0 r! o7 k9 M  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                   5/7
7 T$ r( g' k: f, `: f( _8 ?3 t- N  Installing : python-idna-2.4-1.el7.noarch                                                                                     6/7
$ @3 n% @% w9 _4 c9 b. g+ Q9 I1 U  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
! `" {# a5 t  F, C. F  Verifying  : python-idna-2.4-1.el7.noarch                                                                                     1/7 - J7 h; \  ?& W, o/ ?( T* F
  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                               2/7
# Q% }$ v, ]" D7 I1 c  Verifying  : python-ply-3.4-11.el7.noarch                                                                                     3/7 8 X! ]/ Y; A2 t" |8 y: k
  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                   4/7 / c7 P8 Z4 k& L) `7 O$ W* {6 g8 {
  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                 5/7
+ [% K3 `7 u+ t6 E  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                6/7 2 X1 W! ]9 e2 `1 _1 g
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
2 {( S1 _* o1 ]# z5 r' aInstalled:
' s# x: r2 i" n7 H7 s  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                         
1 P* H: a& `9 DDependency Installed:
6 d% I" v" `$ q2 W* v  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            
. M! ]! r# V3 _, [  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        
" ^4 C( w; r; Z, h( mComplete!
( v" p) ~2 k7 W
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

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

GMT+8, 2026-4-8 17:02 , Processed in 0.044440 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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