- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
同步数据库时报错:- k. }4 P# f* S; v j( i
% y" i8 M' x! D9 B
oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/glance/glance-api.conf: at /etc/glance/glance-api.conf:1, Unexpected continuation line: ' [DEFAULT]'" l c" R/ @" q. \8 q8 n. D2 f
9 q+ a, A8 q$ I9 _% B
w完整的信息如下:% k# O4 A3 [. |
# su -s /bin/sh -c "glance-manage db_sync" glance: h) i1 D( F) o& |5 ^
Traceback (most recent call last):
9 x$ _0 C0 Y4 P9 e File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 1608, in _parse_file
# ~5 f/ g% G* |, v( t parser.parse(), @, p7 B- B( I C
File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 1563, in parse5 t1 X) @# R! B* E* }
return super(ConfigParser, self).parse(f.readlines())
P/ [" m4 L' ?; N. \4 n4 h File "/usr/lib/python3.6/site-packages/oslo_config/iniparser.py", line 74, in parse) w3 G f7 c9 |2 l0 F: k5 Z: Q* `
self.error_unexpected_continuation(line)) k; G9 f) ^$ d
File "/usr/lib/python3.6/site-packages/oslo_config/iniparser.py", line 120, in error_unexpected_continuation
8 ?% u- Q+ ~# E' T+ X: D self.lineno, line)
% v* x9 i1 ^: G) x5 `oslo_config.cfg.ParseError: at /etc/glance/glance-api.conf:1, Unexpected continuation line: ' [DEFAULT]'! D: Z5 l7 ?" Z7 a# a& k' W
. k- r- [+ g v: dDuring handling of the above exception, another exception occurred:3 Q& d) p! ^. B \/ G+ W
7 }9 Z) n- t* u: ^6 `( f8 E
Traceback (most recent call last):$ k2 o6 I) y, H% m+ o. y7 O& o
File "/usr/bin/glance-manage", line 10, in <module>
$ b; Z H" b' V9 l0 v0 d$ m sys.exit(main())4 s5 ?/ W* ^( V4 |# b
File "/usr/lib/python3.6/site-packages/glance/cmd/manage.py", line 555, in main9 S n" x2 U0 y" f: R' Q* U: [
config.parse_args(default_config_files=cfg_files)
8 y% ^* Q+ K# l$ s @2 D# L File "/usr/lib/python3.6/site-packages/glance/common/config.py", line 718, in parse_args" J `. Q2 @; S! H9 U1 L
default_config_files=default_config_files)5 Z5 |; x1 K- O- g5 i5 J4 A! l; M/ O
File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2136, in __call__# S) `) f7 a/ ~* `4 M7 w- @
else sys.argv[1:])0 m$ s- w, ]. P& f
File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2901, in _parse_cli_opts
+ S, b) s& ~6 r* [( F# P return self._parse_config_files()
, Y! @3 X7 E, L File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2918, in _parse_config_files e8 [( K8 ]- |5 T" x5 \
ConfigParser._parse_file(config_file, namespace)
- [& v i V# Q File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 1610, in _parse_file* `& x* F& Z- }+ X a z/ C# x
raise ConfigFileParseError(pe.filename, str(pe)) g* b4 _+ ~3 @; m9 T
oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/glance/glance-api.conf: at /etc/glance/glance-api.conf:1, Unexpected continuation line: ' [DEFAULT]', N4 J: X6 v K* l ~4 z6 k
& q7 `# N/ @: } Z$ E
A2 v+ q0 Q2 a& c$ V1 _( B+ ~su -s /bin/sh -c "glance-manage db_sync" glance
" V3 E# i' X$ i. r6 _. n& |Traceback (most recent call last):
. Z3 |2 `5 D" V; F! z File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 1608, in _parse_file
% U9 K+ y' }$ F parser.parse()
: j3 q5 S4 e [) { File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 1563, in parse
' N( M" v! H+ M& x return super(ConfigParser, self).parse(f.readlines())
; C! t* A' o5 q$ e File "/usr/lib/python3.6/site-packages/oslo_config/iniparser.py", line 74, in parse
" T6 m* L9 C6 L# D self.error_unexpected_continuation(line)
4 u3 O0 C$ r4 r File "/usr/lib/python3.6/site-packages/oslo_config/iniparser.py", line 120, in error_unexpected_continuation0 p( t; @# m6 q ]( H% |' N
self.lineno, line)/ K+ K0 p7 }, S6 d
oslo_config.cfg.ParseError: at /etc/glance/glance-api.conf:1, Unexpected continuation line: ' [DEFAULT]'
5 v& U& x& a8 u1 C" R
2 D( O: h0 `1 y; f* |1 tDuring handling of the above exception, another exception occurred:8 P- U# K. b8 }
. M8 q' i7 |: I9 c+ pTraceback (most recent call last):: \4 d$ M* g5 l
File "/usr/bin/glance-manage", line 10, in <module>
/ G3 p, o% q# y j B sys.exit(main()), K+ H+ h2 C' X2 m3 M1 c/ Q# O
File "/usr/lib/python3.6/site-packages/glance/cmd/manage.py", line 555, in main
5 i( `0 G2 b5 H! Q0 r! } config.parse_args(default_config_files=cfg_files) Z2 ^" P$ n' C- v. o" q
File "/usr/lib/python3.6/site-packages/glance/common/config.py", line 718, in parse_args
8 m; z% n- J8 ?, q default_config_files=default_config_files)4 J3 y; {9 @+ {, ~6 C
File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2136, in __call__
- E! t9 Z I; T' S8 ~: W, a7 n: m else sys.argv[1:])/ q' [2 f: i' I1 e" F/ K5 O
File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2901, in _parse_cli_opts
Y3 N s/ X1 M7 Z3 K1 P) d% _# Q# y return self._parse_config_files()7 N4 r9 G/ W8 Q- H$ [# l$ O. P
File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 2918, in _parse_config_files
* @6 X* _- }% P ConfigParser._parse_file(config_file, namespace)
. K3 }7 s8 z: x1 Y( {0 ]8 T File "/usr/lib/python3.6/site-packages/oslo_config/cfg.py", line 1610, in _parse_file2 T A5 Y" V* v
raise ConfigFileParseError(pe.filename, str(pe))/ g& T0 R4 F( s5 ?
oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/glance/glance-api.conf: at /etc/glance/glance-api.conf:1, Unexpected continuation line: ' [DEFAULT]'0 h K; C7 J( c5 S F/ i
) V6 Y; L, L: H l检查glance-api.conf文件,和glance-register.conf文件+ E# Q2 y) w T/ G: d1 z/ h
& [2 R, M- Z- N: W0 [[root@controller ~]# vim /etc/glance/glance-api.conf
: l$ c: {" u! }5 f5 m' ^+ s+ z3 Z4 R( X. a/ a2 E* A
vim /etc/glance/glance-registry.conf6 E3 k( r! r; Z8 {0 S8 c( e
2 [6 {% Y& {% J% G2 ^8 x4 }
) J6 n. H% R/ y+ }% r[root@controller ~]# su -s /bin/sh -c "glance-manage db_sync" glance
0 |2 Z. \: ?3 Y8 g; J% ~INFO [alembic.runtime.migration] Context impl MySQLImpl.
8 j/ q* i; D/ k) b# S1 U* U& {INFO [alembic.runtime.migration] Will assume non-transactional DDL.
; [- c- b j* ], _/usr/lib/python3.6/site-packages/pymysql/cursors.py:170: Warning: (1280, "Name 'alembic_version_pkc' ignored for PRIMARY key.")5 ^* h9 H7 d6 {0 q
result = self._query(query)& f" b( c3 c5 e3 J6 ~, O
INFO [alembic.runtime.migration] Running upgrade -> liberty, liberty initial
- |/ U; w* m5 ^# m# Y' G8 ~INFO [alembic.runtime.migration] Running upgrade liberty -> mitaka01, add index on created_at and updated_at columns of 'images' table
; b& g: `* Z1 J8 \. B8 lINFO [alembic.runtime.migration] Running upgrade mitaka01 -> mitaka02, update metadef os_nova_server1 K# B! o I3 l, M0 K
INFO [alembic.runtime.migration] Running upgrade mitaka02 -> ocata_expand01, add visibility to images1 a; |5 Q# E: d; A
INFO [alembic.runtime.migration] Running upgrade ocata_expand01 -> pike_expand01, empty expand for symmetry with pike_contract01
1 v9 v+ L# ^- t4 G& PINFO [alembic.runtime.migration] Running upgrade pike_expand01 -> queens_expand01. A2 y* P3 m; _/ b% P, v$ B
INFO [alembic.runtime.migration] Running upgrade queens_expand01 -> rocky_expand01, add os_hidden column to images table
& S) |' D3 u5 o1 aINFO [alembic.runtime.migration] Running upgrade rocky_expand01 -> rocky_expand02, add os_hash_algo and os_hash_value columns to images table
t. k c! F% H: b+ a' N1 K. OINFO [alembic.runtime.migration] Running upgrade rocky_expand02 -> train_expand01, empty expand for symmetry with train_contract01. l. G" q/ @( w. W4 o0 ]% }8 b4 h+ c& Y
INFO [alembic.runtime.migration] Running upgrade train_expand01 -> ussuri_expand01, empty expand for symmetry with ussuri_expand01* z5 R& \& q% `0 W; l
INFO [alembic.runtime.migration] Context impl MySQLImpl., `+ E7 H3 D9 A0 u
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
1 l9 x( { V9 N I: dUpgraded database to: ussuri_expand01, current revision(s): ussuri_expand01: t% s! x) p( i8 F0 }6 ]
INFO [alembic.runtime.migration] Context impl MySQLImpl.
% l+ c6 _4 H5 m% @: M& \2 DINFO [alembic.runtime.migration] Will assume non-transactional DDL.
; m2 r9 D$ ?" _8 R! JINFO [alembic.runtime.migration] Context impl MySQLImpl.
0 g/ X, C: D' l- S+ k' j! _5 gINFO [alembic.runtime.migration] Will assume non-transactional DDL.
M& g4 o1 }. I2 A( HDatabase migration is up to date. No migration needed.
7 w! `' b: n- l4 q2 v% u, K1 P- `INFO [alembic.runtime.migration] Context impl MySQLImpl.1 R9 q( i" j3 f# O9 x* @
INFO [alembic.runtime.migration] Will assume non-transactional DDL.& T+ k% b. M7 P( g; z
INFO [alembic.runtime.migration] Context impl MySQLImpl." q( _! b r; ?3 m
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
7 [0 {7 S) z1 a3 g3 G, uINFO [alembic.runtime.migration] Running upgrade mitaka02 -> ocata_contract01, remove is_public from images& w# g, y/ ^ ~7 c* c
INFO [alembic.runtime.migration] Running upgrade ocata_contract01 -> pike_contract01, drop glare artifacts tables$ P6 F9 ^" ]& l$ L+ M1 |- s
INFO [alembic.runtime.migration] Running upgrade pike_contract01 -> queens_contract01
0 a( L7 D7 X1 J5 p- wINFO [alembic.runtime.migration] Running upgrade queens_contract01 -> rocky_contract01" Y6 R+ P2 c0 ~$ l' D' X1 j( Z7 |
INFO [alembic.runtime.migration] Running upgrade rocky_contract01 -> rocky_contract02
" a, Z: W' K+ F, n5 FINFO [alembic.runtime.migration] Running upgrade rocky_contract02 -> train_contract015 l0 K) W& v) j7 Z
INFO [alembic.runtime.migration] Running upgrade train_contract01 -> ussuri_contract01
H4 q. x. e2 V- X* KINFO [alembic.runtime.migration] Context impl MySQLImpl.* o c; X6 b4 Z! G* N/ w
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
2 c6 j; G3 g2 S: B7 W) DUpgraded database to: ussuri_contract01, current revision(s): ussuri_contract01
' [2 c- w( O$ n% K* wINFO [alembic.runtime.migration] Context impl MySQLImpl.4 f% K1 U$ g; j1 Z
INFO [alembic.runtime.migration] Will assume non-transactional DDL.% J% m4 V5 u9 w( W0 C! _* M2 z
Database is synced successfully.
3 `6 V" {8 ^4 S9 j- E9 d7 `2 X/ c* |8 y5 R1 O b4 \+ n9 E$ ]* c( Y% S
3 O* n6 S! c/ i5 Y
. ]' z8 o$ S' t8 b# D8 F
/ k0 u8 ] r2 |* l4 `
|
|