|
|
openstack image list
K: ]* L" `5 a# p
' {2 |# g B0 Z6 F5 Y6 SUnable 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',))1 Z! Y3 K b2 k t
+ [5 V" H U, \( C
0 l$ U$ n" o9 p, A% i& z查看日志:报错) O. I' L R/ I
2021-12-13 23:19:39.581 31993 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (" I/ \+ \" {% X: m) P+ ~. p3 w; x* L+ j
This option is deprecated against new config option
/ d( O+ f0 t4 L+ o# D, {# E" D C``default_backend`` which acts similar to ``default_store`` config! ^& f" z1 @0 p! M/ N
option.% R9 l! B# k) B6 \8 ~
$ c; c9 ?# l9 A/ ^) a) N% zThis option is scheduled for removal in the U development# x7 C" _2 S Y! `: q6 {4 {
cycle.
7 c2 H! B: N) b7 @% `). Its value may be silently ignored in the future.
" M& _0 \! r2 p1 Z0 s2021-12-13 23:19:43.647 32010 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (/ [$ X: S9 I s/ C/ k0 I& M
This option is deprecated against new config option/ I( K/ ~3 F- V
``enabled_backends`` which helps to configure multiple backend stores) m1 ?; Q# G1 F. d; M
of different schemes.
; i2 y1 p* v+ Q$ N" _9 f
5 F) ]9 B2 w9 T" c1 o+ u4 }This option is scheduled for removal in the U development& M2 K6 a! u. F( ~0 [ u
cycle.0 s C+ z7 t/ a4 B" A F
). Its value may be silently ignored in the future.
1 [: e+ w+ e- k/ S6 C2021-12-13 23:19:43.652 32010 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (
# u3 Y- G5 d0 d4 CThis option is deprecated against new config option% B4 g( y3 x0 q
``default_backend`` which acts similar to ``default_store`` config
' p7 J* U7 W% c5 coption.1 I! F: N2 B3 | v
. F% _; Z+ T/ IThis option is scheduled for removal in the U development/ t! K0 f ~8 C3 A" ^% r+ ?+ [
cycle." V( B( \" a* P- U7 ^6 V; \
). Its value may be silently ignored in the future.$ `& M9 a3 B* P1 H# F- {4 r5 R
2021-12-13 23:19:47.888 32025 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (. T7 S k5 }" e. E
This option is deprecated against new config option' G+ [, Y% A9 u7 p9 J; }
``enabled_backends`` which helps to configure multiple backend stores
0 p, s5 c: B- P7 \4 f& v7 Aof different schemes.1 ^0 r0 w3 ~' D- }8 @2 M. v1 A9 s
6 z; Z- G( [+ ^# D1 f. G! D/ F7 L
This option is scheduled for removal in the U development
% ^; `. C! Q# ]- O* D- ~cycle.) [! b! H X7 a
). Its value may be silently ignored in the future.9 k4 V$ u3 F) @
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 V. A! b# F$ D( ~. ZThis option is deprecated against new config option3 |9 x# @5 [8 v* }# u+ q+ q
``default_backend`` which acts similar to ``default_store`` config2 T" ^* H, U9 z& l, I2 O; x, a
option.
' S* N) Q. J J0 ?2 `! G# Y5 R( e, o/ o" }& ^2 U# k/ l* l z
This option is scheduled for removal in the U development
t* [+ n, s9 T! Z% k& Jcycle.& w0 d& a1 A" `! Q; {6 U
). Its value may be silently ignored in the future.; n) k$ |( E* V: r/ u2 ]
2021-12-13 23:19:51.839 32042 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (+ G( d" v9 U. u/ @9 A1 m1 Q
This option is deprecated against new config option
8 y( i) p. Q7 l# D0 a# l: ^# z``enabled_backends`` which helps to configure multiple backend stores
4 B# K3 a6 c# @of different schemes.) A# a7 P; |0 B0 ^! D
" I" i0 ~, X% f; ]This option is scheduled for removal in the U development* z" o9 w7 T, d1 O5 y5 {+ u
cycle.1 ]5 M7 M; M' f5 _4 f2 d3 e7 C
). Its value may be silently ignored in the future.
. D; H9 O: E( O, e! N2021-12-13 23:19:51.844 32042 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (
o5 v- E9 r9 b1 _* ?. PThis option is deprecated against new config option
a- d9 f g5 @) t) v``default_backend`` which acts similar to ``default_store`` config
+ M. i0 }# Y7 W; g* u0 R0 u' moption., m1 b% h+ \' w( S, T
+ c, u& p6 n6 U5 Z1 v3 _; G
3 k7 Y( p/ |, u) w% Q! b
; x/ D7 B' E# S1 X2 F大概知道什么原因了,需要修改配置文件: S, ]7 k; A2 V6 i# `
vim /etc/glance/glance-api.conf 3 T* ^! D6 p5 l( l5 t( A5 e8 t
( T) f- s, j% Q P
把glance_store修改成store
' M$ A1 r/ h2 v# F- _[store]
; T& i/ c2 o8 k8 q8 O+ |* F" u% D2 ?; D J/ ~9 p" G3 I! h" O3 h S
保存退出: E K3 I9 w* x! y
4 F7 [# @& g0 y& J2 Q: @9 ^
1 t3 }1 D$ J: \7 T
重启服务:
7 i4 J5 D2 r; D/ q( k7 g[root@controller1 ~]# systemctl restart openstack-glance-api.service openstack-glance-registry.service + C! B% _5 r2 B) \* U
& c& u. b# I+ U, G
& z7 ^5 Y2 e, y% V3 x% }) L% t3 t再去看日志,正常了。
( l7 k/ I' b& G) E- \" ]4 p# g[root@controller1 ~]# tail -f /var/log/glance/api.log " l& P! x+ _! H6 `8 c3 v1 F
2021-12-13 23:20:49.337 32387 INFO glance.common.wsgi [-] Started child 32404
/ i8 G, N' M1 L4 `1 W( Y6 T2021-12-13 23:20:49.343 32404 INFO eventlet.wsgi.server [-] (32404) wsgi starting up on http://0.0.0.0:9292! K% W' k5 D7 f0 M" }+ i; ^; t
2021-12-13 23:20:49.349 32387 INFO glance.common.wsgi [-] Started child 32405
5 p; Z, R+ ~9 G2021-12-13 23:20:49.354 32405 INFO eventlet.wsgi.server [-] (32405) wsgi starting up on http://0.0.0.0:9292- G. T1 c' i# l
2021-12-13 23:20:49.366 32387 INFO glance.common.wsgi [-] Started child 32406( |# S N2 j; [, t
2021-12-13 23:20:49.371 32406 INFO eventlet.wsgi.server [-] (32406) wsgi starting up on http://0.0.0.0:9292: ]/ @& h e. e6 o- p
2021-12-13 23:20:49.506 32387 INFO glance.common.wsgi [-] Started child 32407( G+ v8 j+ y% I |
2021-12-13 23:20:49.510 32407 INFO eventlet.wsgi.server [-] (32407) wsgi starting up on http://0.0.0.0:9292
+ ?. p# `( S5 W# v. Z! @2021-12-13 23:20:49.553 32387 INFO glance.common.wsgi [-] Started child 32408
& F1 U$ G6 y( c W' a# @ m2021-12-13 23:20:50.180 32408 INFO eventlet.wsgi.server [-] (32408) wsgi starting up on http://0.0.0.0:92920 A) Q" T1 z3 H& e
3 ~* `# I, o3 R x
2021-12-13 23:21:17.254 32533 INFO glance.common.wsgi [-] Starting 8 workers; E8 D4 W; r# r5 n+ _7 T
2021-12-13 23:21:17.265 32562 INFO eventlet.wsgi.server [-] (32562) wsgi starting up on http://0.0.0.0:9292
4 P9 k$ T: y+ M' a& f* A- m2021-12-13 23:21:17.261 32533 INFO glance.common.wsgi [-] Started child 32562
# D0 C V( e( E* D: R2 ?4 N. M' P% `/ r3 @
2021-12-13 23:21:17.330 32533 INFO glance.common.wsgi [-] Started child 32563
. u( |+ K! L5 X2021-12-13 23:21:17.480 32563 INFO eventlet.wsgi.server [-] (32563) wsgi starting up on http://0.0.0.0:92924 e3 j" O" k7 ]) T
! j) k# F; h1 e+ F2 u) y" L, I
2021-12-13 23:21:17.488 32533 INFO glance.common.wsgi [-] Started child 325663 O9 ?9 p0 y% X q4 Y5 R
2021-12-13 23:21:17.662 32566 INFO eventlet.wsgi.server [-] (32566) wsgi starting up on http://0.0.0.0:9292# N" P7 a( d2 j! t3 O
2021-12-13 23:21:17.666 32533 INFO glance.common.wsgi [-] Started child 32567
7 e+ _6 o" Z8 M! f/ ^. p2021-12-13 23:21:17.858 32567 INFO eventlet.wsgi.server [-] (32567) wsgi starting up on http://0.0.0.0:9292; Q, t* W/ U# ]; |3 V& y
2021-12-13 23:21:17.864 32533 INFO glance.common.wsgi [-] Started child 32568; ^! ?6 Y- x5 R
2021-12-13 23:21:18.031 32568 INFO eventlet.wsgi.server [-] (32568) wsgi starting up on http://0.0.0.0:9292
7 _- q9 o; b# E( {2021-12-13 23:21:18.034 32533 INFO glance.common.wsgi [-] Started child 325693 G/ u, W5 t* G: F/ Z3 J$ _. d
2021-12-13 23:21:18.385 32569 INFO eventlet.wsgi.server [-] (32569) wsgi starting up on http://0.0.0.0:92924 V4 J( s& W! E) m# ^% B( p6 m% a
2021-12-13 23:21:18.405 32533 INFO glance.common.wsgi [-] Started child 32570& {2 D6 H! E+ m9 O: x3 ~
2021-12-13 23:21:18.408 32570 INFO eventlet.wsgi.server [-] (32570) wsgi starting up on http://0.0.0.0:9292) E0 _0 \* M9 h( N1 \- J
2021-12-13 23:21:18.413 32533 INFO glance.common.wsgi [-] Started child 325712 j& k9 m6 g- f7 U' V1 j% \0 ?
2021-12-13 23:21:18.609 32571 INFO eventlet.wsgi.server [-] (32571) wsgi starting up on http://0.0.0.0:9292& H7 u6 L3 T, \" w9 \; j6 i! C6 ]/ \
; l7 q- P/ v7 ^9 x# ^. d
9 G, u0 A5 a6 p. Y
5 i; C) W& d7 @" r; B
9 A3 I* h, j# |8 K8 R5 Q2021-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. O- F9 {" s6 i" H8 V
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
! k% x7 x* S6 _" O" _2 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! a" m) l: p# z# A3 O% M: N
" ~% B1 u6 `" Y/ s
4 x3 ~, z ?/ N2 e: u( J) R
/ ]/ Y+ }: w1 y7 z问题解决。' Y+ x4 f9 `3 |4 X, t* Q% Z: ~
+ a: Q! ]0 I' T" A% Z* d7 N4 [
( B) Q0 ^# C: @ |
|