Ask Your Question
0

Upgrading to Diablo - glance install fails

asked 2011-10-08 11:32:37 -0500

stevej gravatar image

Still trying to install Diablo - this time following instructions in Openstack admin manual: http://docs.openstack.org/diablo/openstack-compute/admin/content/installing-the-cloud-controller.html (http://docs.openstack.org/diablo/open...) After command 'sudo apt-get install glance' I am getting this error: Unpacking glance (from .../glance_2012.1~e1~20111006.1039-0ubuntu0ppa1~natty1_all.deb) ... Processing triggers for ureadahead ... Setting up glance (2012.1~e1~20111006.1039-0ubuntu0ppa1~natty1) ... ERROR: Error trying to load config /etc/glance/glance-registry.conf: No module named api.v1 dpkg: error processing glance (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: glance E: Sub-process /usr/bin/dpkg returned an error code (1)

I looked at the /etc/glance/glance-regisry.conf and saw no reference to api.v1

Any ideas of what could be wrong?

edit retag flag offensive close merge delete

11 answers

Sort by ยป oldest newest most voted
0

answered 2011-10-18 18:44:42 -0500

jaypipes gravatar image

What specifically is the error, though? Is there any output in the glance-registry log?

edit flag offensive delete link more
0

answered 2011-10-18 19:07:10 -0500

somikbehera gravatar image

Didn't generate any log in /var/log/glance , just the error message on command line.

edit flag offensive delete link more
0

answered 2011-10-18 18:30:41 -0500

somikbehera gravatar image

Instead of post-install script, I am manually running db sync, and thats when I run into this error.

sudo glance-manage db_sync --config-file=/etc/glance-registry.conf

edit flag offensive delete link more
0

answered 2011-10-18 17:46:33 -0500

somikbehera gravatar image

I tried to install glance from source, checking out diablo branch from git, and I am running into the same issue.

edit flag offensive delete link more
0

answered 2011-10-18 18:04:35 -0500

jaypipes gravatar image

The original poster was installing from packages (sudo apt-get install glance) and the error was a packaging error. How are you getting a packaging error if you are installing from a source repository?

edit flag offensive delete link more
0

answered 2011-10-10 14:50:35 -0500

Can you post your /etc/glance/glance-registry.conf file?

edit flag offensive delete link more
0

answered 2011-10-10 15:21:26 -0500

stevej gravatar image

Hi Brian Haven't changed much. Here it is: Hi Brian Here it is. About the only thing I changed was the sql connection, but I was getting the error before I did that. root@222-200:/etc/glance# cat glance-registry.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

Address to bind the registry server

bind_host = 0.0.0.0

Port the bind the registry server to

bind_port = 9191

Log to this file. Make sure you do not set the same log

file for both the API and registry servers!

log_file = /var/log/glance/registry.log

Send logs to syslog (/dev/log) instead of to file specified by log_file

use_syslog = False

SQLAlchemy connection string for the reference implementation

registry server. Any valid SQLAlchemy connection string is fine.

See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine (http://www.sqlalchemy.org/docs/05/ref...)

#sql_connection = sqlite:////var/lib/glance/glance.sqlite sql_connection=mysql://root:nova@78.153.222.200/glance

Period in seconds after which SQLAlchemy should reestablish its connection

to the database.

#

MySQL uses a default wait_timeout of 8 hours, after which it will drop

idle connections. This can result in 'MySQL Gone Away' exceptions. If you

notice this, you can lower this value to ensure that SQLAlchemy reconnects

before MySQL can drop the connection.

sql_idle_timeout = 3600

Limit the api to return param_limit_max items in a call to a container. If

a larger limit query param is provided, it will be reduced to this value.

api_limit_max = 1000

If a limit query param is not provided in an api request, it will

default to limit_param_default

limit_param_default = 25

[pipeline:glance-registry] pipeline = context registryapp

NOTE: use the following pipeline for keystone

pipeline = authtoken keystone_shim context registryapp

[app:registryapp] paste.app_factory = glance.registry.api.v1:app_factory

[filter:context] context_class = glance.registry.context.RequestContext paste.filter_factory = glance.common.context:filter_factory

[filter:authtoken] paste.filter_factory = keystone.middleware.auth_token:filter_factory service_protocol = http service_host = 127.0.0.1 service_port = 5000 auth_host = 127.0.0.1 auth_port = 5001 auth_protocol = http auth_uri = http://127.0.0.1:5000/ admin_token = 999888777666

[filter:keystone_shim] paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory

edit flag offensive delete link more
0

answered 2011-10-11 20:36:54 -0500

I'm confused by what you said. I definitely see api.v1 in the [app:registryapp] section in the config file you pasted.

edit flag offensive delete link more
0

answered 2011-10-18 19:20:17 -0500

jaypipes gravatar image

On Tue, Oct 18, 2011 at 3:10 PM, Somik Behera question173644@answers.launchpad.net wrote:

Question #173644 on Glance changed: https://answers.launchpad.net/glance/...

Somik Behera requested more information: Didn't generate any log in /var/log/glance , just the error message on command line.

What IS the error message on the command line?! -jay

edit flag offensive delete link more
0

answered 2011-10-18 21:19:01 -0500

somikbehera gravatar image

My bad, its the same error as the reporter of this question was experiencing.

ERROR: Error trying to load config /etc/glance/glance-registry.conf: No module named api.v1

I did check my glance-registry, and its looking for api.v1

[app:registryapp] paste.app_factory = glance.registry.api.v1:app_factory

edit flag offensive delete link more

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: 2011-10-08 11:32:37 -0500

Seen: 81 times

Last updated: Oct 19 '11