|
|
楼主 |
发表于 2022-5-9 15:32:52
|
显示全部楼层
问题解决方法:1 q/ F6 f% Z, v. S: U
[root@controller1 ~]# openstack server list
3 j9 i: H8 a4 V# Z6 p/usr/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py:51: 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.
: W E6 e5 C4 m: {* Y from cryptography import x509
* d4 W" ]% |, C# P% Q+--------------------------------------+------+--------+----------------------+-------+----------------+; `+ w4 y9 I- ^6 J; r
| ID | Name | Status | Networks | Image | Flavor |
) c7 _( J" @( a; W. H0 z+--------------------------------------+------+--------+----------------------+-------+----------------+, I7 r" D% c3 j! `4 W1 n# c% ~
| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 | | type-2c-2g-10g |
" M# m/ r: [7 }/ X# E+--------------------------------------+------+--------+----------------------+-------+----------------+1 D& N4 ~; f8 s6 n
1 Q: H+ r8 L" f! t# w4 `查看依赖:& P0 w. y9 n" Z' A/ m2 P! a: f
[root@controller1 ~]# yum provides cryptography
9 [/ w- I) r; y4 C/ B+ M/ @Loaded plugins: fastestmirror
. s3 P& x" H7 p9 U7 v, D) D' b' l# HLoading mirror speeds from cached hostfile
' x- _. ^% c- a z/ W+ ^python2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library/ Y; H, X3 s5 O5 M% C8 W
Repo : c7-media8 b k3 f" U% ^% ~" |' k
Matched from:6 M& y" F# j! @" R
Filename : /usr/lib64/python2.7/site-packages/cryptography
/ h1 E+ h0 ~! ~5 X$ r3 z; E% [: `% X: L
& ?) M8 `! l/ p! d! t8 x' T2 O8 z
& c. i" u& u; r D Zpython2-cryptography-1.7.2-2.el7.x86_64 : PyCA's cryptography library
8 b( _5 q0 t7 b3 I" q& wRepo : @base6 ?2 V; [2 M. T0 M, L1 |7 q
Matched from:
5 W6 e( V1 | S* S8 iFilename : /usr/lib64/python2.7/site-packages/cryptography
) `2 I5 \6 E, d4 C( j4 K/ }1 y, G. {8 ~: ?
4 p4 |3 P( t! @3 b重新yum安装下:# h: s6 _) r2 ]$ U x1 e" n
6 E( F( n1 P" M9 e6 p9 [( s/ x, F
[root@controller1 ~]# yum reinstall -y python2-cryptography
1 u* _0 E& }9 i! pLoaded plugins: fastestmirror
% e4 j8 M- `; h2 w' wLoading mirror speeds from cached hostfile$ }; `1 d2 Z, s$ Y$ G: T. k
Resolving Dependencies2 w: o+ ?! i5 `, P
--> Running transaction check
+ Y2 Z" C6 H4 x; O- F+ j# M; e---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be reinstalled& p/ m: O% ?/ I. n5 _3 x$ w' {
--> Finished Dependency Resolution
( j* u1 N1 f( x3 T) i. G, l
0 \* g2 W. q! uDependencies Resolved
1 D( z0 {9 _, Z9 S
4 J% \9 k* A4 ]: k; [4 P=========================================================================================================================================
# e3 {# {2 B/ l9 L Package Arch Version Repository Size; R3 D. A& m: H
=========================================================================================================================================
" | }: [) Y( D1 f! mReinstalling:
; [9 H+ E1 c! Z- M% n python2-cryptography x86_64 1.7.2-2.el7 c7-media 502 k
( B' S5 Z' p* U2 m2 Y
8 d( [5 R# D' \+ R: B0 L/ z7 ~Transaction Summary
; Y. v8 V9 _5 B- \; q3 u* ?5 b=========================================================================================================================================
$ p+ w! `, D! t7 ~Reinstall 1 Package
, W2 Z/ Q! {/ Q- q$ t) s% }6 k& E% c& K( Q) B
Total download size: 502 k
/ q# x% Z1 R) m! ^& [Installed size: 2.6 M
2 E8 E7 U1 r, e0 e0 jDownloading packages:
# i2 A3 F& c" y# i+ A6 X3 Dpython2-cryptography-1.7.2-2.el7.x86_64.rpm | 502 kB 00:00:00
% k9 L6 j/ s( @& a# a" Z: ^Running transaction check
8 j, E! Y, u( B8 s9 Q, }1 iRunning transaction test
! v4 e1 q$ c" t& t! I+ pTransaction test succeeded
2 B7 B3 D2 _& {Running transaction
9 q i" a+ X3 d. B" g+ M" t8 W Installing : python2-cryptography-1.7.2-2.el7.x86_64 1/1
: t( a* I; P9 b' {8 F Verifying : python2-cryptography-1.7.2-2.el7.x86_64 1/1 * f# ?3 I4 J5 p+ X7 t
3 Q6 P& X/ B* @; B& |2 h
Installed:8 e4 O ?/ F& ^ Q+ ?# x* y
python2-cryptography.x86_64 0:1.7.2-2.el7
- ]$ ~, ~- b- V) y$ P
: h" _- ^( u. ]6 Y f# C0 V- d; dComplete!8 }6 H- J4 P/ a, t& ~( n+ ?: I( [" a
1 ~0 k7 z1 n: s
再次尝试:1 V0 N$ k7 I+ {* s" O
[root@controller1 ~]# openstack server list - |9 F2 e; s: w$ ]# W2 j
+--------------------------------------+------+--------+----------------------+-------+----------------+% u3 X" f ]3 U0 v. q0 X
| ID | Name | Status | Networks | Image | Flavor |) J$ k/ J( k+ p9 J( n1 a# h
+--------------------------------------+------+--------+----------------------+-------+----------------+' y7 `, ^; f4 z! ]: N
| 77aad1f0-4a8a-4f87-9277-f3cbebbc22c9 | test | ACTIVE | vxlan200=172.162.0.5 | | type-2c-2g-10g |, E$ h- j* x' S# G0 w
+--------------------------------------+------+--------+----------------------+-------+----------------+
" E" z- ~- O0 P: W |
|