검증 과정

검증 과정

오브젝트 스토리지 서비스에 대한 작동을 확인합니다.

주석

해당 단계를 컨트롤러 노드에서 진행합니다.

  1. 각 클라이언트 환경 스크립트에서 오브젝트 스토리지 서비스 클라이언트가 인증 API 버전 3을 사용하도록 구성합니다:

    $ echo "export OS_AUTH_VERSION=3" \
      | tee -a admin-openrc.sh demo-openrc.sh
    
  2. demo credential을 소스로 사용합니다:

    $ source demo-openrc.sh
    
  3. 서비스 상태를 봅니다:

    $ swift stat
                            Account: AUTH_ed0b60bf607743088218b0a533d5943f
                         Containers: 0
                            Objects: 0
                              Bytes: 0
    Containers in policy "policy-0": 0
       Objects in policy "policy-0": 0
         Bytes in policy "policy-0": 0
        X-Account-Project-Domain-Id: default
                        X-Timestamp: 1444143887.71539
                         X-Trans-Id: tx1396aeaf17254e94beb34-0056143bde
                       Content-Type: text/plain; charset=utf-8
                      Accept-Ranges: bytes
    
  4. 테스트 파일 업로드:

    $ swift upload container1 FILE
    FILE
    

    Replace FILE with the name of a local file to upload to the container1 container.

  5. 컨테이너 목록:

    $ swift list
    container1
    
  6. 테스트 파일 다운로드:

    $ swift download container1 FILE
    FILE [auth 0.295s, headers 0.339s, total 0.339s, 0.005 MB/s]
    

    FILEcontainer1 컨테이너에 업로드할 파일 이름으로 변경합니다.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.