任意网络问题使用ARM模板执行脚本扩展 [英] Arbitrary network issues executing script extensions with ARM template

查看:167
本文介绍了任意网络问题使用ARM模板执行脚本扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从其他计算机下载软件包后,我的ARM模板出现了随机网络问题.

我从与类似的内容开始 github azure gallery DC模板.在升级DC并按照模板中的说明修改网络后,我请求其他几台计算机来创建我的完整环境.

其中一台机器是Ubuntu,我在其中运行脚本扩展来安装Rabbitmq.我不时看到未安装rabbitmq

 

apt-get install rabbitmq-server -qy 

无法纠正问题,您拿着损坏的包裹.

在Windows计算机中,我使用的是Powershell DSC,有时我也遇到网络问题

 

调用Web请求失败,并显示错误.无法解析远程名称:'raw.githubusercontent.com'

SendConfigurationApply函数未成功. LCM无法手动启动所需的状态配置. IMO两个问题似乎都是在计算机创建后发生的网络问题.我总是有自己的"dependsOn"在运行扩展脚本之前.

这种情况通常在我的Ubuntu计算机上更常见,因为我了解到bash尝试在DSC AFAIK具有重试机制的情况下执行一次命令.

我已经部署了数千台计算机,但从未实现在部署时100%满足计算机外部依赖关系的方式.

我认为这种情况正在越来越多的人中发生,有人找到了最小化或规避那些问题的方法吗?

谢谢!



解决方案

Solaso​​ft,您是否尝试过? 与RabbitMQ支持人员联系遇到此问题?隔离可能导致此问题的网络层或组件,而没有任何有助于确定根本原因的客户端网络捕获或诊断日志,这是一个挑战.您可以尝试使用 Netmon,wireshark 提琴手 捕获来自网络交换机的流量&错误.希望这将在这个问题上有更多的启示.希望这会有所帮助.


Hi alls,

I have a random network issue with ARM templates after while downloading packages from other machines.

I start with something very similar to the github azure gallery DC template. After promoting the DC and modifying the network as in the template I request several other machines to create my full environment.

One of those machines is an Ubuntu where I run a script extension to install rabbitmq. From time to time I see that rabbitmq has not been installed

apt-get install rabbitmq-server -qy 

Unable to correct problems, you have held broken packages.

In Windows machines I'm using powershell DSC and sometimes I have network issues too

Invoking web request failed with error. The remote name could not be resolved: 'raw.githubusercontent.com'

The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration manually.\"."`

IMO both issues seem to be network issues happening after machine has been created. I have always my "dependsOn" before running the extension script.

This usually happens more often with my Ubuntu machine as I understand that bash tries to execute the command once while DSC AFAIK has a retry mechanism.

I have deployed thousands of machines and never achieved way that machine external dependencies are 100% satisfied at deployment time.

I assume that this is happening to more people, anyone has found a way to minimize or circumvent those issues?

Thanks!



解决方案

Hi Solasoft, have you tried  contacting RabbitMQ support with this issue? It's a challenge isolating the network layer or component that may be causing this without any client-side network captures or diagnostic logs that could help pinpoint root cause. You can try using Netmon, wireshark or fiddler to capture the traffic from the network switch & error. Hopefully that will shed more light on the issue. Hope this helps.


这篇关于任意网络问题使用ARM模板执行脚本扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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