Ask Your Question
0

Glance Image upload from dashboard stuck in queue state forever

asked 2015-06-23 01:47:54 -0600

mkrish004c gravatar image

updated 2015-06-25 05:26:05 -0600

Hi,

I am working on the Kilo installation of openstack. I am uploading a Cirros image from the dashboard, the status remains in the queued state forever, i am not getting or capturing any error in the glance api and glance registry logs, i tried both from url and file upload options. I tried uploading from CLI it got uploaded succefully and i am able to use it for VM creations.

Please find the config settings.

       [database]
        connection = mysql://glance:nfv@123@xx.xx.xx.xx/glance

        [keystone_authtoken]
        auth_uri = http://xx.xx.xx.xx:5000
        auth_url = http://xx.xx.xx.xx:35357
        auth_plugin = password
        project_domain_id = default
        user_domain_id = default
        project_name = service
        username = glance
        password = nfv@123

        rpc_backend = rabbit
        rabbit_host =xx.xx.xx.xx
        rabbit_port = 5672
        rabbit_use_ssl = false
        rabbit_userid = openstack
        rabbit_password = nfv@123
        rabbit_virtual_host = /
        rabbit_notification_exchange = glance
        rabbit_notification_topic = notifications
        rabbit_durable_queues = False


        [paste_deploy]
        flavor = keystone

        [glance_store]
        default_store = file
        filesystem_store_datadir = /var/lib/glance/images/

Logs:

[Wed Jun 24 03:03:22.990907 2015] [:error] [pid 16539:tid 140474573903616] Unhandled exception in thread started by <function image_update at 0x7fc2d11292a8>
[Wed Jun 24 03:03:22.990951 2015] [:error] [pid 16539:tid 140474573903616] Traceback (most recent call last):
[Wed Jun 24 03:03:22.990962 2015] [:error] [pid 16539:tid 140474573903616]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 112, in image_update
[Wed Jun 24 03:03:22.991012 2015] [:error] [pid 16539:tid 140474573903616]     exceptions.handle(request, ignore=True)
[Wed Jun 24 03:03:22.991042 2015] [:error] [pid 16539:tid 140474573903616]   File "/usr/lib/python2.7/dist-packages/horizon/exceptions.py", line 364, in handle
[Wed Jun 24 03:03:22.991114 2015] [:error] [pid 16539:tid 140474573903616]     six.reraise(exc_type, exc_value, exc_traceback)
[Wed Jun 24 03:03:22.991133 2015] [:error] [pid 16539:tid 140474573903616]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/glance.py", line 110, in image_update
[Wed Jun 24 03:03:22.991164 2015] [:error] [pid 16539:tid 140474573903616]     image = glanceclient(request).images.update(image_id, **kwargs)
[Wed Jun 24 03:03:22.991181 2015] [:error] [pid 16539:tid 140474573903616]   File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 302, in update
[Wed Jun 24 03:03:22.991239 2015] [:error] [pid 16539:tid 140474573903616]     image_size = utils.get_file_size(image_data)
[Wed Jun 24 03:03:22.991256 2015] [:error] [pid 16539:tid 140474573903616]   File "/usr/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 307, in get_file_size
[Wed Jun 24 03:03:22.991310 2015] [:error] [pid 16539:tid 140474573903616]     curr = file_obj.tell()
[Wed Jun 24 03:03:22.991332 2015] [:error] [pid 16539:tid 140474573903616] ValueError: I/O operation on closed file
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-06-25 05:24:39 -0600

mkrish004c gravatar image

This is a Kilo bug and it is fixed,

Bug raised under :- https://bugs.launchpad.net/horizon/+bug/1451429 (https://bugs.launchpad.net/horizon/+b...)

Git link :- https://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/api/glance.py (https://git.openstack.org/cgit/openst...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-23 01:47:54 -0600

Seen: 5,661 times

Last updated: Jun 25 '15