Unable to create Image to image Service on Stein
Hello,
I'm trying to install glance on Openstack Stein on Ubuntu 18.04. I have managed to populate populate the image service database with "glance-manage db_sync" and this is the result in my database:
| Tables_in_glance |
+----------------------------------+
| alembic_version |
| image_locations |
| image_members |
| image_properties |
| image_tags |
| images |
| metadef_namespace_resource_types |
| metadef_namespaces |
| metadef_objects |
| metadef_properties |
| metadef_resource_types |
| metadef_tags |
| migrate_version |
| task_info |
| tasks |
+----------------------------------+
I have configured the glance-api,conf and glance-registry.conf and when i tried to list the image or register the image with:
openstack image create "cirros" --file cirros-0.4.0-x86_64-disk.img --disk-format qcow2 --container-format bare --public
then got the error:
oslo_db.exception.DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'stack-controller' ([Errno 111] ECONNREFUSED)") (Background on this error at: http://sqlalche.me/e/e3q8)
stack-controller is my localhost hostname and i can reach it using domain or IP. and on my environment (ubuntu 18.04 - openstack stein) somehow i cant do the command:
service glance-registry restart ##=> it said no service name it
but able to use command
service glance-api restart
please can anyone help, really need suggestion how to solve this
thanks
Looks like the DB connection parameters in glance-api.conf are incorrect or your DB is down.
Registry is not necessarily deployed. It's deprecated anyway.
this is my database configuration:
i make sure i can connect using this command to my database:
btw, i can generate table using db_sync
since i can generate table, i think my database connection is ok, or glance image create and list command using different database configuration? i already make sure my [keystone_authtoken] is configured properly
This is not an authentication problem. Connection refused means Glance doesn't get connected to the DB. Either the connection string is incorrect, or the DB is down.
hmm, any suggestion what configuration should i check? im just following the guide from openstack when configuring glance-api.conf on [database] , [keystone_authtoken], and [paste_deploy] sections