329 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
df7dfdc2b3 Updated from OpenStack Ansible Tests
Change-Id: I17c7e76c3e67c4775aa41903060ec273696a6ac9
2017-06-22 15:19:58 +00:00
OpenStack Proposal Bot
209619562d Updated from global requirements
Change-Id: Ib8aee61099c72a0820296e9e6a818ada895cca2c
2017-06-12 12:59:43 +00:00
OpenStack Proposal Bot
ff854d212b Updated from global requirements
Change-Id: I2a06e5ce5c1bf3db08d3a806bed97a9250b47eea
2017-06-10 21:45:10 +00:00
Jesse Pretorius
bcd0ab8bc9 Ensure that role tests pin pip/setuptools/wheel
Currently the role tests use whatever versions of pip,
setuptools and wheel are already installed on the host.

When a version of these tools changes it often causes
problems for our testing.

This will ensure that we use a known good set of pins
which is maintained in the general SHA bumping process.

Change-Id: I2ca6f08645a15e0b7393f378324dd9919170b7c6
2017-06-04 11:22:38 +01:00
OpenStack Proposal Bot
a1291a9f78 Updated from global requirements
Change-Id: Ic2bea0102d736bf5bd913c07c9f977239e86ae0b
2017-06-02 22:03:38 +00:00
Andy McCrae
a1ca8da03c Allow the developer constraints to be adjusted
In order to do a developer mode that allows installation of packages
from local file, which take precedence over the developer_mode
constraints, we need to allow the order of the constraints to be
changed.

This patch adds a "pip_install_developer_constraints" var which is used
to set the developer mode constraints. By default this will leave the
same behaviour but will allow additional constraints to be added, or the
developermode constraints file to be overriden altogether.

Change-Id: Ic1e11482673df6da3a13c63947ccd27711a1248a
16.0.0.0b2
2017-05-26 11:53:55 +01:00
Jesse Pretorius
997a03aa81 Add venv_tag local fact
In order to make it easier to detect the currently deployed
venv for a service, and therefore allow smarter decisions
for things like upgrading, we implement the venv tag as a
local fact.

The file used to store facts will be the same for all
OpenStack services, with each service using its own section.

Example:

"ansible_local": {
    "openstack_ansible": {
        "rally": {
            "venv_tag": "14.2.1"
        }
    }
}

Change-Id: Icdc4a3bf4e802d8065105155aad207192d2df266
2017-05-22 16:07:53 +00:00
OpenStack Proposal Bot
bda907746d Updated from global requirements
Change-Id: I8e2d1e631458c92e4a8d15b34af3dc05c019fbbe
2017-05-17 03:55:14 +00:00
Rick Box
65383e885d Fix for lookup and get_url occuring in different places
We use an SSH bastion host which we do our deployment through. The
deployment host doesn't have direct access to the same network as the
host. As a result the venv local checksum lookup fails.

I have described this here:

https://bugs.launchpad.net/openstack-ansible/+bug/1689283

This is a simple fix for this problem, assuming everything is good it
will need repeating in multiple places in the code base.

Change-Id: Ifeb9be248764abd091392a793954173f866ac708
2017-05-10 14:12:44 +01:00
Jenkins
7e4a5590ab Merge "Use zuul-cloner for tests repo in OpenStack-CI" 2017-05-08 15:56:28 +00:00
Jesse Pretorius
cab2a12c46 Use zuul-cloner for tests repo in OpenStack-CI
When executing the tests repo clone in OpenStack-CI,
use zuul-cloner instead of git to enable cross-repo
testing. This ensures that if a dependent patch from
the tests repo is noted using 'Depends-On: <change-id>'
in the commit message, that patch will be included.

Change-Id: Ia14642622b7dab5eecff0bca7c8cff8763c16d92
Depends-On: Idce7abebf32f24c356a27e099fbca954d917402b
2017-05-04 16:53:00 +01:00
Jesse Pretorius
fdc4458b74 Use package module to install distro packages
Consolidate distro package install tasks into a
single task using the package module. Tidy up
some other tasks to reduce task file sprawl and
consolidate some task actions.

The minimum Ansible version is raised to 2.2 due to a
known bug [1] in Ansible's apt module which does not
update the cache properly if the cache update and the
install are combined in a single task.

[1] https://github.com/ansible/ansible-modules-core/issues/1497

Change-Id: I95e02c2786b3a21b6188a5930fb827b6ab04fadb
2017-05-02 12:14:14 +00:00
Jesse Pretorius
c61017d758 Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.

Change-Id: I530293245724949dc172dfa95a820db32b6a665c
2017-05-02 13:13:29 +01:00
Logan V
96153c5b32 Install python2-pyOpenSSL package on CentOS
Package pyOpenSSL is obsoleted by python2-pyOpenSSL.

Change-Id: Ib7c2158098e800096e85a87c27489fc44064ebce
16.0.0.0b1
2017-03-03 12:49:51 -06:00
OpenStack Proposal Bot
555b80a8f4 Updated from global requirements
Change-Id: Ie8f90743ec92b0fda4e8443b9d66a822c8548863
2017-03-02 11:52:02 +00:00
OpenStack Proposal Bot
ae98d1e8e7 Updated from global requirements
Change-Id: I9f81594297d51721ccf9d09749a71689efa154dd
2017-02-11 17:49:10 +00:00
OpenStack Proposal Bot
37b0cfa515 Updated from global requirements
Change-Id: Ie7926eacfc0bbbb3125a5181bc6bde40bf405b39
2017-02-10 05:56:18 +00:00
Cuong Nguyen
c754941f7c Install python2 for Ubuntu 16.04 and CentOS 7 in Vagrant
- Install python2 for Ubuntu 16.04 and CentOS 7 before executing test
  script.

Change-Id: I457b4be9e143328e07b4c8160925cc44237938df
2017-02-07 10:59:44 +07:00
Jenkins
b95cbd2d6e Merge "Update reno for stable/ocata" 2017-02-06 09:22:10 +00:00
gecong1973
852b4299b0 Use https instead of http for git.openstack.org
TrivialFix

Change-Id: Icc03742921f7a177ac7e7d0faf33d0f7916ff9e5
2017-02-06 11:11:33 +08:00
e3a82d661d Update reno for stable/ocata
Change-Id: I85093905af020faaf937f03502dc6c12f2bacfc5
2017-02-03 18:58:42 +00:00
Jenkins
dc9dd4f772 Merge "Clean up developer mode logic" 15.0.0.0rc1 15.0.0.0b3 2017-01-19 14:54:49 +00:00
Logan V
c295b18a79 Clean up developer mode logic
Fixes the ability to deploy a venv in cases where:
1) developer_mode is not enabled
2) A cached venv is not downloaded from the repo server

Additional cleanup to the developer_mode venv deployment
logic is implemented by adding a *_venv_download var
which is used to decouple developer_mode from the
cached venv extraction process so that a deployer
can force venv builds in-place (disable cached
venv usage) without enabling developer mode
constraints.

Change-Id: I6939e47455898c07003f1b480e6d65b5d06e4c68
2017-01-18 13:37:28 +00:00
Jenkins
15a087ba75 Merge "Update and clean up run_tests.sh" 2017-01-16 18:37:56 +00:00
Jenkins
c8310d96be Merge "Bring consistency to tags" 2017-01-16 18:27:06 +00:00
Jimmy McCrory
5d2dbb38b2 Update missing database exception text
The text given when there is a missing rally database was recently
changed. Update the 'Create/upgrade Rally DB schema' task to look for
the updated text so that the rally database can be created as required.

Change-Id: I705148e8e3a4691d6922ce295719c0785d9a8cfb
2017-01-13 14:34:30 -08:00
Jean-Philippe Evrard
088398a8ef Bring consistency to tags
Some tags were not applied on the highest level and forced duplication.
We apply here our practices to have role_name-(config|install) [1].

[1]: http://docs.openstack.org/developer/openstack-ansible/developer-docs/contribute.html#ansible-style-guide

Change-Id: Idfe109766463dd198d5d64941796617940ef08f9
2017-01-13 13:27:27 +00:00
Major Hayden
cbf53b8275 Update and clean up run_tests.sh
The run_tests.sh script fails when it is run multiple times on CentOS.
The `bindep` run returns an empty list of packages and then `yum`
exits with an error since no packages were provided to install.

This patch checks the length of the `bindep` output and skips the `yum`
installation when the package list is empty.

The patch also cleans up some of the old cruft left over from previous
scripts and avoids repetition.

Change-Id: I68373ad89a165ad708851242f7ff8bb1518085df
Signed-off-by: Major Hayden <major@mhtx.net>
2017-01-06 16:55:38 +00:00
Andy McCrae
4b451fc394 Update repository with reference to role git location
Change-Id: Ib81c4efdcbab7becfab3a7c1f9f7ba63163a5cd5
2016-12-22 14:26:22 +00:00
Andy McCrae
b4298aa857 Remove Trusty support from os_rally role
Change-Id: Ic7ca71ebdd3ede5e1c225a78e3f996874e946f8f
Implements: blueprint trusty-removal
2016-12-15 12:30:23 +00:00
gecong1973
d0371fe182 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
     https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: I1aa0510dd8ce512d8dcf1559de9f6165a3e89fa7
15.0.0.0b2
2016-12-05 09:24:27 +08:00
OpenStack Proposal Bot
a342b0dc9a Updated from global requirements
Change-Id: Ibcdd2ed115595139681180a0322b98a9f81088fc
2016-12-02 05:11:07 +00:00
Jean-Philippe Evrard
8fec76369e Point roles docs bugs to openstack-ansible LP
Currently when clicking on the small bug in the roles'
docs, we land on openstack-manuals launchpad.

This should solve it.

Change-Id: Ie373bc77f3e51ff81c9115546d8dd37935c59ca2
2016-12-01 14:40:41 +00:00
Marc Gariepy
f76966a25f Fix virtualenv-tools issue
please see https://github.com/fireteam/virtualenv-tools/issues/5

This make installation of the virtualenv impossible on CentOS7 since
you endup with python > python2.7 and python2.7 > python

lrwxrwxrwx. 1 root root       9 Nov 24 20:49 python -> python2.7
lrwxrwxrwx. 1 root root       6 Nov 14 20:03 python2 -> python
lrwxrwxrwx. 1 root root       6 Nov 14 20:03 python2.7 -> python

Change-Id: I81d290d686582b23067e519285d27b9d4855c9e1
Related-Bug: #1637509
Partial-Bug: #1644629
2016-11-28 09:31:57 -05:00
Flavio Percoco
1297be6488 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/931cd15d32e350a014f96217b092348c

Change-Id: Iac66924f0dec8c17a20ba23c553f0ed761e75996
2016-11-25 16:16:16 +01:00
Jimmy McCrory
26f8776974 Standardize task file names
Update task files names to match standard naming convention of OSA
roles.

Change-Id: I975f855cccf4583946e9851728637ae96d8c9598
2016-11-18 10:18:47 -08:00
Logan V
eedc4d3724 Reinitialize venv upon install
Reinitializes (copies python, etc binaries) into the venv when
dropping a new venv into place. This is needed because the Python
binary packaged with the venv may not match the Python running on
the host it is being installed to. (ie. in the case of a Xenial
repo container and a Trusty target host.)

Change-Id: Ifbe100a7052e41a2e6e4c601287749e2a8dfd0e0
Partial-Bug: #1637509
15.0.0.0b1
2016-11-15 22:17:14 -06:00
Jesse Pretorius
3f67a6124e Remove join filter from pip module tasks
Ansible 2.2 now treats the 'name' argument for the pip module
as a list, removing the need for us to implement the join
filter to optimise the install execution.

Change-Id: Ic1692285855c4924a4cde2ddce3735e9257857b3
2016-11-09 21:34:38 +00:00
Jesse Pretorius
284fe6373a Use updated get_url module checksum functionality
Starting in Ansible 2.0, the get_url [1] module provides the
ability for a checksum to be provided to the get_url module
which will be verified against the local destination file
and the task skipped if it matches.

[1] http://docs.ansible.com/ansible/get_url_module.html

This patch implements the use of this functionality.

The ability to ignore a venv download failure is also removed
as this is not necessary or desirable. It is better for the
download to fail and the playbook execution to stop immediately
so that the failure point is exposed.

Change-Id: Ic39e5dcdaa5ff9badb37b01e37097f5d8bdf6bac
2016-11-07 17:36:24 +00:00
Jean-Philippe Evrard
067cf5939c Remove ansible<2.2 apt cache hack
Now ansible apt module correctly behaves, so it's time
to deprecate these cruft tasks for apt.

Change-Id: If84b049196414a0b261916153baf1a05d45af81e
2016-11-03 23:38:00 +00:00
Jesse Pretorius
9c432d6db7 Simplify pip options/constraints mechanism
The current constraints generation for the
installation involves multiple tasks and multiple
variables.

Using multiple tasks extends the installation time
unnecessarily and the additional variables are
unnecessary.

This patch aims to simplify the mechanism and
hopes to speed it up a little.

Change-Id: I4633c71c515ab03a4e72ef08e1bb682dedc8c079
2016-11-02 17:58:38 +00:00
Jenkins
6f7cb9746e Merge "Updated from global requirements" 2016-11-02 16:26:58 +00:00
OpenStack Proposal Bot
7b6e437b5c Updated from global requirements
Change-Id: I2b4e46ae066de30e79346b4f61875a23f85131ce
2016-11-02 15:37:59 +00:00
Logan V
c5d8e6a765 Fix linting issues for ansible-lint 3.4.1
Preparing this role for the ansible-lint version bump

Change-Id: Ie9c73717f1999d166e1e28d30f97a2821bb95895
2016-11-02 12:53:39 +00:00
Kevin Carter
60a1889001 Remove deprecated ansible_ssh_host variable
This changes 'ansible_ssh_host' to 'ansible_host'. The 'ansible_ssh_host'
variable has been deprecated as noted here: [0].

[0] - http://docs.ansible.com/ansible/intro_inventory.html#hosts-and-groups

Change-Id: Icd0874e88d7d2d8c14d568256e6fd59951b95858
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:43:09 +00:00
Jenkins
1ae6750d64 Merge "[DOCS] Added release-name as a watermark to Docs." 2016-10-19 13:43:02 +00:00
Jesse Pretorius
046874210f Use upper constraints for all tox targets
With the implementation of https://review.openstack.org/388087 all
tox targets may now use upper constraints.

Change-Id: I4392ffa5f8d6ef8df1f1f49d68ff22d23267b076
2016-10-19 07:44:06 +01:00
Nish Patwa
178cf88759 [DOCS] Added release-name as a watermark to Docs.
Added a water mark to the role documentation
to make clear to deployers which release they're
working with.

Modified conf.py that adds watermark to the documentation according
to particular branch. If the current branch is master than
watermark is 'Pre-release' and if the current branch is
stable/<release-name> than watermark is <release-name>.

This is a combined implementation based on the following
patches:
- https://review.openstack.org/372565
- https://review.openstack.org/382637
- https://review.openstack.org/384140

Change-Id: I9996d6cb33fc87faf95af99e0db483c593bcf69b
2016-10-18 17:03:29 +00:00
Kevin Carter
4cd19d9ce8 Remove 'ignore_errors: true' in favor of 'failed_when: false'
This change removes the use of 'ignore_errors: true' because it causes deployers
to see red output and a stacktrace, which traditionally means something is broken,
even when the failure is known to have a fall back option or be intentional. This
conversion will provide a generally cleaner interface.

It should be noted that the 'failed' filter will still function normally. Tasks
with the 'failed_when: false' option will still be marked as 'failed' in any
registered variable. This change simply makes the output look cleaner.

Change-Id: I5986a6588788b09501935fcd0fc18b96531bdca2
Closes-Bug: #1633438
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-14 16:46:07 -05:00
Andreas Jaeger
16ac444076 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: I6f0e296c17ace3a1cbb4c11c46c1b25b4af5ade6
2016-10-06 20:37:56 +02:00