Not able to upload the image to the Image service
I am installing openstack newton on my centos 7 machine.
when i am trying to upload test image to image service getting following error.
[root@controller ~]# openstack image create "cirros" --file cirros-0.3.4-x86_64-disk.img --disk-format qcow2 --container-format bare --public
500 Internal Server Error
The server has either erred or is incapable of performing the requested operation.
(HTTP 500)
Here is the log message from the file - /var/log/glance/api.log
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/session.py", line 2109, in _flush
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi flush_context.execute()
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 373, in execute
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi rec.execute(self)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/unitofwork.py", line 532, in execute
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi uow
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 174, in save_obj
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi mapper, table, insert)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 767, in _emit_insert_statements
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi execute(statement, multiparams)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi return meth(self, multiparams, params)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi return connection._execute_clauseelement(self, multiparams, params)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi compiled_sql, distilled_params
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi context)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1337, in _handle_dbapi_exception
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi util.raise_from_cause(newraise, exc_info)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/util/compat.py", line 200, in raise_from_cause
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi reraise(type(exception), exception, tb=exc_tb)
2016-12-21 06:56:14.231 9062 ERROR glance.common.wsgi File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine ...