本文介绍了[Linux]调整后的操作系统磁盘不加密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我正在尝试使用扩展的操作系统磁盘加密Ubuntu 16虚拟机,但它失败了。
I am attempting to encrypt an Ubuntu 16 VM with an expanded OS disk, but it is failing.
" statusMessage" :
" {\" status \":\" Failed\",\" error\":{\" code\":\" ResourceOperationFailure\",\" message\":\" ;资源操作已完成,终端配置状态为'Failed'。\","\"详细信息\":[{\" code \":\" VMExtensionProvisioningError \", \" message \":\" VM
在处理扩展程序'AzureDiskEncryptionForLinux'时报告失败。错误消息:\\\&"无法加密操作系统卷,但错误:'NoneType'对象没有属性'getFlag',堆栈跟踪:跟踪(最近一次调用最后一次):\\\\
文件\\\ \\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/handle.py\\\" ;,
第1633行,在daemon_encrypt \\\ \\ n os_encryption.start_encryption()\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/oscrypto/ubuntu_1604/Ubuntu1604EncryptionStateMachine.py\\ \\\\",第191行,在start_encryption中\\ n
self.enter_split_root_partition()\\ n文件\\\" / var / lib / waagent / Microsoft。 Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30 / transitions / transitions / core.py\\\",222行,在trigger \\ n中返回self.machine.process(f)\\ n档案\\\" / var / lib / waagent /Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30 / transitions / transitions / core.py \\\",
line 526,in process\\\\
return trigger ()\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/transitions/transitions/core.py\\\" ,第247行,如果是t.execute(事件),则在_trigger \\ n中:\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1。 0.30 / transitions / transitions / core.py \\\",
第148行,在执行\\ n self._change_state(event_data)\\\\
文件\\\ " /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/transitions/transitions/core.py\\\",第159行,在_change_state \\ n event_data.machine中.get_state(self.dest).enter(event_data)\\ n
文件\\\" / var / lib / waagent / Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30 / transitions / transitions / core.py\\\,"第48行,在enter \\ event_data.machine.callback中( oe,event_data)\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/transitions/transitions/core.py\\\\ ",
第518行,在callback中\\ n func(* event_data.args,** event_data.kwargs)\\ n文件\\\" / var / lib / waagent /Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/oscrypto/ubuntu_1604/Ubuntu1604EncryptionStateMachine.py\\\" ;,第114行,在on_enter_state \\ n
super(Ubuntu1604EncryptionStateMachine,self ).on_enter_state()\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/oscrypto/OSEncryptionStateMachine.py\\ \\",第65行,在on_enter_ state \\ n self.state_objs [self.state] .enter()\\ n
File \\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux -1.1.0.30 / main / oscrypto / ubuntu_1604 / encryptstates / SplitRootPartitionState.py\\\\",第157行,输入\\ n if(root_partition.getFlag(parted.PARTITION_BOOT)):\\\ \\ nAntribute:
'NoidType'对象没有属性'getFlag'\\ n,机器状态:split_root_partition \\\"。\"}]}}"
" {\" status \":\" Failed\",\" error\":{\" code\":\" ResourceOperationFailure\",\" message\":\" ;资源操作已完成,终端配置状态为'Failed'。\","\"详细信息\":[{\" code \":\" VMExtensionProvisioningError \", \" message \":\" VM
在处理扩展程序'AzureDiskEncryptionForLinux'时报告失败。错误消息:\\\&"无法加密操作系统卷,但错误:'NoneType'对象没有属性'getFlag',堆栈跟踪:跟踪(最近一次调用最后一次):\\\\
文件\\\ \\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/handle.py\\\" ;,
第1633行,在daemon_encrypt \\\ \\ n os_encryption.start_encryption()\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/oscrypto/ubuntu_1604/Ubuntu1604EncryptionStateMachine.py\\ \\\\",第191行,在start_encryption中\\ n
self.enter_split_root_partition()\\ n文件\\\" / var / lib / waagent / Microsoft。 Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30 / transitions / transitions / core.py\\\",222行,在trigger \\ n中返回self.machine.process(f)\\ n档案\\\" / var / lib / waagent /Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30 / transitions / transitions / core.py \\\",
line 526,in process\\\\
return trigger ()\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/transitions/transitions/core.py\\\" ,第247行,如果是t.execute(事件),则在_trigger \\ n中:\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1。 0.30 / transitions / transitions / core.py \\\",
第148行,在执行\\ n self._change_state(event_data)\\\\
文件\\\ " /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/transitions/transitions/core.py\\\",第159行,在_change_state \\ n event_data.machine中.get_state(self.dest).enter(event_data)\\ n
文件\\\" / var / lib / waagent / Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30 / transitions / transitions / core.py\\\,"第48行,在enter \\ event_data.machine.callback中( oe,event_data)\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/transitions/transitions/core.py\\\\ ",
第518行,在callback中\\ n func(* event_data.args,** event_data.kwargs)\\ n文件\\\" / var / lib / waagent /Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/oscrypto/ubuntu_1604/Ubuntu1604EncryptionStateMachine.py\\\" ;,第114行,在on_enter_state \\ n
super(Ubuntu1604EncryptionStateMachine,self ).on_enter_state()\\ n文件\\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux-1.1.0.30/main/oscrypto/OSEncryptionStateMachine.py\\ \\",第65行,在on_enter_ state \\ n self.state_objs [self.state] .enter()\\ n
File \\\" /var/lib/waagent/Microsoft.Azure.Security.AzureDiskEncryptionForLinux -1.1.0.30 / main / oscrypto / ubuntu_1604 / encryptstates / SplitRootPartitionState.py\\\\",第157行,输入\\ n if(root_partition.getFlag(parted.PARTITION_BOOT)):\\\ \\ nAntribute:
'NoidType'对象没有属性'getFlag'\\ n,机器状态:split_root_partition \\\"。\"}]}}"
推荐答案
这篇关于[Linux]调整后的操作系统磁盘不加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!