Installing the Openstack clients on OS X
This will help you get the Openstack clients working on Mac OS X 10.11.x. It may work on recent older versions of Mac OS X but it has not been tested.
Follow the instructions below at your own risk.
Task | Command |
---|---|
If it’s not already installed, install Xcode from the App Store. | |
Add these lines to .bash_profile |
|
Run this command |
|
Verify that the Xcode required tools are installed and functional (This command may require root access to run.) |
|
Set the permissions that Brew expects |
|
Install Brew if not already installed |
|
If Brew is installed, update as needed. |
|
If prompted to agree to the Xcode license run: |
|
Check the Brew install with this command. If errors found doctor will provide instructions to fix them. | brew doctor |
Verify that Brew is up to date | brew update |
Install python | brew install python |
Fix the links | brew linkapps python |
+Though not strictly necessary, we recommend using virtualenv to increase the stability of the openstack cli tools. | |
Create a directory for the project (cd to your preferred directory first)+ | mkdir <project_name> |
Change to the project directory | cd <project_name> |
Install the VirtualEnvironment packages | sudo easy_install virtualenv |
Start the VirtualEnvironment software | virtualenv <project_name> |
Activate the VirtualEnvironment for the project |
|
Install the OpenStack clients |
python-swiftclient, python-heatclient, python-senlinclient
python-keystoneclient, python-novaclient, python-neutronclient, python-cinderclient, python-glanceclient |
Set up your OpenStack credentials See Setting up openrc.sh for details. | source .openrc |
Test an Open Stack command | openstack flavor list |
If you get python errors try these commands: |
|
Following future OpenStack updates, all installed pip modules can be updated with this command: |
|