配置后azure linux waagent没有运行

时间:2015-12-11 14:24:26

标签: azure azure-virtual-machine azure-resource-manager

我使用AZURE arm从VM库中配置UBUNTU图像。

在我的模板中,我部署了图像和泊坞窗扩展程序。该模板直到最近才运行良好。现在,在部署机器后,任何扩展都无法安装。

VM 'hsvnd1wl' has not reported status for VM agent or extensions. Please verify the VM has a running VM agent, and can establish outbound connections to Azure storage.

我检查了机器,并且WAAGENT没有在机器上运行(但是已经安装了)。门户网站还指示我安装代理。

当我使用

启动代理时
#sudo service walinuxagent start

门户网站报告一切正常。重新部署后,扩展配置成功。

对于如何调试此错误或可能出错的任何想法都将非常感激。

重要参数值:

Ubuntu SKU: 14.04.2-LTS
ApiVersion: 2015-05-01-preview

请参阅以下模板资源:

"resources": [
    {
      "name": "[variables('AppVmEthernetName')]",
      "type": "Microsoft.Network/networkInterfaces",
      "location": "[resourceGroup().location]",
      "apiVersion": "[variables('ApiVersion')]",
      "properties": {
        "ipConfigurations": [
          {
            "name": "ipconfig1",
            "properties": {
              "privateIPAllocationMethod": "Dynamic",
              "subnet": {
                "id": "[variables('VmEthernetSubnetRef')]"
              }
            }
          }
        ]
      }
    },
    {
      "type": "Microsoft.Compute/virtualMachines",
      "apiVersion": "[variables('ApiVersion')]",
      "name": "[variables('AppVmName')]",
      "location": "[resourceGroup().location]",
      "dependsOn": [
        "[concat('Microsoft.Network/networkInterfaces', '/', variables('AppVmEthernetName'))]"
      ],
      "properties": {
        "hardwareProfile": {
          "vmSize": "[parameters('AppVmSize')]"
        },
        "osProfile": {
          "computerName": "[variables('AppVmHostName')]",
          "adminUsername": "[parameters('VmAdminUsername')]",
          "adminPassword": "[parameters('VmAdminPassword')]"
        },
        "storageProfile": {
          "imageReference": {
            "publisher": "[variables('AppVmImagePublisher')]",
            "offer": "[variables('AppVmImageOffer')]",
            "sku": "[parameters('AppVmUbuntuVersion')]",
            "version": "latest"
          },
          "osDisk": {
            "name": "osdisk",
            "vhd": {
              "uri": "[concat('https://', parameters('StorageAccountName'),'.blob.core.windows.net/vhds', '/',variables('AppVmDiskName'),'.vhd')]"
            },
            "caching": "ReadWrite",
            "createOption": "FromImage"
          }
        },
        "networkProfile": {
          "networkInterfaces": [
            {
              "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('AppVmEthernetName'))]"
            }
          ]
        }
      }
    },
    {
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "name": "[concat(variables('AppVmName'),'/', 'DockerExtension')]",
      "apiVersion": "[variables('ApiVersion')]",
      "location": "[resourceGroup().location]",
      "dependsOn": [
        "[concat('Microsoft.Compute/virtualMachines/', variables('AppVmName'))]"
      ],
      "properties": {
        "publisher": "Microsoft.Azure.Extensions",
        "type": "DockerExtension",
        "typeHandlerVersion": "1.0",
        "autoUpgradeMinorVersion": true,
        "settings": { 
          "compose": {
            "weblogic": {
              "image": "caioquirino/weblogic:12c",
              "ports": [ "7001:7001", "7002:7002"],
              "environment": {
                "DOMAIN_NAME": "default"
              },
              "volumes": [
                "/oracle/weblogic/domains:/weblogic/domains"
              ]
            }
          }
        }
      }
    }

更新1:

下面的日志输出。在配置失败后登录到计算机时,将配置包含映像的docker。我可以在存储上WGET资源并解析DNS名称。

我没有看到发生此错误的任何原因。

15:02:30 ERROR:Socket IOError [Errno -2] Name or service not known, args:(-2, 'Name or service not known')
15:02:30 ERROR:Retry=2
15:02:30 ERROR:HTTP Req: HEAD https://somestorage.blob.core.windows.net/vhds/wldisk.495ed12f-5b2b-496d-8e35-04d792f3edf3.status?sv=2014-02-14&sr=b&sig=signature_here&sp=rw
15:02:30 ERROR:HTTP Req: Data=None
15:02:30 ERROR:HTTP Req: Header={'x-ms-version': '2014-02-14', 'x-ms-date': '2015-12-11T15:00:09Z'}
15:02:30 ERROR:HTTP Err: response is empty.
15:03:20 ERROR:Socket IOError [Errno -2] Name or service not known, args:(-2, 'Name or service not known')
15:03:20 ERROR:Can't get status blob type.
15:03:20 ERROR:Unknown blob type: None
15:04:25 ERROR:Socket IOError [Errno -2] Name or service not known, args:(-2, 'Name or service not known')
15:04:25 ERROR:Retry=0
15:04:25 ERROR:HTTP Req: HEAD https://somestorage.blob.core.windows.net/vhds/wldisk.495ed12f-5b2b-496d-8e35-04d792f3edf3.status?sv=2014-02-14&sr=b&sig=signature_here&sp=rw
15:04:25 ERROR:HTTP Req: Data=None
15:04:25 ERROR:HTTP Req: Header={'x-ms-version': '2014-02-14', 'x-ms-date': '2015-12-11T15:03:45Z'}
15:04:25 ERROR:HTTP Err: response is empty.
15:04:50 ERROR:Traceback (most recent call last):
15:04:50 ERROR:  File "/usr/sbin/waagent", line 5938, in main
15:04:50 ERROR:    WaAgent.Run()
15:04:50 ERROR:  File "/usr/sbin/waagent", line 5540, in Run
15:04:50 ERROR:    goalState.ExtensionsConfig.ReportHandlerStatus()
15:04:50 ERROR:  File "/usr/sbin/waagent", line 3831, in ReportHandlerStatus
15:04:50 ERROR:    UploadStatusBlob(uri, status.encode("utf-8"))
15:04:50 ERROR:  File "/usr/sbin/waagent", line 2890, in UploadStatusBlob
15:04:50 ERROR:    blobType = GetBlobType(url)
15:04:50 ERROR:  File "/usr/sbin/waagent", line 2819, in GetBlobType
15:04:50 ERROR:    }, chkProxy=True);
15:04:50 ERROR:  File "/usr/sbin/waagent", line 2758, in HttpHead
15:04:50 ERROR:    return self.HttpRequest("HEAD", url, None, headers, maxRetry, chkProxy)
15:04:50 ERROR:  File "/usr/sbin/waagent", line 2750, in HttpRequest
15:04:50 ERROR:    headers, proxyHost, proxyPort)
15:04:50 ERROR:  File "/usr/sbin/waagent", line 2678, in _HttpRequest
15:04:50 ERROR:    conn.request(method, path, data)
15:04:50 ERROR:  File "/usr/lib/python2.7/httplib.py", line 979, in request
15:04:50 ERROR:    self._send_request(method, url, body, headers)
15:04:50 ERROR:  File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
15:04:50 ERROR:    self.endheaders(body)
15:04:50 ERROR:  File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
15:04:50 ERROR:    self._send_output(message_body)
15:04:50 ERROR:  File "/usr/lib/python2.7/httplib.py", line 839, in _send_output
15:04:50 ERROR:    self.send(message_body)
15:04:50 ERROR:  File "/usr/lib/python2.7/httplib.py", line 811, in send
15:04:50 ERROR:    self.sock.sendall(data)
15:04:50 ERROR:  File "/usr/lib/python2.7/ssl.py", line 326, in sendall
15:04:50 ERROR:    amount = len(data)
15:04:50 ERROR:TypeError: object of type 'bool' has no len()
15:04:50 ERROR:
15:04:50 ERROR:Exception: object of type 'bool' has no len()

1 个答案:

答案 0 :(得分:1)

您可以从/var/log/waagent.log获取waagent日志。和来自/ var / log / azure /.

的扩展日志