将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 159|回复: 1
收起左侧

glance 获取命令时报错 openstack image list Unable to establish connection to http://co

[复制链接]
发表于 2021-12-18 23:07:00 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
openstack image list/ J) M: S, F6 F& i6 G0 s$ \

. a6 X8 [, \+ w- d8 fUnable 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',))& a  N+ n) [* U. J) A

1 z9 Y; L7 ^5 E, h. e; X, K
6 w3 K! e0 E! n* m; q  C查看日志:报错0 L0 R6 i( ]4 z9 ]8 E
2021-12-13 23:19:39.581 31993 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (" z6 c  |3 O1 I& P
This option is deprecated against new config option
5 d& O, A& e9 M. y( y``default_backend`` which acts similar to ``default_store`` config
4 [/ w6 q; ?' m; F: woption.' \1 M5 W* `; ^; _6 V4 S' f" g* J

5 A! M3 \  p4 K, q' q9 }+ bThis option is scheduled for removal in the U development
. N6 D+ w6 z" _  A6 f% |! {9 @cycle.
3 U! P% q' X+ c. l, `).  Its value may be silently ignored in the future.) U6 W8 Z- K9 U4 ~1 k. d4 n
2021-12-13 23:19:43.647 32010 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (
* t3 D8 X! A3 S1 ]  I/ ~6 MThis option is deprecated against new config option. ?& h' H+ ?4 t5 Y9 S
``enabled_backends`` which helps to configure multiple backend stores; J8 s5 \5 `/ }' d( G+ c/ M, }
of different schemes.  a" }# O6 f( v  Z2 S

! `3 ]  R0 \0 U8 ~$ o. {This option is scheduled for removal in the U development) o- G" i4 Z. v/ t3 X  s
cycle.
8 S0 \" A5 t3 ]: [, N1 o. ]).  Its value may be silently ignored in the future.
8 N2 i6 b) l+ W) V/ b2021-12-13 23:19:43.652 32010 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (* M2 y0 i3 G$ J( E' u9 G' m: o
This option is deprecated against new config option4 r% |6 ?- E" B
``default_backend`` which acts similar to ``default_store`` config
8 C) p( G" t2 d# b* b! roption.
+ j  E! }5 o6 j; [+ ?' {. N& K0 u: ]2 x1 ]! i
This option is scheduled for removal in the U development
* {; M5 t1 H8 y  @cycle.
3 A9 u, i# o1 u2 B- X9 f).  Its value may be silently ignored in the future.
; N; d! N, _; g+ u4 }2021-12-13 23:19:47.888 32025 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (
7 ]; q% w+ `% ^0 s# TThis option is deprecated against new config option
, {3 T8 K. l. [" G``enabled_backends`` which helps to configure multiple backend stores
; C$ H# L5 y7 J% b0 _* Vof different schemes.
1 j6 G2 ^" u  ~# L( \' A. i6 w
5 k& @8 p" }8 j6 S8 SThis option is scheduled for removal in the U development/ f, s& Z$ v, |) o: r9 w$ I' ^6 o$ x
cycle., v3 s# F9 N# o" a' |7 H3 p
).  Its value may be silently ignored in the future.# ^# x; T* x0 q7 e( p! k
2021-12-13 23:19:47.893 32025 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (
8 u; i# K. E5 _3 K+ N4 u& xThis option is deprecated against new config option% W0 q  N% F* A* v1 N
``default_backend`` which acts similar to ``default_store`` config
+ K( m: K2 w. Z6 \" k& g6 ~4 W( Eoption." N: w6 \. l  G% P3 I1 J

6 C3 F7 n' f: E# h- |This option is scheduled for removal in the U development
2 C# ?, s, _7 }cycle.
) ?. ~: }% q! O8 o).  Its value may be silently ignored in the future.
" M; c/ y; z8 z% O  c2021-12-13 23:19:51.839 32042 WARNING oslo_config.cfg [-] Deprecated: Option "stores" from group "glance_store" is deprecated for removal (
9 V* q5 T7 }" G  Q: kThis option is deprecated against new config option9 F2 Z- T2 X7 N9 T9 q' B$ {
``enabled_backends`` which helps to configure multiple backend stores
2 g+ |7 I) k9 M; l2 p+ gof different schemes.
7 \9 t  W( n) D* u/ |0 p$ V1 f: ]6 W0 y0 V8 {
This option is scheduled for removal in the U development
/ H; Q* S! ~% A2 jcycle.
- B# |% o! B$ W, j2 T) Z1 k7 Z).  Its value may be silently ignored in the future.$ ^# |' ~6 ~9 Q
2021-12-13 23:19:51.844 32042 WARNING oslo_config.cfg [-] Deprecated: Option "default_store" from group "glance_store" is deprecated for removal (' d0 s  Q4 \$ h* q0 w
This option is deprecated against new config option
6 J8 o' }; O1 b! C) p( Q/ l``default_backend`` which acts similar to ``default_store`` config* g. k8 G5 i+ y% A
option.4 c: K5 Q5 q8 t# }3 e  P5 V: O

) R' L! ^* B* J* ~, p8 O: r" K- I  B

5 R8 T$ s! [5 K4 }3 |7 t大概知道什么原因了,需要修改配置文件:
- v5 u3 \& [; y3 o5 Vvim /etc/glance/glance-api.conf
9 y  R/ ^. T+ l  j# n
/ y5 i$ s+ e2 P/ Q  x" l9 l把glance_store修改成store, @. g! y. g/ h8 N
[store]
- O3 i) H- L) q6 f9 ?- y; t! I6 l8 x8 _+ X% S% n
保存退出
. i, f% l; B+ B( M3 A, W6 L* ]$ O
( L3 A4 f, A! J) S; g2 F; b
重启服务:
# f$ X* k0 |+ k1 M[root@controller1 ~]# systemctl restart openstack-glance-api.service openstack-glance-registry.service
$ \% e$ K# A  I% O* }! n5 Z! L4 Z$ t2 ~( P( J5 f7 C7 R
; B9 K1 r  H' X" }! P% z: u0 Y
再去看日志,正常了。8 p+ f7 G: ?" }' |6 z+ f
[root@controller1 ~]# tail -f /var/log/glance/api.log
3 L; M, z. Z3 ?1 v5 I6 o9 \2021-12-13 23:20:49.337 32387 INFO glance.common.wsgi [-] Started child 32404
$ d( e5 _7 e: \* ^2021-12-13 23:20:49.343 32404 INFO eventlet.wsgi.server [-] (32404) wsgi starting up on http://0.0.0.0:92928 g5 Y: q# j; G( G8 Z
2021-12-13 23:20:49.349 32387 INFO glance.common.wsgi [-] Started child 32405# x, h7 e+ N7 w" @6 i9 A
2021-12-13 23:20:49.354 32405 INFO eventlet.wsgi.server [-] (32405) wsgi starting up on http://0.0.0.0:92924 {. l9 c8 U( S  m
2021-12-13 23:20:49.366 32387 INFO glance.common.wsgi [-] Started child 324067 j0 _% Q  O3 b0 _5 A7 z
2021-12-13 23:20:49.371 32406 INFO eventlet.wsgi.server [-] (32406) wsgi starting up on http://0.0.0.0:9292. _6 _  L; L0 p' k
2021-12-13 23:20:49.506 32387 INFO glance.common.wsgi [-] Started child 32407
4 y: C' T. d- s3 M8 l$ I( \2021-12-13 23:20:49.510 32407 INFO eventlet.wsgi.server [-] (32407) wsgi starting up on http://0.0.0.0:9292
% D% A: z& z5 y( d* \2021-12-13 23:20:49.553 32387 INFO glance.common.wsgi [-] Started child 324083 P% d8 |2 Y0 p! t* y) d2 \
2021-12-13 23:20:50.180 32408 INFO eventlet.wsgi.server [-] (32408) wsgi starting up on http://0.0.0.0:9292
& X- U) a# D: ]
6 I8 [9 e/ y# \7 s2021-12-13 23:21:17.254 32533 INFO glance.common.wsgi [-] Starting 8 workers7 @4 k4 Y) `, C# T
2021-12-13 23:21:17.265 32562 INFO eventlet.wsgi.server [-] (32562) wsgi starting up on http://0.0.0.0:9292
! o! F- {: ^) l$ ^# w$ F- u2021-12-13 23:21:17.261 32533 INFO glance.common.wsgi [-] Started child 325626 n, a# }# l9 s# O* ~) F
& m0 T# a! e" G' t+ n, n4 _& l* Z
2021-12-13 23:21:17.330 32533 INFO glance.common.wsgi [-] Started child 32563+ w3 F) i9 ?% h1 Y! e1 o; U5 ^
2021-12-13 23:21:17.480 32563 INFO eventlet.wsgi.server [-] (32563) wsgi starting up on http://0.0.0.0:92922 f$ K, J7 `/ R  o: S

/ O, j4 D1 E% P$ r/ x; X2 K* I2021-12-13 23:21:17.488 32533 INFO glance.common.wsgi [-] Started child 325664 B& N+ X( s- Z* @  `
2021-12-13 23:21:17.662 32566 INFO eventlet.wsgi.server [-] (32566) wsgi starting up on http://0.0.0.0:9292
8 [" }, V2 C# Z# U$ F! D2021-12-13 23:21:17.666 32533 INFO glance.common.wsgi [-] Started child 32567$ K. Y3 ~& b1 c4 g/ d! S% \
2021-12-13 23:21:17.858 32567 INFO eventlet.wsgi.server [-] (32567) wsgi starting up on http://0.0.0.0:9292. H: C3 ]0 Y9 Q; c
2021-12-13 23:21:17.864 32533 INFO glance.common.wsgi [-] Started child 32568
4 B3 x0 V: ]9 w+ t3 [2021-12-13 23:21:18.031 32568 INFO eventlet.wsgi.server [-] (32568) wsgi starting up on http://0.0.0.0:9292
) u! Z/ l. x1 x) O- i, u8 w# |2021-12-13 23:21:18.034 32533 INFO glance.common.wsgi [-] Started child 32569
( u, U) ~/ P0 u& ?9 E) u" X2021-12-13 23:21:18.385 32569 INFO eventlet.wsgi.server [-] (32569) wsgi starting up on http://0.0.0.0:9292# e# O6 G7 N% E4 M6 ^: L* k
2021-12-13 23:21:18.405 32533 INFO glance.common.wsgi [-] Started child 32570: U' r- q/ {# v
2021-12-13 23:21:18.408 32570 INFO eventlet.wsgi.server [-] (32570) wsgi starting up on http://0.0.0.0:9292
' f- E: x1 a5 b  |1 Q, Q2021-12-13 23:21:18.413 32533 INFO glance.common.wsgi [-] Started child 32571" S' r5 l, m1 z' h% J0 A; |. L
2021-12-13 23:21:18.609 32571 INFO eventlet.wsgi.server [-] (32571) wsgi starting up on http://0.0.0.0:9292- D& Z- B+ M7 G& V1 y* M9 p; ^
0 L, K$ m; s7 f- f

$ _' I. z& B5 |# V0 F( L; S2 V9 w. k; t$ o+ y/ X* U/ a2 v
; _! E, u0 Z, v- i7 R6 L0 j
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
& t0 `7 H# O5 j: _3 Q  [2 t! e8 B2021-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
7 E1 X. P1 e4 V& v: K- A' ?1 U2021-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
  C' k* x& D& q2 U  Y  [# b! n/ O& C1 S% M
: ~2 b% V2 C4 B/ t* W3 J' H$ Z

: K, C$ q" F7 G问题解决。9 N, U6 r) c5 K; N. z' N

. @* v$ T. {/ W8 i: W
( v  i3 x4 A# Q! x
 楼主| 发表于 2021-12-18 23:14:51 | 显示全部楼层
[root@controller1 ~]# source admin-openrc - S& }. ^! Z& K
[root@controller1 ~]# openstack image list  . C& s7 K' |, e' |

, t' ~3 C& ~2 X+ Q[root@controller1 ~]# ' ^6 ~. s1 T+ n1 n1 q
/ ^# _  g8 @9 N$ k
查看日志:' v, J# ^6 s: p4 z) U) 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" Q# u- n" e& ?
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.6247243 t# Y9 h2 C( a" t! r6 U
2021-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
8 z" o  k$ H# Z& O% b- m2 a3 }! ]- ?8 l0 W' a( E
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2022-1-22 13:58 , Processed in 0.044344 second(s), 21 queries .

Powered by LR.LINUX.cloud bbs168x X3.2 Licensed

© 2012-2022 Comsenz Inc.

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