易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 841|回复: 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 x0 Z  `" L  [. G9 V, f& g  h; E7 T  from cryptography.hazmat.backends import default_backend
6 a, C' p  l0 I* W  \2 ]1 e+ p# @) H0 L
解决办法:7 z+ I1 W6 O% x8 ~  I* j# G
安装python2-cryptography  即可:, h% Y) K$ ~: j0 w8 S% `$ |

5 r- @# _8 E& h9 N$ I1 }- q. S[root@openstack-gnocchi ~]# yum install -y python2-cryptography; r( l/ j4 B# |, i2 Z# N$ N6 l
Loaded plugins: fastestmirror
6 A. }5 [& L7 Y( m1 G: rLoading mirror speeds from cached hostfile
+ }) p; a; ^, l. H8 X2 s * base: mirrors.aliyun.com, E8 G9 Z* t( @6 n2 n* Z( r
* epel: mirrors.tuna.tsinghua.edu.cn, c) K5 k+ B3 V
* extras: mirrors.tuna.tsinghua.edu.cn+ _, Z" y1 i! g1 R1 w& C5 \9 m. w* }
* updates: mirrors.tuna.tsinghua.edu.cn- p+ [. [, n) e6 i  {. E
Resolving Dependencies1 K: q" ~( @  s4 E6 x; K- K% a
--> Running transaction check
% C  M, [8 p6 p! p---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
: y; U3 [  H& n# j& J, T2 W- ~" N--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64
9 G# D2 |; K2 k/ J: O--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
$ Y; C% T3 ]# [5 _--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64
5 ~1 @% g  c8 \+ h* k--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
+ i/ j3 ?  r2 J$ T--> Running transaction check
( w$ f" ~$ e; R% L8 V---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed+ x. N4 w6 q& a( u' u# y1 [
--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
$ D/ p5 Y" _+ F  A2 p6 d* w! p---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed6 w9 V) W6 m2 n/ y8 l; m: K
---> Package python-idna.noarch 0:2.4-1.el7 will be installed8 s6 x" {0 y( s/ S  e
---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
+ k0 a6 J9 [- z6 m& T9 Q$ `4 `--> Running transaction check
+ c6 y  f- p7 m& S+ ?" L; V---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed2 V  T( {0 z- l4 P1 [+ l+ H8 I
--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch5 T. B4 r/ R" i! [! m$ U
--> Running transaction check
  N) I- ]& m1 p3 d5 E---> Package python-ply.noarch 0:3.4-11.el7 will be installed5 _2 }. |8 {* g. L
--> Finished Dependency Resolution3 y1 L! w' W5 l% [3 d# r& O
Dependencies Resolved
6 c# q: D8 |' I====================================================================================================================================; Q3 m% y# T" ^1 C6 U
Package                                  Arch                       Version                         Repository                Size' V7 v" R7 @) D: q* h; r! x0 N4 ?
====================================================================================================================================6 l4 L7 ?2 x7 c3 {
Installing:
" t# {* x& Y1 o5 T" t. M1 C. k, q python2-cryptography                     x86_64                     1.7.2-2.el7                     base                     502 k  T( {6 w% E, [
Installing for dependencies:
0 N1 }9 \$ S( Y1 x+ D, J python-cffi                              x86_64                     1.6.0-5.el7                     base                     218 k
/ K9 F: j' V3 x4 X! A python-enum34                            noarch                     1.0.4-1.el7                     base                      52 k  K9 H6 h: S; ?& n1 Q
python-idna                              noarch                     2.4-1.el7                       base                      94 k& \& _& P5 t& \# D& L# c/ R
python-ply                               noarch                     3.4-11.el7                      base                     123 k
5 P) O& v. L  A) @ python-pycparser                         noarch                     2.14-1.el7                      base                     104 k
0 f2 v% b5 q9 F$ @# m8 c python2-pyasn1                           noarch                     0.1.9-7.el7                     base                     100 k
( ]$ V4 N  n. w9 VTransaction Summary
. y% {# r. z' b4 [* q& G====================================================================================================================================
0 g  L; U% i2 Z+ D( D; ?: o" [+ gInstall  1 Package (+6 Dependent packages)- v& i' O* w* r1 g9 x  o
Total download size: 1.2 M
5 V( O% L6 I' i: m, `3 vInstalled size: 6.1 M
+ @( j/ L9 o# D" L6 tDownloading packages:
3 |$ J- Y. J* P* c; \8 i(1/7): python-pycparser-2.14-1.el7.noarch.rpm                                                                | 104 kB  00:00:01     
* }4 Y* x/ c4 v1 |: Q* I& Z(2/7): python-idna-2.4-1.el7.noarch.rpm                                                                      |  94 kB  00:00:01     1 c* i2 A1 e6 L: t7 X
(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm                                                                    | 218 kB  00:00:02     6 ]5 j% W0 ~5 B* c8 z
(4/7): python-ply-3.4-11.el7.noarch.rpm                                                                      | 123 kB  00:00:02     ! c& \4 Q1 v9 v- A' ^
(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm                                                           | 502 kB  00:00:01     
. b% |) ~: t; v! _/ f( b% O(6/7): python-enum34-1.0.4-1.el7.noarch.rpm                                                                  |  52 kB  00:00:02     ' |8 L7 b- j% T& v; P% J
(7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm                                                                 | 100 kB  00:00:01     $ _' s( S0 I/ ^. e
------------------------------------------------------------------------------------------------------------------------------------
: R& d4 {: `$ ?; M+ Z. D% ^Total                                                                                               374 kB/s | 1.2 MB  00:00:03     , H: C9 y( x! k4 t* C' t( w
Running transaction check
  M2 i& h3 {- Y4 mRunning transaction test
5 k; r6 w" s  i' J5 L5 X3 L7 xTransaction test succeeded
8 U+ h4 ~/ p3 u1 s  h( _Running transaction
0 o: f7 ]! P  Z- l) b  k* s" S: @  Installing : python2-pyasn1-0.1.9-7.el7.noarch                                                                                1/7
. r  d: ?) w- b: `5 N3 f0 r  Installing : python-enum34-1.0.4-1.el7.noarch                                                                                 2/7 ! M, X! ]( r5 I" n2 h6 c
  Installing : python-ply-3.4-11.el7.noarch                                                                                     3/7   D$ R9 U0 t& `5 B' z' A
  Installing : python-pycparser-2.14-1.el7.noarch                                                                               4/7 % ~* [! |  T8 F
  Installing : python-cffi-1.6.0-5.el7.x86_64                                                                                   5/7
4 j. g0 e/ b" C, N. a9 D  Installing : python-idna-2.4-1.el7.noarch                                                                                     6/7
, z* w- p6 F6 H. d6 v5 @+ \4 {+ ~/ k1 ?  Installing : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7
# ]8 _0 f, O" M7 t" ]  t6 m  Verifying  : python-idna-2.4-1.el7.noarch                                                                                     1/7
$ W$ `. M( g! T/ a  Verifying  : python-pycparser-2.14-1.el7.noarch                                                                               2/7
- S4 ]" U2 M: W3 d  C  Verifying  : python-ply-3.4-11.el7.noarch                                                                                     3/7
; ^" ~& B- C$ _' d9 Z2 |1 x  Verifying  : python-cffi-1.6.0-5.el7.x86_64                                                                                   4/7
& F2 ]. V- x/ ~  Verifying  : python-enum34-1.0.4-1.el7.noarch                                                                                 5/7
5 Q& i" {$ _. t) U: k) _' q  Verifying  : python2-pyasn1-0.1.9-7.el7.noarch                                                                                6/7 . Y3 K6 Y* `0 e% d2 [
  Verifying  : python2-cryptography-1.7.2-2.el7.x86_64                                                                          7/7 3 O: R+ q/ o$ \& z6 E' W) s5 |
Installed:
. D! z$ A) a# }4 D3 Z7 W  python2-cryptography.x86_64 0:1.7.2-2.el7                                                                                         2 O! \& f/ `* S2 [3 \8 X
Dependency Installed:
7 z" D* S  B) q* Y( R  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             6 }+ X; t% _- ?( X& P9 i% 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        8 e7 S( ]0 J6 ]
Complete!8 h; W4 E& @; |' M
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

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

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

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

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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