Bug 1204647 - Download of glance image fails because of wrong glance_store option.
Summary: Download of glance image fails because of wrong glance_store option.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: z2
: Installer
Assignee: Jason Guiditta
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-23 09:56 UTC by Leonid Natapov
Modified: 2022-07-09 07:13 UTC (History)
9 users (show)

Fixed In Version: openstack-foreman-installer-3.0.20-1.el7ost
Doc Type: Bug Fix
Doc Text:
The lack of HTTP store configuration for Glance caused a 400 Bad Request error when downloading images over HTTP. This fix adds the glance.store.http.Store to the known stores. Glance image downloads are now successful.
Clone Of:
Environment:
Last Closed: 2015-04-07 15:09:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0791 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux OpenStack Platform Installer update 2015-04-07 19:07:29 UTC

Description Leonid Natapov 2015-03-23 09:56:54 UTC
openstack-foreman-installer-3.0.19-1.el7ost.noarch
openstack-puppet-modules-2014.2.12-1.el7ost.noarch
openstack-glance-2014.2.2-1.el7ost.noarch

Description of problem:

While trying to download a glance image  getting the following error:

[root@mac848f69fbc49f ~(openstack_admin)]# glance image-create --name cirros --disk-format qcow2 --container-format bare --is-public 1 --copy-from https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img
Request returned failure status 400.
<html>
 <head>
  <title>400 Bad Request</title>
 </head>
 <body>
  <h1>400 Bad Request</h1>
  External sourcing not supported for store 'http'<br /><br />

 </body>
</html> (HTTP 400)
Version-Release number of selected component (if applicable):


Quick investigation showed that glance_store option in glance-api.conf file enables stores=glance.store.filesystem.Store.
After disabling this option image download was successful. So,it seems like default options for glance_store has been changed vs A1.

We never touched glance-api.conf in A1.

How reproducible:

100%

Steps to Reproduce:
1.Try to download image using http.
2.
3.

Actual results:
Image fails to download.

Expected results:
Image can be successfully downloaded. 

Additional info:

Comment 5 Lon Hohberger 2015-03-23 15:35:46 UTC
# glance image-create --name cirros --disk-format qcow2 --container-format bare --is-public 1 --copy-from https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img

^^ worked fine for me with packstack allinone

Comment 6 Jason Guiditta 2015-03-24 14:44:03 UTC
Problem is understood, patch underway

Comment 7 Jason Guiditta 2015-03-24 16:22:46 UTC
Patch posted, testing:
https://github.com/redhat-openstack/astapor/pull/500

Comment 8 Jason Guiditta 2015-03-24 17:55:06 UTC
Merged

Comment 10 Alexander Chuzhoy 2015-03-24 23:08:53 UTC
Verified:

Environment:
ruby193-rubygem-staypuft-0.5.21-1.el7ost.noarch
openstack-puppet-modules-2014.2.12-1.el7ost.noarch
ruby193-rubygem-foreman_openstack_simplify-0.0.6-8.el7ost.noarch
rhel-osp-installer-client-0.5.7-1.el7ost.noarch
openstack-foreman-installer-3.0.20-1.el7ost.noarch
rhel-osp-installer-0.5.7-1.el7ost.noarch



[root@maca25400702875 ~(openstack_admin)]# glance image-create --name cirros --disk-format qcow2 --container-format bare --is-public 1 --copy-from https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img                                                                                                                                                 
+------------------+--------------------------------------+                                                                                                                              
| Property         | Value                                |                                                                                                                              
+------------------+--------------------------------------+
| checksum         | None                                 |
| container_format | bare                                 |
| created_at       | 2015-03-24T23:06:32                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | d9157361-e19a-4c7c-8d5e-934da8cbc4fe |
| is_public        | True                                 |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros                               |
| owner            | 5573ba09532645cca803d46426bfcb83     |
| protected        | False                                |
| size             | 9761280                              |
| status           | queued                               |
| updated_at       | 2015-03-24T23:06:32                  |
| virtual_size     | None                                 |
+------------------+--------------------------------------+
[root@maca25400702875 ~(openstack_admin)]# glance image-list
+--------------------------------------+--------+-------------+------------------+---------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size    | Status |
+--------------------------------------+--------+-------------+------------------+---------+--------+
| d9157361-e19a-4c7c-8d5e-934da8cbc4fe | cirros | qcow2       | bare             | 9761280 | active |
+--------------------------------------+--------+-------------+------------------+---------+--------+

Comment 12 errata-xmlrpc 2015-04-07 15:09:03 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://rhn.redhat.com/errata/RHSA-2015-0791.html


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