2065 Commits

Author SHA1 Message Date
Steven Dake
c7a9835b68 Improve dry-ness of base dockerfile.j2
The delorean repositories no longer have a separate location for
openvswitch.  Now openvswitch is located in delorean-deps.repo
and the rest of delorean master is located in the delorean.repo
file.  These files can be installed for both RDO and SOURCE, but
not for RHOS.  This patch uses the install_metatype to make a
determination as to when to install these two repos.  In the
process, we can remove the source RPM installation.

Change-Id: Ieedddd9d7ee234b6acdb03f7043d57c18e024951
Closes-Bug: #1508326
2015-10-21 04:56:52 -04:00
Steven Dake
194bb93ff2 Make Ceph install from Source on RPM
Ceph doesnt install from source on RPM because Ceph pulls in
python-requests.  This causes a cpio error during unpacking
because requests is installed in the base image.  A simple
workaround is to remove in the nova-compute container which
is the only container this conflict occurs within.

backport: liberty

Change-Id: I493900854a53c98f1a5cb6478675a18feceefea5
Closes-Bug: #1508236
2015-10-20 19:55:22 -04:00
Steven Dake
a026ec253a Increase Ceph RPM gpg key timeout to 90 seconds
The default timeout for Ceph GPG rpm key retrieval is 30 seconds.
In my testing, the GPG key takes approximately 50 seconds to download
often resulting in a failure to build containers that need to retrieve
the Ceph GPG sign key.  Crank up the timer to 90 seconds so the key
is more likely to be downloaded, allowing images to be built.

backport: liberty

TrivialFix

Change-Id: I7420cdf8d3b61aa9f4f52795fccbe5da3e48d57b
2015-10-20 16:28:19 -04:00
Jenkins
7b73bc95ac Merge "Update requirements to use tarball by default" 2015-10-19 20:29:04 +00:00
Jenkins
ab3ae911d0 Merge "Use bool filter for ironic" 2015-10-19 20:27:22 +00:00
Paul Bourke
592b3bd066 Add build profiles to build.py
Add ability to define "profiles" in kolla-build.conf, which are
predefined sets of images to build at once.

The supplied profiles match what Steven defined in the
restructure-template bp, though others can easily be added by the user.

Multiple profiles can be supplied at once, as well as supplemented by
the existing regex mechanism, e.g. to build profiles infra, main, and
also ironic, one can use:

tools/build.py --profile infra --profile main ironic

Change-Id: I0c6f450152cb23dcfc58e0969669fcedf03fab01
Implements: bp restructure-template
Doc-Impact
2015-10-19 13:31:30 +01:00
Sam Yaple
f52b98c199 Update requirements to use tarball by default
This makes all of our defaults tarballs for consistency

TrivialFix

Change-Id: I4cb923a3319aa3dcba10dccf439a0193a42c1d55
2015-10-19 11:27:36 +00:00
Sam Yaple
d6bf048c34 Use bool filter for ironic
TrivialFix

Change-Id: Idaa6376c8585b9bebe1d68a518f965124dfe6b76
2015-10-18 19:19:43 +00:00
Jenkins
42b34bb782 Merge "add "registry" flag to "tools/build.py"" 2015-10-17 10:55:15 +00:00
Kuo-tung Kao
52b7253811 add "registry" flag to "tools/build.py"
With registry flag,
build image using `tools/build.py --registry 172.22.2.81:4000`
the image name looks like `172.22.2.81:4000/kollaglue/data`
When user use kolla-ansible,
user set `docker_registry` to `172.22.2.81:4000` in `/etc/kolla/globals.yml`.

Build image using `tools/build.py -n abcd`
the image name looks like `abcd/data`
When user use kolla-ansible,
user set `docker_namespace:` to `abcd` in `/etc/kolla/globals.yml`.

build image using `tools/build.py -n abcd --registry 172.22.2.81:4000`
the image name looks like `abcd/data`
When user use kolla-ansible,
user set `docker_namespace:` to `abcd` in `/etc/kolla/globals.yml`.
user set `docker_registry` to `172.22.2.81:4000` in `/etc/kolla/globals.yml`.

With the feature, it will reduce user confusing and mistaking.

Change-Id: I18ac7a3ccec032888e35f5e9a79fc190760cc8a0
Closes-Bug: #1505056
2015-10-17 10:08:03 +08:00
Jenkins
968a42b826 Merge "Enable COMPRESS_OFFLINE for Horizon" 2015-10-15 15:01:15 +00:00
Jenkins
7ee4bb01c2 Merge "Fix syntax in kolla-build.conf example" 2015-10-15 15:01:09 +00:00
Jenkins
12ddac000c Merge "Use memcache for consoleauth and horizon" 2015-10-15 15:01:02 +00:00
Jenkins
f218233290 Merge "Use openstack/requirements for ironic" 2015-10-15 15:01:00 +00:00
Jenkins
dace19bef3 Merge "Use openstack/requirements for horizon" 2015-10-15 15:00:54 +00:00
Jenkins
8a4132b303 Merge "Use openstack/requirements for heat" 2015-10-15 15:00:47 +00:00
Jenkins
1e1d44667e Merge "Use openstack/requirements for gnocchi" 2015-10-15 15:00:13 +00:00
Jenkins
045ee04a1e Merge "Use openstack/requirements for glance" 2015-10-15 15:00:06 +00:00
Jenkins
57cd336432 Merge "Use openstack/requirements for designate" 2015-10-15 14:59:30 +00:00
Jenkins
180de5f376 Merge "Use openstack/requirements for cinder" 2015-10-15 14:59:22 +00:00
Jenkins
1257e50aac Merge "Use openstack/requirements for ceilometer" 2015-10-15 14:59:00 +00:00
Jenkins
74874de6ec Merge "Use openstack/requirements for keystone" 2015-10-15 14:58:36 +00:00
Jenkins
2f1cc59b56 Merge "Use openstack/requirements for repeatable builds" 2015-10-15 14:58:07 +00:00
Paul Bourke
82684d9ccc Fix syntax in kolla-build.conf example
TrivialFix

Change-Id: I60dacac49d416442e699c790617ac5ad0a8b0a8e
2015-10-15 14:25:58 +01:00
Paul Bourke
3391a32802 Use openstack/requirements for ironic
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I9fbfa7ca442063db52c8b14586176ab994d2cf46
Partial-Bug: #150530
2015-10-15 11:10:01 +00:00
Paul Bourke
ef3c7a5df0 Use openstack/requirements for horizon
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I145908bef5d18fea35f38032725f48c18f8cb831
Partial-Bug: #150530
2015-10-15 11:09:42 +00:00
Paul Bourke
c1b75765f8 Use openstack/requirements for heat
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I36de9a5c52ac265d0fb54ba7d540048aedf33fde
Partial-Bug: #150530
2015-10-15 11:09:33 +00:00
Paul Bourke
59889345c0 Use openstack/requirements for gnocchi
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I70ade4df3297347833b116e73a77a50767d75d15
Partial-Bug: #150530
2015-10-15 11:09:26 +00:00
Paul Bourke
7c582b4bbf Use openstack/requirements for glance
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I46f456ce71f76b0a6a2933220a500c5221769ff9
Partial-Bug: #150530
2015-10-15 11:09:20 +00:00
Paul Bourke
f951e9f9c8 Use openstack/requirements for designate
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I07ed5f20ab4b4bcd0fc6b3c231a54ebe0d51bf67
Partial-Bug: #150530
2015-10-15 11:09:13 +00:00
Paul Bourke
9f39f2725e Use openstack/requirements for cinder
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: Ib6a57da3232fb99e92103e606f81774556f76426
Partial-Bug: #150530
2015-10-15 11:09:05 +00:00
Paul Bourke
c3997b14b7 Use openstack/requirements for ceilometer
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: I3dd452d0cf502c0adf892b67b152de1c8930c77f
Partial-Bug: #150530
2015-10-15 11:08:58 +00:00
Paul Bourke
be8a366184 Use openstack/requirements for keystone
See Iccb4e99f8e4b6659a19c1817d0f4c697824af25c for context.

Change-Id: Ic4f5732e70b0cda3b3755e8fe33ece3116fa8afc
Partial-Bug: #150530
2015-10-15 11:08:49 +00:00
Paul Bourke
72a8f5aabd Use openstack/requirements for repeatable builds
Add this repo to the openstack-base image, and use the upper-constraints
to install the client packages. Will follow up with dependant patches
for the child images to reduce the risk of breaking everything at once.

--

Background:

Many dependencies in the requirements.txt of OpenStack components have
quite loose version requirements, in many cases they will just specify a
minimum version (e.g. WebOb>=1.2.3).

The result of this is that given a Kolla image for Keystone built today,
another build of the exact same ref of Keystone could be broken
tomorrow, due to it picking up a later unsupported dependency.

The https://github.com/openstack/requirements repo exists to bring some
sanity to this situation. (It also outlines other problems it solves in
it's readme).

We also may like to checkout the stable/liberty branch of this project
in our liberty branch, once it appears.

Change-Id: Iccb4e99f8e4b6659a19c1817d0f4c697824af25c
Partial-Bug: #1505306
2015-10-15 12:07:48 +01:00
Sam Yaple
2ea87ebdb7 Use memcache for consoleauth and horizon
Unfortunately there was no was to avoid memcache for consoleauth, so
we might as well take advantage of it for Horizon as well.

Change-Id: Idd338a025b031f6b50fe0c9f03c2c8d862f9d4c0
Closes-Bug: #1504606
Closes-Bug: #1504800
2015-10-15 10:47:21 +00:00
Sam Yaple
718ed4313a Enable COMPRESS_OFFLINE for Horizon
Without this set the CSS is messed up again

TrivialFix
backport: liberty

Change-Id: I9e4cfc53d9791f75d4fdd52abe562c58035b0979
2015-10-15 10:45:35 +00:00
Michal Rostecki
3baa57ddb7 Pin Docker version to 1.8.2
Currently Ansible have issues with Docker 1.8.3. We have to pin
version to 1.8.2 before including fix [1] in tagged Ansible
version.

[1] https://github.com/ansible/ansible-modules-core/pull/2258

Change-Id: If802ff118782ec521acfff00e286cde703bf37b3
2015-10-15 07:51:14 +02:00
Jenkins
63a2f61bc8 Merge "Add tty to containers" 2015-10-14 15:37:10 +00:00
Jenkins
8ed860fdd8 Merge "update doc for root is needed when deploying" 2015-10-14 11:21:22 +00:00
Jenkins
0545701d0d Merge "Make Ceph work for RPM based distributions" 2015-10-14 10:58:08 +00:00
Sam Yaple
b2ac6e80cd Add tty to containers
sudo requires a tty to function by default on centos. Instead of
tweaking the sudo conf we can just add a tty. This has the added
advantage of making the containers more friendly if you have to
`docker exec -i <container> bash` into them.

Change-Id: If97a02ca1d37c243a787d98ade54bde8d641aecd
backport: liberty
Partially-Implements: blueprint functional-testing-gate
2015-10-14 10:54:33 +00:00
Martin André
e47d4b8506 Cleanup outdated documentation
Kolla implements a workaround for the referenced docker issue. There is
no need to document it, however still recommend installing a recent
kernel for better compatibility.

Change-Id: I06eaa0bb0980f0698202724f523ab08cb344418e
2015-10-14 14:05:12 +09:00
Kuo-tung Kao
fd4f3747a0 update doc for root is needed when deploying
Update ansible-deployment to note that root privilege is needed
when deploying.

Change-Id: I80d3792de69c16c05c5285e8113d5924d6192735
Closes-Bug: #1471824
2015-10-14 10:07:21 +08:00
Jenkins
d9440674a5 Merge "Update Vagrant docs" 2015-10-14 01:59:02 +00:00
Jenkins
4fa81c88a3 Merge "Also copy over Swift builder files for rings" 2015-10-14 01:58:09 +00:00
Steven Dake
1353538644 Make Ceph work for RPM based distributions
Ceph packages need to be installed in nova, glance, and cinder.
Once that is done, Ceph works like a champ!

Change-Id: I296da1d04d0c1bcb729f22e65e432d53d561b49c
backport: liberty
Closes-Bug: #1505549
2015-10-13 21:48:17 -04:00
Jenkins
39a19ef862 Merge "Pin docker to 1.8.2 in gate" 2015-10-14 01:42:09 +00:00
Jenkins
5fe0e67685 Merge "Fix issue with su and bad kernels" 2015-10-14 01:42:03 +00:00
Jenkins
486b8b4884 Merge "Bump ansible to 1.9.2" 2015-10-14 01:41:55 +00:00
Jenkins
31e50443f6 Merge "Install tox in Vagrant" 2015-10-13 23:54:03 +00:00