在linux vm上无法访问az vm加密禁用中的数据错误 [英] no access to data trough error in az vm encryption disable on linux vm

查看:81
本文介绍了在linux vm上无法访问az vm加密禁用中的数据错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们意外执行了'


'az  vm encrpytion disalbe'针对Linux(Suse Linux 12)机器。


退出时出现错误: 

部署失败。相关ID:b7b44d2c-8530-44b4-9cfe-64c04431e285。 VM'< name removed>'上的VM代理未报告扩展"AzureDiskEncryptionForLinux"的最新状态。请验证VM是否有正在运行的VM代理,并且可以建立与Azure存储的
出站连接。


重新启动后,我们无法再访问分区。我们无法安装它们。

磁盘仍显示为连接。



如果我们执行'az vm encryption show' ,结果是返回一个错误的json:


{

  "dataDisk":"EncryptionInProgress",

  " osDisk":"EncryptionInProgress",

  "osDiskEncryptionSettings":{

  &NBSP; "diskEncryptionKey":{

  &NBSP; &NBSP; " secretUrl":" https://<出于安全原因> / secrets /< a fency guid> /<另一个guid>" ;,
  &NBSP; &NBSP; "sourceVault":{

  &NBSP; &NBSP; &NBSP; " id":" / subscriptions /< subscriptionID> / resourceGroups /< resorucegroupname> /providers/Microsoft.KeyVault/vaults/< secret-name>"

  &NBSP; &NBSP; }¥b $ b  &NBSP; },b $ b  &NBSP; "启用":真实,

  &NBSP; " keyEncryptionKey":{

  &NBSP; &NBSP; " keyUrl":" https://<已移除,出于安全原因> / keys /< a guid> /<另一个guid>",

  &NBSP; &NBSP; "sourceVault":{

  &NBSP; &NBSP; &NBSP; " id":" / subscriptions /< subscriptionID> / resourceGroups /< resorucegroupname> /providers/Microsoft.KeyVault/vaults/< secret-name>"

  &NBSP; &NBSP; }¥b $ b  &NBSP; }¥b $ b  },b $ b  "osType":"Linux","
  " progressMessage":"无法使用错误禁用扩展名:'NoneType'对象没有属性'get',堆栈跟踪:Traceback(最近一次调用最后一次):\ n 文件\"main / handle.py \",第110行,在disable_encryption \ n 
  extension_parameter = ExtensionParameter(hutil,logger,DistroPatcher,encryption_environment,get_protected_settings(),get_public_settings())\ n 文件\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-0.1.0.999329/main/ExtensionParameter.py\" ;,
第66行,在__init__ \ n  &NBSP; self.AADClientSecret = protected_settings.get(CommonVariables.AADClientSecretKey)\ nAttributeError:'NoneType'对象没有属性'get'\ nn"

}

有人可以帮助我们请问这里?






看看: http://www.scapaot.de

解决方案

基于第一个错误,似乎VM代理不再响应。


您是否可以尝试在VM上手动重新安装它以查看是否可以修复首先出现错误? 


https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux#installation


Hi there,

we accidentialy executed 'az  vm encrpytion disalbe' against a linux (Suse Linux 12) machine.

It quit with the error: 
Deployment failed. Correlation ID: b7b44d2c-8530-44b4-9cfe-64c04431e285. VM agent on VM '<name removed>' has not reported latest status for extension 'AzureDiskEncryptionForLinux'. Please verify the VM has a running VM agent and can establish outbound connections to Azure storage.

After a reboot, we do not have access to the partitions anymore. And we are not able to mount them.
The disk is still shown as connects.

If we execute 'az vm encryption show', the result is returning a json with an error:

{
  "dataDisk": "EncryptionInProgress",
  "osDisk": "EncryptionInProgress",
  "osDiskEncryptionSettings": {
    "diskEncryptionKey": {
      "secretUrl": "https://<removed for security reasons>/secrets/<a fency guid>/<another guid>",
      "sourceVault": {
        "id": "/subscriptions/<subscriptionID>/resourceGroups/<resorucegroupname>/providers/Microsoft.KeyVault/vaults/<secret-name>"
      }
    },
    "enabled": true,
    "keyEncryptionKey": {
      "keyUrl": "https://<removed for security reasons>/keys/<a guid>/<another guid>",
      "sourceVault": {
        "id": "/subscriptions/<subscriptionID>/resourceGroups/<resorucegroupname>/providers/Microsoft.KeyVault/vaults/<secret-name>"
      }
    }
  },
  "osType": "Linux",
  "progressMessage": "Failed to disable the extension with error: 'NoneType' object has no attribute 'get', stack trace: Traceback (most recent call last):\n  File \"main/handle.py\", line 110, in disable_encryption\n    extension_parameter = ExtensionParameter(hutil, logger, DistroPatcher, encryption_environment, get_protected_settings(), get_public_settings())\n  File \"/var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-0.1.0.999329/main/ExtensionParameter.py\", line 66, in __init__\n    self.AADClientSecret = protected_settings.get(CommonVariables.AADClientSecretKey)\nAttributeError: 'NoneType' object has no attribute 'get'\n"
}

Can someone help us out here please?


Have a look at: http://www.scapaot.de

解决方案

Based on the first error it seems the VM Agent is no longer responding.

Can you try manually reinstalling that on the VM to see if you can fix that error first? 

https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/agent-linux#installation


这篇关于在linux vm上无法访问az vm加密禁用中的数据错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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