Giter VIP home page Giter VIP logo

matt-welch / docker-devstack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgkwill/docker-devstack

4.0 3.0 1.0 164 KB

dockerfile and supporting files for containerized openstack nodes for testing

License: Apache License 2.0

Shell 60.71% Python 38.92% Makefile 0.37%
sdn-controller sdn-network performance-analysis docker-container openstack openstack-neutron opendaylight docker

docker-devstack's Introduction

docker-devstack

Dockerfile and supporting files for fully functional dockerized Openstack nodes for S3P Testing (scale, stability, performance, security) of OpenDaylight SDN controller used as network virtualization layer for OpenStack.

Steps to set up an S3P cluster:

  1. Identify physical hosts. More is better for scale testing, but a single physical system can run all of the containers simultaneously
  • service node (OpenStack infrastructure and control node)
  • compute nodes (OpenStack compute nodes)
  1. Install Ubuntu 16.04 and docker on physical hosts
  2. Create linux bridges on hosts named br_mgmt and br_data
  • deployment on a single physical server can leave the bridges with no physical interfaces
    • multiple containers on one host may share the bridge
  • for deployment on multiple physical servers, bond these bridges to network interfaces for management and tenant data, respectively
  1. Build the systemd container:
  • cd docker-devstack/systemd
  • ./build_systemd.sh
  1. Build the service node container:
  • cd docker-devstack/service
  • edit build_service.sh to reflect your docker image registry
  • ./build_service.sh [tag name]
  1. Run the service node
  • ./run_service.sh
  • the script docker-devstack/docker/connect_container_to_networks.sh will create veth links from the container's net-namespace to the bridges created earlier. It will rename the container network interfaces, assign MAC & IP addresses to them.
  • Once the service node is running, a shell should be open at the prompt stack@service-node: $
  1. Start stacking on the service node
  • edit /home/stack/service.odl.local.conf as needed
  • run ./start.sh
    • devstack will download Linux packages and pip will install necessary components, OpenStack services will be set up and after about 10-20 minutes, the OpenStack control node should be running all required OpenStack services.
  1. While the service node is stacking, build the compute node:
  • cd docker-devstack/compute
  • ./build_compute.sh
  1. Run the compute node(s)
  • ./run_compute.sh to launch a compute node with default name
  • alternatively, create variables in your shell to reflect the correct values for:
    • IMAGE_REGISTRY
    • IMAGE_REPO
    • IMAGE_TAG
    • HOST_ID (an integer representing the physical host)
    • COMP_ID (an integer > 11 representing the compute host)
      • the COMP_ID should be greater than 11 because it will also be encoded in the IP and MAC addresses
  1. Once the service node has finished devstack, begin stacking in the compute hosts
  • /home/stack/start.sh
  • The first time a compute host has stacked, it should take more than 10 minutes
  • After a successful stacking, uncomment the OFFLINE=True and RECLONE=False directives in compute.odl.local.conf
    • subsequent restarts (/home/stack/restart.sh) should only require about 20 seconds
  1. Clean the containers after a successful stack
  • docker-devstack/service/stop_and_clean_container.sh <Node name>
    • here is the name of the container e.g. service-node or compute-10-22
  1. Commit a stacked and cleaned container for faster deployment
  1. Interact with the OpenStack Horizon GUI
  • through a docker port map at http://<physical_host_IP>:50080/dashboard
  • on the command line of any openstack node

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.