Verifikasi operasi

Verifikasi operasi

Lakukan verifikasi pengoperasian layanan Object Storage.

Catatan

Lakukan langkah ini pada controller node.

  1. Dapatkan sumber kredensial demo:

    $ . demo-openrc
    
  2. Tampilkan status layanan:

    $ 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. Buat container container1:

    $ openstack container create container1
    +---------------------------------------+------------+------------------------------------+
    | account                               | container  | x-trans-id                         |
    +---------------------------------------+------------+------------------------------------+
    | AUTH_ed0b60bf607743088218b0a533d5943f | container1 | tx8c4034dc306c44dd8cd68-0056f00a4a |
    +---------------------------------------+------------+------------------------------------+
    
  4. Upload file test ke container container1:

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

    Ganti FILE dengan nama file lokal untuk meng-upload ke container container1.

  5. Daftarlah file dalam container container1:

    $ openstack object list container1
    +------+
    | Name |
    +------+
    | FILE |
    +------+
    
  6. Download file test dari container container1:

    $ openstack object save container1 FILE
    

    Ganti FILE dengan nama file upload ke container container1.

    Catatan

    Command ini tidak memberikan output.

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.