298 Commits

Author SHA1 Message Date
Steven Dake
fbee7e842f Add a conf-novanet to configure nova
Configure nova networking and nova quotas to allow 40 m1.small
instances to run.  Checks for keystone credentials set.  May only
be run once.

Change-Id: I36e01d42ec283651babbb59268452a65e644626e
2015-04-27 14:20:10 -07:00
Chen Zhiwei
76c1fe6371 Change the default shell to bash
Unify the shell to bash in all Kolla scripts.

Change-Id: Ib9591b2f8f344eb88455c5e9b7ecf2164fb5960a
Implements: blueprint use-bash-shell
2015-04-27 13:26:37 +08:00
Fang Fenghua
da37a81dd4 Check compose cmd result
Should check compse cmd excute result
can't let it go.

Change-Id: Ifd20e3b7f4ae385f7d45ab119a8850f44f254bac
Closes-Bug:#1447959
2015-04-24 09:48:31 +00:00
Steven Dake
69eba5e3d1 Kolla runs process on rabbit, not rabbitmq
The kolla script runs its process on rabbit, not rabbitmq.  This
results in the rabbitmq compose scirpt not being executed.

Change-Id: I80f8d537c36b6cd598cdcf87f77df418db8ed035
2015-04-21 13:49:17 -07:00
Jenkins
a2eb42744b Merge "Introduce tools/kolla to interact with kolla" 2015-04-21 16:37:55 +00:00
Jenkins
a85917313e Merge "Fix validate-all-yaml.sh to check for files with yml extension" 2015-04-17 04:30:27 +00:00
Martin André
75a6c3bc9f Introduce tools/kolla to interact with kolla
This is supposed to prevent proliferation of scripts in "tools"
directory and reduce code duplication.

This first patch replaces tools/{start,stop,pull,status} scripts and
more commands are to be added in the future.

Change-Id: I3d99cf5033be8631d8e6f32a4c34d3b5ffcae7e8
2015-04-16 14:56:48 +09:00
Jenkins
58819e0700 Merge "Adds a Status Script" 2015-04-16 01:36:06 +00:00
Steven Dake
4999b0cb53 genenv generated invalid variable
NEUTRON_SHARED_SECRET was being generated incorrectly.  It had a colon
at the front, which causes nova not to operate.

Change-Id: Id0d9390fa60b3d946513098fed394aaba3a53c70
2015-04-14 15:56:36 -07:00
Daneyon Hansen
ad60fbb0a4 Adds a Status Script
Previously, only start/stop scripts existed. The status script
runs docker-compose ps for each container so users can
get a quick snapshot of their Kolla environment.

Change-Id: I3204f3e7404ad906d5330cf67d091fc1f06d3030
2015-04-14 20:40:06 +00:00
Daneyon Hansen
3c04d60673 Adds Neutron to Start/Stop Scripts
Previously, Neutron was not included in the start/stop scripts.
This patch reads the NETWORK_MANAGER value from openstack.env
to start/stop either nova or neutron networking.

Change-Id: I85b31396c2b816b89f33206443c3d60cb4b7914b
2015-04-14 20:21:39 +00:00
Martin André
bfe0d0e0e9 Fix validate-all-yaml.sh to check for files with yml extension
YAML files can have .yaml or .yml extension. Make `validate-all-yaml.sh`
check for *.yml files in addition to *.yaml files since we now have some
of these in our source tree.

This should help to prevent bogus YAML files to land in the repository.

Change-Id: Id59273680fc2424f7b636033b1d641efcaaeba22
2015-04-14 13:32:09 +09:00
Jenkins
005e4293e3 Merge "Sets debug logging to false" 2015-04-14 00:24:15 +00:00
Jenkins
4a23484a96 Merge "Changes Default Image Prefix" 2015-04-13 20:44:36 +00:00
Daneyon Hansen
c853f62dee Sets debug logging to false
Previously, debug logging was enabled by default. Only verbose
logging should be enabled by default.

Change-Id: I5a1fc805284be777dd49c79cc344a5e8600a238d
2015-04-13 20:33:28 +00:00
Daneyon Hansen
8edfda14f5 Sets Neutron log_dir=/var/log/neutron as default
Previously, the log_dir was blank, causing neutron to log
to stdout. The log_dir param must be set for this:

https://github.com/stackforge/kolla/blob/master/docker/neutron/neutron-agents/config-scripts/config-dhcp-agent.sh#L69

Change-Id: Ibf14224e5a6f27f2c0f9900828a7cd00f3babfab
2015-04-13 20:29:42 +00:00
Daneyon Hansen
abed334dbe Changes Default Image Prefix
Previously, Fedora was set as the default image prefix. Since our
reference architecture focuses on CentOS, the default image prefix
has been changed accordingly.

Change-Id: I794ac1aa035d793204fa315752ae8188ce872a3e
2015-04-13 19:36:24 +00:00
Daneyon Hansen
ed107a5e26 Adds Neutron Agents Support
Previously, the agents ran in seperate containers. Since some of
the agents create and use network namespaces, runnning them in
seperate containers has become a challenge. This patch adds
neutron agent support in a single container.

Partially Implements: blueprint compute-operation-neutron

Change-Id: If4f893abd50d90b58e8435ec2659870dce36951c
2015-04-13 07:34:12 +00:00
Daneyon Hansen
2f2bb366e0 Adds neutron-server to neutron container-set
Adds neutron-server components of the neutron container set.

Partially Implements: blueprint compute-operation-neutron

Change-Id: I63525ae85f4ead4e010cdb9b6bc8059bb9d252e7
2015-04-10 03:11:23 +00:00
Daneyon Hansen
0b671ad58d Adds Initial Logging Support
Previously, logging was hard coded into the nova and neutron
containers. This patch creates two common params for logging:

DEBUG_LOGGING
VERBOSE_LOGGING

and sets default values of verbose=true and debug=false. This patch
implements logging for Nova and Neutron. Add'l OS service config
scripts and images will need to be updated to use the logging
params.

Change-Id: I03d48005d5b4789aa3c519879a20d963ef1cbaa3
2015-04-07 19:13:29 +00:00
Jenkins
53c1ba99c8 Merge "Remove mkdir of shared dir" 2015-04-06 16:05:50 +00:00
Jenkins
fc1d5dbb62 Merge "Check for SELinux in enforcing mode and exit if found" 2015-04-06 16:04:27 +00:00
Steven Dake
49c7160259 Remove mkdir of shared dir
We no longer bindmount qemu directories and instead use the
volume_from feature to get that job done.  As such remove the
creation of the directory.

Change-Id: I20aa0b5d8b8e5e0bd9ccc69ab07009635c693b02
2015-04-02 15:19:17 -07:00
Steven Dake
7c9acf4806 Check for SELinux in enforcing mode and exit if found
Previously the start script would disable SELinux  That is a policy
choice by the administrator, not something that should be done in a
development tool.  Instead suggest setting SELinux to permissive mode
manually.

Change-Id: I342a1614f9c10ec066cd2a8dc79280481e0b7570
2015-04-02 15:17:36 -07:00
Steven Dake
26fb17ffcd Add a tools/pull tool
this uses docker-compose (-c flag) or docker (-d flag) to pull the latest
images from docker hub.

Change-Id: I7793178deeb2e37c92fb1518ae8666432e74d9b7
2015-04-02 10:26:10 -07:00
Jenkins
32b32280da Merge "Loads ebtables from inside the containers" 2015-03-30 21:49:26 +00:00
Sam Yaple
1dcd904d27 Loads ebtables from inside the containers
We have to overlay the /lib/modules folder from the host to properly
`modprobe` from within a container. We don't have to give it write
permissions however, so the docker-compose volume is mounted in as 'ro'

Change-Id: I95101136dad56e9331d8b92cd394495f7bd0576a
2015-03-28 15:54:43 -05:00
Daneyon Hansen
40be5646fa Partially Implements: Container set compute-operation-neutron
Adds the neutron-linuxbridge-agent to the neutron container set.

Change-Id: I20752611c24a3110cc5d2e4fca2d501fc32a4d87
2015-03-27 23:36:06 +00:00
Daneyon Hansen
1182e060cb Extends Nova Metadata Service Parameterization and Composition
Previously, nova enabled_apis was hard coded and metdata_host
was using PUBLIC_IP param instead of exposing an individual
param.

Extending these params and creating a separate compose yml that
includes compute/libvirt/network/api is required to support
nova network multi_host.

Additional details can be found here:

http://docs.openstack.org/admin-guide-cloud/content/section_metadata-service.html

Change-Id: I5d417a0ee460f8ad9b2982fe83d63ab57013918e
2015-03-25 17:27:44 +00:00
Daneyon Hansen
81d65f0b3d Refactor nova-network
Previously, eth0 was set as the nova flat interface. This
interface is used to bridge VM traffic between instances and
should not have an IP. It's a problem when you associate an
interface with an IP to the FLAT_INTERFACE.

Change-Id: I38c516094430e2d55b1b4c047a1bbcfe711a2dff
2015-03-24 18:44:28 +00:00
Jenkins
2dab951747 Merge "Have genenv offer some hepful hints about FLAT_INTERFACE" 2015-03-24 14:39:35 +00:00
Jenkins
d944259056 Merge "Fixes bug where heat container was not getting heat meta data" 2015-03-23 20:48:41 +00:00
Ryan Hallisey
1aa0f7ce49 Fixes bug where heat container was not getting heat meta data
Heat container is having trouble accessing heat meta data.
Heat needs to have HEAT_CFN_API_SERVICE_HOST set in order
to properly receive meta data.

Closes-bug 1435288

Change-Id: Ia28ece3ae91ec7acc62cc86039612841ac487f36
2015-03-23 16:22:05 -04:00
Jenkins
73725e535b Merge "Add a stop command to shut down Kolla AIO" 2015-03-23 20:06:29 +00:00
Steven Dake
3f036e3f93 Add a stop command to shut down Kolla AIO
Use docker-compose with the stop operation rather than cleanup-containers -f.

Change-Id: I1b0f97589b04eaa4e3a0b4e5247294e4c4b0dc47
2015-03-21 15:09:20 -07:00
Jeff Peeler
07f5999276 Check for root privilege in start.sh
This change was lost in 888bb9cc8c68bf61fddc0ca08a69f764a4012121.
Both modprobe and setenforce require root, so I think this is a good
sanity check.

Change-Id: I431df44e0fed4a981df96a9a98bfbb5c350e49ac
2015-03-21 02:18:01 -04:00
Jenkins
0d9a53470d Merge "Use -L flag in curl" 2015-03-21 03:28:12 +00:00
Jenkins
68978c2338 Merge "Make the Horizon dashboard work properly" 2015-03-21 03:15:58 +00:00
Jenkins
a99a861bc0 Merge "Improve Heat integration" 2015-03-21 03:15:38 +00:00
Steven Dake
f4b128f7bb Use -L flag in curl
The cirros image uses a redirect.  Use curl -L to follow redirections.

Change-Id: I3a9309901ab3528442009fd6802600c51c98242f
2015-03-20 20:01:57 -07:00
Jenkins
17eccb0dfd Merge "Implements: blueprint Implement a database container set" 2015-03-21 02:47:52 +00:00
Steven Dake
89df9eb381 Have genenv offer some hepful hints about FLAT_INTERFACE
The FLAT_INTERFACE is for vm communication, and should be
manually configured if necessary.

Change-Id: I79846705c18c2f0f2d4340e53d04183ec689e191
2015-03-20 16:19:01 -07:00
Steven Dake
3f4c45fac5 Add ADMIN_USER_PASSWORD to genenv tool
The genenv tool was generating the wrong password for the openrc
file as a result of recent keystone rework.  This patch fixes that
problem.

Change-Id: I169e3255e3f3ef57938861c31ef4e342d9a32cbc
2015-03-20 13:41:08 -07:00
Steven Dake
71576f4e42 Make the Horizon dashboard work properly
The Horizon dashboard was not working properly prior to this work.

Also a docker-compose file was added to start the dashboard.

Change-Id: I8a438c15b967b0cec00bfe44b997f833bf745191
2015-03-20 10:21:29 -07:00
Steven Dake
dbddef4f78 Improve Heat integration
Generate Heat environment variables.
Rename yml file to api and engine to follow other service conventions.
Add heat to compose/start
Modify integration guide to include new variables.

Change-Id: I058d829901881e28d6f4785f59fcf778058241e4
2015-03-20 10:21:01 -07:00
Daneyon Hansen
5547b5fe78 Implements: blueprint Implement a database container set
Previously, the database container was configured for use with
Kubernetes. This patch removed any k8s dependencies, adds a script
to manage mysql server.cnf settings and splits data and app
containers. Splitting the containers provides additional
portability and operational efficiencies compared to host mounts.

Change-Id: I80656450c02dda5f2959d187eec20d5877dc54a2
2015-03-20 16:17:51 +00:00
Martin André
888bb9cc8c Move genenv.sh and start.sh to tools directory
Rename them `genenv` and `start`.
Have `genenv` create the openrc file in the top-level directory.

Add openrc and compose/openstack.env to gitignore, as well as *.img.

Change-Id: I5d8006e97efd77cf364215f55d5e585139ae273e
2015-03-20 10:31:02 +09:00
Steven Dake
f7bf845c00 Remove traces of kubernetes
Change-Id: Ie14063022aa1f4e1409421b8049ec75ec9a32802
2015-03-19 10:00:00 -07:00
Jenkins
c3114b9610 Merge "Allow changing base image" 2015-03-06 00:44:02 +00:00
Martin André
0764fd7dea Allow changing base image
By changing the PREFIX variable in the .buildconf one is now able to
build docker images from different bases.

For example, add the following line to your .buildconf file to build
CentOS based images:

    PREFIX=centos-rdo-

Default base image is Fedora. For now only RH family is supported.

Additionally, changing the namespace either with the NAMESPACE variable
in .buildconf or via --namespace commandline option now changes the
source namespace as well from the default kollaglue one.

Implements: blueprint multi-baseos
Co-Authored-By: Steven Dake <stdake@cisco.com>
Change-Id: I3964cd2292789ea883a1f2d2738a5731a4fff49b
2015-03-02 14:08:06 +09:00