검증 과정

검증 과정

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

주석

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

  1. demo credential을 소스로 사용합니다:

    $ . demo-openrc
    
  2. 서비스 상태를 봅니다:

    $ 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
    
  3. container1 컨테이너를 생성합니다:

    $ openstack container create container1
    +---------------------------------------+------------+------------------------------------+
    | account                               | container  | x-trans-id                         |
    +---------------------------------------+------------+------------------------------------+
    | AUTH_ed0b60bf607743088218b0a533d5943f | container1 | tx8c4034dc306c44dd8cd68-0056f00a4a |
    +---------------------------------------+------------+------------------------------------+
    
  4. 테스트 파일을 container1 컨테이너에 업로드합니다:

    $ openstack object create container1 FILE
    +--------+------------+----------------------------------+
    | object | container  | etag                             |
    +--------+------------+----------------------------------+
    | FILE   | container1 | ee1eca47dc88f4879d8a229cc70a07c6 |
    +--------+------------+----------------------------------+
    

    container1 컨테이너에 로컬 파일의 이름을 FILE 로 변경한 후 업로드 합니다.

  5. container1 컨테이너 내 파일을 나열합니다:

    $ openstack object list container1
    +------+
    | Name |
    +------+
    | FILE |
    +------+
    
  6. container1 컨테이너로부터 테스트 파일을 다운로드합니다:

    $ openstack object save container1 FILE
    

    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.