[lxc-users] Error getting images behind a proxy

Lago Gonzalez, Diego diego.lago-gonzalez at hp.com
Mon Mar 28 15:08:22 UTC 2016


Great! It works perfectly!

My fault thinking only client needed proxy settings.

Thank you very much, Tycho!

--
Diego Lago

> -----Mensaje original-----
> De: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] En
> nombre de Tycho Andersen
> Enviado el: lunes, 28 de marzo de 2016 16:50
> Para: LXC users mailing-list
> Asunto: Re: [lxc-users] Error getting images behind a proxy
> 
> On Mon, Mar 28, 2016 at 06:09:29AM +0000, Lago Gonzalez, Diego wrote:
> >
> > Same error setting https_proxy as well as http_proxy.
> >
> > user at box ~ $ sudo -E lxc launch images:centos/6/amd64 my-centos
> > Creating my-centos
> > error: Get
> > https://images.linuxcontainers.org/1.0/images/centos/6/amd64: remote
> > error: handshake failure
> >
> > Note: now using lxc 2.0.0.rc6 after last update.
> 
> Note that the server is the one doing the image downloading, so that's the
> thing that needs to have the right environment set.
> 
> In any case, there are now also server configuration keys to do this:
> 
> lxc config set core.proxy_https ...
> lxc config set core.proxy_http ...
> lxc config set core.proxy_ignore_hosts ...
> 
> Tycho
> 
> > --
> > Diego Lago
> >
> > De: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] En
> > nombre de Peter Roberts Enviado el: jueves, 24 de marzo de 2016 21:06
> > Para: LXC users mailing-list
> > Asunto: Re: [lxc-users] Error getting images behind a proxy
> >
> > Have you tried setting https_proxy as well as http_proxy?
> >
> > Peter
> >
> > On 23 March 2016 at 15:34, Lago Gonzalez, Diego <diego.lago-
> gonzalez at hp.com<mailto:diego.lago-gonzalez at hp.com>> wrote:
> >
> > Hello,
> >
> > I've installed lxc/lxd trought its official PPA (ppa:ubuntu-lxc/lxd-stable) and
> I have version 2.0.0.rc5 in a Ubuntu MATE 15.10 (amd64). When I try to
> download an image (with command `sudo -E lxc launch
> images:centos/6/amd64 my-centos`) I always get the same error:
> >
> > error: Get
> > https://images.linuxcontainers.org/1.0/images/centos/6/amd64: remote
> > error: handshake failure
> >
> > Full debug output of the command is:
> >
> > user at host ~ $ sudo -E lxc launch --debug images:centos/6/amd64
> > my-centos DBUG[03-23|16:29:16] Raw response:
> > {"type":"sync","status":"Success","status_code":200,"metadata":{"api_e
> > xtensions":[],"api_status":"development","api_version":"1.0","auth":"t
> > rusted","config":{"storage.zfs_pool_name":"lxd-pool"},"environment":{"
> > addresses":[],"architectures":["x86_64","i686"],"certificate":"-----BE
> > GIN
> > CERTIFICATE-----
> \nMIIFwDCCA6igAwIBAgIRAKHLionIKuqLPMxSzZrE59kwDQYJKoZI
> >
> hvcNAQELBQAw\nMzEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzETM
> BEGA1UEAwwK
> >
> cm9vdEBk\ndmJveDAeFw0xNjAzMjExMTUwNTBaFw0yNjAzMTkxMTUwNTB
> aMDMxHDAaBgNV
> >
> BAoT\nE2xpbnV4Y29udGFpbmVycy5vcmcxEzARBgNVBAMMCnJvb3RAZHZib
> 3gwggIiMA0G
> >
> \nCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnuiQIbMmbQWyLgaokDlcdD
> X/hzoNJ\nu6
> >
> xSKlHskMhjoJDgzJZ+s2ooFMlOjinVXQMiTb4thY41z3BaL1JhD83E+YGlMH5c\n
> 1NCzeJ
> >
> T0Zhqrb+kyDKOdLueC3sekLhILdoXBj+t4feyUs5yo3kWqkzKG5ejkpPVo\nhM
> G9/knXdn
> >
> z9I2lNk6DuYzxG3OCvGN+8+f7HAJC43lGtsQoee3vUfNr9To/K1CxZ\nFkDBJUyi
> FcIjIM
> >
> mPud8O4EAlxaR1hOXSr11Z19b0IE6qYtoKnBGZ2t+Vu76X+s//\nTC5XyVcLnXQ
> CMbbU7G
> >
> fTmeeNMzQVYpokZclPUO7w4GSHotqv8sUatj+O061KBtCV\nV/tweqrDLvMlk
> Od40BgKnn
> >
> 8lEuwoxHtSeHquVSYDSXmbHk0xT+X/Jo2bWIzg6jls\nw2s1vS8B71kz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Huh/Mxv0fFEFmvFwgKwhDic6+d\ntFYc3cv/E
> 81n7diM
> >
> wm2XpCIC2y94ow4ncQvDTkaWvUrSUjTms3nF6L4DL/qUBLgW\npB5PzeIZcZ9
> FdeUOJzg0
> >
> 7OrkdJdwmwV4mSUGvxM+bhBsr7YfwJ+eOUsnYFSb4OPu\nIITkbQhaduUNF
> O3N2YJRx26g
> >
> wbrJ+/IJ1rAn5ombVqMsyDjqoTKS4asKmelIpYO1\nisYfBrFNaB+9JtFyFiBg7Zw
> 66Wic
> >
> 5tdPNn3PK/iVVoMp6w3IT+QDFDc1ZCs5Wm7x\nBt/GNd10M7w3N8K1BC7uE
> H4vAAwk9+iU
> > sLbQHdLmWUW6gYDl\n-----END
> > CERTIFICATE-----\n","driver":"lxc","driver_version":"2.0.0.rc12","kern
> > el":"Linux","kernel_architecture":"x86_64","kernel_version":"4.2.0-27-
> > generic","server":"lxd","server_pid":6383,"server_version":"2.0.0.rc5"
> > ,"storage":"zfs","storage_version":"5"},"public":false}}
> >
> > DBUG[03-23|16:29:16] Raw response:
> > {"type":"sync","status":"Success","status_code":200,"metadata":{"api_e
> > xtensions":[],"api_status":"development","api_version":"1.0","auth":"t
> > rusted","config":{"storage.zfs_pool_name":"lxd-pool"},"environment":{"
> > addresses":[],"architectures":["x86_64","i686"],"certificate":"-----BE
> > GIN
> > CERTIFICATE-----
> \nMIIFwDCCA6igAwIBAgIRAKHLionIKuqLPMxSzZrE59kwDQYJKoZI
> >
> hvcNAQELBQAw\nMzEcMBoGA1UEChMTbGludXhjb250YWluZXJzLm9yZzETM
> BEGA1UEAwwK
> >
> cm9vdEBk\ndmJveDAeFw0xNjAzMjExMTUwNTBaFw0yNjAzMTkxMTUwNTB
> aMDMxHDAaBgNV
> >
> BAoT\nE2xpbnV4Y29udGFpbmVycy5vcmcxEzARBgNVBAMMCnJvb3RAZHZib
> 3gwggIiMA0G
> >
> \nCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCnuiQIbMmbQW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xNGRkOjdmZjpmZTUwOjE5ZTkvNjQwDQYJ
> KoZIhvcNAQ
> >
> ELBQAD\nggIBAE7u9y1fkHPNluuaO4IZNGvl0NkOUpsVVQPL2L+AtAjukdb2c2
> DYsiOLir
> >
> +x\nKmTkhu6jgUz87Ht/LSQVH3gXAgMRZhDSAhs9UA+t5O7MDQaRuvWEmzt
> 8iw6/xQ6i\n
> >
> XqKFUq44frNxyfLlTjJK6sphxcHT8gVxbsUxx2HFU2BrFCxlG6QoKIyD0Z+GHTkR
> \neZGP
> >
> W+g8gQsWA0UNN/pNrN/cBe15q6eQBio8g4fjtbp22b/RQFFU+h/FvJifzuVs\nk
> pVenN2J
> >
> 9ox1EZzXy8/gyStjAbDWQBGJVlDnw10o/CgWbuMCVovwejOxUbXbgyf0\nKG
> VJyFHtFOXx
> >
> Rpt7d0ZVsyyknNyDeYiNyMDeTiHuh/Mxv0fFEFmvFwgKwhDic6+d\ntFYc3cv/E
> 81n7diM
> >
> wm2XpCIC2y94ow4ncQvDTkaWvUrSUjTms3nF6L4DL/qUBLgW\npB5PzeIZcZ9
> FdeUOJzg0
> >
> 7OrkdJdwmwV4mSUGvxM+bhBsr7YfwJ+eOUsnYFSb4OPu\nIITkbQhaduUNF
> O3N2YJRx26g
> >
> wbrJ+/IJ1rAn5ombVqMsyDjqoTKS4asKmelIpYO1\nisYfBrFNaB+9JtFyFiBg7Zw
> 66Wic
> >
> 5tdPNn3PK/iVVoMp6w3IT+QDFDc1ZCs5Wm7x\nBt/GNd10M7w3N8K1BC7uE
> H4vAAwk9+iU
> > sLbQHdLmWUW6gYDl\n-----END
> > CERTIFICATE-----\n","driver":"lxc","driver_version":"2.0.0.rc12","kern
> > el":"Linux","kernel_architecture":"x86_64","kernel_version":"4.2.0-27-
> > generic","server":"lxd","server_pid":6383,"server_version":"2.0.0.rc5"
> > ,"storage":"zfs","storage_version":"5"},"public":false}}
> >
> > error: Get
> > https://images.linuxcontainers.org/1.0/images/centos/6/amd64: remote
> > error: handshake failure
> >
> > I am behind a proxy server that works well with https addresses but, when
> I try to download any image, previous error is always shown. I also tested it
> on a Ubuntu MATE 15.10 (i386) without a proxy and it works perfectly.
> >
> > Proxy server is configured through the UI (globally) but I also have
> http_proxy shell variables exported.
> >
> > The rest of the commands (like `lxc image list images:`) works well.
> >
> > Could anyone help me with this kind of error? Thank you very much.
> >
> > Best regards.
> >
> > --
> > Diego Lago
> >
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org<mailto:lxc-users at lists.linuxcontai
> > ners.org> http://lists.linuxcontainers.org/listinfo/lxc-users
> >
> 
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
> 
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list