0b8a5f2d1b
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 |
||
---|---|---|
.. | ||
README.rst | ||
build-murano-image.sh | ||
local.conf | ||
local.sh | ||
post-stack.sh | ||
post-unstack.sh | ||
setup.sh |
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.