← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1383027] [NEW] image-create with --copy-from returns failure status 400 in juno with Ceph store

 

Public bug reported:

Can't create an image in Glance using --copy-from on a clean new
deployment of Openstack Juno which uses a Ceph backend.

As shown from the log below, I can download an image using wget and then
upload it to Glance using --file but when I try to do the same thing
using --copy-from it fails. The error given is 400 Bad Request, External
sourcing not supported for store 'http'. Don't know where store 'http'
is coming from because 'rbd' is the only enabled store. The fact that I
can create an image using --file also proves that Ceph is working.

Store settings in /etc/glance/glance.conf:

[DEFAULT]
default_store = rbd
known_stores=glance.store.rbd.Store
[glance_store]
stores = glance.store.rbd.Store

Log:

root@test:~# glance image-create --progress --name=cirros1 --disk-format=qcow2 --container-format=bare --file cirros-0.3.3-x86_64-disk.img
[=============================>] 100%
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 133eae9fb1c98f45894a4e60d8736619     |
| container_format | bare                                 |
| created_at       | 2014-10-19T19:18:39                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 6fb5afe8-8340-468d-a0ef-9d0b3ce0f13e |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | cirros1                              |
| owner            | 3ccce78635eb4cbe96ec2675815fdf8b     |
| protected        | False                                |
| size             | 13200896                             |
| status           | active                               |
| updated_at       | 2014-10-19T19:18:42                  |
| virtual_size     | None                                 |
+------------------+--------------------------------------+

root@test:~# glance image-create --progress --name=cirros2 --disk-format=qcow2 --container-format=bare --copy-from http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-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)

** Affects: glance
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1383027

Title:
  image-create with --copy-from returns failure status 400 in juno with
  Ceph store

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Can't create an image in Glance using --copy-from on a clean new
  deployment of Openstack Juno which uses a Ceph backend.

  As shown from the log below, I can download an image using wget and
  then upload it to Glance using --file but when I try to do the same
  thing using --copy-from it fails. The error given is 400 Bad Request,
  External sourcing not supported for store 'http'. Don't know where
  store 'http' is coming from because 'rbd' is the only enabled store.
  The fact that I can create an image using --file also proves that Ceph
  is working.

  Store settings in /etc/glance/glance.conf:

  [DEFAULT]
  default_store = rbd
  known_stores=glance.store.rbd.Store
  [glance_store]
  stores = glance.store.rbd.Store

  Log:

  root@test:~# glance image-create --progress --name=cirros1 --disk-format=qcow2 --container-format=bare --file cirros-0.3.3-x86_64-disk.img
  [=============================>] 100%
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | 133eae9fb1c98f45894a4e60d8736619     |
  | container_format | bare                                 |
  | created_at       | 2014-10-19T19:18:39                  |
  | deleted          | False                                |
  | deleted_at       | None                                 |
  | disk_format      | qcow2                                |
  | id               | 6fb5afe8-8340-468d-a0ef-9d0b3ce0f13e |
  | is_public        | False                                |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | cirros1                              |
  | owner            | 3ccce78635eb4cbe96ec2675815fdf8b     |
  | protected        | False                                |
  | size             | 13200896                             |
  | status           | active                               |
  | updated_at       | 2014-10-19T19:18:42                  |
  | virtual_size     | None                                 |
  +------------------+--------------------------------------+

  root@test:~# glance image-create --progress --name=cirros2 --disk-format=qcow2 --container-format=bare --copy-from http://download.cirros-cloud.net/0.3.3/cirros-0.3.3-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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1383027/+subscriptions


Follow ups

References