Glance db_syn and image creation failed
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.
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
Hi,
Thanks, Deepa.
1.Have you enter your hostname controller or ipaddress
2.check your hostname gets resolved
mysql use controller
http://controller:35357/
hostname is getting resolve correclty and I have used 'root@controller' during mysql database creation but still no help
Thank
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