你好 pig2
在一直看你的文档,在进行到 4.填充 the Image Service 数据库:
su -s /bin/sh -c "glance-manage db_sync" glance 的时候一直报错误。
root@controller:/etc# su -s /etc -c "glance-manage db_sync" glance
/etc: /etc: is a directory
root@controller:/etc# su -s /bin/sh -c "glance-manage db_sync" glance
Traceback (most recent call last):
File "/usr/bin/glance-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/glance/cmd/manage.py", line 272, in main
usage="%(prog)s [options] <cmd>")
File "/usr/lib/python2.7/dist-packages/glance/common/config.py", line 163, in parse_args
default_config_files=default_config_files)
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1681, in __call__
else sys.argv[1:])
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2227, in _parse_cli_opts
return self._parse_config_files()
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 2241, in _parse_config_files
ConfigParser._parse_file(config_file, namespace)
File "/usr/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1303, in _parse_file
raise ConfigFileParseError(pe.filename, str(pe))
oslo.config.cfg.ConfigFileParseError: Failed to parse /etc/glance/glance-api.conf: at /etc/glance/glance-api.conf:3, Unexpected continuation line: ' verbose = True'
----------------------------------------------------------------------------------------------
root@controller:/etc# vim /etc/glance/glance-api.conf
[DEFAULT]
# Show more verbose log output (sets INFO log level output)
verbose = True
# Show debugging output in logs (sets DEBUG log level output)
#debug = False