Comment 3 for bug 1180355

Revision history for this message
Andreas Wirooks (nudgegoonies) wrote : RE: [Bug 1180355] Re: LXC Template ubuntu-cloud does not work

Thank you very much for your answer. I tried:

>$ sudo lxc-create -t ubuntu-cloud -n test

With that i get the same error:

>$ sudo lxc-create -t ubuntu-cloud -n test
>
>No config file specified, using the default config
>ubuntu-cloudimg-query ist /usr/bin/ubuntu-cloudimg-query
>wget ist /usr/bin/wget
>failed to get https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt
>failed to execute template 'ubuntu-cloud'
>aborted

Doing a wget on the url was the right tip. It resulted in:

>$ wget https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt
>--2013-05-22 09:35:41-- https://cloud-images.ubuntu.com/query/precise/server/released-dl.current.txt
>Auflösen des Hostnamen »cloud-images.ubuntu.com (cloud-images.ubuntu.com)«... 91.189.88.141
>Verbindungsaufbau zu cloud-images.ubuntu.com (cloud-images.ubuntu.com)|91.189.88.141|:443... verbunden.
> FEHLER: Kann das Zertifikat von »cloud-images.ubuntu.com« nicht prüfen, ausgestellt von »»/C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287««:.
> Ein selbst-signiertes Zertifikat gefunden.
>Verwenden Sie »--no-check-certificate«, um zu dem Server »cloud-images.ubuntu.com« eine nicht gesicherte Verbindung aufzubauen.

There must be a problem with the certificates. Altough i havn't changed or configured anything in that direction. I tried to modify the /usr/share/lxc/templates/lxc-ubuntu-cloud script with the --no-check-certificate option on both wget calls but it didn't help. I don't think this is a bug in the lxc package but a bug concerning wget or the certificates. I tried the link from the wget outpuz and the certificate does not seem to exist. Could it be that there is a loadbalancer behind the url and you are getting a different mirror?

Regards,
Andreas