murano-deployment/murano-ci/config/devstack
Mykyta Karpin 0b8a5f2d1b Fix murano-deployment gate
Currently murano-deployment gate is broken,
it is failing due to outdated syntax_check.sh script,
outdated job configuration and also some scripts fails to pass
shellcheck testing included in the gate.

This commit does the following:

- fix bash scripts so they can pass shellcheck in
gate-murano-deployment job.
- fix path to jobs in syntax_check.sh
- fix gate-murano-deployment job configuration
- set trusty-devstack-* slaves label for
gate-murano-deployment job
- logs names pattern is updated in rotate-devstack-logs.sh
- now rotate-devstack-logs.sh rotates all logs except stack.sh log

Change-Id: I39d86e405014ee368eaef8348d720d1ab8443e3b
Closes-Bug: #1600213
2016-07-11 10:56:15 +03:00
..
README.rst Fix and update devstack setup 2016-07-06 17:26:16 +03:00
build-murano-image.sh Fix repository path in case of murano migration to openstack namespace 2015-04-20 13:39:17 +03:00
local.conf Fix and update devstack setup 2016-07-06 17:26:16 +03:00
local.sh Fix and update devstack setup 2016-07-06 17:26:16 +03:00
post-stack.sh Update devstack config 2014-09-26 10:21:23 +04:00
post-unstack.sh Fix murano-deployment gate 2016-07-11 10:56:15 +03:00
setup.sh Update devstack config 2014-09-26 10:21:23 +04:00

README.rst

HOW-TO build devstack-based lab

Initial setup

Prepare your hardware, install Ubuntu Server 12.04 x86_64.

As 'root' prepare your host for devstack:

# apt-get install openvswitch-switch
# ovs-vsctl add-br br0
# apt-get install git
# mkdir /opt/stack
# cd /opt/stack
# git clone https://github.com/openstack-dev/devstack
# cd /opt/stack/devstack/tools
# ./create-stack-user.sh
# echo 'stack:PASSWORD-FOR-USER-STACK' | chpasswd
# chown -R stack:stack /opt/stack
# login -f stack

As user 'stack', clone murano-deployment:

$ cd /opt/stack
$ git clone https://github.com/openstack/murano-deployment
$ cd /opt/stack/murano-deployment/murano-ci/config/devstack

Open local.conf and replace variables, enclosed into % signs to valid values. These are:

  • %DMZ_HOST_IP%
  • %DMZ_NETWORK_CIDR%
  • %DMZ_ROUTER_IP%
  • %DMZ_NETWORK_START_IP%
  • %DMZ_NETWORK_END_IP%
  • %DMZ_NETWORK_INTERFACE%

When done, copy config file into devstack's folder and start installation:

$ cd /opt/stack/murano-deployment/murano-ci/config/devstack
$ cp local.conf /opt/stack/devstack
$ ./setup.sh stack

If you need and image with Murano Agent installed, build it now.

To build Fedora-based image run:

$ cd /opt/stack/devstack
$ ./build-murano-image.sh

To build Ubuntu-based image run:

$ ./build-murano-image.sh ubuntu

After that open Horizon URL in web browser and check that everything works.

Reinstallation

First, stop devstack, and do a little cleanup:

$ cd /opt/stack/murano-deployment/murano-ci/config/devstack
$ ./setup.sh unstack

Then, install devstack again:

$ ./post-unstack.sh
$ ./setup.sh stack

If nececcary, build images with Murano:

$ cd /opt/stack/devstack
$ ./build-murano-image.sh
$ ./build-murano-image.sh ubuntu

Warning

After re-installation of devstack you must update network id in nodepool scripts, as it is changed. Without that you won't be able to build any image using nodepool on that lab.