545 Commits

Author SHA1 Message Date
Daneyon Hansen
b18b49d4d7 Disables firewalld for Heat-deployed Fedora instances
Previously, Heat was deploying Fedora21 instances with firewalld
enabled and running. It is well documented that firewalld causes
problems with OpenStack Neutron. That is becasue Neutron uses
iptables instead of firewalld for security filtering.

Change-Id: I25cb32984841423a7b1c44b55cd19b5b4588c9e8
2015-04-16 22:26:38 +00:00
Jenkins
b3bee1b927 Merge "Adds OpenStack Clients to Heat Template" 2015-04-16 01:55:49 +00:00
Jenkins
97fc682f0e Merge "Updates Docker Client in Heat Template" 2015-04-16 01:50:48 +00:00
Jenkins
58819e0700 Merge "Adds a Status Script" 2015-04-16 01:36:06 +00:00
Jenkins
5c2e13592b Merge "Update developer documentation" 2015-04-16 01:31:45 +00:00
Daneyon Hansen
148d4251b2 Updates Docker Client in Heat Template
Now installs rc5 and changes the install directory to
/usr/local/sbin.

Change-Id: I30332ff0bd4cca1eed7f754c3bd620e59c052c1d
2015-04-15 02:02:53 +00:00
Daneyon Hansen
2079e44300 Adds OpenStack Clients to Heat Template
Previously, Kolla nodes deployed using the Heat template did not
contain OpenStack clients. This patch adds the OpenStack client
packages.

Change-Id: I72a4db1e4edc7350adf5b302955d39182cc58a58
2015-04-15 01:37:23 +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
Steven Dake
9bbf1ba87b Update developer documentation
Tell users to pull docker-compose from Docker Inc.
Recommend rc3 or greater
Tell users the thread where the bump releases are being discussed
Fix typo in libvirtd

Change-Id: Ib47d3a57452a4266db2b47b41a789908365fda9b
2015-04-14 11:41:10 -07:00
Jenkins
aa5dba96da Merge "CentOS 7.1 image doesn't work with libvirt" 2015-04-14 18:01:57 +00:00
Steven Dake
f4319a9a21 CentOS 7.1 image doesn't work with libvirt
The libvirt package has a dependency on systemd-libs and systemd,
while the centos 7.1 container installs systemd-container-libs
and systemd-container.  We don't need either of these systemd tools
but they reuslt in a broken build of the system if they are missing.

As is, the libvirt container will not build.

Change-Id: I8e5aac0e3a7e9d88a81733a3048971fe9d48ba56
2015-04-14 10:56:41 -07: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
977f2c8243 Fixes Spacing in Neutron Agents Compose File
Previously, compose would generate an error because the
neutron-agents.yml file was missing a space for the restart policy
line.

Change-Id: Ib17c4c726dcfcda780a242ebe22474e9252cac8a
2015-04-13 18:52:23 +00:00
Daneyon Hansen
882a859ff5 Removes check_required_vars for Log Files
Previously, check_required_vars was requiring log file variables
to be set in openstack.env. This would cause an error when
starting nova/neutron containers that used default (blank) log
file settings. Since the log files are not required
for the services to start, the default log files are left blank
(without a value in the K/V pair). This patch removes the
log_file variable for check_required_vars in each nova/neutron
script.

Change-Id: I169baab28f63a0e0ae06c8aef21b5e8d3155bdda
2015-04-13 17:17:52 +00:00
Jenkins
fa789ab8ba Merge "Adds Neutron Agents Support" 2015-04-13 16:55:40 +00:00
Jenkins
1a7c3e67a2 Merge "Adds neutron-server to neutron container-set" 2015-04-13 16:55:26 +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
db860f148e Updates Heat template Compose and Kolla Repositories
Previously, compose was being pulled from sdake. Since pull 1011
for pid=host support was merged, we can now use the upstream repo.

Additionally, the heat template was using the Kolla ml-3 release.
Since ml3 was cut, trunk should be reverted to using Kolla trunk.

Change-Id: I44ad01ee9fde914c87d981c05b825fa549420f8c
2015-04-10 18:40:31 +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
Jenkins
82578471ae Merge "Updates Docker bin in Heat template" 2015-04-09 21:11:28 +00:00
Daneyon Hansen
ed3f541a6f Updates Docker bin in Heat template
Previously, Heat was using the docker-1.5.0-dev version of the
Docker binary. This PS updates the Heat kollanode template to use
the latest version of the Docker binary used by the project due to

https://github.com/docker/docker/issues/11760#issuecomment-88288278

Change-Id: I1c771b89758baa9faaa04a0e647a23f32bff48a9
2015-04-09 18:27:16 +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
5ea37557cf Merge "Remove building of pam+noaudit and place in copr instead" 2015-04-07 14:53:52 +00:00
Jenkins
7a29958949 Merge "libvirtd provides was removed from centos7.1" 2015-04-07 14:50:47 +00:00
Steven Dake
a87980e5c2 Remove EXPOSE options from Dockerfiles
The EXPOSE options will create a local docker-proxy.  This is
unnecessary with --net=host mode.  The docker-proxy adds about
20 microseconds of latency.  Add documentation to the specification
to indicate where to find the ports that are exposed by the
services in case someone were to desire to add EXPOSE back to
the Dockerfiles.

Change-Id: I398e922fe096d6022a2d5985bb92498f89a5ea31
2015-04-06 20:25:18 -07:00
Steven Dake
f4506ddd60 Remove building of pam+noaudit and place in copr instead
COPR is a repository for third party packages built by the Fedora build
system.  Instead of dragging in 250MB of dependencies to build pam, build
externally and load only the RPM into the image.

The pam that is built externally is built with the --with-noaudit flag
and a Provides: pam line.

Change-Id: I28396996943d2fdc12b253faf62af8623c8b0e73
2015-04-06 20:22:34 -07:00
Steven Dake
1a530dca4c libvirtd provides was removed from centos7.1
the libvirtd package "Provides" wwas removed from the libvirt packaging.
To workaround this problem just install libvirt-daemon in CentOS 7.1 or Fedora
20+.

WIthout this change, an install of libvirtd does not actually install
libvirtd.  The yum tool will not fail if libvirtd is specified so we weren't
catching this in the build.

Change-Id: I81e64f6f659aa0466369dad4b0574ebb24c99555
2015-04-06 11:09:19 -07: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
Jenkins
2e37f25c57 Merge "Improve developer documentation" 2015-04-06 15:56:01 +00:00
Jenkins
c4653bf9c8 Merge "Allow the Kolla directory to be configurable" 2015-04-06 00:44:34 +00:00
Jenkins
0573da4424 Merge "Load appropriate modules for libvirt" 2015-04-03 18:01:15 +00:00
Sam Yaple
9a81566d05 Allow the Kolla directory to be configurable
Implements the initial structure for variable substitution in ansible.

Change-Id: I26d82189273be6ebf941b0ab82efc6bf1eebc53d
2015-04-03 09:28:59 -05:00
Jenkins
c46cdfd53e Merge "Add and use ansible module for docker-compose" 2015-04-03 01:20:12 +00:00
Steven Dake
e805356bdd Improve developer documentation
Clean up version info since all those problems have been fixed in rc3.

Add separate sections for each major section of the document.

Change-Id: Ic011b56872e4cee70f668af58275f31cf083d027
2015-04-02 15:43:48 -07: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
Jenkins
46b52aeedd Merge "Add a tools/pull tool" 2015-04-02 20:33:01 +00:00
Jenkins
28a23b29b2 Merge "Adds vxlan kernel module to Heat template" 2015-04-02 20:31:00 +00: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
Sam Yaple
fd5c23ad7a Add and use ansible module for docker-compose
This ansible module for docker-compose allows for idempotency. I have
submitted a pull request upstream to ansible-modules-extra to include
this new module. When/if the module is accepted upstream if can be
removed from the local module library.

The two playbooks have been updated to use this module. The database
data container does not support idempotency due to the fact that it
exists instead of sleeps. Therefore each time `docker-compose up` is
called, it will start the container and register a change. The
message-broker does not have this issue and will remain unchanged even
repeatedly running these playbooks.

Due to the use of a special branch of docker-compose provided by sdake,
this module requires at least docker-compose==1.2.0rc1

Change-Id: If1644eaa3bff0c2a007fa2d479a95bea941945f6
2015-04-02 11:54:42 -05:00
Jenkins
ba175c61e1 Merge "Simplify wait_for calls" 2015-04-02 13:53:06 +00:00
Jenkins
92b129968d Merge "Deal with CentOS 7.1 breakage" 2015-04-02 01:06:40 +00:00
Steven Dake
82db9eb6c7 Deal with CentOS 7.1 breakage
The baseurl is busted in CentOS latest RDO images

Change-Id: Id619a28a6207a8c70835a12416e6f7b432d49811
2015-04-01 16:00:14 -07:00