Ask Your Question
0

Glance db_syn and image creation failed

asked 2015-03-13 06:35:47 -0600

deepa gravatar image

updated 2015-03-14 10:10:10 -0600

Hi ,

 I am installing open stack on top of 3.18.8-201.fc21.x86_64  linux  and following the below link to install openstack

http://docs.openstack.org/juno/instal...

First installed mysql, rabbit ,keystone and then tried to install glance but found some issue with db_syn and image_create and I have verified all configuration file once again , I didnt find any issue in keystone and glance configuration files. 192.168.21.108 is the controller management IP

Below is the command output during glance image_create and keystone , glance logs during failure.

su -s /bin/sh -c "glance-manage db_sync" glance

/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py:436: Warning: Duplicate index 'ix_image_properties_image_id_name' defined on the table 'glance.image_properties'. This is deprecated and will be disallowed in a future release.
 glance image-create --name "cirros-0.3.3-x86_64" --file /tmp/images/cirros-0.3.3-x86_64-disk.img --disk-format qcow2 --container-format bare --is-public True --progress
[=============================>] 100%
Invalid OpenStack Identity credentials.

keystone.log

2015-03-13 16:13:35.935 27944 WARNING keystone.cli [-] keystone-manage pki_setup is not recommended for production use.
2015-03-13 16:14:57.679 27998 WARNING keystone.openstack.common.versionutils [-] Deprecated: keystone.middleware.core.XmlBodyMiddleware is deprecated as of Icehouse in favor of support for "application/json" only and may be removed in Kilo.
2015-03-13 16:15:06.323 28005 WARNING keystone.common.wsgi [-] Authorization failed. The request you have made requires authentication. from 192.168.21.108

glance/api.log

015-03-13 15:30:41.158 25889 INFO glance.wsgi.server [-] (25889) wsgi starting up on http://0.0.0.0:9292/
2015-03-13 15:31:52.732 25889 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Unable to establish connection to http://controller:35357/
2015-03-13 15:31:53.235 25889 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Unable to establish connection to http://controller:35357/
2015-03-13 15:31:54.237 25889 WARNING keystonemiddleware.auth_token [-] Retrying on HTTP connection exception: Unable to establish connection to http://controller:35357/
2015-03-13 15:31:56.240 25889 ERROR keystonemiddleware.auth_token [-] HTTP connection exception: Unable to establish connection to http://controller:35357/
2015-03-13 15:31:56.240 25889 WARNING keystonemiddleware.auth_token [-] Authorization failed for token
2015-03-13 15:31:56.240 25889 INFO keystonemiddleware.auth_token [-] Invalid user token - deferring reject downstream
2015-03-13 15:31:56.303 25889 INFO glance.wsgi.server [-] 192.168.21.108 - - [13/Mar/2015 15:31:56] "POST /v1/images HTTP/1.1" 401 571 3.580639

Please help me to resolve this issue and let me know if addition info is required .

Thanks, Deepa.

edit retag flag offensive close merge delete

Comments

1

1.As per the error glance service is not able to reach the db. 2.Please check your configuration files ,were your db entries or correct. 3.check to network infrastructure connectivity, this also leads to do such problems

madhank gravatar imagemadhank ( 2015-03-13 06:43:27 -0600 )edit

Hi,

  1. I have cross verified configuration files and seems no issue and DB entries are also appropriate for service credentials.
  2. All three node management , tenant and external network are reachable

Thanks, Deepa.

deepa gravatar imagedeepa ( 2015-03-15 18:13:15 -0600 )edit

1.Have you enter your hostname controller or ipaddress

2.check your hostname gets resolved

mysql use controller

http://controller:35357/

madhank gravatar imagemadhank ( 2015-03-16 00:45:07 -0600 )edit

hostname is getting resolve correclty and I have used 'root@controller' during mysql database creation but still no help

Thank

deepa gravatar imagedeepa ( 2015-03-16 07:03:21 -0600 )edit

su -s /bin/sh -c "glance-manage db_sync" glance /usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py:436: Warning: Duplicate index 'ix_image_properties_image_id_name' defined on the table 'glance.image_properties'. This is deprecated

Can we ignore above warning?? Thanks

deepa gravatar imagedeepa ( 2015-03-16 07:23:25 -0600 )edit

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-03-23 01:34:52 -0600

deepa gravatar image

updated 2015-03-23 01:35:15 -0600

It was issue with fedora 21 but same configuration worked for me on top of fedora20. Thank all for your response.

Regard, Deepa.

edit flag offensive delete link more
0

answered 2015-03-20 23:13:21 -0600

bobyakov gravatar image

Sounds like DB did not get created successfully. Log into DB directly with glance user and double check tables.

edit flag offensive delete link more
0

answered 2015-03-15 10:08:06 -0600

Carlos Alberto gravatar image

I reply colleagues' replies. And I add, check status of services.

edit flag offensive delete link more
0

answered 2015-03-14 10:23:22 -0600

Hi, I hope the glance user, service, roles and endpoints are created correctly, if not recreate it. Check all sections in /etc/glance/glance-api.conf file and /etc/glance/glance-registry.conf file.Restart all the services. Source the admin credentials before uploading the image to the Image Service.

edit flag offensive delete link more

Comments

HI, thanks for response. I tired the above check point multiple time but no luck , earlier also I have installed on top of fedora and able to install successfully but this time same followed steps is giving issue.

Thanks, Deepa

deepa gravatar imagedeepa ( 2015-03-15 18:08:26 -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

1 follower

Stats

Asked: 2015-03-13 06:35:47 -0600

Seen: 801 times

Last updated: Mar 23 '15