Openstack client mac os

Install the OpenStack command-line clientsВ¶

Install the prerequisite software and the Python package for each OpenStack client.

Install the prerequisite softwareВ¶

Most Linux distributions include packaged versions of the command-line clients. You can directly install the clients from the packages with prerequisites. For more information, see Installing_from_packages.

If you need to install the source package for the command-line package, the following table lists the software needed to run the command-line clients, and provides installation instructions as needed.

OpenStack command-line clients prerequisites В¶

Installed by default on Mac OS X.

Many Linux distributions provide packages to make setuptools easy to install. Search your package manager for setuptools to find an installation package. If you cannot find one, download the setuptools package directly from Python Setuptools.

The recommended way to install setuptools on Microsoft Windows is to follow the documentation provided on the Python Setuptools website.

To install the clients on a Linux, Mac OS X, or Microsoft Windows system, use pip. It is easy to use, ensures that you get the latest version of the clients from the Python Package Index, and lets you update or remove the packages later on.

Since the installation process compiles source files, this requires the related Python development package for your operating system and distribution.

Install pip through the package manager for your system:

MacOS

Microsoft Windows

Ensure that the C:\Python27\Scripts directory is defined in the PATH environment variable, and use the easy_install command from the setuptools package:

Ubuntu or Debian

Note that extra dependencies may be required, per operating system, depending on the package being installed, such as is the case with Tempest.

Red Hat Enterprise Linux or CentOS

A packaged version enables you to use yum to install the package:

On Red Hat Enterprise Linux, this command assumes that you have enabled the OpenStack repository. For more information, see the Installation Tutorial for Red Hat Enterprise Linux and CentOS.

There are also packaged versions of the clients available that enable yum to install the clients as described in Installing_from_packages.

Fedora

A packaged version enables you to use dnf to install the package:

SUSE Linux Enterprise Server

A packaged version available in the Open Build Service enables you to use YaST or zypper to install the package.

First, add the Open Build Service repository as described in the Installation Tutorial.

Then install pip and use it to manage client installation:

There are also packaged versions of the clients available that enable zypper to install the clients as described in Installing_from_packages.

openSUSE

You can install pip and use it to manage client installation:

There are also packaged versions of the clients available that enable zypper to install the clients as described in Installing_from_packages.

Install the OpenStack clientВ¶

The following example shows the command for installing the OpenStack client with pip , which supports multiple services.

The following individual clients are deprecated in favor of a common client. Instead of installing and learning all these clients, we recommend installing and using the OpenStack client. You may need to install an individual project’s client because coverage is not yet sufficient in the OpenStack client. If you need to install an individual client’s project, replace the PROJECT name in this pip install command using the list below.

  • barbican — Key Manager Service API
  • ceilometer — Telemetry API
  • cinder — Block Storage API and extensions
  • cloudkitty — Rating service API
  • designate — DNS service API
  • fuel — Deployment service API
  • glance — Image service API
  • gnocchi — Telemetry API v3
  • heat — Orchestration API
  • magnum — Container Infrastructure Management service API
  • manila — Shared file systems API
  • mistral — Workflow service API
  • monasca — Monitoring API
  • murano — Application catalog API
  • neutron — Networking API
  • nova — Compute API and extensions
  • senlin — Clustering service API
  • swift — Object Storage API
  • trove — Database service API

Installing with pipВ¶

Use pip to install the OpenStack clients on a Linux, Mac OS X, or Microsoft Windows system. It is easy to use and ensures that you get the latest version of the client from the Python Package Index. Also, pip enables you to update or remove a package.

Install each client separately by using the following command:

Источник

Openstack client mac os

I usually have a Linux VM that I use to perform some of my remote management tasks, such a OpenStack CLI commands.

But since I now have a Mac (and yes I am in enjoying it!!) I thought why not do it natively on my Mac. The official documentation on installing clients is on the OpenStack site.

This is how I got it done.

easy_install pip

Now to install the clients (keystone, glance, heat, nova, neutron, cinder, swift and the new OpenStack client)

pip install python-keystoneclient python-novaclient python-heatclient python-swiftclient python-neutronclient python-cinderclient python-glanceclient python-openstackclient

First problem – was no permissions

Yes you do need sudo for some things…

sudo –H pip install python-keystoneclient python-novaclient python-heatclient python-swiftclient python-neutronclient python-cinderclient python-glanceclient python-openstackclient

Or so I thought…

sudo –H pip uninstall six

Источник

Install the OpenStack command-line clientsВ¶

Install the prerequisite software and the Python package for each OpenStack client.

Install the prerequisite softwareВ¶

Most Linux distributions include packaged versions of the command-line clients that you can install directly, see Installing_from_packages.

If you need to install the source package for the command-line package, the following table lists the software needed to run the command-line clients, and provides installation instructions as needed.

Prerequisite Description
Python 2.7 or later Supports Python 2.7, 3.4, and 3.5.
setuptools package
OpenStack command-line clients prerequisites В¶

Installed by default on Mac OS X.

Many Linux distributions provide packages to make setuptools easy to install. Search your package manager for setuptools to find an installation package. If you cannot find one, download the setuptools package directly from https://pypi.python.org/pypi/setuptools.

The recommended way to install setuptools on Microsoft Windows is to follow the documentation provided on the setuptools website (https://pypi.python.org/pypi/setuptools).

Another option is to use the unofficial binary installer maintained by Christoph Gohlke (http://www.lfd.uci.edu/

To install the clients on a Linux, Mac OS X, or Microsoft Windows system, use pip. It is easy to use, ensures that you get the latest version of the clients from the Python Package Index, and lets you update or remove the packages later on.

Since the installation process compiles source files, this requires the related Python development package for your operating system and distribution.

Install pip through the package manager for your system:

MacOS

Microsoft Windows

Ensure that the C:\Python27\Scripts directory is defined in the PATH environment variable, and use the easy_install command from the setuptools package:

Another option is to use the unofficial binary installer provided by Christoph Gohlke (http://www.lfd.uci.edu/

Ubuntu or Debian

Note that extra dependencies may be required, per operating system, depending on the package being installed, such as is the case with Tempest.

Red Hat Enterprise Linux, CentOS, or Fedora

A packaged version enables you to use yum to install the package:

There are also packaged versions of the clients available in RDO that enable yum to install the clients as described in Installing_from_packages.

SUSE Linux Enterprise Server

A packaged version available in the Open Build Service enables you to use YaST or zypper to install the package.

First, add the Open Build Service repository:

Then install pip and use it to manage client installation:

There are also packaged versions of the clients available that enable zypper to install the clients as described in Installing_from_packages.

openSUSE

You can install pip and use it to manage client installation:

There are also packaged versions of the clients available that enable zypper to install the clients as described in Installing_from_packages.

Install the OpenStack clientВ¶

The following example shows the command for installing the OpenStack client with pip , which supports multiple services.

The following individual clients are deprecated in favor of a common client. Instead of installing and learning all these clients, we recommend installing and using the OpenStack client. You may need to install an individual project’s client because coverage is not yet sufficient in the OpenStack client. If you need to install an individual client’s project, replace the PROJECT name in this pip install command using the list below.

  • barbican — Key Manager Service API
  • ceilometer — Telemetry API
  • cinder — Block Storage API and extensions
  • cloudkitty — Rating service API
  • designate — DNS service API
  • fuel — Deployment service API
  • glance — Image service API
  • gnocchi — Telemetry API v3
  • heat — Orchestration API
  • magnum — Container Infrastructure Management service API
  • manila — Shared file systems API
  • mistral — Workflow service API
  • monasca — Monitoring API
  • murano — Application catalog API
  • neutron — Networking API
  • nova — Compute API and extensions
  • sahara — Data Processing API
  • senlin — Clustering service API
  • swift — Object Storage API
  • trove — Database service API

Installing with pipВ¶

Use pip to install the OpenStack clients on a Linux, Mac OS X, or Microsoft Windows system. It is easy to use and ensures that you get the latest version of the client from the Python Package Index. Also, pip enables you to update or remove a package.

Install each client separately by using the following command:

Источник

Openstack client mac os

Team and repository tags

OpenStackClient (aka OSC) is a command-line client for OpenStack that brings the command set for Compute, Identity, Image, Network, Object Store and Block Storage APIs together in a single shell with a uniform command structure.

The primary goal is to provide a unified shell command structure and a common language to describe operations in OpenStack.

  • PyPi — package installation
  • Online Documentation
  • Storyboard project — bugs and feature requests
  • Blueprints — feature specifications (historical only)
  • Source
  • Developer — getting started as a developer
  • Contributing — contributing code
  • Testing — testing code
  • IRC: #openstack-sdks on OFTC (irc.oftc.net)
  • License: Apache 2.0

OpenStack Client can be installed from PyPI using pip:

There are a few variants on getting help. A list of global options and supported commands is shown with —help :

There is also a help command that can be used to get help text for a specific command:

If you want to make changes to the OpenStackClient for testing and contribution, make any changes and then run:

The CLI is configured via environment variables and command-line options as listed in https://docs.openstack.org/python-openstackclient/latest/cli/authentication.html.

Authentication using username/password is most commonly used:

For a local user, your configuration will look like the one below:

The corresponding command-line options look very similar:

For a federated user, your configuration will look the so:

The corresponding command-line options look very similar:

If a password is not provided above (in plaintext), you will be interactively prompted to provide one securely.

Источник

Install the OpenStack command-line clientsВ¶

Install the prerequisite software and the Python package for each OpenStack client.

Install the prerequisite softwareВ¶

Most Linux distributions include packaged versions of the command-line clients that you can install directly, see Installing_from_packages.

If you need to install the source package for the command-line package, the following table lists the software needed to run the command-line clients, and provides installation instructions as needed.

Prerequisite Description
Python 2.7 or later Currently, the clients do not support Python 3.
setuptools package

Installed by default on Mac OS X.

Many Linux distributions provide packages to make setuptools easy to install. Search your package manager for setuptools to find an installation package. If you cannot find one, download the setuptools package directly from https://pypi.python.org/pypi/setuptools.

The recommended way to install setuptools on Microsoft Windows is to follow the documentation provided on the setuptools website (https://pypi.python.org/pypi/setuptools). Another option is to use the unofficial binary installer maintained by Christoph Gohlke (http://www.lfd.uci.edu/

To install the clients on a Linux, Mac OS X, or Microsoft Windows system, use pip. It is easy to use, ensures that you get the latest version of the clients from the Python Package Index, and lets you update or remove the packages later on.

Since the installation process compiles source files, this requires the related Python development package for your operating system and distribution.

Install pip through the package manager for your system:

MacOS

Microsoft Windows

Ensure that the C:\Python27\Scripts directory is defined in the PATH environment variable, and use the easy_install command from the setuptools package:

Another option is to use the unofficial binary installer provided by Christoph Gohlke (http://www.lfd.uci.edu/

Ubuntu or Debian

Note that extra dependencies may be required, per operating system, depending on the package being installed, such as is the case with Tempest.

Red Hat Enterprise Linux, CentOS, or Fedora.

A packaged version enables you to use yum to install the package:

There are also packaged versions of the clients available in RDO that enable yum to install the clients as described in Installing_from_packages.

SUSE Linux Enterprise Server

A packaged version available in the Open Build Service (https://build.opensuse.org/package/show? package=python-pip&project=Cloud:OpenStack:Master) enables you to use YaST or zypper to install the package.

First, add the Open Build Service repository:

Then install pip and use it to manage client installation:

There are also packaged versions of the clients available that enable zypper to install the clients as described in Installing_from_packages.

openSUSE

You can install pip and use it to manage client installation:

There are also packaged versions of the clients available that enable zypper to install the clients as described in Installing_from_packages.

Install the OpenStack clientВ¶

The following example shows the command for installing the OpenStack client with pip , which supports multiple services.

The following individual clients are deprecated in favor of a common client. Instead of installing and learning all these clients, we recommend installing and using the OpenStack client. You may need to install an individual project’s client because coverage is not yet sufficient in the OpenStack client. If you need to install an individual client’s project, replace the

name in this pip install command using the list below.

  • barbican — Key Manager Service API
  • ceilometer — Telemetry API
  • cinder — Block Storage API and extensions
  • cloudkitty — Rating service API
  • designate — DNS service API
  • fuel — Deployment service API
  • glance — Image service API
  • gnocchi — Telemetry API v3
  • heat — Orchestration API
  • keystone — Identity service API and extensions
  • magnum — Containers service API
  • manila — Shared file systems API
  • mistral — Workflow service API
  • monasca — Monitoring API
  • murano — Application catalog API
  • neutron — Networking API
  • nova — Compute API and extensions
  • sahara — Data Processing API
  • senlin — Clustering service API
  • swift — Object Storage API
  • trove — Database service API

While you can install the keystone client for interacting with version 2.0 of the service’s API, you should use the openstack client for all Identity interactions. Identity API v2 is deprecated in the Mitaka release.

Installing with pipВ¶

Use pip to install the OpenStack clients on a Linux, Mac OS X, or Microsoft Windows system. It is easy to use and ensures that you get the latest version of the client from the Python Package Index. Also, pip enables you to update or remove a package.

Install each client separately by using the following command:

Источник

Читайте также:  Mission planner для windows 10
Оцените статью
Prerequisite Description
Python 2.7 or later Currently, the clients do not support Python 3.
setuptools package