az vm run-command永远失败然后失败 [英] az vm run-command takes forever then fails

查看:79
本文介绍了az vm run-command永远失败然后失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们在Kubernetes上运行的解决方案中,我们实际上必须启用交换记帐。

In our solution which runs atop of Kubernetes, we actually have to turn on swap accounting.

因此,在我们的自动脚本中,我有以下代码段:

So in our automated script, I have the following snippet:

for i in $VMNODES
 do
   az vm run-command invoke -g $MCRGNAME -n $i --command-id RunShellScript --scripts \
   "sudo sed -i -r 's|^(GRUB_CMDLINE_LINUX_DEFAULT=)\"(.*.)\"|\1\"\2 swapaccount=1\"|' \
   /etc/default/grub.d/50-cloudimg-settings.cfg && sudo update-grub"
   az vm restart -g $MCRGNAME -n $i
done

(这实际上是shell脚本)

(this is actually shell script)

正如您所看到的,这会从环境中提取信息,然后运行一个小的sript来将swapaccounting设置为1,之后应该重新启动VM。

As you can see, this pulls information from the environment, then runs a small sript to set swapaccounting to 1 afterwhich the VM should be restarted.

这曾经非常好,然后差不多10天前,情况开始变得很有趣。

This used to be perfectly fine and then almost 10 days ago, things started going funny.

具体来说,运行命令甚至有时候重启命令会永远耗尽,然后几乎总是超时。

In specific, the run command and even sometimes the restart command takes forever then almost always times out.

我得到的最新错误是:"部署失败。相关ID:991d09bb-8e62-48cb-819b-e240dacc2199。 VM扩展"RunCommandLinux"的配置已超时。扩展安装可能需要太长时间,或者无法获得扩展状态。"

The latest error I get is: "Deployment failed. Correlation ID: 991d09bb-8e62-48cb-819b-e240dacc2199. Provisioning of VM extension 'RunCommandLinux' has timed out. Extension installation may be taking too long, or extension status could not be obtained."

我觉得这个问题令我难以置信的是,这个问题我亲自在西欧,中央进行了测试法国和北欧都有相同的结果,但是我的同事在东部我们测试了它的工作地点。

What I find mind-boggling is that this issue I have personally tested in west-europe, central-France and north-europe, all with the same results, but my colleague tested it in east us where it worked.

我不确定继续这个。


推荐答案

嗨史蒂文,

感谢您的光临!

虽然我们正在尝试重现此问题,但请在此处打开一个问题以获取PG组的观点:

While we are trying to reproduce this issue, please open an issue here as well to get perspective from the PG group:

https://github.com/Azure/azure-cli/issues

谢谢!


这篇关于az vm run-command永远失败然后失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆