[Openstack] error when trying to start glance api

arindam arindam at live.com
Wed Apr 3 13:08:50 UTC 2013


Hi Robert, 
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.




Sent from Samsung tablet

-------- Original message --------
From: Robert Parrott <robert_parrott at harvard.edu> 
Date: 03/04/2013  15:03  (GMT+01:00) 
To: Arindam Choudhury <arindam at live.com> 
Cc: openstack at lists.launchpad.net 
Subject: Re: [Openstack] error when trying to start glance api 
 
Arindam,

This looks like a file permissions issue. What user are you when  you
try to start the service, what are the permissions and ownership of
the config file, and what are the permissions on the log file
specified in the config file.

Rob


On Wed, Apr 3, 2013 at 6:30 AM, Arindam Choudhury <arindam at live.com> wrote:
> 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@XX.XX.XX.XX/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
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>



-- 
See my availability here:
  https://www.google.com/calendar/embed?src=parrott@g.harvard.edu&mode=week

Robert E. Parrott, Ph.D.
Senior Architect
Office of the CTO: Innovation and Architecture
Harvard University
Holyoke Center 760
1350 Massachusetts Ave.
Cambridge, MA 02138
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20130403/6945a832/attachment.html>


More information about the Openstack mailing list