← Back to team overview

openstack team mailing list archive

error when trying to start glance api

 

Hi,

I am trying to install openstack folsom on fedora 18 using openstack install guide.

i changed the /etc/glance/glance-api.conf as mentioned.

Then I did:

systemctl enable /usr/lib/systemd/system/openstack-glance-api.service

and when I try to start the service:

service openstack-glance-api status
Redirecting to /bin/systemctl status  openstack-glance-api.service
openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
      Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled)
      Active: failed (Result: exit-code) since Wed 2013-04-03 12:00:57 CEST; 4s ago
     Process: 2121 ExecStart=/usr/bin/glance-api --config-file /etc/glance/glance-api.conf (code=exited, status=1/FAILURE)

Apr 03 12:00:57 aopcach.uab.es systemd[1]: Started OpenStack Image Service (code-named Glance) API server.
Apr 03 12:00:57 aopcach.uab.es glance-api[2121]: No handlers could be found for logger "glance"
Apr 03 12:00:57 aopcach.uab.es systemd[1]: openstack-glance-api.service: main process exited, code=exited, status=1/FAILURE
Apr 03 12:00:57 aopcach.uab.es systemd[1]: Unit openstack-glance-api.service entered failed state


and when I try to do it manually:

/usr/bin/glance-api --config-file /etc/glance/glance-api.conf
Traceback (most recent call last):
  File "/usr/bin/glance-api", line 52, in <module>
    config.parse_args()
  File "/usr/lib/python2.7/site-packages/glance/common/config.py", line 72, in parse_args
    default_config_files=default_config_files)
  File "/usr/lib/python2.7/site-packages/glance/openstack/common/cfg.py", line 1026, in __call__
    self._parse_config_files()
  File "/usr/lib/python2.7/site-packages/glance/openstack/common/cfg.py", line 1496, in _parse_config_files
    raise ConfigFilesNotFoundError(not_read_ok)
glance.openstack.common.cfg.ConfigFilesNotFoundError: Failed to read some config files: /etc/glance/glance-api.conf


and

glance index
ID                                   Name                           Disk Format          Container Format     Size          
------------------------------------ ------------------------------ -------------------- -------------------- --------------
Error communicating with http://XX.XX.XX.XX:9292 [Errno 111] Connection refused




my /etc/glance/glance-api.conf:

[DEFAULT]
verbose = True
debug = False
default_store = file
bind_host = 0.0.0.0
bind_port = 9292
log_file = /var/log/glance/api.log
backlog = 4096
sql_connection = mysql://glance:glance@xxxxxxxxxxx/glance
sql_idle_timeout = 3600
workers = 1
# ================= Syslog Options ============================
use_syslog = False
# ============ Registry Options ===============================
registry_host = 0.0.0.0
registry_port = 9191
registry_client_protocol = http
# ============ Notification System Options =====================
notifier_strategy = noop
rabbit_host = localhost
rabbit_port = 5672
rabbit_use_ssl = false
rabbit_userid = guest
rabbit_password = guest
rabbit_virtual_host = /
rabbit_notification_exchange = glance
rabbit_notification_topic = glance_notifications
rabbit_durable_queues = False
qpid_notification_exchange = glance
qpid_notification_topic = glance_notifications
qpid_host = localhost
qpid_port = 5672
qpid_username =
qpid_password =
qpid_sasl_mechanisms =
qpid_reconnect_timeout = 0
qpid_reconnect_limit = 0
qpid_reconnect_interval_min = 0
qpid_reconnect_interval_max = 0
qpid_reconnect_interval = 0
qpid_heartbeat = 5
qpid_protocol = tcp
qpid_tcp_nodelay = True
# ============ Filesystem Store Options ========================
filesystem_store_datadir = /var/lib/glance/images/
# ============ Swift Store Options ===========================
swift_store_auth_version = 2
swift_store_auth_address = 127.0.0.1:5000/v2.0/
swift_store_user = jdoe:jdoe
swift_store_key = a86850deb2742ec3cb41518e26aa2d89
swift_store_container = glance
swift_store_create_container_on_put = False
swift_store_large_object_size = 5120
swift_store_large_object_chunk_size = 200
swift_enable_snet = False
# ============ S3 Store Options =============================
s3_store_host = 127.0.0.1:8080/v1.0/
s3_store_access_key = <20-char AWS access key>
s3_store_secret_key = <40-char AWS secret key>
s3_store_bucket = <lowercased 20-char aws access key>glance
s3_store_create_bucket_on_put = False
# ============ RBD Store Options =============================
rbd_store_ceph_conf = /etc/ceph/ceph.conf
rbd_store_user = glance
rbd_store_pool = images
rbd_store_chunk_size = 8
# ============ Delayed Delete Options =============================
delayed_delete = False
scrub_time = 43200
scrubber_datadir = /var/lib/glance/scrubber
# =============== Image Cache Options =============================
image_cache_dir = /var/lib/glance/image-cache/

[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = glance
admin_password = glance

[paste_deploy]
config_file = /etc/glance/glance-api-paste.ini
flavor = keystone

 		 	   		  

Follow ups