Bug 1226906 - Failed to upload images from Horizon - stuck in queued state.
Summary: Failed to upload images from Horizon - stuck in queued state.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 7.0 (Kilo)
Hardware: x86_64
OS: Linux
medium
unspecified
Target Milestone: ga
: 7.0 (Kilo)
Assignee: Matthias Runge
QA Contact: Ido Ovadia
URL:
Whiteboard:
: 1233939 (view as bug list)
Depends On:
Blocks: 1163445
TreeView+ depends on / blocked
 
Reported: 2015-06-01 12:19 UTC by Tzach Shefi
Modified: 2015-08-05 13:24 UTC (History)
8 users (show)

Fixed In Version: python-django-horizon-2015.1.0-9.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-05 13:24:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Glance Horizon and audit logs (3.67 MB, application/x-gzip)
2015-06-01 12:19 UTC, Tzach Shefi
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1451429 0 None None None Never
Red Hat Product Errata RHEA-2015:1548 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2015-08-05 17:07:06 UTC

Description Tzach Shefi 2015-06-01 12:19:02 UTC
Created attachment 1033308 [details]
Glance Horizon and audit logs

Description of problem:  Fail to upload image from file via Horizon, image is stuck in queued state, same image successfully uploaded via Glance CLI. 

Version-Release number of selected component (if applicable):
rhel7.1
python-glance-2015.1.0-6.el7ost.noarch
python-glance-store-0.4.0-1.el7ost.noarch
openstack-glance-2015.1.0-6.el7ost.noarch
python-glanceclient-0.17.0-2.el7ost.noarch

python-django-horizon-2015.1.0-8.el7ost.noarch

openstack-selinux-0.6.31-1.el7ost.noarch
selinux-policy-targeted-3.13.1-23.el7_1.7.noarch
selinux-policy-3.13.1-23.el7_1.7.noarch

How reproducible:
Not sure, problem happened on default SE enforcing. With permissive I was able to upload image once or twice.  Going back to enforcing it failed again. 
The off thing setting permissive on second attempt (even disabling SE) doesn't help I can't upload an images from Horizon. 

Steps to Reproduce:
1. Setup All in one, with packstack basic setup. 
2. Upload images from Glance CLI works fine.
3. Try to upload images from Horizon -> image stuck in queued state. 

Actual results:
Images stuck in queued state

Expected results:
Image should upload successfully.

Additional info:

Under glance api.log this is an image which failed to upload from Horizon and is stuck in queued state-> 
a5f28b1a-de6f-4a76-8811-b6fa26ebd68b

Comment 2 Matthias Runge 2015-06-02 07:02:44 UTC
Do you still have access to the machine?
If yes, could you please verify, the files

/usr/share/openstack-dashboard/static/dashboard/css/393475cb8105.css
/usr/share/openstack-dashboard/static/dashboard/css/ad4e9725e83e.css
exist?

(taken from logs, suspecting a misleading error message)

Something, which makes me suspicious is:

CommunicationError: Error finding address for http://10.35.160.137:9292/v1/images/a5f28b1a-de6f-4a76-8811-b6fa26ebd68b: ('Connection aborted.', error(104, 'Connection reset by peer'))

That message comes from communication between horizon and glance, meaning, glance has gone away?

Comment 3 Tzach Shefi 2015-06-02 07:58:33 UTC
Yep system is still up, I'll send details on xchat 
Don't have the files you ask for, only these:

-rw-r--r--. 1 root root  894087 Jun  1 15:49 c024f70c05f5.css
-rw-r--r--. 1 root root 1341695 Jun  1 15:49 d52334d93318.css
-rw-r--r--. 1 root root    3562 Jun  1 15:49 d7fc3590f4a6.css
-rw-r--r--. 1 root root   17780 May 28 15:15 font-awesome.min.css

Comment 4 Tzach Shefi 2015-06-03 09:11:53 UTC
Tip from Matthias -> https://review.openstack.org/#/c/184935/3

Cherry picking fixed problem, upload now works fine on same deployment that would failed before.

Comment 5 Matthias Runge 2015-06-03 09:17:05 UTC
Thank you, will cherry pick this to next build!

Comment 8 Ido Ovadia 2015-06-14 15:16:54 UTC
Verified
========
python-django-horizon-2015.1.0-10.el7ost.noarch

Comment 9 Matthias Runge 2015-06-23 14:25:53 UTC
*** Bug 1233939 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2015-08-05 13:24:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2015:1548


Note You need to log in before you can comment on or make changes to this bug.