140 Commits

Author SHA1 Message Date
Joshua Hesketh
1adaee4408 Replace github link with published spec
Change-Id: I497132fbe107019184b657645df78cc2c7d08258
2016-11-03 12:13:28 +11:00
Kevin Carter
cf909ad907 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: I7f405b30a90b2671ff01b49747ad9f3a9486445a
Related-Bug: #1636606
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-25 19:42:49 +00:00
Jenkins
1bab097d6c Merge "[DOCS] Added release-name as a watermark to Docs." 2016-10-19 20:05:30 +00:00
Jesse Pretorius
34378571b4 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: If6c0cc075bc495d259b2e344cfa1050f092770b7
2016-10-19 07:43:05 +01:00
Nish Patwa
3822cff64b [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: Id0bab5c90d119bec40d1c745203d0c89ad7096f3
2016-10-18 17:09:57 +00:00
Kevin Carter
3a62eccb2c 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: I7067a541362c826579fc7d17abf86fe9ddc89bee
Closes-Bug: #1633438
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-10-14 16:45:36 -05:00
Andreas Jaeger
a7e96f6189 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: Ib9c0bf013bc56a770c63ca49e280abd7c255539d
2016-10-06 20:37:05 +02:00
Jesse Pretorius
a404529ec0 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I2623678bc73068a64178fafc94db124c8c62ba83
2016-10-05 13:06:55 +01:00
Jesse Pretorius
a8b4441576 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: Ie2cc718173015a681209d73737a4a7b60af7216c
2016-10-04 11:41:47 +01:00
Jenkins
89c3c62c14 Merge "Updated from global requirements" 2016-09-30 17:41:30 +00:00
Jenkins
df96ef551a Merge "Move to non stand-alone ironic" 2016-09-30 16:05:27 +00:00
OpenStack Proposal Bot
dc63b5887d Updated from global requirements
Change-Id: I470b7473b6a8e70c53fbacdc24e90c5355183172
2016-09-30 02:22:15 +00:00
Major Hayden
e2684075c8 Update reno for stable/newton
Change-Id: I701c98c04fea0c653abcd33622466d8ce9b92b9c
2016-09-29 14:20:04 -05:00
Andy McCrae
729fbca6bf Move to non stand-alone ironic
We want to add virtual bmc testing and a full stack test of Ironic, as a
first step lets set it up with all the integrated components.

Change-Id: If4db7ada81e3ce54a6f28db6a67e7e0b4d679cce
2016-09-29 08:27:03 +00:00
Jenkins
fe1d51f13b Merge "Turn on debug output from IPA by default" 2016-09-28 15:46:24 +00:00
Jesse Pretorius
53491a3f6d Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: Ie01392e33b86b9b61019cc733f9f3db15f36c19d
2016-09-28 08:51:21 +01:00
Michael Still
378727f47a Turn on debug output from IPA by default
There's no real cost to having IPA debug output on, and it helps
operators work out from a KVM what went wrong when things get
exciting. So let's just turn it on by default.

Co-Authored-By: Michael Carden <mike.carden@gmail.com>

Change-Id: I2ac525570088ea4494968666213d6f583bd5ede9
2016-09-28 02:23:01 +00:00
Jesse Pretorius
b0fa2aa408 Revert dynamic includes for inventory-based conditionals
Forcing dynamic includes for inventory-based conditionals
results in incomplete execution.

Change-Id: Ifb8dcdb6d4f931fa15f347d9e6f5f1ab0da1efb9
14.0.0.0rc2
2016-09-26 20:05:00 +01:00
Jesse Pretorius
7ad3392aaf Update paste, policy and rootwrap configurations 2016-09-23
Change-Id: I5415145d58518ae619996d4ba9ec6c3f682b57b0
2016-09-23 14:06:01 +01:00
Jenkins
13a6ce582d Merge "Force Ansible to use dynamic includes" 2016-09-22 14:55:30 +00:00
Jesse Pretorius
b8574291fc Force Ansible to use dynamic includes
Ansible 2.1.1 introduces a regression in the way conditional
includes are handled which results in every task in the
included file being evaluated even if the condition for the
include is not met. This extends the run time significantly
for a deployment.

This patch forces all conditional includes to be dynamic.

Change-Id: I634d7ba7c7d59b21cffd3cddfdc28717bbe91a86
Related-Bug: https://github.com/ansible/ansible/issues/17687
2016-09-22 13:57:52 +01:00
Jenkins
0412072633 Merge "Update rootwrap filter copy for easier maintenance" 2016-09-22 09:19:35 +00:00
Jesse Pretorius
a6b6f3dfb4 Update rootwrap filter copy for easier maintenance
Update the rootwrap filter config file copy task to handle
looking up rootwrap filter files using 'with_fileglob' to avoid
having to maintain the task with each addition or removal of these
files.

Change-Id: I768ba7415408c1c5dbd66e9fe57788d41587742c
2016-09-21 17:32:12 +00:00
Michael Davies
f24f266208 os_ironic mysql password variable not updated
Ironic in OSA is currently broken as the ironic database
user isn't created, and consequently the ironic services can't
connect to the database. It broke back in patch 91deb13.

This patch corrects the os_ironic side of the problem. Another
patch will fix the openstack-ansible side.

Change-Id: I30b04756258a3241bb2444fd98f3a6624c0d2309
Partial-Bug: #1625081
Signed-off-by: Michael Davies <michael@the-davies.net>
2016-09-21 17:31:57 +00:00
Travis Truman
5ee8b16437 Ansible 2.1.1 role testing
Change-Id: If01b3672825aae1cab690035b43cf2da92180ead
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-21 10:01:36 -04:00
Jesse Pretorius
8cf25017e4 Compress test execution logs
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.

PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.

Change-Id: I00a05dfd4774036822bc2b19f010c00bd50b31f2
Related-Bug: #1620849
14.0.0.0rc1
2016-09-09 10:34:51 +01:00
Jesse Pretorius
581ce2053c Rename package lists (and related vars) appropriately
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.

This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.

Change-Id: I6f61216d318ea1adbcbf544066e9c71205fa5daf
14.0.0.0b3
2016-08-30 18:32:27 +01:00
Kevin Carter
794974c5a0 Enable log collection after functional testing
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.

Change-Id: I9ddf80f1c8cc22e170bb32c17ecacf79cc99120a
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:36:44 -05:00
root
9e8d2e2a93 Add SNI support to ironic role via OS packages
Some Linux distributions, such as CentOS 7 and Xenial, have trouble
validating SSL certificates when using get_url with servers
that use Server Name Indication (SNI).

This patch adds those packages to the list of required packages and
uses bindep to install them in developer test environments the same
way that the gate tests install them.
Add SNI support to ops role via OS packages

Change-Id: Id98a1db916427209842c13bdaab89f4dfe2d40c2
2016-08-27 10:59:08 +00:00
Robb Romans
ca416a4538 [DOCS] Syntax updates to the docs
Finish moving to new format, remove tags, fix RST titles, fix line
lengths, add link, indent example file, fresh coat of wax.

Change-Id: Ibcf3d5743c9b70d4f29ea8181d54a6c5c1974580
2016-08-25 01:13:56 +00:00
Jesse Pretorius
d9e9eed948 Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: Ic4e51f4db3933d9b6d814274930cc8580ea3ae00
2016-08-20 16:05:53 +01:00
Michael Gugino
d18c5d92b8 Add apt-get update to run_tests
Change-Id: I95dc0a0509b6e33bbbd4a690b31880a3c1bf0b4c
2016-08-18 16:37:51 -04:00
OpenStack Proposal Bot
5fc7c53097 Updated from global requirements
Change-Id: Id27363d98f1379bcdef78b986f50b9c05f400a6d
2016-08-18 05:30:54 +00:00
Jesse Pretorius
4cbd207865 Add python packages for SNI support in tests
This adds python packages required for SNI support to ensure that tox
installs the packages into the venv when running tests.

Change-Id: Iadfe2b027c6d9cbd89d89d9ef0d6c514aaf2d1da
2016-08-16 13:36:23 +00:00
Jesse Pretorius
ed37a1b4b5 Update paste, policy and rootwrap configurations 2016-08-15
Change-Id: I349e72f3fb2168e0c91e814f19c9ec6fe33c9087
2016-08-15 15:43:23 +01:00
Jenkins
eb894957f3 Merge "[DOCS] Move ironic docs to roles" 2016-08-15 10:59:47 +00:00
Andreas Jaeger
c541ffeb4b Move other-requirements.txt to bindep.txt
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.

Move the file around to follow this change.

Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.

For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/

As well as this announcement:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: I930ec726ab65f1531f4ca1b196f972479a9438c8
2016-08-12 21:00:05 +02:00
Jenkins
84a0b62326 Merge "Cleanup/standardize usage of tags" 2016-08-12 14:31:53 +00:00
alextricity25
92aacee8e5 Cleanup/standardize usage of tags
The numerous tags within the role have been condensed
to two tags: ironic-install and ironic-config

These tags have been chosen as they are namespaced
and cover the two major functions of the role.

Change-Id: I1ddbf229f4a3665c2c6fc798b39882d137c536d1
2016-08-11 17:23:20 -05:00
Alexandra
d96baff8be [DOCS] Move ironic docs to roles
Change-Id: I5c5a72d89074caf7afd1f801c8c523b24fe96e66
2016-08-11 20:26:36 +00:00
Jean-Philippe Evrard
bc2da2a2de Include ansible commands for ansible linting
The plugin repo needs to be cloned for ansible-lint to
understand ansible plugins. The commands currently
reside in tox.ini under the ansible section and are not
currently included. This commit fixes that error.

Change-Id: I75e24492d91203d9c07a57658aac917c76564994
2016-08-11 18:09:20 +01:00
Kevin Carter
e8b360fa22 Disable stderr logging
OSLO logging currently defaults the 'use_stderr' option to True
which results duplicate logs in service daemon logs for both
upstart and systemd. To correct this issue the use_stderr
option has been set to false.

Change-Id: I601c764bcb731baeedba784787b721cccfa487e4
Closes-Bug: 1588051
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-04 17:44:07 +00:00
Jesse Pretorius
1d603293bd Add project group to role
This patch adds a var used by the repo_build process to determine
which host group to check for members of before building the pip
packages required by this role. This provides the ability to
optimise the repo build process to only building the packages
that are required for an environment.

Depends-On: Idda16b4f382eee57c7469af898859d6d81d4eb30
Change-Id: Iedb4c0c91daa291f881a9fc00c5b8c40bb312ce3
2016-08-04 05:15:10 +01:00
Jenkins
a70f20c61d Merge "Add ability to change apt/yum package state" 2016-08-02 15:29:33 +00:00
Jesse Pretorius
2a28918663 Add ability to change apt/yum package state
The current method of installing the distribution packages required is
set in the tasks and cannot be changed by a deployer.

Currently the apt task always installs the latest package. This results
in unexpected binary changes when a deployer may simply be trying to
execute a configuration change.

This patch adds the ability for a deployer to change the desired state
so that the results are predictable.

Change-Id: I16a81da2b61cd69bafc59ac113fe546a748e8675
2016-08-02 14:37:27 +01:00
Jesse Pretorius
c88ecfa826 Fix ansible performance issue
When a task is included, contains variables within the
include, and loads other tasks with conditionals that
iterate  (using a lookup plugin) Ansible will spinlock for
~30 seconds per item per task. To resolve this the iteration
using the lookup plugin was removed and the task broken out
into individual tasks.

Change-Id: I2f979c950217f85340fbb22a8c9151b5605753f7
2016-08-02 09:19:33 +01:00
Jesse Pretorius
3f96ca867d Ensure that doc linting is included in the linters test
The 'docs' tox target executes the doc8 lint test which may result in
failures when testing documentation builds, but OpenStack-CI does not
execute that tox target.

In order to ensure that we catch all standard documentation syntax
errors and prevent them from merging, this patch includes the docs
target in the 'linters' chain of tests.

Fixes for any failures which result from executing this test are also
included in the patch.

Change-Id: I33eaae97d9e2bc6da6197db67d82e9aa8737e766
14.0.0.0b2
2016-07-26 00:39:31 +01:00
Tim Laszlo
f75d7195e3 Define keystone region name.
If multiple regions exist, keystone_authtoken should contain region_name.
This prevents the service from authenticating across regions.

Change-Id: I3e08385d91f5f913209dc944875c843828da3c2b
2016-07-22 12:40:09 -05:00
Jenkins
d86aeb65cb Merge "Support service-specific rabbitmq clusters" 2016-07-22 12:04:15 +00:00
Jimmy McCrory
6de135bfb1 Remove openstack_hosts from test requirements
The openstack_hosts role is not used in any of the test playbooks
or required by dependent roles and can be removed from the test
role requirements.

Change-Id: I4182c169c1fa01651bf2187182961187f23d27d4
2016-07-20 18:47:02 -07:00