|
|
openstack image list6 @) d# I+ ^" ^) P! g, }
: E A- c1 W' ]3 D3 Q9 KUnable to establish connection to http://controller1:9292/v2/images: HTTPConnectionPool(host='controller1', port=9292): Max retries exceeded with url: /v2/images (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7efd96f581d0>: Failed to establish a new connection: [Errno 111] Connection refused',))
5 i* i S6 L8 Y, Q5 _# W; W; t6 ~0 w* Y/ w" @3 P( p' u/ s8 D5 l3 ?9 z
7 Y4 `- k, |5 o/ V
查看日志:报错5 h) J. [, Q$ j
2021-12-13 23:19:39.581 31993 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (
- E+ I% W1 }- t( h7 l5 YThis option is deprecated against new config option, O; S8 X( x9 e) R
``default_backend`` which acts similar to ``default_store`` config
1 u% `, ^& O9 f* ioption.
0 j- g( D8 G% \# N0 a3 U& C3 m8 k% L
This option is scheduled for removal in the U development
0 @1 ^; n: J+ f/ D' Z scycle.
. u, U# |) S1 h- O4 C9 U). Its value may be silently ignored in the future.
; r$ v7 v) t; D. T! [) y+ D9 ~2021-12-13 23:19:43.647 32010 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (* C; s" C( L& U _
This option is deprecated against new config option
, J( R0 z2 `+ w V, Y2 s``enabled_backends`` which helps to configure multiple backend stores
# X, k# {0 S; Y: R) A. dof different schemes.* a, v8 K1 A) v7 e$ S! J
5 c( f) Y% i: r! ^% `$ }* RThis option is scheduled for removal in the U development. J* C8 c( v; @5 G& M8 {1 N+ h4 l
cycle.
. C& H$ N7 B, ^1 n# `). Its value may be silently ignored in the future." \, j! q. I S7 \
2021-12-13 23:19:43.652 32010 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (* |2 z' ~9 }+ @
This option is deprecated against new config option, _ M: ^- O' R$ n
``default_backend`` which acts similar to ``default_store`` config) F; u7 x$ n" T f4 M" v1 E1 z
option.& S& u K# D+ x0 h: z4 f3 s
7 U6 q1 }8 L( T: G* _
This option is scheduled for removal in the U development
9 \ w! T, q/ d! F' C9 N/ scycle.
* e5 B. u4 V, s' j f7 n- \. u). Its value may be silently ignored in the future.0 V2 M. w) ?" e
2021-12-13 23:19:47.888 32025 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (5 Z# Y' I( j& g+ u3 b% L! ^
This option is deprecated against new config option
. W/ W5 P& ?( a. h) D9 s+ L' {5 _``enabled_backends`` which helps to configure multiple backend stores
' W9 y C% g4 \+ x* }3 L" ~of different schemes.) I; z+ ~' E j' b% w Y% h7 v+ P
. x& R7 G2 }1 ~$ a; O- h* k" D! T
This option is scheduled for removal in the U development$ V |$ l: a6 n1 X8 P
cycle.7 D' P1 j X+ C+ k: F' V1 M
). Its value may be silently ignored in the future.
5 F- t7 Z% f) ~1 O) [8 n/ e- j8 G, G5 {2021-12-13 23:19:47.893 32025 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (
1 l \3 N1 g$ X! B7 qThis option is deprecated against new config option% ^, \. n2 q; f, k' |
``default_backend`` which acts similar to ``default_store`` config$ O+ e9 L n" q! v5 W
option.
% b3 m0 ~ `0 X/ _$ o+ M0 d/ k9 Y5 w( \- B* `
This option is scheduled for removal in the U development
/ \6 z" \4 J8 W1 mcycle.
4 t5 Q. R' n( s' l. P). Its value may be silently ignored in the future.
1 }" Z- X- q( L8 T2021-12-13 23:19:51.839 32042 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (
7 M: j! `/ S/ A2 NThis option is deprecated against new config option* V3 L5 o0 M' s- e4 y) ?
``enabled_backends`` which helps to configure multiple backend stores. I: y# q' q1 @ k& S
of different schemes.
0 m! V( a. i" i6 k2 t) P, `3 s
! b3 f3 A: b+ w8 F) ]! l! kThis option is scheduled for removal in the U development* U2 f: m$ c6 ^: Z. _( J; G* z |4 N
cycle.
6 o/ q5 {- X0 @6 f3 ] V2 c). Its value may be silently ignored in the future.3 g: ~$ ^0 N. b1 Y
2021-12-13 23:19:51.844 32042 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (
; E/ O" g( Z% G. JThis option is deprecated against new config option+ \0 i" I1 F; z+ Y$ M* y5 d
``default_backend`` which acts similar to ``default_store`` config0 [; N2 J- A x" Q' v; T5 u7 [3 o
option.; g/ r: m2 o' z" u. K0 A
* @+ S$ W1 K3 J& u. ^+ b: A
0 r- }+ e# w% }8 }- }9 `. T, }* {, c* P z) Y ^+ F& _) K* H
大概知道什么原因了,需要修改配置文件:
8 R$ b8 V) j8 G& z' b/ M$ Wvim /etc/glance/glance-api.conf
# X8 s K2 }" D j. u
) H& S. [! r( q- g L把glance_store修改成store
8 G5 v: r9 @$ Q0 G; E3 n[store]+ p$ j% u' _) @3 q
( _* I8 c' I {7 O! L" ^
保存退出
+ v% h: j# }9 C! M1 T" r/ S
9 I* v% y1 f# s: S" ]2 z& L0 O. `# d6 Q2 }- E2 `' O* Y
重启服务:
; U) ~5 @' h/ w( j' b- j% C[root@controller1 ~]# systemctl restart openstack-glance-api.service openstack-glance-registry.service
0 }2 L2 W7 l# r% q: j" n
u$ c) n2 @" t( Q/ C7 ]% ~ |& F2 V% i
再去看日志,正常了。
& W8 ?+ [, s. u- C i[root@controller1 ~]# tail -f /var/log/glance/api.log , N# J8 a% i1 Q7 x% B! H |: t" ~
2021-12-13 23:20:49.337 32387 INFO glance.common.wsgi [-] Started child 32404
& f: M; l$ ^# \7 C: w2 b/ s. @, n" K2021-12-13 23:20:49.343 32404 INFO eventlet.wsgi.server [-] (32404) wsgi starting up on http://0.0.0.0:9292
* t/ `+ f: L4 J2021-12-13 23:20:49.349 32387 INFO glance.common.wsgi [-] Started child 324050 L5 X* B1 F( ?$ y& [$ A# P9 h
2021-12-13 23:20:49.354 32405 INFO eventlet.wsgi.server [-] (32405) wsgi starting up on http://0.0.0.0:9292; A# A1 n! R6 ~* T
2021-12-13 23:20:49.366 32387 INFO glance.common.wsgi [-] Started child 32406 H8 P" G* \. \: Q" L( {( |% e& f
2021-12-13 23:20:49.371 32406 INFO eventlet.wsgi.server [-] (32406) wsgi starting up on http://0.0.0.0:9292
* V, O: f n% r2021-12-13 23:20:49.506 32387 INFO glance.common.wsgi [-] Started child 32407# C, }3 m9 v6 r
2021-12-13 23:20:49.510 32407 INFO eventlet.wsgi.server [-] (32407) wsgi starting up on http://0.0.0.0:9292
# g7 m3 Y( U5 S+ t6 c2021-12-13 23:20:49.553 32387 INFO glance.common.wsgi [-] Started child 324089 F: Y6 y4 G) s8 R9 g# b5 h
2021-12-13 23:20:50.180 32408 INFO eventlet.wsgi.server [-] (32408) wsgi starting up on http://0.0.0.0:9292: }! M& c9 n# R: z7 d; z
. u0 O7 d! P; S1 f- B8 K
2021-12-13 23:21:17.254 32533 INFO glance.common.wsgi [-] Starting 8 workers
# x/ k3 u }( Y- e4 }1 A: i" d2021-12-13 23:21:17.265 32562 INFO eventlet.wsgi.server [-] (32562) wsgi starting up on http://0.0.0.0:9292, n+ }, Z# @5 m( p: z+ I2 H
2021-12-13 23:21:17.261 32533 INFO glance.common.wsgi [-] Started child 32562* X1 j+ f2 c9 i r# ]* {0 z$ k# w
. L( f3 \) j, d+ c2 W2021-12-13 23:21:17.330 32533 INFO glance.common.wsgi [-] Started child 32563; a( T/ y# X k& ]1 `
2021-12-13 23:21:17.480 32563 INFO eventlet.wsgi.server [-] (32563) wsgi starting up on http://0.0.0.0:92925 P/ U% T' N; j g0 D8 J
! T$ G9 ?8 W; s) z$ h9 o
2021-12-13 23:21:17.488 32533 INFO glance.common.wsgi [-] Started child 325667 r9 R+ H1 |2 D. H, o3 x
2021-12-13 23:21:17.662 32566 INFO eventlet.wsgi.server [-] (32566) wsgi starting up on http://0.0.0.0:9292
' h0 M; K T1 `8 P2021-12-13 23:21:17.666 32533 INFO glance.common.wsgi [-] Started child 32567
7 |, l/ A! l9 O. k! \- J2021-12-13 23:21:17.858 32567 INFO eventlet.wsgi.server [-] (32567) wsgi starting up on http://0.0.0.0:9292
+ o" g" o5 M. f; ?5 v2021-12-13 23:21:17.864 32533 INFO glance.common.wsgi [-] Started child 32568+ s$ g* f1 _6 Y2 W2 @$ s& P
2021-12-13 23:21:18.031 32568 INFO eventlet.wsgi.server [-] (32568) wsgi starting up on http://0.0.0.0:9292
% P6 k/ V. N6 n: f% L5 Q; s2021-12-13 23:21:18.034 32533 INFO glance.common.wsgi [-] Started child 32569
+ v2 B% A; P5 Z7 F) l! D& ^ w2021-12-13 23:21:18.385 32569 INFO eventlet.wsgi.server [-] (32569) wsgi starting up on http://0.0.0.0:9292
5 @! u1 v7 T+ f/ d0 g% ^- t: p- {2021-12-13 23:21:18.405 32533 INFO glance.common.wsgi [-] Started child 32570- G m4 H6 U- q2 S( ]
2021-12-13 23:21:18.408 32570 INFO eventlet.wsgi.server [-] (32570) wsgi starting up on http://0.0.0.0:9292
* E2 P" r) m# @! j" ^( c2021-12-13 23:21:18.413 32533 INFO glance.common.wsgi [-] Started child 32571
& q4 i+ g2 `7 `( N: z; m: @9 M2021-12-13 23:21:18.609 32571 INFO eventlet.wsgi.server [-] (32571) wsgi starting up on http://0.0.0.0:92928 A# E! M* ]2 |% u! M
% x8 Y, B. B1 W" n( @2 Z& a+ o, x5 ]8 y! w% _1 A- g( y, G
5 \9 u* `4 i3 N) W. ~
- {1 x! H# ~) x& J. y4 M7 S
2021-12-13 23:21:36.870 32566 INFO eventlet.wsgi.server [req-3cc65f1a-c31f-492f-99b1-eed8848c7a63 ddc68140f7bb44729535140ff3b48bc2 7df36c050d3a4661b9968d5d8b4df310 - default default] 192.168.13.165 - - [13/Dec/2021 23:21:36] "GET /v2/images HTTP/1.1" 200 267 1.964120& V6 J7 P, t: u9 s7 l& e5 x
2021-12-13 23:21:56.522 32567 INFO eventlet.wsgi.server [req-d8ca88d4-6ff7-465c-a237-2be01eae3dda ddc68140f7bb44729535140ff3b48bc2 7df36c050d3a4661b9968d5d8b4df310 - default default] 192.168.13.165 - - [13/Dec/2021 23:21:56] "GET /v2/images HTTP/1.1" 200 267 1.624724
# ]. ]- u* F T. D6 e2021-12-13 23:22:09.009 32570 INFO eventlet.wsgi.server [req-57bdb374-ce97-4ee0-a8f4-d1a72ba4a53c ddc68140f7bb44729535140ff3b48bc2 7df36c050d3a4661b9968d5d8b4df310 - default default] 192.168.13.165 - - [13/Dec/2021 23:22:09] "GET /v2/images HTTP/1.1" 200 267 1.495126
; l6 R4 U. W5 F8 L1 M: Q9 W+ t l: R+ l2 E7 x9 x
v4 Y6 g& t6 R7 `2 \% {' S; {* c$ h3 Z, [9 u7 [
问题解决。
( o7 F# w6 s, x, Y
' B4 ^& X6 v, ^% z/ ^7 w# S$ d8 c: {7 J" z5 z+ u- w
|
|