|
|
/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.+ d3 J9 K4 A/ b4 q: p8 H6 ?8 v& C
from cryptography.hazmat.backends import default_backend1 ~9 h. Z5 @: b% c+ ^
1 q; L: `+ t9 d" p. m/ X7 f: h( Q u
解决办法:
+ M; {3 x5 R8 y( T- G安装python2-cryptography 即可:
! U1 j5 a6 x( O
4 n) h" o9 h; ][root@openstack-gnocchi ~]# yum install -y python2-cryptography
/ @- q' N, M D; f& K, @Loaded plugins: fastestmirror
3 y/ o: |1 a) \) U0 T1 [Loading mirror speeds from cached hostfile
! r! {+ w. f4 o* s! { * base: mirrors.aliyun.com1 \! \" s! y, J4 _
* epel: mirrors.tuna.tsinghua.edu.cn
$ |( r6 l* ?6 O * extras: mirrors.tuna.tsinghua.edu.cn) O! t& X% m; W% E: S8 k! I
* updates: mirrors.tuna.tsinghua.edu.cn1 z# E. p4 g& F, |- q0 X
Resolving Dependencies# L3 y2 G2 m* \# M7 I: h
--> Running transaction check, \+ U3 ~ d9 ^4 i
---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
0 `# e4 _5 |# N$ g6 [1 _--> Processing Dependency: python-pyasn1 >= 0.1.8 for package: python2-cryptography-1.7.2-2.el7.x86_64; P9 E6 A& H, d3 C/ V7 B
--> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_648 Z' ?9 X) b' W
--> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64# C* {8 o! \4 b r1 T% I
--> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_649 n. N x* z! e/ e
--> Running transaction check* d) ~2 A8 o, _/ x" D5 Q
---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed
S, _1 H" H+ M& C" }! `--> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
% T' `- E: T; u; d/ V; d0 l---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed4 Y1 M( w5 M. J8 L! `0 K' K7 O
---> Package python-idna.noarch 0:2.4-1.el7 will be installed
. R0 A9 Y! o1 h+ J- j2 ]( b0 Z---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
! |* f6 I/ s5 ^& C--> Running transaction check0 `& O3 B. e: e/ `+ g3 z; `& S
---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed2 W( a6 J% U1 [ E
--> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
$ y' ] U3 \6 V" f+ A2 m" N7 b# Z# f--> Running transaction check) S. c/ A" \ X" \" [
---> Package python-ply.noarch 0:3.4-11.el7 will be installed: h8 w3 Q; e% Z* |
--> Finished Dependency Resolution, Q4 q9 B, N' F$ R& M
Dependencies Resolved
{3 Z, X' R) b====================================================================================================================================
/ B X. Y6 s2 c! K Package Arch Version Repository Size
+ f. o5 M& a) h* ?& F====================================================================================================================================# d7 C9 {! x; N
Installing:8 l, n. I7 z- s% y: n- Y6 x4 O
python2-cryptography x86_64 1.7.2-2.el7 base 502 k% E) n' v$ n. C' b7 Y) D
Installing for dependencies:
1 J0 l. Z% b' C python-cffi x86_64 1.6.0-5.el7 base 218 k
7 _" U$ ~, k( Y% ^: ^ python-enum34 noarch 1.0.4-1.el7 base 52 k
5 d2 A0 c$ S7 S2 A; G python-idna noarch 2.4-1.el7 base 94 k
% J4 p. |; R' F" Y: @8 ^ python-ply noarch 3.4-11.el7 base 123 k
$ i3 o+ Y/ L5 h/ g+ K python-pycparser noarch 2.14-1.el7 base 104 k
1 F/ |7 z i. ` python2-pyasn1 noarch 0.1.9-7.el7 base 100 k
) ?+ U6 \' h( H7 v4 s7 eTransaction Summary
8 Q6 Y0 i# U. H J+ G6 Q& k; D====================================================================================================================================
5 e+ H A- j# ~- D& iInstall 1 Package (+6 Dependent packages); @0 k! R7 P3 N* J. b( u) |$ M/ O
Total download size: 1.2 M. b) h' ^% {+ y# g
Installed size: 6.1 M1 d. i- X( X4 Z: R- ?" U
Downloading packages:- i# p' @' j* e$ I! B8 k6 s; V
(1/7): python-pycparser-2.14-1.el7.noarch.rpm | 104 kB 00:00:01
! M( Y- _* T' G; U(2/7): python-idna-2.4-1.el7.noarch.rpm | 94 kB 00:00:01 ) M( }$ W6 D% ?* [; q/ Y5 ?
(3/7): python-cffi-1.6.0-5.el7.x86_64.rpm | 218 kB 00:00:02 , u1 ~$ U! h0 V" y* U; {2 V: s, ^, m
(4/7): python-ply-3.4-11.el7.noarch.rpm | 123 kB 00:00:02
* i5 [( E$ f2 R5 _( i/ A8 a4 M% n(5/7): python2-cryptography-1.7.2-2.el7.x86_64.rpm | 502 kB 00:00:01 + S" G7 }: m/ k3 r
(6/7): python-enum34-1.0.4-1.el7.noarch.rpm | 52 kB 00:00:02 * S7 \5 z" h2 I
(7/7): python2-pyasn1-0.1.9-7.el7.noarch.rpm | 100 kB 00:00:01 / ]9 b6 V1 C. q4 x6 Q
------------------------------------------------------------------------------------------------------------------------------------( Q$ v# f* D2 h: e9 s6 |4 n8 k
Total 374 kB/s | 1.2 MB 00:00:03
& A; F/ t* G# _: fRunning transaction check
Z3 a3 T4 h F; m X# \) q$ W! H3 ARunning transaction test
1 f5 e0 L4 d2 f) N+ ^! `/ RTransaction test succeeded( v, u* c( p$ `$ T! f8 E/ B
Running transaction6 d4 |1 q% [+ Y' B) \6 q
Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/7 6 _) T5 @/ V. a
Installing : python-enum34-1.0.4-1.el7.noarch 2/7
5 D" d+ n4 g# { | Installing : python-ply-3.4-11.el7.noarch 3/7
- ^& F9 }: x2 e3 d Installing : python-pycparser-2.14-1.el7.noarch 4/7 @5 N. b" {: s. S: A" |. ]+ ]
Installing : python-cffi-1.6.0-5.el7.x86_64 5/7 / x3 N# k2 B; a9 r3 a* V
Installing : python-idna-2.4-1.el7.noarch 6/7
8 z3 N+ W- d- L: Y6 G4 N Installing : python2-cryptography-1.7.2-2.el7.x86_64 7/7
$ G0 H' f0 B/ X9 @& M Verifying : python-idna-2.4-1.el7.noarch 1/7 . H2 K& ^% Y4 I" `
Verifying : python-pycparser-2.14-1.el7.noarch 2/7
7 f I0 k' @2 g Verifying : python-ply-3.4-11.el7.noarch 3/7
& i! _; x# c' S# q0 @ Verifying : python-cffi-1.6.0-5.el7.x86_64 4/7
K+ ^6 k9 T8 U5 d Verifying : python-enum34-1.0.4-1.el7.noarch 5/7 / b) M$ h$ x6 W' E p
Verifying : python2-pyasn1-0.1.9-7.el7.noarch 6/7 ' k8 @4 v/ `" o/ Z* l2 ^7 a
Verifying : python2-cryptography-1.7.2-2.el7.x86_64 7/7
j0 X3 f6 Z0 ]8 w, F) u* iInstalled:
+ d# E, \3 M8 m* s1 _6 Y python2-cryptography.x86_64 0:1.7.2-2.el7 $ R+ \& a# } f3 T; L9 n. J/ K
Dependency Installed:3 _, A+ L4 _+ ]; V0 R( Z3 N# ?
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 - W {$ [1 A0 E/ f* V3 P
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 ! h7 i( `4 I, a6 b- R2 d0 K+ \
Complete!# l. Y* x; A( G2 ?: e3 C( v4 G) q) h
|
|