Ask Your Question
0

glance-api fails to start and establish port connection

asked 2015-02-20 11:59:50 -0500

ALU.RDC gravatar image

updated 2015-02-20 12:19:16 -0500

Hello everyone. Let me get you the background for my set up first: I have 1 single server, with 1 active network interface. I'm running OpenSuSE 13.1. I'm trying to install Openstack-glance. I have the option of running through a proxy, but at the moment, I have it set to disabled in /etc/sysconfig/proxy. My export list has no proxy variables set. but I did have a no_proxy="localhost, 127.0.0.1, <myip" variable="" set="" at="" one="" time="" during="" testing.="" <="" p="">

  1. Now I have keystone running but the state is in Active (exited), what does this mean exactly? Will the the fact that it's "exited" effect certain connections?

  2. I installed glance, and made the neccessary changes. But upon set up, only glance-registry starts. glance-api fails. I checked the logs and received this after running glance-api --config-file /etc/glance/glance-api.conf --debug

    2015-02-20 03:02:31.056 3932 DEBUG glance.store [-] Attempting to import store glance.store.filesystem.Store _get_store_class /usr/lib/python2.7/site-packages/glance/store/__init__.py:146 2015-02-20 03:02:31.057 3932 DEBUG glance.store [-] Registering store <class 'glance.store.filesystem.store'=""> with schemes ('file', 'filesystem') create_stores /usr/lib/python2.7/site-packages/glance/store/__init__.py:176 2015-02-20 03:02:31.057 3932 DEBUG glance.store.base [-] Late loading location class glance.store.filesystem.StoreLocation get_store_location_class /usr/lib/python2.7/site-packages/glance/store/base.py:82 2015-02-20 03:02:31.058 3932 DEBUG glance.store.location [-] Registering scheme file with {'store_class': <class 'glance.store.filesystem.store'="">, 'location_class': <class 'glance.store.filesystem.storelocation'="">} register_scheme_map /usr/lib/python2.7/site-packages/glance/store/location.py:86 2015-02-20 03:02:31.058 3932 DEBUG glance.store.location [-] Registering scheme filesystem with {'store_class': <class 'glance.store.filesystem.store'="">, 'location_class': <class 'glance.store.filesystem.storelocation'="">} register_scheme_map /usr/lib/python2.7/site-packages/glance/store/location.py:86 2015-02-20 03:02:31.058 3932 DEBUG glance.store [-] Attempting to import store glance.store.http.Store _get_store_class /usr/lib/python2.7/site-packages/glance/store/__init__.py:146 2015-02-20 03:02:31.059 3932 DEBUG glance.store [-] Registering store <class 'glance.store.http.store'=""> with schemes ('http', 'https') create_stores /usr/lib/python2.7/site-packages/glance/store/__init__.py:176 2015-02-20 03:02:31.059 3932 DEBUG glance.store.base [-] Late loading location class glance.store.http.StoreLocation get_store_location_class /usr/lib/python2.7/site-packages/glance/store/base.py:82 2015-02-20 03:02:31.059 3932 DEBUG glance.store.location [-] Registering scheme http with {'store_class': <class 'glance.store.http.store'="">, 'location_class': <class 'glance.store.http.storelocation'="">} register_scheme_map /usr/lib/python2.7/site-packages/glance/store/location.py:86 2015-02-20 03:02:31.059 3932 DEBUG glance.store.location [-] Registering scheme https with {'store_class': <class 'glance.store.http.store'="">, 'location_class': <class 'glance.store.http.storelocation'="">} register_scheme_map /usr/lib/python2.7/site-packages/glance/store/location.py:86 2015-02-20 03:02:31.060 3932 DEBUG glance.store [-] Attempting to import store glance.store.rbd.Store _get_store_class /usr/lib/python2.7/site-packages/glance/store/__init__.py:146 2015-02-20 ...

(more)
edit retag flag offensive close merge delete

Comments

once check the database connection and keystone credentials in /etc/glance/glance-api.conf

Saikiran Veeravarapu gravatar imageSaikiran Veeravarapu ( 2015-02-20 12:32:28 -0500 )edit

my auth section of /etc/glance/glance-api.conf: auth_uri = http://127.0.0.1:5000/v2.0 identity_uri = http://127.0.0.1:35357 admin_tenant_name = service admin_user = glance admin_password

It looks good to me, everything checks out.. and I can connect to the keystone db

ALU.RDC gravatar imageALU.RDC ( 2015-02-20 13:09:55 -0500 )edit

Ok, I may have mis-diagnosed my problem. I saw that 9292 port as listening on netstat because that was the glance-api program... So it gets as far enough along to bring up the port to a listening state, but fails after that.

ALU.RDC gravatar imageALU.RDC ( 2015-02-20 13:24:57 -0500 )edit

Because now, once I killed the hanging glance-api program, and the 9292 port is no longer being used by it. I try to start a new glance-api process...and it just hangs here:

2015-02-20 04:37:10.905 4332 DEBUG glance.common.config [-] ********************

ALU.RDC gravatar imageALU.RDC ( 2015-02-20 13:27:40 -0500 )edit

2015-02-20 04:37:10.905 4332 DEBUG glance.common.config [-] ************************** log_opt_values /usr/lib/python2.7/site-packages/oslo/config/cfg.py:1951

ALU.RDC gravatar imageALU.RDC ( 2015-02-20 13:28:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-20 14:54:20 -0500

ALU.RDC gravatar image

Got it working. I'm not 100% sure on the issue maybe someone can explain what happened, but I had to run :

glance-manage db_sync

Running this gave me the following output:

2015-02-20 05:58:23.524 4635 DEBUG migrate.versioning.util [-] Constructing engine construct_engine /usr/lib/python2.7/site-packages/migrate/versioning/util/__init__.py:136 2015-02-20 05:58:23.528 4635 DEBUG migrate.versioning.repository [-] Loading repository /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/repository.py:76 2015-02-20 05:58:23.529 4635 DEBUG migrate.versioning.script.base [-] Loading script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/001_add_images_table.py... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:26 2015-02-20 05:58:23.530 4635 DEBUG migrate.versioning.script.base [-] Script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/001_add_images_table.py loaded successfully __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:29 2015-02-20 05:58:23.530 4635 DEBUG migrate.versioning.script.base [-] Loading script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/002_add_image_properties_table.py... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:26 2015-02-20 05:58:23.530 4635 DEBUG migrate.versioning.script.base [-] Script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/002_add_image_properties_table.py loaded successfully __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:29 2015-02-20 05:58:23.530 4635 DEBUG migrate.versioning.script.base [-] Loading script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_sqlite_upgrade.sql... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:26 2015-02-20 05:58:23.531 4635 DEBUG migrate.versioning.script.base [-] Script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_sqlite_upgrade.sql loaded successfully __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:29 2015-02-20 05:58:23.531 4635 DEBUG migrate.versioning.script.base [-] Loading script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_sqlite_downgrade.sql... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:26 2015-02-20 05:58:23.531 4635 DEBUG migrate.versioning.script.base [-] Script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_sqlite_downgrade.sql loaded successfully __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:29 2015-02-20 05:58:23.531 4635 DEBUG migrate.versioning.script.base [-] Loading script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_add_disk_format.py... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:26 2015-02-20 05:58:23.531 4635 DEBUG migrate.versioning.script.base [-] Script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/003_add_disk_format.py loaded successfully __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:29 2015-02-20 05:58:23.532 4635 DEBUG migrate.versioning.script.base [-] Loading script /usr/lib/python2.7/site-packages/glance/db/sqlalchemy/migrate_repo/versions/004_add_checksum.py... __init__ /usr/lib/python2.7/site-packages/migrate/versioning/script/base.py:26 2015-02-20 ... (more)

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: 2015-02-20 11:59:50 -0500

Seen: 426 times

Last updated: Feb 20 '15