Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1204647 - Download of glance image fails because of wrong glance_store option.
Download of glance image fails because of wrong glance_store option.
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer (Show other bugs)
6.0 (Juno)
Unspecified Unspecified
unspecified Severity urgent
: z2
: Installer
Assigned To: Jason Guiditta
Alexander Chuzhoy
: Regression, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-23 05:56 EDT by Leonid Natapov
Modified: 2017-05-17 02:03 EDT (History)
9 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-04-07 11:09:03 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0791 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux OpenStack Platform Installer update 2015-04-07 15:07:29 EDT

  None (edit)
Description Leonid Natapov 2015-03-23 05:56:54 EDT
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 11:35:46 EDT
# 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 10:44:03 EDT
Problem is understood, patch underway
Comment 7 Jason Guiditta 2015-03-24 12:22:46 EDT
Patch posted, testing:
https://github.com/redhat-openstack/astapor/pull/500
Comment 8 Jason Guiditta 2015-03-24 13:55:06 EDT
Merged
Comment 10 Alexander Chuzhoy 2015-03-24 19:08:53 EDT
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 11:09:03 EDT
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.