테스트 스테이징 환경을 설정하기 위한 토폴로지와 맵핑 파일

이 주제에서는 실제 프로덕션 데이터를 사용하여 테스트 스테이징 환경을 설정하기 위해 서버 이름 바꾸기를 사용하는 데 필요한 샘플 토폴로지 다이어그램과 맵핑 파일을 보여줍니다. 스테이징 환경은 프로덕션 환경과 분리된 프로덕션 데이터의 스냅샷을 포함하는 테스트 샌드박스입니다.

테스트 스테이징 환경을 계획할 때 프로덕션 데이터를 오염시키지 않도록 특히 주의해야 합니다(그 반대의 경우도 마찬가지임). 맵핑 파일에서 프로덕션 서버를 마스킹하여 이를 완수합니다. 프로덕션 서버에 연결될 수 있는 추가적 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

다음과 같이 호스트 파일을 편집하여 프로덕션 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 Server와 통합되며 하나의 배치는 Rational ClearQuest 및 Rational ClearCase와 통합됩니다.

링크된 두 개의 CLM 배치가 있는
프로덕션 환경

한 개의 분산 배치를 스테이징 환경에 복사

서버 이름 바꾸기와 결과 평가를 수행할 수 있는 프로덕션 배치를 스테이징 환경에 복사하려면 프로덕션 데이터로 테스트 스테이징 환경 설정의 지시사항에 따라 수행하십시오. 이 시나리오에서는 스테이징 영역에 하나의 배치만 가져옵니다. 다음 다이어그램은 스테이징 환경에서 이름 바꾸기를 수행한 이후의 토폴로지 모양을 보여줍니다. Rational ClearQuest와 Rational ClearCase는 스테이징 환경에서 지원되지 않으며 두 번째 배치는 사용 불가능(회색으로 표시)합니다.

하나의 이름이 바뀐 후
링크된 두 개의 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

호스트 파일을 편집하여 모든 프로덕션 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 배치 각각에 대해 준비되어 있습니다. importURLMappings 명령은 각 Jazz Team Server에서 두 번 실행되어야 합니다. 한 번은 Jazz Team Server의 맵핑 파일에 대해 실행되어야 하고 한 번은 Jazz Team Server에서 생성된 다른 맵핑 파일에 대해 실행되어야 합니다. 다음 다이어그램은 스테이징 환경에서 이름 바꾸기를 수행한 이후의 토폴로지 모양을 보여줍니다. ClearQuest와 ClearCase는 스테이징 환경에서 지원되지 않는다는 점에 유의하십시오.

둘 모두 이름이 바뀐 후
링크된 두 개의 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 명령이 이 두 맵핑이 동일함을 발견함으로 두 번째는 작동하지 않습니다.

#/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

호스트 파일을 편집하여 프로덕션 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

피드백