Azure / Azure/cyclecloud-slurm

how to override proxysetting for "Azure Instance Metadata Service"

Open
#337 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
84
Forks
56
Avg merge
3d 17h
Merged PRs (30d)
1

Description

We are setting up CyCleCloud in an environment where we connect to the internet using a proxy.
But cannot install jetpack , becase of cannot access "Azure Instance Metadata Service"
So how to override default client proxy settings ? Blob storage accessing is need proxy

```
・Fail to access “url = ‘http://169.254.169.254/metadata/instance/compute?api-version=2017-08-01’” during Jetpack installation

{"status": "Error", "description": "Unexpected error installing Jetpack", "detail": "Traceback (most recent call last):
File \"/opt/cycle/jetpack/system/python/lib/python3.12/site-packages/jetpack/util/__init__.py\", line 203, in get_instance_id
metadata = _query_compute_metadata()

```

**Azure Instance Metadata Service**
https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows

```
Proxies
IMDS is not intended to be used behind a proxy and doing so is unsupported. Most HTTP clients provide an option for you to disable proxies on your requests, and this functionality must be utilized when communicating with IMDS. Consult your client's documentation for details.

Important

Even if you don't know of any proxy configuration in your environment, you still must override any default client proxy settings. Proxy configurations can be automatically discovered, and failing to bypass such configurations exposes you to outage risks should the machine's configuration be changed in the future.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.