Ask Your Question
0

Failed to start OpenStack Image Service (code-named Glance) API server.

asked 2015-05-10 02:42:09 -0600

updated 2015-07-13 11:54:56 -0600

smaffulli gravatar image

Hello everyone , First i'm new to openstack . I want to install Openstack in three machines controller ,compute and network using the Guide ;OpenStack Installation Guide for Red Hat Enterprise Linux 7, CentOS 7,Fedora 20 . First i prepared the environment ;networking ,NTP ,openstack packages,Database and MQ. I do install identity service ,configuration and test all is better . seconde i tried to add the image service (glance ) so i installed the packages and configure the files ,but when i try to finalize installation by starting glance services with : systemctl start openstack-glance-api.service openstack-glance-registry. i got the error

 systemctl start openstack-glance-api.service
 Job for openstack-glance-api.service failed. See 'systemctl status openstack-glance-api.service' and 'journalctl -xn' for details.

that's the result :

 [root@controller ~]# systemctl status openstack-glance-api.service
openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled)
   Active: failed (Result: start-limit) since sam. 2015-05-09 23:54:24 CEST; 3min 57s ago
  Process: 1157 ExecStart=/usr/bin/glance-api (code=exited, status=1/FAILURE)
 Main PID: 1157 (code=exited, status=1/FAILURE)

mai 09 23:54:24 controller systemd[1]: openstack-glance-api.service: main process exited, code=exited, status=1/FAILURE
mai 09 23:54:24 controller systemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server.
mai 09 23:54:24 controller systemd[1]: Unit openstack-glance-api.service entered failed state.
mai 09 23:54:24 controller systemd[1]: openstack-glance-api.service holdoff time over, scheduling restart.
mai 09 23:54:24 controller systemd[1]: Stopping OpenStack Image Service (code-named Glance) API server...
mai 09 23:54:24 controller systemd[1]: Starting OpenStack Image Service (code-named Glance) API server...
mai 09 23:54:24 controller systemd[1]: openstack-glance-api.service start request repeated too quickly, refusing to start.
mai 09 23:54:24 controller systemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server.
mai 09 23:54:24 controller systemd[1]: Unit openstack-glance-api.service entered failed state.
Vous avez du nouveau courrier dans /var/spool/mail/root
[root@controller ~]#
edit retag flag offensive close merge delete

Comments

Can you provide some log from /var/log/glance/ ?

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-07-12 15:15:28 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-07-11 20:43:25 -0600

GfengWong gravatar image

updated 2015-07-13 11:54:10 -0600

smaffulli gravatar image

Hi man, I also met the same problem, can you tell me you solved?

This question was solved, it is most likely a bug. Error information only less: "openstack-glance-api.service start request repeated too quickly, refusing to start" , no log,and no others. In addition to the error, everything is normal. I sync the neutron database used this command glance-manage db_sync (user is root), no error. when I used su -s /bin/sh -c "glance-manage db_sync" glance I get the following error:

Traceback (most recent call last):
  File "/usr/bin/glance-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/glance/cmd/manage.py", line 273, in main
    log.setup('glance')
  File "/usr/lib/python2.7/site-packages/glance/openstack/common/log.py", line 460, in setup
    _setup_logging_from_conf(product_name, version)
  File "/usr/lib/python2.7/site-packages/glance/openstack/common/log.py", line 529, in _setup_logging_from_conf
    filelog = logging.handlers.WatchedFileHandler(logpath)
  File "/usr/lib64/python2.7/logging/handlers.py", line 392, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib64/python2.7/logging/__init__.py", line 902, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib64/python2.7/logging/__init__.py", line 925, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/var/log/glance/api.log

Last was shows:api.log permission denied, so I check /var/log/glance/api.log permission

# ll /var/log/glance/api.log
-rw-r--r--. 1 root glance 14783 Jul 11 22:25 /var/log/glance/api.log

I change it chown -R glance:glance /etc/log/glance/api.log,then Error has been resolved.

edit flag offensive delete link more

Comments

can you share glance logs?

rishi gravatar imagerishi ( 2015-07-13 01:23:01 -0600 )edit

Thanks for your reply! This question has benn solved. This is a openstack bug.and someone has been submitted to the community, but I just see. I solve the problem of process is like this: http://blog.csdn.net/moolight_shadow/article/details/46848771 (http://blog.csdn.net/moolight_shadow/...) (if you don't understand chinese,I'll reply below

GfengWong gravatar imageGfengWong ( 2015-07-13 02:29:43 -0600 )edit

yes, changing permission for api.log resolves issue.

prashantvarma gravatar imageprashantvarma ( 2015-07-17 23:15:18 -0600 )edit

This worked for me following the latest Liberty documentation.

msanabria11 gravatar imagemsanabria11 ( 2016-03-03 11:32:33 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-05-10 02:42:09 -0600

Seen: 6,737 times

Last updated: Jul 13 '15