29 Commits

Author SHA1 Message Date
Jimmy McCrory
4995ed78f3 Fix role gate tests for Ansible 2.3
'ansible_become' defined as a host_var or in the inventory for a host
has a higher precedence than 'become' defined within a playbook.

In change Id5b76a87809f03951c954fc3d752419a673403f7, 'become' was
defined explicitly for each play running against localhost so
'ansible_become' should be removed from its host_vars.

Change-Id: I0a3019ed7f4e151625682d009e5359378152592d
2017-04-19 17:31:12 -07:00
Andy McCrae
3acc49c204 Add nova_placement service to test inventory
Change-Id: I73bd0a45bdb8f41119dac8d3fc05d1c96b492f6d
2017-02-08 11:28:18 +00:00
Andy McCrae
cede11ace8 Fix ironic gate
This patch fixes a few minor issues:
* The ironic_service_user_name was not being passed to Nova
  - this value was fixed in Nova #1647253
* The br-flat network seems to already existing on some gate nodes, this
has been changed to named br-vlan

Change-Id: I12f68a1cda39a3d615fbcf6ad62694faca6d09f4
2017-01-17 13:32:49 +00:00
Andy McCrae
9f084a910c Add support for neutron network names for cleaning/provisioning
This patch adds the ability to specify a cleaning and provisioning
network for Ironic. If none are specified then Ironic continues to
function as it does now.

Ironic role will calculate the UUID of the neutron network assuming a
network name is provided.

Additionally, this is added to testing by configuring a network to add
with the network-name.

Change-Id: I9be6f351c0da292ac8b861d2168e73d1861e1603
2016-12-08 15:54:15 +00:00
Andy McCrae
2e46ac9589 Add rsyslog_client dependency for Swift role
The testing needs swift which needs rsyslog_client.
This PR updates the role requirements for testing.

Change-Id: Id1aafc80345f7f12caecf883d41916b26f1cd00a
2016-11-16 21:33:38 +00:00
Joshua Hesketh
1adaee4408 Replace github link with published spec
Change-Id: I497132fbe107019184b657645df78cc2c7d08258
2016-11-03 12:13:28 +11: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
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
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 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
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
Travis Truman
ebbc044a48 Support service-specific rabbitmq clusters
All rabbitmq connection vars are now namespaced. Namespace support
was previously inconsistent which limited deployer override options.

Change-Id: Iccc4839f497ae4868d1234e8fd36220870ad7f04
Implements: blueprint multi-rabbitmq-clusters
2016-07-18 10:41:14 -04:00
Jesse Pretorius
2b7f402c42 Clean up container cache prep in tests
This patch cleans up the container cache preparation in the tests
due to the following patches:

- https://review.openstack.org/307856 (new image build process)
- https://review.openstack.org/315114 (new apt config process)
- https://review.openstack.org/322188 (new resolver config process)

Change-Id: I2da67e7bec7ad21959edd85e3dc80c97c857fb47
2016-06-17 19:28:27 +01:00
Jimmy McCrory
f736ebb79f Remove pip_lock_down dependency
The pip_install and pip_lock_down roles have been merged.

Remove pip_lock_down from the role's meta dependencies and test
requirements.

Change-Id: I62d9f8dce930f4e0dfe56c872ca46995e0e78b6d
2016-06-08 21:08:25 -05:00
Andy McCrae
3113ef63af Fix Ironic gating
Ironic gating was failing due to missing pip packages, additionally
there were some structural changes ro the inventory file which were
needed.

Change-Id: I77c40e7a49ebfbe05aac6d6a3d11ba9329c60413
2016-05-31 10:57:04 +01:00
Jesse Pretorius
9594c667ab Remove py_from_git role
The py_from_git role is removed as it is no longer required.

Change-Id: Ifb417a2b08f14d243e1a0125a77a002a8a84c5df
2016-05-04 09:03:40 +01:00
Jesse Pretorius
9b268e9ffc Switch defaults/tests to use master branch
Change-Id: I10c1b94122c023f70c3818732cd79fbfaf5f0ad5
2016-04-16 15:21:10 +00:00
Jenkins
7e7962ae1f Merge "Update ironic.conf for swift and keystone compat" 2016-04-13 11:12:09 +00:00
Kevin Carter
2603e8de6a
Update ironic.conf for swift and keystone compat
This change makes is intended to simplify the the ironic.conf file
so that we only carry what is needed. In the file we're setting the
swift configuration section when not in stand alone mode and the
keystone_auth section has been updated for the options that ironic
requires.

URI testing for ironic's rest API has been updated to run the tests
using a header for the authentication token. This is required now that
the keystone_auth section is filled in.

Co-Authored-By: Michael Davies <michael@the-davies.net>
Change-Id: Ic6bd466e6fa03c2382424666588c306bad473e99
Partially-implements: blueprint role-ironic
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-12 23:38:08 -05:00
Mike Carden
7e8a647985 Add tests for the ironic CLI
This is an initial set of tests of the ironicclient intended
to show that the ironic role has been installed and that the
API is responding correctly.

Tests are:
  - list chassis
  - list nodes
  - list drivers
  - create node
  - validate node
  - create port
  - update node
  - delete node

Change-Id: I98e67e076bce8711cb1c8e0f8b2e9ae0d89d520d
2016-04-11 09:36:14 +00:00
Neill Cox
a76d3744b0 Add tests for the ironic REST API
Test ironic using the REST API.

Tests currently implemented:
  - list chassis
  - list nodes
  - list drivers
  - create node
  - create port
  - validate node
  - update node
  - delete node

Change-Id: I0a8ede31d8d3baa3f120ecb3e85bb8ff16e011d4
2016-04-08 17:58:39 +10:00
Jesse Pretorius
b5d7b7986c Implement initial test inventory/plays
This patch implements an initial set of inventory and playbooks
which results in the successful convergence of a standalone
build of Ironic.

It also adds the rootwrap filters, implement config_template
for all the conf files appropriately and ensures that the sudoers
is implemented in the right order of execution.

All content is based from the head of stable/mitaka on
24 Mar 2016.

Change-Id: I9182951c394a8c52826480aba7bc7e4d437988c5
2016-03-24 23:58:05 +00:00
Michael Davies
f8eb0aebfe Ironic: Fix docs & linting tests
Unfortunately the first commit of os_ironic had broken tests. This patch
corrects the test configurations to ensure that the docs and lint tests
work.

As a temporary measure, functional testing is left as a place holder
to allow other patches to be worked on for this role while the functional
testing is being put together.

Change-Id: I38278155232a4e4d6ef259b79bd515fae2bc837b
Signed-off-by: Michael Davies <michael@the-davies.net>
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2016-02-24 02:25:52 +00:00
Jesse Pretorius
a200b5b3b3 Add required base test configs
This patch adds some extra configurations required in order for
tests on OpenStack-CI to work.

It also adds some basic changes to document content.
2016-01-05 13:28:19 +00:00
Michael Davies
b40dd35bdc General cleanup, incl. copyright headers 2015-11-27 12:59:56 +10:30
Michael Davies
c578f230a0 Initial commit 2015-11-26 22:18:44 +10:30