找回密码
 注册
查看: 822|回复: 0

使用openstack命令提示告警错误,解决办法

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-4-14 14:03:21 | 显示全部楼层 |阅读模式
/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.' I* M( Y' Y5 K2 g2 h( ?
  from cryptography import x509
6 u5 e' a+ N6 H+ U' Y- x$ s3 }  w8 o4 `2 h: x* d
openstack project list  
& [7 ^6 F/ H: {5 E/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.. g: G) a! H" H5 i# o5 n
  from cryptography import x509
4 }6 G4 z. W. V) h' |4 A5 v+----------------------------------+------------+
. k0 I8 B0 J7 }  m5 R/ K, ]6 [| ID                               | Name       |4 ~: L+ E5 A  E. |, U  s
+----------------------------------+------------+
# @' G/ {7 \5 C| 0c915a0d7601493cb1ecfd904b09f54c | app        |
" J6 c9 }7 ]0 R; z5 C| 427c9cf69c7243d7894efc65e213170d | service    |. p, ~$ j6 z9 w# D
| 6f0124196ea74eb79fbcf370add3ca7e | admin      |
* Z6 C, v- _9 j; E2 }0 ?| 7ad4f489d05c4f19a74163a885ab3340 | middleware |" o( R- k' v8 |1 W
| 8d526ae78ef047d399925ebb88564108 | bigdata    |7 n3 D( C' J* D# y0 u: \% p- B
| 9adc3ac0725d44ac94c43f93b4d8cd14 | database   |: O! ~, W: }. R; R
| d4d0f4b6dd334883ba1d78a2e08ce058 | esits      |. l2 f' I9 G! ]6 }7 `
+----------------------------------+------------+& d1 o  M) i- e( i, f+ e
) p" _! _5 {2 J9 q

' _* H: I8 X# Q- z
1 H8 X; I, P! F/ l; |解决办法:
4 u$ ~$ j  [4 r: t) i; l[root@controller1 ~]# yum install -y python-urllib3' m0 g) D& C2 D! v4 Z; F1 Z
Loaded plugins: fastestmirror7 M; {2 d1 F; z# E$ X& |, a
Loading mirror speeds from cached hostfile
& l6 T8 A' Y# z. r4 p3 E# a$ [epel/x86_64/metalink                                                                                                                        | 5.5 kB  00:00:00     ( I1 {! W/ j! Q; W
* base: mirrors.bfsu.edu.cn
. ~6 D4 c/ A# a6 o0 c: ` * epel: ftp.riken.jp
9 h! C! w# N! U1 E * extras: mirrors.tuna.tsinghua.edu.cn  c- l! i( \5 t' S& g1 t! ]
* updates: mirrors.tuna.tsinghua.edu.cn0 W- J. y& j+ E6 a( D4 ~
base                                                                                                                                        | 3.6 kB  00:00:00     + l9 W. |/ `% @, J" M
ceph                                                                                                                                        | 2.9 kB  00:00:00     
! n# K+ W: C# c) zdocker-ce-stable                                                                                                                            | 3.5 kB  00:00:00     , A; Q! Q, ^& V5 T8 l7 d& ~
epel                                                                                                                                        | 4.7 kB  00:00:00     / e: l: f; T9 G- i
extras                                                                                                                                      | 2.9 kB  00:00:00     
( z9 I2 A/ F; Y, i1 tupdates                                                                                                                                     | 2.9 kB  00:00:00     : M; x& l1 S- h- U! g
(1/3): epel/x86_64/updateinfo                                                                                                               | 1.0 MB  00:00:00     
, e. j$ _3 p; O  ^" M7 j(2/3): updates/7/x86_64/primary_db                                                                                                          |  15 MB  00:00:03     
) {( B6 A# p" V! y; F& w; `(3/3): epel/x86_64/primary_db                                                                                                               | 7.0 MB  00:00:04     7 s$ y8 h3 W  h: m6 O
Resolving Dependencies
" |; E/ e* U& p1 ]! T( h6 m: h--> Running transaction check. f8 F' g) u  i+ ?/ ?4 I
---> Package python-urllib3.noarch 0:1.10.2-7.el7 will be installed
+ y. N" i* j) \; a7 k, t' ]--> Finished Dependency Resolution, o  ~) D* p/ k: v7 A9 c3 q
Dependencies Resolved
% K; D( Y0 I- M/ M===================================================================================================================================================================
# ]6 d4 B! {- X! |1 z; F Package                                     Arch                                Version                                   Repository                         Size2 X2 w5 Y2 c5 O3 `# h6 w' H
===================================================================================================================================================================
+ R4 A- @* b0 G$ kInstalling:! I% e: b5 x7 C$ o4 t; p
python-urllib3                              noarch                              1.10.2-7.el7                              base                              103 k; l2 p2 T6 u7 o0 n  U
Transaction Summary
6 a. ?  U) H* p: a4 k===================================================================================================================================================================" x5 b" a3 b+ [. j/ M" V
Install  1 Package5 ]( M/ S) `" D" W. o
Total download size: 103 k, q8 a. [  j2 w9 l9 t
Installed size: 380 k
' M6 W5 J2 T) v7 V; QDownloading packages:
0 w, ~3 g; Y' g, vpython-urllib3-1.10.2-7.el7.noarch.rpm                                                                                                      | 103 kB  00:00:00     & A4 L$ L4 q8 B5 u( s- O
Running transaction check
" k+ M2 R3 K) s) |' k1 [0 GRunning transaction test
8 N- D$ c; A, w7 OTransaction test succeeded) I/ p  b1 h* K# W  k7 P3 o
Running transaction
/ Q# ~5 D  o- F0 P. Z! t  Installing : python-urllib3-1.10.2-7.el7.noarch                                                                                                              1/1 1 i7 D$ H& \3 c  z
  Verifying  : python-urllib3-1.10.2-7.el7.noarch                                                                                                              1/1 , T3 k9 S* _, P8 H# }
Installed:& i  a1 k4 J% _
  python-urllib3.noarch 0:1.10.2-7.el7                                                                                                                             
9 @# l: f( C, V& }# e: Y6 M( p& N0 {. kComplete!
) @# [$ z2 N* W, }[root@controller1 ~]# openstack project list    u6 u- d* B8 ^6 j/ j' g1 O/ N
+----------------------------------+------------+
( Q3 A$ M& [( |9 }8 t| ID                               | Name       |6 i6 n* V) {( l$ k" R) X& ?2 r* @
+----------------------------------+------------+
2 N- x7 W! {. E  W: K! H| 0c915a0d7601493cb1ecfd904b09f54c | app        |3 e( L) b+ D4 I/ }3 ^
| 427c9cf69c7243d7894efc65e213170d | service    |
: F  {+ m4 o% m( K| 6f0124196ea74eb79fbcf370add3ca7e | admin      |
+ N3 S' Q3 m( r: n, t| 7ad4f489d05c4f19a74163a885ab3340 | middleware |
" V( n" _# H3 J" k( t' u3 j; v| 8d526ae78ef047d399925ebb88564108 | bigdata    |- A# O& t" w: u  W8 {( K6 ~
| 9adc3ac0725d44ac94c43f93b4d8cd14 | database   |
+ ]& k/ G8 V% @; W3 p| d4d0f4b6dd334883ba1d78a2e08ce058 | esits      |  w8 B; [) J' }) P/ z" y! @
+----------------------------------+------------+
- |+ j# L4 k3 _2 D2 k( @8 _% Y2 q5 F/ i! F
! [+ M- L2 d& r, o! E- ]
问题解决。
. [. B5 B$ [- G& A. a- _7 `
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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