Ask Your Question
0

stop suddenly service glance-api

asked 2015-06-08 07:04:57 -0500

Ams70 gravatar image

Hi, I install openstack in 3 nodes with openstack-install-guide-apt-juno manual in ubuntu 14.04. In add image services (glance) step, i do all the stages according to this tutorial, until i reach to the stage that need to restart glance-api services. I do this but after a moment, when I check status of this services, i notice that it was stop and not running. I check the log file:


less /var/log/glance/api.log. in the last lines this error exist:


2015-06-08 15:18:31.079 17702 ERROR glance.common.config [-] Unable to load glance-api-keyston from configuration file /etc/glance/glance-api-paste.ini. Got: LookupError("No section 'glance-api-keyston' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/glance/glance-api-paste.ini",)


Thanks full for your best suggestion.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-06-09 02:33:38 -0500

Ranjit gravatar image

updated 2015-06-09 02:35:36 -0500

Looks like some spelling misktake.

Unable to load glance-api-keyston from 

it should be glance-api-keystone

Check the glance conf for flavor settings

edit flag offensive delete link more

Comments

After some times this service goes down and when i see the log file it shows: 2015-06-09 11:45:58.926 31650 ERROR glance.common.config [-] Unable to load glance-api-keystone from configuration file /etc/glance/glance-api-paste.ini.* Got: ImportError('cannot import name loads',)*

Ams70 gravatar imageAms70 ( 2015-06-09 03:19:31 -0500 )edit

this configuration should load at the time of service start so to further debug,

clean the log 
start the service (debug and verbose mode)
and paste the log here
Ranjit gravatar imageRanjit ( 2015-06-09 04:04:45 -0500 )edit
0

answered 2015-06-09 05:01:39 -0500

Ams70 gravatar image

updated 2015-06-10 01:40:48 -0500

[pipeline:glance-api]

pipeline = versionne gotiation osprofiler unauthenticated-context rootapp

[pipeline:glance-api-caching]

pipeline = versionnegotiation osprofiler unauthenticated-context cache rootapp

[pipeline:glance-api-cachemanagement]

pipeline = versionnegotiation osprofiler unauthenticated-context cache cachemanage rootapp

[pipeline:glance-api-keystone]

pipeline = versionnegotiation osprofiler authtoken context rootapp

[pipeline:glance-api-keystone+caching]

pipeline = versionnegotiation osprofiler authtoken context cache rootapp

[pipeline:glance-api-keystone+cachemanagement]

pipeline = versionnegotiation osprofiler authtoken context cache cachemanage rootapp

[pipeline:glance-api-trusted-auth]

pipeline = versionnegotiation osprofiler context rootapp

[pipeline:glance-api-trusted-auth+cachemanagement]

pipeline = versionnegotiation osprofiler context cache cachemanage rootapp

[composite:rootapp]

paste.composite_factory = glance.api:root_app_factory

/: apiversions

/v1: apiv1app

/v2: apiv2app

[app:apiversions]

paste.app_factory = glance.api.versions:create_resource

[app:apiv1app]

paste.app_factory = glance.api.v1.router:API.factory

[app:apiv2app]

paste.app_factory = glance.api.v2.router:API.factory

[filter:versionnegotiation]

paste.filter_factory = glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory

[filter:cache]

paste.filter_factory = glance.api.middleware.cache:CacheFilter.factory

[filter:cachemanage]

paste.filter_factory = glance.api.middleware.cache_manage:CacheManageFilter.factory

[filter:context]

paste.filter_factory = glance.api.middleware.context:ContextMiddleware.factory

[filter:unauthenticated-context]

paste.filter_factory = glance.api.middleware.context:UnauthenticatedContextMiddleware.factory

[filter:authtoken]

paste.filter_factory = keystonemiddleware.auth_token:filter_factory

delay_auth_decision = true

[filter:gzip]

paste.filter_factory = glance.api.middleware.gzip:GzipMiddleware.factory

[filter:osprofiler]

paste.filter_factory = osprofiler.web:WsgiMiddleware.factory

hmac_keys = SECRET_KEY

enabled = yes

edit flag offensive delete link more

Comments

configuration file /etc/glance/glance-$ what is $ ??

some configuration problem. This is not proper file. It should be /etc/glance/glance-api-paste.ini.

Because of wrong file, paste module is not loading the module.

let us know glance related conf details

Ranjit gravatar imageRanjit ( 2015-06-09 05:46:05 -0500 )edit

This error line indeed is :

  • List item

2015-06-09 13:18:54.948 11353 ERROR glance.common.config [-] Unable to load glance-api-keystone from configuration file /etc/glance/glance-api-paste.ini. that does not show in copy and paste.

Ams70 gravatar imageAms70 ( 2015-06-09 06:07:45 -0500 )edit

ok. fine.

Do you have below line in file /etc/glance/glance-api-paste.ini. ADD it if not present

[pipeline:glance-api-keystone]

pipeline = versionnegotiation osprofiler authtoken context rootapp

Ranjit gravatar imageRanjit ( 2015-06-09 06:24:50 -0500 )edit

Yes of course, i have this in /etc/glance/glance-api-paste.ini file.

Ams70 gravatar imageAms70 ( 2015-06-09 06:46:16 -0500 )edit

Share your conf files. I will try to compare with mine. :)

Ranjit gravatar imageRanjit ( 2015-06-09 07:41:51 -0500 )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

1 follower

Stats

Asked: 2015-06-08 07:04:57 -0500

Seen: 955 times

Last updated: Jun 10 '15