...
Table of Contents |
---|
Info |
---|
Note: the following installation and setup instructions are compatible with Max and Linux machines. To set up a Windows computer, please follow this guide, Swift Python Script: Windows Users. |
Install Python Swift Client
Make sure you have Python version 2.7 or higher (download python)
Windows: Set the PYTHONPATH environment variable
On your desktop, right-click My Computer, and then click Properties. In the System Properties dialog box, click Advanced, and then click Environment Variables. Under User variables for <username> (the top half of this window)
, click New. In the New User Variable dialog box, typePYTHONPATH
in the Variable name box. In the Variable Value box, type%PYTHONPATH%;C:\YourPythonFolder
(replaceC:\YourPythonFolder
with the location where you installed Python), and then click OK.Install python-swiftclient using pip:
Code Block pip install python-keystoneclient python-swiftclient
You may have the run the command with sudo if you receive a permission denied error:
Code Block sudo pip install python-keystoneclient python-swiftclient
Windows 10: run the first command in Command Prompt by clicking on the Windows Start button, typing “Command Prompt”, and then entering the command above at the prompt.
...
Setup Your Environment
Login to https://dashboard.cloud.sdsc.edu
Select the project you want to access (See: How to Change Current Working Project )
Download the OpenStack RC File (See: How To Download the OpenStack Project RC File )
Source the OpenStack RC File in your home directory by running the command below. Replace
project-openrc.sh
below with the name of the file downloaded in step 3.Code Block source project-openrc.sh
...