Last time, I just tried it with GUI for the time being, so it's a continuation. http://qiita.com/azzeten/items/fca985f9847600a0b2e9
I tried to prepare on the OS side according to the Bluemix manual. https://console.ng.bluemix.net/docs/services/ObjectStorage/index.html#using-swift-cli
It seems that you need to install the Swift tool (swiftclient) and use pip for it ... However, the story starts on the premise that this manual and pip are installed, and since pip is not included in my environment in the first place, I will start from there ... Well, I stumbled on various things, so I will write it down.
$ sudo yum install gcc make fuse fuse-devel curl-devel libxml2-devel openssl-devel git
$ sudo modprobe fuse
Since python itself was included, I didn't install it in particular ... Confirmed for the time being.
$ sudo which python /bin/python
Get the file at the specified URL with curl and process it with python. It was a little strange, so I will post the log. It says failed, but especially. .. It was okay (because the following worked properly).
$ sudo curl -kL https://bootstrap.pypa.io/get-pip.py | python % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1487k 100 1487k 0 0 4553k 0 --:--:-- --:--:-- --:--:-- 4561k Collecting pip /tmp/tmp45LTIF/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning. /tmp/tmp45LTIF/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB) 100% |████████████████████████████████| 1.2MB 733kB/s Collecting wheel Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB) 100% |████████████████████████████████| 71kB 7.9MB/s Installing collected packages: pip, wheel Successfully installed pip-8.1.1 wheel-0.29.0 /tmp/tmp45LTIF/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Finally, install swiftclient!
$ sudo pip install python-swiftclient $ sudo pip install python-keystoneclient
So, I thought it was okay ♪, but when I actually tried to use object storage later, it didn't work. Not only the Bluemix manual, but also the link posted there, I finally solved it. http://docs.openstack.org/user-guide/common/cli_install_openstack_command_line_clients.html#install-the-prerequisite-software
It seems that you also need to install python-devel. Kya. .. By the way, I was angry with such an error.
checking for netlink support...yes. will use netlink to read routing table building 'netifaces' extension gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DNETIFACES_VERSION=0.10.4 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-x86_64-2.7/netifaces.o netifaces.c:1:20:Fatal error: Python.h:There is no such file or directory #include <Python.h> ^ Compiling has stopped. error: command 'gcc' failed with exit status 1
I did a lot of research ... So I'll solve it below.
#python-install devel $ sudo yum install python-devel #Revenge! $ sudo pip install python-keystoneclient
Next time, I will write from the point of looking at the Object Storage file from Linux.