用于设置测试登台环境的拓扑和映射文件

本主题说明了使用服务器重命名为测试登台环境设置实际生产数据的样本拓扑图和映射文件。登台环境是与生产环境隔离并且包括生产数据的快照的测试沙箱。

规划测试登台环境时,您需要特别谨慎,请勿破坏生产数据,反之亦然。这可以通过在映射文件中掩盖生产服务器来实现。务必考虑任何其他可能已连接至生产服务器的 CLM 服务器或者任何集成服务器。

起始点 1 - 单一服务器 CLM 生产部署

以下拓扑图显示了重命名之前的非分布式 CLM 部署。在此示例中,Jazz™ Team Server 和三个 CLM 应用程序全部位于同一主机系统中。

单一服务器 CLM 生产部署

复制生产环境

要将生产部署复制到登台环境(您可以在登台环境中执行服务器重命名和评估结果),请遵循使用生产数据设置测试登台环境中的指示信息。下图显示了在进行重命名之后的拓扑情况(CLM 应用程序全部位于同一登台服务器 staging.example.org 上)。

复制生产环境

此方案满足简化映射文件的需求。已准备的映射文件只需包含一个映射。不需要伪映射,这是因为简化映射涵盖了此拓扑中的所有 URL。有关更多详细信息,请参阅使用简化映射文件。

# Simplified mapping
source=https://production.example.org:9443
target=https://staging.example.org:9443

建议您编辑 hosts 文件,以将生产 URL 重定向至一个假 IP 地址,如下所示:

# 10.10.10.10 refers to an IP address that does not host a clm application.
10.10.10.10   production.example.org

起始点 2 - 具有两个互相链接的 CLM 部署的生产环境

以下拓扑图显示了两个互相链接的 CLM 部署。每个 CLM 部署都是分布式部署,Jazz Team Server 和每个应用程序都在不同的主机上运行。两个部署都与 Rational Reporting 服务器进行了集成,并且其中一个部署与 Rational ClearQuest 和 Rational ClearCase 进行了集成。

具有两个互相链接的 CLM 部署的生产环境

将单个分布式部署复制到登台环境

要将生产部署复制到登台环境(您可以在登台环境中执行服务器重命名和评估结果),请遵循使用生产数据设置测试登台环境中的指示信息。在此方案中,我们只将一个部署引入登台区域。下图显示了在登台环境中进行重命名之后的拓扑情况。请注意,登台环境中不支持 Rational ClearQuest 和 Rational ClearCase,因此,第二个部署已变灰。

两个互相链接的 CLM 部署,在将其中一个 CLM 部署重命名之后的情况

在生成和编辑映射文件之后,它应为如下所示。为了避免在登台环境与生产环境之间造成污染,已经向映射文件添加了未登台生产服务器的 URL 的伪映射。

#/jts
source=https://jts1.production.example.org:9443/jts
target=https://jts1.staging.example.org:9443/jts
#Additional Urls included in rename by /jts
#(CLM Help URL)
source=https://jts1.production.example.org:9443/clmhelp
target=https://jts1.staging.example.org:9443/clmhelp

#/admin
source=https://jts1.production.example.org:9443/admin
target=https://jts1.staging.example.org:9443/admin

#/ccm
source=https://ccm1.production.example.org:9443/ccm
target=https://ccm1.staging.example.org:9443/ccm

#/qm
source=https://qm1.production.example.org:9443/qm
target=https://qm1.staging.example.org:9443/qm

#/rm
source=https://rm1.production.example.org:9443/rm
target=https://rm1.staging.example.org:9443/rm
#Additional Urls included in rename by /rm
#(The address of the application used to generate images for graphical artifacts.)
source=https://rm1.production.example.org:9443/converter/htmlgen
target=https://rm1.staging.example.org:9443/converter/htmlgen

# RRDI
source=https://rrdi.production.example.org:9082/reporting
target=https://rrdi.staging.example.org:9082/reporting

# Affected URLs
# https://cqwebhost.production.example.org:9443/cqweb/oslc
# https://cqsynchhost.production.example.org:8444/cqconnector/gateway

# Dummy mappings for affected URLs
source=https://cqwebhost.production.example.org:9443
target=https://dummyhost1.example.org:9443
source=https://cqsynchhost.production.example.org:8444
target=https://dummyhost2.example.org:8444

# Dummy mappings for the second CLM deployment
#/jts
source=https://jts2.production.example.org:9443/jts
target=https://jts2.dummyhost.example.org:9443/jts
#Additional Urls included in rename by /jts
#(CLM Help URL)
source=https://jts2.production.example.org:9443/clmhelp
target=https://jts2.dummyhost.example.org:9443/clmhelp

#/admin
source=https://jts2.production.example.org:9443/admin
target=https://jts2.dummyhost.example.org:9443/admin

#/ccm
source=https://ccm2.production.example.org:9443/ccm
target=https://ccm2.dummyhost.example.org:9443/ccm

#/qm
source=https://qm2.production.example.org:9443/qm
target=https://qm2.dummyhost.example.org:9443/qm

#/rm
source=https://rm2.production.example.org:9443/rm
target=https://rm2.dummyhost.example.org:9443/rm
# Additional Urls included in rename by /rm
#(The address of the application used to generate images for graphical artifacts.)
source=https://rm2.production.example.org:9443/converter/htmlgen
target=https://rm2.dummyhost.example.org:9443/converter/htmlgen

建议您编辑 hosts 文件,以将所有生产 URL 重定向至一个假 IP 地址。

# 10.10.10.10 refers to an IP address that does not host a clm application.
10.10.10.10   cqwebhost.production.example.org
10.10.10.10   cqsynchhost.production.example.org
10.10.10.10   jts2.production.example.org
10.10.10.10   ccm2.production.example.org
10.10.10.10   qm2.production.example.org
10.10.10.10   rm2.production.example.org

将两个分布式部署都复制到登台环境

要将生产部署复制到登台环境(您可以在登台环境中执行服务器重命名和评估结果),请遵循使用生产数据设置测试登台环境中的指示信息。因为这两个部署是互相链接的,所以它们的 URL 位于每个数据库中。在此示例中,为这两个 CLM 部署中的每个部署都准备了单独的映射文件。在每个 Jazz Team Server 上,importURLMappings 命令都必须运行两次 - 对 Jazz Team Server 的映射文件运行一次,对另一个 Jazz Team Server 的所生成映射文件运行一次。下图显示了在登台环境中进行重命名之后的拓扑情况。请注意,登台环境中不支持 ClearQuest 和 ClearCase。

两个互相链接的 CLM 部署,在将这两个 CLM 部署都重命名之后的情况

在生成和编辑第一个部署的映射文件之后,它应为如下所示。已经向映射文件添加伪映射,以避免在登台环境与生产环境之间造成污染。

#/jts
source=https://jts1.production.example.org:9443/jts
target=https://jts1.staging.example.org:9443/jts
#Additional Urls included in rename by /jts
#(CLM Help URL)
source=https://jts1.production.example.org:9443/clmhelp
target=https://jts1.staging.example.org:9443/clmhelp

#/admin
source=https://jts1.production.example.org:9443/admin
target=https://jts1.staging.example.org:9443/admin

#/ccm
source=https://ccm1.production.example.org:9443/ccm
target=https://ccm1.staging.example.org:9443/ccm

#/qm
source=https://qm1.production.example.org:9443/qm
target=https://qm1.staging.example.org:9443/qm

#/rm
source=https://rm1.production.example.org:9443/rm
target=https://rm1.staging.example.org:9443/rm
# Additional Urls included in rename by /rm
#(The address of the application used to generate images for graphical artifacts.)
source=https://rm1.production.example.org:9443/converter/htmlgen
target=https://rm1.staging.example.org:9443/converter/htmlgen

# RRDI
source=https://rrdi.production.example.org:9082/reporting
target=https://rrdi.staging.example.org:9082/reporting

# Affected URLs
# https://cqwebhost.production.example.org:9443/cqweb/oslc
# https://cqsynchhost.production.example.org:8444/cqconnector/gateway

# Dummy mappings
source=https://cqwebhost.example.org:9443
target=https://dummyhost1.example.org:9443
source=https://cqsynchhost.production.example.org:8444
target=https://dummyhost2.example.org:9443

在生成和编辑第二个部署的映射文件之后,它应为如下所示。已经向映射文件添加伪映射,以避免在登台环境与生产环境之间造成污染。请注意,第一个映射文件和第二个映射文件中包含同一个 RRDI 映射。importURLMappings 命令将检测这是同一个 RRDI 映射,而下一次它将不执行操作。

#/jts
source=https://jts2.production.example.org:9443/jts
target=https://jts2.staging.example.org:9443/jts
#Additional Urls included in rename by /jts
#(CLM Help URL)
source=https://jts2.production.example.org:9443/clmhelp
target=https://jts2.staging.example.org:9443/clmhelp

#/admin
source=https://jts2.production.example.org:9443/admin
target=https://jts2.staging.example.org:9443/admin

#/ccm
source=https://ccm2.production.example.org:9443/ccm
target=https://ccm2.staging.example.org:9443/ccm

#/qm
source=https://qm2.production.example.org:9443/qm
target=https://qm2.staging.example.org:9443/qm

#/rm
source=https://rm2.production.example.org:9443/rm
target=https://rm2.staging.example.org:9443/rm
# Additional Urls included in rename by /rm
#(The address of the application used to generate images for graphical artifacts.)
source=https://rm2.production.example.org:9443/converter/htmlgen
target=https://rm2.staging.example.org:9443/converter/htmlgen

# RRDI
source=https://rrdi.production.example.org:9082/reporting
target=https://rrdi.staging.example.org:9082/reporting

# Dummy mappings
source=https://cqwebhost.production.example.org:9443
target=https://dummyhost1.example.org:9443
source=https://cqsynchhost.production.example.org:8444
target=https://dummyhost2.example.org:9443

建议您编辑 hosts 文件,以将此生产 URL 重定向至一个假 IP 地址。

# 10.10.10.10 refers to an IP address that does not host a clm application.
10.10.10.10   cqwebhost.production.example.org
10.10.10.10   cqsynchhost.production.example.org

反馈