262 Commits

Author SHA1 Message Date
Paul Bourke
b7dbb0a921 Fix commands failing when installed from sdist
pbr was failing to find a correct version when kolla-ansible was
installed via 'pip install ...'

Thanks to dhellmann for the fix.

Change-Id: I5be5fc6709c729141a43d3c69384a5f7a9b2e8f8
Closes-Bug: #1662195
2017-02-06 16:22:08 +00:00
caowei
4c2da9e6d1 Add karbor ansible role
Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>
Co-Authored-By: zhangshuai <446077695@qq.com>
Co-Authored-By: Mauricio Lima <mauriciolimab@gmail.com>

Change-Id: I7aebe544e3495767d6389dbf220d633a98c137da
Partially-implements: bp karbor-ansible-role
2016-12-21 01:53:20 +08:00
Ross Krumbeck
a9ade20bee Ansible-ize OpenStack Designate
Implement ansible role to deploy designate
and dependencies. The backend used is bind9.

Co-Authored-By: zhubingbing <zhubingbing10@gmail.com>
Co-Authored-By: Eduardo Gonzalez <dabarren@gmail.com>

Depends-On: 6d0dc3e0f931c7c50b64a4659900cc50b0d860a2
Implements: blueprint ansible-designate
Change-Id: I34d8126e0cd8d71d5ced9b62f3776cc354fbb549
2017-01-05 14:34:15 +00:00
Andrew Widdersheim
245c921573 Fix kolla-genpwd and kolla-mergepwd
The __init__.py file for cmd was removed in error in 92ff63f3.

Change-Id: I4b8b27efca19cfe0c02e3c3dfb443b832a22a73c
2016-12-12 15:10:13 -05:00
Vladislav Belogrudov
0ea98608e5 Sometimes merging of passwords.yml gives json
Dumping of password dictionary can look quite different depending
on passwords structure. To always get yaml we need to use block
style for dump(), see
    http://pyyaml.org/wiki/PyYAMLDocumentation#Dictionarieswithoutnestedcollectionsarenotdumpedcorrectly

Change-Id: Ideee1aefedbba35480947956821341c6ef75088e
Closes-Bug: #1647308
2016-12-05 13:17:54 +03:00
Jeffrey Zhang
92ff63f3e0 clean up kolla related files
* rename package name from kolla to kolla-ansible
* remove docker for data_files
* remove kolla docker
* remove kolla-build console_scripts

Change-Id: I53abbf79dffb54eb785a39ba04d375bc4e4f27b0
2016-11-30 11:17:35 +08:00
Jenkins
8b8d10848f Merge "use uuidutils instead of uuid.uuid4()" 2016-11-29 08:40:51 +00:00
Vladislav Belogrudov
14f9246fcd Add tool to merge passwords during release upgrade
Typical usage:
   cp /etc/kolla/passwords.yml /etc/kolla/passwords.yml.old
   kolla-genpwd
   kolla-mergepwd --old /etc/kolla/passwords.yml.old \
                  --new /etc/kolla/passwords.yml     \
                  --final /etc/kolla/passwords.yml

Change-Id: Ibbc598909e28e096145841aec929d0cfcf8f7cab
Implements: blueprint kolla-merge-passwords
2016-11-28 12:22:55 +03:00
Surya Prakash Singh
1429198139 use uuidutils instead of uuid.uuid4()
Closes-Bug: #1082248
Change-Id: I9e52619a6805fa58ffdb396b76a6ca99e2376a7d
2016-11-23 20:36:55 +05:30
Jenkins
e7dbbded65 Merge "Show the rendered docker file" 2016-11-11 17:03:42 +00:00
caowei
769b631a5f Add freezer to PROFILE_OPTS of common/config.py
TrivialFix

Change-Id: I56ade075af387412eb10190fb460a561e794b339
2016-11-10 20:20:30 +08:00
Jenkins
d15eb07ba8 Merge "Skip queuing build tasks for UNMATCHED images" 2016-11-10 09:22:51 +00:00
Jenkins
7d0403077e Merge "add panko dockerfile" 2016-11-09 16:14:34 +00:00
zhubingbing
fabb22d505 add panko dockerfile
Change-Id: Ibf74db39348dfb6f56f4fca0aff142a75ef53d38
Partially-Implements: blueprint add-panko
2016-11-09 05:15:27 -05:00
Joshua Harlow
8df37b6ea1 Show the rendered docker file
It can be quite useful (especially while debugging)
to see exactly what the final rendered Dockerfile
actually is; so when it is being rendered, log it
at DEBUG level (so that users running with DEBUG)
can see it.

Change-Id: I28b6f49a7d2f01d155f7885b6ab275c03c4e14af
2016-11-08 16:34:17 -08:00
Joshua Harlow
27a16ccf76 Skip queuing build tasks for UNMATCHED images
Closes-Bug: #1639989

Change-Id: I7bad2b784d2ac02a5af0d790ea32d35f90a681ec
2016-11-07 17:08:01 -08:00
Jenkins
14b5636e0c Merge "Load all sections defined in code and conf file" 2016-11-07 13:50:54 +00:00
Jenkins
bdacdd9bbe Merge "Add freezer container" 2016-11-06 21:07:07 +00:00
Jenkins
31c2a255fc Merge "Fix plugin parsing for base images" 2016-11-06 06:16:46 +00:00
caowei
51663a7c31 Add freezer container
Change-Id: I9f95bac3f74827f0918f174fc0113736b92cbc0c
Partially-implements: bp freezer-container
2016-11-06 11:11:51 +08:00
Jeffrey Zhang
6e7d73be16 Load all sections defined in code and conf file
oslo.config has two method, _groups and list_all_sections. the former
return all sections defined in config file and the latter one return all
sections defined in code.

Change-Id: Ib05a6dffc2463fd30f183ae5bfb3fc20f475a0bc
Closes-Bug: #1639323
2016-11-05 20:28:30 +08:00
caowei
f270f0c589 Add solum container
Change-Id: If2a959a037c1c67f48a6f9e56e49c435050b0aab
Partially-implements: bp solum-support
2016-11-04 21:59:50 +08:00
Jenkins
d69ab19701 Merge "Remove Fedora support" 2016-11-04 13:39:07 +00:00
Paul Bourke
5ddba7892d Fix plugin parsing for base images
If we try to add a plugin to a base image, e.g.

[neutron-base-plugin-neutron-fwaas]
type = git
location = https://github.com/openstack/neutron-fwaas
reference = master

The build will fail as it parses the above as both
"neutron-base-plugin-neutron-fwaas" and "base-plugin-neutron-fwaas".

Update the regex to ensure the image name is anchored to the beginning of the
conf section.

Change-Id: I4099ebd0d25cd28a9bb3bdc4fcfbf311ce22a3fd
Closes-Bug: #1638900
2016-11-04 10:27:39 +00:00
Jeffrey Zhang
86a5c8cb79 Add chrony docker image
Partially-implements: blueprint add-chrony-service
Change-Id: If8045c62656ffc0090d0c02ca0fbe58ab8c5f29f
2016-11-04 07:19:11 +00:00
Christian Berendt
5cd30d4914 Remove Fedora support
Closes-bug: #1616387
Change-Id: Id97f88b9baa3d48d33ce120962450a374282d044
2016-11-03 10:50:22 +01:00
Jenkins
6548e43537 Merge "Revert "Build source from Newton rather then Master"" 2016-11-02 18:38:44 +00:00
Steven Dake
a3737384aa Revert "Build source from Newton rather then Master"
Revert Note: Move back to master for the master branch.

This reverts commit e1ca39db92ed438991782be091efbdd91747fe8c.

Change-Id: I00758fe44b525efdc21e55ffe0f1b4d040abd63b
2016-11-02 03:30:42 -07:00
Steven Dake
e714a745c6 Revert "Move RDO to Newton branches"
Revert note: Get RDO back on master instead of the newton branch

This reverts commit aeb86de6fc644a514d060b4ac869cab364266f03.

Change-Id: I765ba60c3bd09fe3978570b7921a084c9b90c7d0
2016-11-02 03:28:15 -07:00
Jenkins
c3ae6f5d82 Merge "Remove default=None when set value in config" 2016-10-19 16:55:11 +00:00
Jenkins
039eb8d79a Merge "Consistently set sys path when using local tools" 2016-10-19 16:02:12 +00:00
Jenkins
65b8b17e8d Merge "Support Searchlight Docker container" 2016-10-19 15:22:44 +00:00
liyingjun
1fe4513623 Support Searchlight Docker container
This patch adds Searchlight Dockerfile to build container from source.

Change-Id: Ia28f54ddd9793699153e254b6379f3b6334482b0
Partial-implements: bp support-searchlight-deployment
2016-10-19 00:49:46 +00:00
Martin André
9660b57864 Consistently set sys path when using local tools
Consistently set the search path to prefer PROJECT_ROOT as the source
of packages to import if we are using local tools instead of pip
installed kolla tools.

TrivialFix

Change-Id: Idd1d98bb82a8f1ddb32d1bdb23f346b461534b9f
2016-10-14 17:01:36 +02:00
Jeffrey Zhang
c0fd4389c6 Move graphviz dependency to test stage
Graphviz is only helpful and used for developer. It is useless for
deployment. So move it to test-requirements.txt file and warning users
when he wants to save dependency feature.

TrivialFix

Change-Id: Id8de76baa6f1455ad032abe4738d9779cf0cc5a6
2016-10-13 02:14:31 +08:00
Jenkins
afaf0031ed Merge "Deprecate Fedora based Docker images" 2016-10-09 08:50:52 +00:00
Steven Dake
e1ca39db92 Build source from Newton rather then Master
TrivialFix

Change-Id: Icce60b4fda4dc86858893be4a8fa3b159c3680aa
2016-10-08 03:25:09 -04:00
Steven Dake
aeb86de6fc Move RDO to Newton branches
RDO Newton is available.  Lets use it and test with it this final week.

TrivialFix

Change-Id: I2a761366da7c2cf209adaceb73ac7fa9c9aa3cba
2016-10-07 03:40:10 -04:00
Jeffrey Zhang
e8e1ad7089 Handle the KeyboardInterrunpt properly for build.py script
* set the push queue worker daemon
* force exit when using twice Ctrl + c in build.py script.

Change-Id: Ib3278ee9909f94a5129854c3c6fc9720a91a19f3
Closes-Bug: #1629654
2016-10-03 07:53:45 +00:00
Christian Berendt
febc13edfd Deprecate Fedora based Docker images
Change-Id: I84f01a93656ed9c9d828b4619753cb1bb806f74f
Partial-bug: #1616387
2016-09-29 11:49:55 +02:00
Jenkins
344318f584 Merge "Fix a docstring typo in build.py" 2016-09-27 13:54:12 +00:00
Jenkins
c241e2adf6 Merge "Changed docker_restart_policy to unless-stopped" 2016-09-27 13:53:46 +00:00
Kobi Samoray
566c19c887 Fix a docstring typo in build.py
TrivialFix

Change-Id: I556b1563e8abecb14baacd4c84fc72f4bd3cd140
2016-09-27 14:19:57 +03:00
Duong Ha-Quang
61c02917f9 Remove default=None when set value in config
Due to oslo.config update [1], the default argument
is set to None by default.

[1] http://docs.openstack.org/developer/oslo.config/api/oslo.config.cfg.html

TrivialFix

Change-Id: I935a9a05f1ad13810ee748b89a5ca63c189cd79d
2016-09-27 16:14:04 +07:00
Sajauddin Mohammad
3f134d0f53 Changed docker_restart_policy to unless-stopped
Current implementation has docker_restart_policy "always" and
docker_restart_policy_retry:"10" which should be mutually exclusive.
"unless-stopped" will restart the containers on any exit state
but not start on daemon startup if container was put to stopped state before.
Closes-Bug: #1621187

Change-Id: I4d881cd123a55625121b7a9047385e9b54e2e129
2016-09-26 04:32:28 -04:00
Waldemar Znoinski
326327acba fix ironic-inspector setup
* add ironic-inspector(-archive) source to docker image
* pip install from above source code
* move in-container config files to /etc/ironic-inspector
* add sudoers file to allow ironic-rootwrap
* copy rootwrap conf and filters from source repo

Change-Id: Ie3cce19810b9940d06bb636b28015160fea6ddfb
Closes-bug: #1624457
Closes-bug: #1624833
Closes-bug: #1624845
2016-09-25 22:15:04 +00:00
Jenkins
9f1f735b4e Merge "Mark include-footer and include-header deprecated for removal" 2016-09-22 07:01:41 +00:00
Jeffrey Zhang
ae54ae8ef0 Mark include-footer and include-header deprecated for removal
As we talked in mail list, these two options should be marked for
deprecated and removed in future[0]. Customization footer/header block
are recommended to use.

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-September/102793.html

TrivialFix

Change-Id: I9d0b83b31b3680cf5083eafc2ae491348d3b084b
2016-09-22 00:24:51 +08:00
Jenkins
c57642f649 Merge "Remove no-cache option in build.py" 2016-09-21 12:06:43 +00:00
Jeffrey Zhang
156abd6b6a Remove no-cache option in build.py
no-cache is marked for removal. we should move to cache parameter
instead. Ie6d5ab380a22c32eb6a5cee29ff7912e9f4cfe74 handle this parameter
for mistak.

TrivialFix

Change-Id: I4a6bc3eca07e9930381091fcf735529019523975
2016-09-20 13:48:49 +08:00