ray: [Bug] Ray Autoscaler does not work with Azure due to deprecated method

Search before asking

  • I searched the issues and found no similar issues.

Ray Component

Ray Clusters

What happened + What you expected to happen

ray up azure.yaml fails. See stack trace here https://github.com/Azure/azure-sdk-for-python/issues/21313

The reason is that MS is deprecating this method get_client_from_cli_profile, see https://github.com/Azure/azure-sdk-for-python/pull/21337

  File "/Users/lsf/opt/miniconda3/lib/python3.8/site-packages/ray/autoscaler/_private/_azure/node_provider.py", line 7, in <module>
    from azure.common.client_factory import get_client_from_cli_profile

Versions / Dependencies

Ray 1.7.0 Python 3.8.11 Latest install of azure-cli macOS

Reproduction script

ray up azure.yml where the yml can be the example yaml file

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

Yes, it does, thank you!

got it thanks, yes the changes are not in 1.9.1 afaik. if you install from the latest wheel built from master does it work? pip install -U "ray[default] @ https://s3-us-west-2.amazonaws.com/ray-wheels/latest/ray-2.0.0.dev0-cp38-cp38-manylinux2014_x86_64.whl"