yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #40317
[Bug 1507005] [NEW] Glance reports "400 Bad Request" if URL is "ftp://"
Public bug reported:
Guys,
Glance doesn't import an image from FTP, look:
---
glance image-create --location ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2 --is-public true --disk-format qcow2 --container-format bare --name "Debian 8.2.0 - Jessie - 64-bit - Cloud Based Image"
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
External sources are not supported: 'ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2'<br /><br />
</body>
</html> (HTTP 400)
---
I tried it with "--copy-from" instead of "--location":
---
glance image-create --copy-from ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2 --is-public true --disk-format qcow2 --container-format bare --name "Debian 8.2.0 - Jessie - 64-bit - Cloud Based Image"
---
But, it doesn't work either...
However, if I replace "ftp://" by "http://", then, it works.
Nevertheless, my private images are hosted ONLY under FTP, so, I really
need to use "ftp://"...
I think that this is a bug on Glance.
NOTE: You can test it by running:
---
wget ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2
---
So, the remote URL is fine...
Thanks!
Thiago
** 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/1507005
Title:
Glance reports "400 Bad Request" if URL is "ftp://"
Status in Glance:
New
Bug description:
Guys,
Glance doesn't import an image from FTP, look:
---
glance image-create --location ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2 --is-public true --disk-format qcow2 --container-format bare --name "Debian 8.2.0 - Jessie - 64-bit - Cloud Based Image"
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
External sources are not supported: 'ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2'<br /><br />
</body>
</html> (HTTP 400)
---
I tried it with "--copy-from" instead of "--location":
---
glance image-create --copy-from ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2 --is-public true --disk-format qcow2 --container-format bare --name "Debian 8.2.0 - Jessie - 64-bit - Cloud Based Image"
---
But, it doesn't work either...
However, if I replace "ftp://" by "http://", then, it works.
Nevertheless, my private images are hosted ONLY under FTP, so, I
really need to use "ftp://"...
I think that this is a bug on Glance.
NOTE: You can test it by running:
---
wget ftp://cdimage.debian.org/cdimage/openstack/current/debian-8.2.0-openstack-amd64.qcow2
---
So, the remote URL is fine...
Thanks!
Thiago
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1507005/+subscriptions
Follow ups