Glance image creation using url when behind a proxy server
Glance cannot fetch image using url which are behind a proxy. For example, you have deployed OpenStack based cloud in your enterprise environment (which is proxy protected) and you want create a glance image using a direct link such as given below (instead of downloading it to a local store and then uploading it to glance):
http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
Then images would end up in saving state forever, as glance url fetch implementation does not use proxy settings.
Look at the code below:
https://github.com/openstack/glance/blob/master/glance/common/scripts/utils.py#L141
code uses "urllib.request.urlopen" to fetch the url but it is not using proxy settings. But if you update utils.py to code like below:
Then glance can fetch images using direct url through your proxy server.
Head PM Video@Adobe India | GenAI Lead | IIM A | IIT R
7yInteresting ... what might be the reason for community to not include proxy in the code already? I imagine it is something more than it being low priority