question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[autoscaler][azure] example-full.yaml fails to launch due to faulty head node permissions configuration

See original GitHub issue

In the following, could it be that this should be a deep update rather than a normal one?

https://github.com/ray-project/ray/blob/6babd1928c6175803500c1db4ca23b621d89a83f/python/ray/autoscaler/_private/commands.py#L586

E.g. when utilizing the Azure autoscaler, we have a “azure_arm_parameters” key that is being set in

https://github.com/ray-project/ray/blob/6babd1928c6175803500c1db4ca23b621d89a83f/python/ray/autoscaler/_private/azure/config.py#L106

Next to that it is also being set in the YAML definition which will then overwrite the key

As an example, when running my object changes from:

{
  "azure_arm_parameters": {
    "adminUsername": "ubuntu",
    "publicKey": "<MASKED>"
  }
}

towards

{
  "azure_arm_parameters": {
    "vmSize": "Standard_D2s_v3",
    "imagePublisher": "microsoft-dsvm",
    "imageOffer": "ubuntu-1804",
    "imageSku": "1804-gen2",
    "imageVersion": "20.07.06"
  }
}

Removing the adminUsername and publicKey which are required in the Azure ARM templates

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
ijrsvtcommented, Mar 18, 2021

The config issue has been resolved, but I am seeing something else popping up.

Great to hear!!!

Should I make a new issue for this one?

Yes, that would be great (please assign me to it as well 😃 )

0reactions
XavierGeerinckcommented, Mar 18, 2021

The config issue has been resolved, but I am seeing something else popping up. Should I make a new issue for this one?

Traceback (most recent call last):
  File "/home/xanrin/.pyenv/versions/3.8.6/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/home/xanrin/.pyenv/versions/3.8.6/lib/python3.8/site-packages/ray/autoscaler/_private/updater.py", line 129, in run
    self.provider.set_node_tags(
  File "/home/xanrin/.pyenv/versions/3.8.6/lib/python3.8/site-packages/ray/autoscaler/_private/azure/node_provider.py", line 29, in wrapper
    return f(self, *args, **kwargs)
  File "/home/xanrin/.pyenv/versions/3.8.6/lib/python3.8/site-packages/ray/autoscaler/_private/azure/node_provider.py", line 226, in set_node_tags
    self.compute_client.virtual_machines.update(
AttributeError: 'VirtualMachinesOperations' object has no attribute 'update'
  Failed to setup head node.
Read more comments on GitHub >

github_iconTop Results From Across the Web

[autoscaler] Azure SDK version needs to be pinned #13599
ray up example-full.yaml Cluster: <hidden> Checking Azure environment ... object has no attribute 'update' Failed to setup head node.
Read more >
Launching Cloud Clusters — Ray v1.10.0
The provided ray/python/ray/autoscaler/aws/example-full.yaml cluster config file will create a small cluster with an m5.large head node (on-demand) ...
Read more >
Ray cluster launch on aws with yaml fails due to root ...
The cluster launches initially, but this error occurs when running the yaml file. It connects to aws successfully luanching the head and worker ......
Read more >
EC2 instance launch failures - Amazon EC2 Auto Scaling
This page provides information about your EC2 instances that fail to launch, potential causes, and the steps you can take to resolve the...
Read more >
If a plan has no permissions set and is exported as YAML ...
2022-06-22 17:10:18,442 INFO [15-BAM::SpecsDetection:pool-18-thread-4] [YamlSpecsImportServiceImpl] Bamboo YAML import failed on incorrect YAML ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found