Glance allows you to use an HTTP store, but FTP is not HTTP. It is a different protocol entirely. As far as I know, Glance has never had support to use an FTP server to copy from. This would need an entirely different code-path for the copy-from case.
** Changed in: glance Status: New => Opinion -- 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: Opinion 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 -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp