But I need to rely on the upstream URLs for two reasons: 1- During Glance provision, I can't download the images, the images MUST be downloaded by Glance itself, by demand (that's why I always use --location and that's why I'm still using Glance v1;
2- By relying on a remote URL, I don't need to re-add the images every single time that upstream updates its image, Glance will always download the latest directly from upstream. BTW, I've sent those messages to both lists (Ubuntu / OpenStack) because this interests Ubuntu and since Glance is failing with Error 500, OpenStack guys might be interested as well. Cheers! Thiago On 29 August 2016 at 05:37, <[email protected]> wrote: > > To prevent this kind of thing recurring you can upload the image bytes > into Glance rather than relying on the third party url always being > available, eg: > > curl http://uec-images.ubuntu.com/releases/16.04/release/ubuntu-1 > 6.04-server-cloudimg-amd64-disk1.img | glance image-create --name "Ubuntu > 16.04.1 LTS - Xenial Xerus - 64-bit - Cloud Based Ima > ge" --is-public true --container-format bare --disk-format qcow2 > > > On Sun, 28 Aug 2016, Kaustubh Kelkar wrote: > > Broken link? >> >> https://cloud-images.ubuntu.com/xenial/ >> >> -Kaustubh >> >> From: Martinx - ジェームズ >> Sent: Saturday, August 27, 23:06 >> Subject: [Openstack] Ubuntu Cloud Image - Forbidden access! Glance >> failswith error 500. >> To: ubuntu-server, Ubuntu user technical support, not for general >> discussions, [email protected] >> >> Guys, >> >> It is impossible to download Ubuntu Cloud Image right now: >> >> http://uec-images.ubuntu.com/releases/16.04/release/ubuntu-1 >> 6.04-server-cloudimg-amd64-disk1.img >> >> Returns: Forbidden! >> >> ---- >> >> wget http://uec-images.ubuntu.com/releases/16.04/release/ubuntu-1 >> 6.04-server-cloudimg-amd64-disk1.img >> >> --2016-08-28 02:50:36-- http://uec-images.ubuntu.com/r >> eleases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img >> >> Resolving uec-images.ubuntu.com<http://uec-images.ubuntu.com> ( >> uec-images.ubuntu.com<http://uec-images.ubuntu.com>)... 91.189.88.140 >> >> Connecting to uec-images.ubuntu.com<http://uec-images.ubuntu.com> ( >> uec-images.ubuntu.com<http://uec-images.ubuntu.com>)|91.189.88.140|:80... >> connected. >> >> HTTP request sent, awaiting response... 403 Forbidden >> >> 2016-08-28 02:50:36 ERROR 403: Forbidden. >> >> ---- >> >> This broke my OpenStack deployment, because Glance tries to download it >> and then it fails (error 500 on Glance). >> >> --- >> >> http://paste.openstack.org/show/564302/ >> >> --- >> >> Here is how I'm adding Ubuntu images to my OpenStack Mitaka Cloud: >> >> --- >> >> glance image-create --location http://uec-images.ubuntu.com/r >> eleases/16.04/release/ubuntu-16.04-server-cloudimg-amd64-disk1.img >> --name "Ubuntu 16.04.1 LTS - Xenial Xerus - 64-bit - Cloud Based Image" >> --is-public true --container-format bare --disk-format qcow2 >> >> --- >> >> Cheers! >> >> Thiago >> >>
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
