User Tools

Site Tools


releng:fetch_os_creds.sh

OpenStack credentials

This wiki page describes how to use the script to fetch the Openstack credentials automatically from your OpenStack deployment.

Some tests need to source the OpenStack credentials in order to run some actions against the OpenStack deployment from a Jumphost where the OpenStack python client is installed. In OPNFV, it is used before running the tests in the CI chain.


Prerequisites

  • You need to have a running OpenStack deployment.
  • You need a jumphost from where you run the deployment with connectivity to the admin network.

Installers

These are the supported installers so far:

  • Fuel
  • Foreman
  • Compass

TBD: Apex and JOID

How to

Download the script from git:

wget https://git.opnfv.org/cgit/releng/tree/utils/fetch_os_creds.sh

Run it from your Jumphost:

./fetch_os_creds.sh -d ${TARGET_FILE} -i ${INSTALLER_TYPE} -a ${INSTALLER_IP}

Where:

  • -d ${TARGET_FILE}: is the target file that will be created containing the credentials
  • -i ${INSTALLER_TYPE}: is the installer type. It can be "fuel", "foreman, "compass" for now.
  • -a ${INSTALLER_IP}: is the IP of the VM that runs the actual deployment (For example, Fuel Master VM for Fuel, …)

Example:

 ./fetch_os_creds.sh -d ~/openstack.creds -i fuel -a 10.20.0.2
 source ~/openstack.creds
releng/fetch_os_creds.sh.txt · Last modified: 2015/11/30 12:51 by Jose Lausuch