glance-api & glance-registry respawning

asked 2012-04-16 11:19:52 -0600

hello iam doing essex release deployment

when i restart the glance-api , glance-registry services it gives glance-api respawning too fast, stopped glance-registry respawning too fast, stopped

iam pasting glance-api.conf----- glance-api-paste.ini ---

glance-registry.conf---- glance-registry-paste.ini----

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2012-04-16 16:03:35 -0600

eglynn gravatar image

Hi Ritesh,

Are you launching the glance services with the --respawn option?


$ sudo glance-control api start --respawn

or are you starting the services directly?

The respawning too fast error is intended to catch the case where the service is bouncing (i.e. launching then failing immediately with an error).

Can you check if you can launch directly, e.g.:

$ sudo glance-api [--config-file /path/to/api/config/file]

Also can you check the api and resistry log files for errors?

edit flag offensive delete link more

answered 2012-04-16 16:59:25 -0600

Hello Eoghan,

No iam not launching with respawn option, yes the service is bouncing n regarding logs , till then glance-api and registry does'nt get started there are no logs for them, only syslog shows the respawning for the both services.

Stil i will try what you are asking to launch it directly .

edit flag offensive delete link more

answered 2012-04-17 15:22:39 -0600

marco-consonni gravatar image


I've experimented the same diagnostic in syslog.

The problem seems to be related to the daemon's log files created during previous runs.

Go to the glance log directory (usually /var/log/glance) and verify what user the log files (api.log and registry.log) belong to.

If they do not belong to glance - glance, you get troubles because glance services are launched with that user (check scripts /etc/init/glance-api.conf and /etc/init/glance-registry.conf at line that says "su su -s /bin/sh -c "exec ....).

In order to fix the problem, remove or rename the log files in /var/log/glance and let the daemons created those themselves.

After removing/renaming the log files, just restart the services.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2012-04-16 11:19:52 -0600

Seen: 80 times

Last updated: Apr 17 '12