°Ô½Ã¹° 1,369°Ç
   
Archive Storage API -SWIFT
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2019-08-13 (È­) 13:55 Á¶È¸ : 1823
±ÛÁÖ¼Ò :
                                

# cat /etc/issue
Ubuntu 18.04.3 LTS \n \l

# swift 

Command 'swift' not found, but can be installed with:

snap install openstackclients     # version rocky, or
snap install swift                # version 4.0.3
apt  install python-swiftclient 
apt  install python3-swiftclient

See 'snap info <snapname>' for additional versions.


# apt install python-swiftclient


#  swift -A http://115.68.238.26/auth/1.0 -U <USER>:s3 -K <API_KEY> list
aaa-iwinv1

  :: swift -A http://115.68.238.26/auth/1.0 -U <USER>:swift -K <Secret_KEY> list
# swift -A http://115.68.238.26/auth/1.0 -U <USER>:swift -K <API_KEY> list
aaa-iwinv1


ȯ°æº¯¼ö·Î Á¤ÀÇÇؼ­ »ç¿ë
swift list
Auth version 1.0 requires ST_AUTH, ST_USER, and ST_KEY environment variables
to be set or overridden with -A, -U, or -K.

Auth version 2.0 requires OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, and
OS_TENANT_NAME OS_TENANT_ID to be set or overridden with --os-auth-url,
--os-username, --os-password, --os-tenant-name or os-tenant-id. Note:
adding "-V 2" is necessary for this.


# export ST_AUTH=http://192.168.210.64/auth/1.0
# export ST_USER=mojily:swift
# export ST_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

# swift stat                        



SSL »ç¿ëÇÒ¶§´Â..
# export ST_AUTH=https://192.168.210.64/auth/1.0
# export ST_USER=mojily:swift
# export ST_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

# swift list --insecure




# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 

# swift 

Command 'swift' not found, but can be installed with:
snap install openstackclients     # version rocky, or
snap install swift                # version 4.0.3
apt  install python-swiftclient 
apt  install python3-swiftclient

See 'snap info <snapname>' for additional versions.


# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install python-pip
# pip install python-swiftclient


¡Ø error message 
# pip install python-swiftclient
You are using pip version 8.1.2, however version 19.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

# pip install --upgrade pip


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.