연산자가 Engineering Lifecycle Management 지원하는 repotools 실행

관리자와 지원 팀은 서버가 실행 중일 때 하이브리드 클라우드 컨테이너의 Engineering Lifecycle Management 에서 repotools를 실행합니다. 명령어를 사용하여 repotool을 실행할 수 있습니다.

다음은 repotool 명령어를 실행하기 위한 샘플 ELMOperation YAML 파일입니다:

apiVersion: elm.ibm.com/v1  
kind: ELMOperation  
metadata:  
  name: elmoperation-sample  
  namespace: repotool-test  
spec:  
  allApplications: false  
  operationType: executeRepotoolCommand  
  repotoolCommand: backupJFSIndexes 
  repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=elm-auth-secret::SCIM_PROVIDER_USERID adminPassword=elm-auth-secret::SCIM_PROVIDER_PASSWORD  
  selectedApplications:  
    ldx: false  
    lqe: false  
    dcc: false  
    jts: true  
    rb:  false  
    ccm: false  
    eni: false  
    rm:  false  
    gc:  false  
    qm:  false 
    jas: false 

다음은 API를 ELMOperation 사용하여 repotool 명령을 실행하기 위해 적용되는 제한 규칙입니다

allApplications
이 필드는 false로 설정해야 합니다. 모든 애플리케이션에 대해 특정 repotool 명령을 동시에 또는 병렬로 실행하는 것은 지원되지 않기 때문입니다.
selectedApplications
이 필드는 하나의 애플리케이션만 true 로 설정해야 합니다. 여러 애플리케이션에 대해 동시에 repotool 명령을 실행하는 것은 권장되지 않기 때문입니다. 또한, 애플리케이션이 true 로 설정된 경우 repotool 명령어 실행을 지원해야 합니다.
참고: JAS, LQE, LDX, RB 애플리케이션은 repotool 실행을 지원하지 않습니다.
operationType
이 필드는 ELMOperation 인스턴스 생성을 통해 repotool 명령어를 실행하기 위한 것입니다. 다음과 같이 설정해야 합니다. executeRepotoolCommand
repotoolCommand
이 필드는 실행할 repotool 명령어를 입력하는 데 사용됩니다. 전통적으로 명령어는 repotool ‘appname’.sh 파일을 사용하여 실행됩니다:
./repotools-jts.sh -backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=ADMIN adminPassword=ADMIN
그러나 ELMOperation yaml의 경우, repotool 명령어와 그 매개변수를 다음과 같은 방식으로 입력해야 합니다:
‘backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip’
예를 들면 다음과 같습니다.
backupJFSIndexes repositoryURL=https://hostname.example.com:9443/jts toFile=opt/temp/JFSIndexesBackup.zip adminUserId=elm-auth-secret::SCIM_PROVIDER_USERID adminPassword=elm-auth-secret::SCIM_PROVIDER_PASSWORD’
자세한 내용은 ELMOperation을 참조하고, Repotool 명령어를 실행하십시오
참고:
  • repotool 명령어의 ‘teamserver.properties’ 인수 기본 위치는 ‘/elm/server/conf/jts/teamserver.properties’
  • 운영자는 지원되는 모든 명령에 대해 실행 모드(온라인 또는 오프라인)를 결정합니다.
  • 입력 파일 경로가 필요한 repotool 명령어의 경우, 해당 파일을 지정된 위치로 복사한 ‘/elm/server/conf’ 후 해당 경로를 인수로 제공해야 합니다. 자세한 내용은 저장소 도구 명령줄 참조을 참조하십시오