Coder Social home page Coder Social logo

uzzz / cf-openstack-validator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-attic/cf-openstack-validator

0.0 2.0 0.0 1.41 MB

Is your OpenStack installation ready to run BOSH and install Cloud Foundry? Run this validator to find out.

License: Apache License 2.0

Ruby 85.38% HTML 1.25% Shell 8.56% HCL 4.82%

cf-openstack-validator's Introduction

CF OpenStack Validator

Is your OpenStack installation ready to run BOSH and install Cloud Foundry? Run this validator to find out.

Prerequisites

OpenStack

  • Keystone v3
  • Create an OpenStack project/tenant
  • Create a network
    • Connect the network with a router to your external network
  • Allocate a floating IP
  • Allow ssh access in the default security group
  • Create a key pair by executing
$ ssh-keygen -t rsa -b 4096 -N "" -f cf-validator.rsa_id
  • Upload the generated public key to OpenStack as cf-validator

Environment

The validator runs on Mac and Linux. Please ensure that the following list is installed on the Linux system where the validator is executed:

  • make
  • gcc
  • zlib1g-dev
  • libssl-dev
  • ssh

To run on Mac the Xcode command line tools have to be installed.

Usage

  • git clone https://github.com/cloudfoundry-incubator/cf-openstack-validator.git
  • cd cf-openstack-validator
  • Copy the generated private key into the cf-openstack-validator folder.
  • Copy validator.template.yml to validator.yml and replace occurrences of <replace-me> with appropriate values (see prerequisites)
$ cp validator.template.yml validator.yml
$ ./validate bosh-openstack-cpi-release-<xxx>.tgz bosh-stemcell-<xxx>-openstack-kvm-ubuntu-trusty-go_agent.tgz validator.yml [<working-dir>]

Extensions

You can extend the validator with custom tests. For a detailed description and examples, please have a look at the extension documentation.

Troubleshooting

The validator doesn't run on your OpenStack? See additional OpenStack related configuration options for possible solutions.

Environment Variables

  • FAIL_FAST: In general, all tests are executed even if some of them fail. In order to stop after the first test failure, specify FAIL_FAST=true.
  • VERBOSE_FORMATTER: If you are interested in more output for the failing tests, you can set VERBOSE_FORMATTER=true.
  • BOSH_OPENSTACK_VALIDATOR_SKIP_CLEANUP: Set this variable to true to skip cleanup of OpenStack resources. This can be useful for debugging failing tests.
  • TAG: Use this variable to run examples that match a specified tag. (If you are working with fit, fcontext and fdescribe, use TAG=focus)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.