1950 Commits

Author SHA1 Message Date
Steven Dake
2dead81564 Install agent dependencies from source for CentOS
Several packages are not installed from RPM packages which are
required in order for CentOS from source to operate correctly.

This looked like sudo was failing to execute, but it was because
the dnsmasq binary was not found.

backport: liberty

Change-Id: If23cfbacd55d9089ffec442399ee0151adea923f
Closes-Bug: #1503412
2015-10-06 22:59:53 -07:00
Steven Dake
fbb1842fc8 Enable source for openstack-base for RPM distros
Make openstack-base optimized for from source builds for RPM based
distributions.

backport: liberty

Change-Id: I5f1056ebc09fd55cd5d46da7a09331e38940d888
Implements: blueprint openstack-common-container
2015-10-06 22:59:50 -07:00
Jenkins
d352505ccb Merge "add "--template-only" flag for tools/build.py" 2015-10-06 10:05:02 +00:00
James McCarthy
c879b1f271 Updated haproxy config to include swift api
Closes-bug: #1503197
backport: liberty
Change-Id: I5c233298312dabeb43efa4821855c77fd81aae67
2015-10-06 10:30:04 +01:00
Jenkins
f9d9abd408 Merge "put conatiner name to array in cleanup-containers" 2015-10-06 06:58:02 +00:00
Kuo-tung Kao
1e86af763b put conatiner name to array in cleanup-containers
The brace in string variable will not be expanded in some case.
Put conatiner name into array.

Change-Id: I2fb16e7352bd579f207efce0fb9b2565a1e7236d
Closes-Bug: #1502467
2015-10-06 13:55:58 +08:00
Jenkins
719740ade8 Merge "Set sysctl values" 2015-10-06 05:20:36 +00:00
Sam Yaple
94162bd08f Bring Kolla inline with FHS
This brings Kolla images inline with FHS and should make finding
locations of things more consistent and reliable with the linux world
at large.

Change-Id: Iece5b4da4bace0fb8b1f41a65ab2c852ec73e6f8
Closes-Bug: #1485742
2015-10-06 03:30:53 +00:00
Sam Yaple
cb4e875ae1 Common start.sh
The majority of the start.sh code is identical. This removes that
duplicate code while still maintaining the ability to call code in a
specific container.

The start.sh is moved into /usr/local/bin/kolla_start in the container

The extend_start.sh script is called by the kolla_start script at the
location /usr/local/bin/kolla_extend_start . It always exists because
we create a noop kolla_extend_start in the base directory. We override
it with extend_start.sh in a specific image should we need to.

Of note, the neutron-agents container is exempt from this new
structure due to it being a fat container.

Additionally, we fix the inconsistent permissions throughout. 644 for
repo files and the scripts are set to 755 via a Docker RUN command to
ensure someones local perm change won't break upstream containers.

Change-Id: I7da8d19965463ad30ee522a71183e3f092e0d6ad
Closes-Bug: #1501295
2015-10-06 03:30:26 +00:00
Kuo-tung Kao
9bacf1bdbd add "--template-only" flag for tools/build.py
Add "--template-only" flag for tools/build.py
to generate dockerfile for read easily.

Change-Id: Ic4cf43d925b5f2d3dae809c11f3f95c51b4bbce2
Closes-Bug: #1501671
2015-10-05 14:57:29 +08:00
Sam Yaple
0700100d82 Set sysctl values
A few sysctl values are required for networking to work. All of them
are documented at docs.openstack.org and while some of them are the
defaults on systems, they should be explicitly set since networking
will break without them set.

Change-Id: I4507eb2602e52eeab61bdceea4c94b1c35696a7d
Closes-Bug: #1482794
2015-10-04 06:29:20 +00:00
Sam Yaple
3a56ce1826 PXE for Ironic for ubuntu
This makes Ironic build properly from source.

Change-Id: Ic61cd945760843aae1f0a01738bca3b818fd2f69
Closes-Bug: #1500577
2015-10-04 03:59:23 +00:00
Jenkins
d55be10ddd Merge "Lock down ansible version" 2015-10-01 03:12:31 +00:00
Sam Yaple
a751d6e8ea Lock down ansible version
We can lock down to this alpha version as long as it works once. That
is the value of building an image here. We likely won't run into any
bugs if we can deploy from this tag at least once.

Change-Id: I864290260d7fbdcd8325748788d2454d1dc1a699
Closes-Bug: #1501455
2015-09-30 18:58:17 +00:00
Martin André
1bad32ffc1 Fix wrong option name in kolla-build.conf
The install type can now be change by specifying the correct option
name.

Change-Id: I612afc3df1e0e1bdfa9243417537eb176f0d89cc
Closes-Bug: #1501327
2015-09-30 21:51:59 +09:00
Jenkins
e6a9da2022 Merge "Make a openstack-common container for CentOS variants" 2015-09-29 12:27:10 +00:00
Steven Dake
571c5bc878 Make a openstack-common container for CentOS variants
Only implements CentOS (RPM family) binary in openstack-common.

Change-Id: I5249d0ffaf4c0c946ee2347d5519391ded160cea
Partially Implments: blueprint openstack-common-container
2015-09-29 03:45:38 -07:00
Jenkins
8f7006e323 Merge "Fix ceph after config-external removal" 2015-09-29 10:20:05 +00:00
Jenkins
713977166d Merge "Remove config-external for rsyslog" 2015-09-29 10:13:10 +00:00
Jenkins
a9eee17159 Merge "Make libvirt function on CentOS" 2015-09-29 10:13:03 +00:00
Jenkins
2599e221a8 Merge "Neutron Agents json support" 2015-09-29 10:12:57 +00:00
Jenkins
6cc84e38e0 Merge "Make oslo.log work correctly on RDO platforms" 2015-09-29 10:12:52 +00:00
Sam Yaple
5223965b61 Fix ceph after config-external removal
Change-Id: I46dc2f02dda8219878eee3755b0891f4c3450682
Partially-Implements: blueprint replace-config-external
2015-09-29 08:39:43 +00:00
Steven Dake
655d88e3a1 Make libvirt function on CentOS
Recent regressions in the code base removed permission setting of
/dev/kvm to root:kvm 660 permissions which are default for CentOS's
version of libvirt.

Also Libvirt must be able to read its cnofiguration file, which was
previously 600 root:root.  Now its 644 root:root so its always readable.
This is fine, since this file doesn't contain any secret information.

Change-Id: Id87cf5da8e37bc5bb613ce919d0293803d0fe5ed
Closes-Bug: #1500733
2015-09-29 01:37:35 -07:00
Ryan Hallisey
4f15ac8008 Neutron Agents json support
Neutron Agents is a special case for json support. Since it's a fat
container, there will be multiple commnds that will need to be run
in the container.  In order to account for this, the commands will be
hardcoded until the agents are split out to their own containers.
The files will be copied the normal way.

Co-Authored-By: Steven Dake <stdake@cisco.com>

Change-Id: I9fc226cc7b82c2594db5814d30d453a29a4af8c0
Partially-Implements: blueprint replace-config-external
Closes-Bug: #1500566
2015-09-28 23:45:03 -07:00
Steven Dake
00151b2310 Make oslo.log work correctly on RDO platforms
RDO has backported the oslo.log fix but Ubuntu from source does not have
the proper version of oslo.log with the error correction for syslog.

Change-Id: If91200397e02cf5b696d34d9aa4d6980fbba36c6
Partially-Implements: bp logging-container
2015-09-28 23:43:32 -07:00
Jenkins
8bbc45c399 Merge "Add Ansible support for Ironic" 2015-09-29 00:18:14 +00:00
Jenkins
44b5e223f2 Merge "Make oslo.log work properly with syslog" 2015-09-28 20:50:20 +00:00
Sam Yaple
f098e76676 Remove config-external for rsyslog
Additionally, fix privleges for rsyslog container. It needs to be
privleged otherwise it will complain about creating device node

Change-Id: I364858f0a1df01b53cee46db3ec7cd5ecbe82c54
Partially-Implements: blueprint replace-config-external
2015-09-28 13:46:27 -07:00
Steven Dake
f422733a0b Make oslo.log work properly with syslog
The syslog support in oslo.log is broken.  This patch makes oslo.log
work properly by using a backported patch from master.

Change-Id: Idb7b38e3cecbfd6547dad148f22f13a4c8557c8f
Implements: bp logging-container
2015-09-28 13:15:43 -07:00
Jeff Peeler
f5a50a1d7d Add Ansible support for Ironic
Configuration based off upstream documentation here:
http://docs.openstack.org/developer/ironic/deploy/install-guide.html

A few notes:
-ironic-api is not configured to use mod_wsgi
-several places it's noted that discoverd is going away and needs to be
replaced with ironic-inspector - (sqlite connection should be changed
too)
-currently enabling ironic reconfigures nova compute (driver and
scheduler) as well as changes neutron network settings
-a nice enhancement would be to configure the web console

Required post-deployment configuration:

Create the flat network to launch the instances:

neutron net-create --tenant-id $TENANT_ID sharednet1 --shared \
--provider:network_type flat --provider:physical_network physnet1

neutron subnet-create sharednet1 $NETWORK_CIDR --name $SUBNET_NAME \
--ip-version=4 --gateway=$GATEWAY_IP --allocation-pool \
start=$START_IP,end=$END_IP --enable-dhcp

And then the above ID is used to set cleaning_network_uuid in the neutron
section of ironic.conf.

Change-Id: I572e7ff1f23c4e57a2c50817cafe9269fd9950dd
Implements: blueprint ironic-container
2015-09-28 16:10:43 -04:00
Jenkins
40f9f0816f Merge "Murano logging to rsyslog" 2015-09-28 13:54:19 +00:00
Jenkins
dab1382909 Merge "Rename ovs to openvswitch" 2015-09-28 13:29:01 +00:00
Michal Jastrzebski
cacff1c11a Murano logging to rsyslog
Configure murano to use rsyslog container as logging mechanism

Change-Id: I98416f4dac7176539576e865c249adca04379251
Implements: bp logging-container
2015-09-28 13:17:17 +00:00
Jenkins
e69571eeb3 Merge "Convert ceph to json" 2015-09-28 11:26:26 +00:00
Jenkins
6c1e4e0207 Merge "Improve cleanup script" 2015-09-28 11:25:31 +00:00
Jenkins
edca14421e Merge "Allow conf files to be optional" 2015-09-28 11:22:25 +00:00
Sam Yaple
76920be5fa Rename ovs to openvswitch
Our openvswitch image does not follow the naming convention of any of
our other containers and it should.

Change-Id: If1b815117bb39df74061218e48778479b8d674bc
Closes-Bug: #1500392
2015-09-28 11:10:17 +00:00
Jenkins
a0ac876494 Merge "Heat doesn't need to specify python-oslo-reports" 2015-09-28 11:07:58 +00:00
Jenkins
3b6261a21a Merge "Significant refactor of base image" 2015-09-28 10:54:35 +00:00
Jenkins
6a622ec82c Merge "Implement a install_type and install_metatype" 2015-09-28 10:49:53 +00:00
Jenkins
fea0f07c08 Merge "bind haproxy to single interface" 2015-09-28 10:40:07 +00:00
Jenkins
b283066e29 Merge "Stop haproxy from listening on ports it shouldnt" 2015-09-28 10:38:55 +00:00
Sam Yaple
83d195249e Convert ceph to json
Remove ceph debug info and unused partuuid

Change-Id: Ifbe9890979ee666d7e43a04376f36c41ae2d8add
Implements: blueprint ceph-container
Partially-Implements: blueprint replace-config-external
2015-09-28 10:35:52 +00:00
Sam Yaple
7622e53cc1 Allow conf files to be optional
There are situations where we need to copy-if-exists mainly in cluster
setups. This is needed to replace config-external for ceph right now

Change-Id: I3c0898d8c584338a38e6ce4c4146e145910c5a52
Partially-Implements: blueprint replace-config-external
2015-09-28 10:35:52 +00:00
Jenkins
aadbbcbee0 Merge "remove set_configs" 2015-09-28 10:34:58 +00:00
Jenkins
762b24cc1a Merge "Remove quotes from subshell call in bash script" 2015-09-28 10:26:38 +00:00
Jenkins
1b43c2b352 Merge "Unify commands in documentation" 2015-09-28 10:22:50 +00:00
Steven Dake
473a0229d4 Heat doesn't need to specify python-oslo-reports
This package is correctly specified in the dependencies of the
heat packaging now so removing it from the base package.
Change-Id: I9028f41f5ee95b728c425235846b9825501b6f70
Implements: blueprint rhel-based-image-support
2015-09-28 03:16:52 -07:00
Steven Dake
f74cd0ecb8 Significant refactor of base image
This refactor organizes the code as follows:

If RPM family:
    execute YUM repo setup
    if binary
        install binary tools
    if source
        install source tools

IF DEB family:
   install source tools

I have tested building and everything seems fairly solid except
possilby RHOS.  The long term goal of this patch is to allow us to
add our own repos in the "execute YUM repo setup" section of the base
file based upon OpenStack Infrastructure YUM repos.

Partially-Implements: blueprint rhel-based-image-support
Change-Id: I759fb8fc050973460c9c69bb500de68e88a68b3b
2015-09-28 03:16:52 -07:00