41 Commits

Author SHA1 Message Date
Jeffrey Zhang
1bcb139392 Choose node with largest seqno number for mariadb recovery
When all mariadb nodes are stopped gracefully, mariadb galera will
write it's last executed position into the grastate.dat file. Need find
the node with largest seqno number in that file and recovery from that
node.

Closes-Bug: #1627717
Change-Id: I6e97c190eec99c966bffde0698f783e519ba14bd
2016-10-09 12:08:58 +00:00
Jeffrey Zhang
e328ada3bd Optimized the serial upgrade and reconfigure
* add serial for reconfigure
* set playbook serial by using variable
* fix serial for barbican, influxdb and vmtp

Closes-Bug: #1624607
Change-Id: I66530c7736e1673a592eddbde75637825d12d9e2
2016-09-17 04:08:58 +00:00
Paul Bourke
cd9774baa8 Update destroy include images arg to LONGOPT
Change the argument for including images as part of destroy from '-e
destroy_include_images=yes' to a more consistent --include-images.

TrivialFix

Change-Id: I0a29c69121697cab751578093cc7ca58011eb853
2016-09-02 15:02:06 +01:00
Jenkins
64f2dafe2b Merge "add deploy-servers command" 2016-09-01 07:03:24 +00:00
Jenkins
f3fedb8bef Merge "add bifrost deploy ansible support" 2016-08-31 16:26:08 +00:00
Jenkins
909883a6d4 Merge "Add warning to kolla-ansible destroy action" 2016-08-31 15:25:07 +00:00
Jeffrey Zhang
96bf1cfee4
Add warning to kolla-ansible destroy action
Change-Id: Id7591dff978b8fb7ba2c59331ffd83a77ecf46ab
Closes-Bug: #1610546
Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
2016-08-31 21:51:08 +08:00
Sean Mooney
64c40e20a5 add deploy-servers command
- This change extends kolla-ansible
  with a deploy-server command to enroll and deploy
  physical servers with bifrost.

Change-Id: Iaa9f34b00e676569f6e3df679b7454b1ec0b8e34
Implements: blueprint bifrost-support
2016-08-31 13:12:34 +00:00
Sean Mooney
96b3f0ae3e add bifrost deploy ansible support
- This change addes the ability to deploy
  and bootstrap bifrost.
- This change introduces a deploy-bifrost
  command to kolla-ansible.

Change-Id: I62afcf348661add900c98904e90a15a0eddffd4b
Implements: blueprint bifrost-support
2016-08-31 13:11:59 +00:00
Sean Mooney
3e8f9986d1 add baremetal role to install kolla deps.
Change-Id: Ie70db1b18a73528b1194e4fbcf53d09fed20f4a0
Implements: blueprint kolla-host
2016-08-10 16:03:08 +00:00
Duane DeCapite
6d45786d59 Change cleanup to destroy as cleanup is a misnomer
The cleanup command in the external API is a misnomer and should
be called destroy.

Change-Id: I083e80699e09bb24266ce1bf549772a5de92a49e
Closes-Bug: 1610364
2016-08-08 13:37:10 -04:00
Paul Bourke
810b7e460b Cleanup images as part of kolla-ansible cleanup
TrivialFix

Change-Id: I88004f08c75e7d648a615e64d59ccf655b6a1a13
2016-08-03 09:58:24 +00:00
Christian Berendt
d1ec04809d Add passwords parameter to LONG_OPTS in kolla-ansible script
Change-Id: I8b139d716deeb7eee8eb22beda8ac6d3b82e66ee
Closes-bug: #1587648
2016-05-31 23:04:38 +02:00
Steven Dake
6c4c24044b change keyfile to key
All files used by kolla-ansible do not have a file ending.
keyfile was added as an anomoly.  I noticed this during a review
that coolsvap had underway where he did a similar thing.  I think
--key is fine.

TrivialFix

Change-Id: I99867a1a04a4dd881dcb2af39946122ea6b7d8a3
2016-05-31 09:21:13 +05:30
Swapnil Kulkarni (coolsvap)
e1b5b149f2 Make passwords.yml file generation configurable
partially implements blueprint multiple-clouds

Change-Id: I676c4245e6f058ffbed345970ee78d1750dd0f2f
2016-05-21 01:51:17 +00:00
Ryan Hallisey
410866f207 Add generate-config option to kolla-ansible
In order for the ansible configuration to be consumable,
we need to be able to generate it without deploying anything.

Change-Id: I2bbdd74d62d00f509a4fa5e4100906ed658d3974
Implements: blueprint generate-config
2016-05-19 02:58:07 -04:00
Jenkins
a22b7714e3 Merge "Add a role to cleanup containers after deployment" 2016-04-27 17:21:46 +00:00
Mauricio Lima
8588bd655e Add a role to cleanup containers after deployment
Change-Id: I5f422574d7e50ec9a1e5862b66ecbf39fe1594d2
Closes-Bug: #1531721
Implements: blueprint ansible-cleanup-role
2016-04-19 10:00:59 -04:00
Paul Bourke
8c8188858a Fix typo in kolla-ansible usage message
TrivialFix

Change-Id: I170f19afdc4dcf86e372058d70694f3e7b510e69
2016-04-19 11:26:30 +01:00
Swapnil Kulkarni (coolsvap)
5b4057b764 Added help documentation for kolla-ansible upgrade
Change-Id: I6a2672362da5ae69e8417e334a170c3c68c1307c
Closes-Bug: #1569971
2016-04-13 15:43:51 +00:00
Vikram Hosakote
8595707a25 Check empty passwords in $CONFIG_DIR/passwords.yml
Co-Authored-By: Carlos Cesario <carloscesario@gmail.com>

Change-Id: Ic2ea835cf38be64a590d3f6b022683081aeb363b
Closes-Bug: #1566150
2016-04-05 04:48:35 +00:00
Hui Kang
25393eb28f Pass extra variables through kolla-ansible to ansible-playbook
Change-Id: I4ddad85aadfac4047460085ec6bc0fcabd718253
Closes-Bug: #1561757
2016-03-29 17:59:33 -04:00
SamYaple
2aaaed770e MariaDB lights out recovery
This playbook only matters for multinode since AIO can recover from
power outage without additional configuration.

DocImpact
Implements: blueprint mariadb-lights-out
Change-Id: I903c3bcd069af39814bcabcef37684b1f043391f
2016-03-16 15:53:44 +00:00
Dave McCowan
fd28087229 Add Ansible scripts to generate TLS certificates for testing
Working towards the blueprint that will add TLS protection
for the external endpoints, kolla needs certificates.

When kolla deploys OpenStack, the external VIP will need
a server side certifcate.  Clients that access those endpoints will
need the public CA certificate that signed that certificate.

This ansible script will create these two certificates to make
it easy to use TLS in a test environment.  The generated
certificate files are:

/etc/kolla/certificates/haproxy.pem  (server side certificate)
/etc/kolla/certificates/haproxy-ca.pem (CA certificate)

The generated certificates are not suitable for use in a
production environment, but will be useful for testing and
verifying operations.

Partially-implements: blueprint ssl-kolla

Change-Id: I208777f9e5eee3bfb06810c7b18a2727beda234d
2016-02-26 14:09:31 -05:00
Jeffrey Zhang
d26c259754 Add the default empty reconfigure.yml file to all roles
DocImpact

Partially-implements: bp kolla-reconfig
Change-Id: I9738e80960bcfbef18d1ef1b7942f81c45684e85
2016-02-25 09:32:53 +08:00
SamYaple
9f7c3b630d Fix non-root deploys
TrivialFix

Change-Id: Id0e7cf9e1c0c4259b8a50c39e95214103256517b
2016-02-12 03:38:45 +00:00
Martin André
bda91649e8 Increase ansible verbosity during gate deploy
The gate currently doesn't provide any context when ansible fails. This
commit adds a new --verbose option to `kolla-ansible` that is passed to
`ansible-playbook`, and sets the default to -vvv for `kolla-ansible
deploy` in the gate.

TrivialFix

Change-Id: If248a4186b140e1ec0d2e787c27481cec7e81eec
2016-02-08 18:18:05 +09:00
Allen Gao
343e736e62 Fix the ugly base directory path
Remove the '..' in the path like:
/home/jenkins/workspace/gate-kolla-dsvm-deploy-centos-binary/tools/../ansible/inventory/all-in-one

TrivialFix

Change-Id: I80724a9e876ed1826c65e08b55cfa08124d70eb9
2016-02-05 16:59:01 +08:00
Allen Gao
0f01d3ebc7 Add the keyfile option to decrypt the passwords.yml
The passed keyfile path is used to decrypt the passwords.yml
which encrypted by the ansible vault.

Partially-Implements: blueprint	encrypt-sensitive-info
DocImpact
Change-Id: Ifaebf464478cde99e896c13b375cfaf9282ee576
2016-01-27 06:24:59 +08:00
Allen Gao
2a81598434 Add the missed long option tags
And use variables for options.

TrivialFix

Change-Id: I6cf8612b4e15ef263d2f5b2dbacc186ccd16871b
2016-01-27 06:17:21 +08:00
Jeffrey Zhang
94f5e87002 Expose the ansible-playout tags parameter
we can deploy specific services by using tags feature. It is very
useful, especially in develop/test stage.

TrivaiFix

Change-Id: I21cc55e6f1a32a5c57570bc2c2fb9b084e513af8
2016-01-25 09:54:22 +08:00
Allen Gao
980bbcb414 kolla-ansible: refactor the command options
TrivialFix

Change-Id: I511f463250d1472c831aa3e5b126dafb36ce79c4
2016-01-21 08:34:19 +00:00
Allen Gao
e84de1d31d kolla-ansible: add prechecks subcommand
TrivialFix

Change-Id: Ifb0ca3383cd04f5ff6baeb30ae6996d450d5c579
2016-01-20 06:37:14 +08:00
Wanlong Gao
0e913e6ab5 kolla-ansible: add post-deploy subcommand
It is more convenient to add a subcommand instead of assigning
playbook path manually.

Change-Id: Ia2f27a0f44eb719b28d5e7f9762dc47186eeb0e6
2016-01-15 15:46:03 +08:00
SamYaple
a87c2a6929 Add kolla-ansible upgrade command
Change-Id: I432802fed979c9e42fb51703ce830f0fd8debc1e
Partially-Implements: blueprint upgrade-kolla
2016-01-13 18:47:38 +00:00
Jeffrey Zhang
dd6df534cf make the kolla-ansible python3 compatible
* remove unused sys
* user print() for python3 compatible

TrivalFix

Change-Id: I65c66d0373cdec19da668c3d911f061ce95d1374
2016-01-06 15:31:00 +08:00
SamYaple
462e8a3b6e Allow common role to pull images
Change-Id: I3de01770eca6b7e681b7964a6d6e15564065aaea
Partially-Implements: blueprint pre-pull-images
2016-01-04 19:49:26 +00:00
Kirill Proskurin
396014f8d1 Few improvements in Kolla tools. Added Ubuntu support.
pip install default prefix in Ubuntu is /usr/local, and Kolla tools scripts
didnt respect that. So I added few OS checks in this scripts.

I improve config path check in build.py. Added more verbose error if we can't
find config directory.

Change-Id: Ide521ed205b0dc1fc27e237a9a8f4da0168e664f
Closes-Bug: #1512302
2015-11-06 14:03:30 +03:00
Martin André
14acb298c2 Make kolla-ansible work in pip installed kolla
This is a quick hack to get kolla-ansible working with pip installed
kolla, kolla-ansible will need to be rewritten at some point in python.

Closes-Bug: #1495797
Change-Id: I7cf8c4baae76ff8f31514f64bed934848a1c3e40
2015-09-15 14:44:01 +09:00
Sam Yaple
8d65921bc3 Move defaults.yml to group_vars/all.yml
The purpose for having defaults.yml on the command line was originally
for variable inheritance. Over the past month we have slowly changed
how things are inherited (like ports) allowing us to place these
'defaults' into the group_vars/all.yml location as they should be
values that go unchanged (but can be overridden).

Change-Id: I2becec66bf431bfc9d88fc825b5380c1e173ca70
Partially-Implements: blueprint update-configs
2015-08-19 03:18:16 +00:00
Borne Mace
76cdc9fe49 Initial kolla-ansible command - deploy support only
Change-Id: I4f6f38b2a202b41a9dec839fa0222585b49fc06c
Partially-Implements: blueprint kolla-ansible-script
2015-07-31 14:39:05 -07:00