<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Hi Robert, </div><div>Thanks for your reply. Now I am going to do a fresh install again. This time using the redhat instructions. So, I cannot report you any feedback.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div style="font-size:100%">Sent from Samsung tablet</div></div> <br><br><br>-------- Original message --------<br>From: Robert Parrott <robert_parrott@harvard.edu> <br>Date: 03/04/2013  15:03  (GMT+01:00) <br>To: Arindam Choudhury <arindam@live.com> <br>Cc: openstack@lists.launchpad.net <br>Subject: Re: [Openstack] error when trying to start glance api <br> <br><br>Arindam,<br><br>This looks like a file permissions issue. What user are you when  you<br>try to start the service, what are the permissions and ownership of<br>the config file, and what are the permissions on the log file<br>specified in the config file.<br><br>Rob<br><br><br>On Wed, Apr 3, 2013 at 6:30 AM, Arindam Choudhury <arindam@live.com> wrote:<br>> Hi,<br>><br>> I am trying to install openstack folsom on fedora 18 using openstack install<br>> guide.<br>><br>> i changed the /etc/glance/glance-api.conf as mentioned.<br>><br>> Then I did:<br>><br>> systemctl enable /usr/lib/systemd/system/openstack-glance-api.service<br>><br>> and when I try to start the service:<br>><br>> service openstack-glance-api status<br>> Redirecting to /bin/systemctl status  openstack-glance-api.service<br>> openstack-glance-api.service - OpenStack Image Service (code-named Glance)<br>> API server<br>>       Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service;<br>> enabled)<br>>       Active: failed (Result: exit-code) since Wed 2013-04-03 12:00:57 CEST;<br>> 4s ago<br>>      Process: 2121 ExecStart=/usr/bin/glance-api --config-file<br>> /etc/glance/glance-api.conf (code=exited, status=1/FAILURE)<br>><br>> Apr 03 12:00:57 aopcach.uab.es systemd[1]: Started OpenStack Image Service<br>> (code-named Glance) API server.<br>> Apr 03 12:00:57 aopcach.uab.es glance-api[2121]: No handlers could be found<br>> for logger "glance"<br>> Apr 03 12:00:57 aopcach.uab.es systemd[1]: openstack-glance-api.service:<br>> main process exited, code=exited, status=1/FAILURE<br>> Apr 03 12:00:57 aopcach.uab.es systemd[1]: Unit openstack-glance-api.service<br>> entered failed state<br>><br>><br>> and when I try to do it manually:<br>><br>> /usr/bin/glance-api --config-file /etc/glance/glance-api.conf<br>> Traceback (most recent call last):<br>>   File "/usr/bin/glance-api", line 52, in <module><br>>     config.parse_args()<br>>   File "/usr/lib/python2.7/site-packages/glance/common/config.py", line 72,<br>> in parse_args<br>>     default_config_files=default_config_files)<br>>   File "/usr/lib/python2.7/site-packages/glance/openstack/common/cfg.py",<br>> line 1026, in __call__<br>>     self._parse_config_files()<br>>   File "/usr/lib/python2.7/site-packages/glance/openstack/common/cfg.py",<br>> line 1496, in _parse_config_files<br>>     raise ConfigFilesNotFoundError(not_read_ok)<br>> glance.openstack.common.cfg.ConfigFilesNotFoundError: Failed to read some<br>> config files: /etc/glance/glance-api.conf<br>><br>><br>> and<br>><br>> glance index<br>> ID                                   Name                           Disk<br>> Format          Container Format     Size<br>> ------------------------------------ ------------------------------<br>> -------------------- -------------------- --------------<br>> Error communicating with http://XX.XX.XX.XX:9292 [Errno 111] Connection<br>> refused<br>><br>><br>><br>><br>> my /etc/glance/glance-api.conf:<br>><br>> [DEFAULT]<br>> verbose = True<br>> debug = False<br>> default_store = file<br>> bind_host = 0.0.0.0<br>> bind_port = 9292<br>> log_file = /var/log/glance/api.log<br>> backlog = 4096<br>> sql_connection = mysql://glance:glance@XX.XX.XX.XX/glance<br>> sql_idle_timeout = 3600<br>> workers = 1<br>> # ================= Syslog Options ============================<br>> use_syslog = False<br>> # ============ Registry Options ===============================<br>> registry_host = 0.0.0.0<br>> registry_port = 9191<br>> registry_client_protocol = http<br>> # ============ Notification System Options =====================<br>> notifier_strategy = noop<br>> rabbit_host = localhost<br>> rabbit_port = 5672<br>> rabbit_use_ssl = false<br>> rabbit_userid = guest<br>> rabbit_password = guest<br>> rabbit_virtual_host = /<br>> rabbit_notification_exchange = glance<br>> rabbit_notification_topic = glance_notifications<br>> rabbit_durable_queues = False<br>> qpid_notification_exchange = glance<br>> qpid_notification_topic = glance_notifications<br>> qpid_host = localhost<br>> qpid_port = 5672<br>> qpid_username =<br>> qpid_password =<br>> qpid_sasl_mechanisms =<br>> qpid_reconnect_timeout = 0<br>> qpid_reconnect_limit = 0<br>> qpid_reconnect_interval_min = 0<br>> qpid_reconnect_interval_max = 0<br>> qpid_reconnect_interval = 0<br>> qpid_heartbeat = 5<br>> qpid_protocol = tcp<br>> qpid_tcp_nodelay = True<br>> # ============ Filesystem Store Options ========================<br>> filesystem_store_datadir = /var/lib/glance/images/<br>> # ============ Swift Store Options ===========================<br>> swift_store_auth_version = 2<br>> swift_store_auth_address = 127.0.0.1:5000/v2.0/<br>> swift_store_user = jdoe:jdoe<br>> swift_store_key = a86850deb2742ec3cb41518e26aa2d89<br>> swift_store_container = glance<br>> swift_store_create_container_on_put = False<br>> swift_store_large_object_size = 5120<br>> swift_store_large_object_chunk_size = 200<br>> swift_enable_snet = False<br>> # ============ S3 Store Options =============================<br>> s3_store_host = 127.0.0.1:8080/v1.0/<br>> s3_store_access_key = <20-char AWS access key><br>> s3_store_secret_key = <40-char AWS secret key><br>> s3_store_bucket = <lowercased 20-char aws access key>glance<br>> s3_store_create_bucket_on_put = False<br>> # ============ RBD Store Options =============================<br>> rbd_store_ceph_conf = /etc/ceph/ceph.conf<br>> rbd_store_user = glance<br>> rbd_store_pool = images<br>> rbd_store_chunk_size = 8<br>> # ============ Delayed Delete Options =============================<br>> delayed_delete = False<br>> scrub_time = 43200<br>> scrubber_datadir = /var/lib/glance/scrubber<br>> # =============== Image Cache Options =============================<br>> image_cache_dir = /var/lib/glance/image-cache/<br>><br>> [keystone_authtoken]<br>> auth_host = 127.0.0.1<br>> auth_port = 35357<br>> auth_protocol = http<br>> admin_tenant_name = service<br>> admin_user = glance<br>> admin_password = glance<br>><br>> [paste_deploy]<br>> config_file = /etc/glance/glance-api-paste.ini<br>> flavor = keystone<br>><br>><br>> _______________________________________________<br>> Mailing list: https://launchpad.net/~openstack<br>> Post to     : openstack@lists.launchpad.net<br>> Unsubscribe : https://launchpad.net/~openstack<br>> More help   : https://help.launchpad.net/ListHelp<br>><br><br><br><br>-- <br>See my availability here:<br>  https://www.google.com/calendar/embed?src=parrott@g.harvard.edu&mode=week<br><br>Robert E. Parrott, Ph.D.<br>Senior Architect<br>Office of the CTO: Innovation and Architecture<br>Harvard University<br>Holyoke Center 760<br>1350 Massachusetts Ave.<br>Cambridge, MA 02138</body>