在预检查模式下运行域重新指向命令时,将导出并检查来自 Platform Services Controller的数据,而且会将冲突写入到文件中。
以下数据会导出到 /storage/domain-data/ or ProgramData/VMWare/vCenterServerdata/domain-data 文件夹:
- All_Privileges.json
- All_Roles.json
- All_TagCategories.json
- All_Tags.json
这些文件包含来自运行该命令的 vCenter Server的所有数据(授权和标记)。
如果使用 -dvf 或 --dest-vc-fqdn 选项提供辅助 vCenter Server,则任何冲突也会导出到同一个文件夹:
- Conflicts_Roles.json
- Conflicts_TagCategories.json
- Conflicts_Tags.json
以下是示例冲突文件:
<---- Sample Conflict file code block --->
{
"global" : {
"resolution" : "MERGE|SKIP|COPY",
"description" : "Default resolution option used to resolve Role Conflicts is COPY. The
conflicts list describes the differences between Role entities on source and target PSC. If
the source information represents an empty JSON array, it simply means that all the entity
attributes from source and target are identical. If the source lists few entries, it means
that only these entity attributes are missing from the target. If the target lists few entries,
it means that only these entity attributes are missing from the source. Though a global resolution
can be set, it can also be overridden at each conflict level by providing individual resolution
mode."
},
"conflicts-count" : 1,
"conflicts-list" : {
"NoCryptoAdmin" : {
"source" : {
"privileges" : "[]"
},
"target" : {
"privileges" : "[Group-1.SamplePriv-1, Group-1.SamplePriv-4, Group-2.SamplePriv-10,
Group-2.SamplePriv-3, Group-2.SamplePriv-7, Group-3.SamplePriv-2, Group-3.SamplePriv-9]"
},
"resolution" : ""
}
}
<----- End of code block --->
以下是示例冲突文件的几个部分:
-
description.提供有关如何阅读和理解相应冲突文件的详细信息。 -
source和target。JSON 对象,仅列出源和目标 Platform Services Controller对象之间的差异。 -
resolution.用户需提供一个有效的解决方法。有效的解决方法为MERGE、COPY和SKIP。
要指定用于处理冲突的解决方法,可在"global": "resolution" = "MERGE|SKIP|COPY"部分中为所有冲突提供默认解决方法选项。如果没有为 resolution提供有效的全局解决方法类型或没有对其进行任何编辑,系统将使用 COPY 作为默认解决方法选项。
还可以通过在每个冲突级别编辑 resolution属性为每个冲突提供有效的解决方法选项,该解决方法选项将替代全局解决方法选项。
冲突类型中列出了冲突类型。
| 冲突 | 用于比较类别对象的属性 | 冲突类型 | 有冲突的属性 | 冲突解决方法选项 |
|---|---|---|---|---|
| 角色冲突 |
|
导入角色时,如果目标 Platform Services Controller中存在具有相同名称但具有不同特权的角色时,将发生 |
对于 RoleName冲突类型,有冲突的属性可以是 Privileges。 |
|
| 标记类别冲突:类别名称在 Platform Services Controller中必须是唯一的。 |
|
导入标记类别时,只会出现一种冲突类型,即CategoryName冲突。此冲突指示目标 Platform Services Controller中存在具有相同名称但具有不同属性(cardinality 或 associableEntityType)的类别。 |
对于 CategoryName冲突类型,有冲突的属性可以是以下一种或两种类型:Cardinality 或 AssociableTypes。 |
|
标记冲突:tag对象始终属于category 对象。标记名称在类别中必须是唯一的。 |
|
导入标记时,只会出现一种冲突类型,即TagName冲突。此冲突指示目标 Platform Services Controller中的相同类别下存在具有相同名称但具有不同属性的标记。 |
对于 TagName冲突类型,有冲突的属性可以是 Description。 |
|