Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install Python package management (pip) and required packages: 

    Code Block
    $ sudo apt-get install python-pip python-dev


  2. Install Openstack command-line tools using pip: 

    Code Block
    $ sudo pip install python-openstackclient


Installing command-line tools (OS X)

  1. Ensure you have the Developer Tools (Xcode) with the Command Line Tools for OS X.

  2. Open the Terminal application.

  3. Install pip (a package management system for software packages written in python): 

    Code Block
     $ sudo easy_install pip


  4. Install the openstack command line tool: 

    Code Block
    $ pip install --user python-openstackclient


  5. Add the following to .bashrc: 

    Code Block
    export PATH=/Users/<username>/Library/Python/2.7/bin:$PATH
    export PYTHONPATH=/Users/<username>/Library/Python/2.7/lib/python/site-packages



Openrc file

The ‘rc’ in rc file stands for any or all of the following:

...

  • Snapshot an existing volume, attached to an instance: 

    Code Block
    $ openstack snapshot create --name <snapshot_name> --force <volume_name>


    Note

    Note about volume snapshots: Notice the use of the --force switch when taking a snapshot of an attached volume; the snapshot will work and not fail, however if there are open files being actively written to the validity of the data being cloned cannot be guaranteed.

Installing command-line tools (OS X)

  1. Ensure you have the Developer Tools (Xcode) with the Command Line Tools for OS X.

  2. Open the Terminal application.

  3. Install pip (a package management system for software packages written in python): 

    Code Block
     $ sudo easy_install pip
  4. Install the openstack command line tool: 

    Code Block
    $ pip install --user python-openstackclient
  5. Add the following to .bashrc: 

    Code Block
    export PATH=/Users/<username>/Library/Python/2.7/bin:$PATH
    export PYTHONPATH=/Users/<username>/Library/Python/2.7/lib/python/site-packages