Commit Graph

35 Commits

Author SHA1 Message Date
Takashi Kajinami 4cd42b17d8 Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: Ie972d8dccf43a3fe063c321c383cc749dfb1722d
2022-08-31 00:57:21 +09:00
Takashi Kajinami 2469997eff Add acceptance tests for config management resources
Change-Id: Ic9399b72ef096de50a1108667090afb9379c85c6
2022-07-10 12:46:14 +09:00
Tobias Urdin d544216d04 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: I2dbbe7e99180ef1da610b534f2adaa891332b620
2020-08-31 21:24:19 +02:00
Takashi Kajinami 312998a6e1 Use common class to manage apache service in beaker job
Depends-on: https://review.opendev.org/#/c/745246/
Change-Id: I5d82fb7cd41d2fec0c31107ac9b2f1a89c98fe19
2020-08-07 09:22:48 +09:00
Takashi Kajinami cb148c24b6 Add CentOS8 to nodesets
Change-Id: Icaba85b9bc063c10ff27bf5330f75f9f430c3847
2020-05-10 21:45:39 +09:00
Tobias Urdin 5f6411c3dd Convert all class usage to relative names
Change-Id: I9982b8476ca9dab8a338b66db75d6da6519f9266
2019-12-08 23:07:36 +01:00
Tobias Urdin 8ef3646929 modulesync: sync and add nodepool-bionic for beaker
Change-Id: I705e07a6955600b9351477a1abef8d195ec5559b
2018-07-18 16:18:12 +02:00
ZhongShengping 17f1c54dd1 Switch acceptance test to use integration classes
Change-Id: I5ee313def965bdb6c7c898369e4347d4e391e116
Depends-On: Ibe79283de13d36fd88549e398aae2a03a1a4a81e
2018-03-15 09:25:24 +08:00
rabi a17104c6ad Remove support for heat-api-cloudwatch service
In 6d55417f80384ead56e176beec9e2fc4eb162d61 cloudwatch api
has been removed from heat.

Change-Id: I155c92edd5d6959ac23d99804fd95dfb99c7042e
2018-02-06 09:51:36 +05:30
Juan Antonio Osorio Robles fe394add6f Add manifests to deploy APIs over httpd
This includes a resource that will generically create the vhost for
the specified API.

Co-Authored-By: Thomas Herve <therve@redhat.com>
Depends-On: I9a9246522810de546a7c460ab1133d6bf9081a15
Change-Id: I253f46f5ad943971dd9ea6995591c72a36953bdb
2017-03-02 14:15:18 +02:00
Alex Schultz b865dffaa6 Deprecate rabbitmq connection parameters
The rabbitmq connection parameters have been deprecated in favor of the
transport_url setting.

Change-Id: I7ae5c5a2584eab063b8e647dc34008ac71bd04e0
Related-Bug: #1625198
2016-11-21 16:48:59 -07:00
Iury Gregory Melo Ferreira 85b55571b8 Move Heat to authtoken
Switch keystone_authtoken parameters for the new class
heat::keystone::authtoken to configure the keystone_authtoken section
in heat.conf.

Some deprecations:
- heat::auth_uri is deprecated in favor of
  heat::keystone::authtoken::auth_uri.
- heat::identity_uri is deprecated in favor of
  heat::keystone::authtoken::auth_url.
- heat::auth_plugin is deprecated in favor of
  heat::keystone::authtoken::auth_type.
- heat::keystone_user is deprecated in favor of
  heat::keystone::authtoken::username.
- heat::keystone_tenant is deprecated in favor of
  heat::keystone::authtoken::project_name.
- heat::keystone_password is deprecated in favor of
  heat::keystone::authtoken::password.
- heat::keystone_user_domain_name is deprecated in favor of
  heat::keystone::authtoken::user_domain_name.
- heat::keystone_user_domain_id is deprecated, use the name option.
- heat::keystone_project_domain_name is deprecated in favor of
  heat::keystone::authtoken::project_domain_name.
- heat::keystone_project_domain_id is deprecated, use the name option.
- heat::memcached_servers is deprecated in favor of
  heat::keystone::authtoken::memcached_servers.

Change-Id: I466558e98176f20743271191df64dc327f0efcc6
Closes-bug: #1604463
2016-08-25 18:08:22 -03:00
Emilien Macchi eb3eaa6ae3 Add nodepool-xenial.yml file
To run Beaker jobs in OpenStack Infra, we need this file so we run tests
on the right nodeset

Change-Id: I9506b8ff0fd7acaf899ac6946f61c98c96c054d6
2016-06-10 13:31:13 -04:00
Iury Gregory Melo Ferreira dcc6dc20fd Deprecate verbose option in logging
Option "verbose" from group "DEFAULT" is deprecated for removal.
The parameter has no effect.
-Deprecated verbose for logging and init
-Remove verbose in README
-Remove verbose from tests.

If this option is not set explicitly, there is no such warning

Change-Id: I0a3a42341e4dd32196beb793d718edf85850394f
2016-05-18 01:49:23 -03:00
Emilien Macchi 019883ba1d Implement crontab to purge deleted data
heat-manage provides a tool to purge Heat deleted data [1].
This patch implements a crontab using the same interface as other
modules.
By default, it will purge that are more than 1 day old.

[1] http://docs.openstack.org/developer/heat/man/heat-manage.html

Change-Id: Ia2b80e5003450cd794ebb0c9ca72200ec8616e81
2016-01-16 09:35:51 -05:00
Javier Pena f70d5d5f31 Support of PyMySQL driver for MySQL backend
Add the ability to use python-pymysql library as backend for MySQL
connections.

Update acceptance tests to use pyMySQL.

Change-Id: Id27afb52428a50ec889e8ae77f3509e1ca956538
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
2015-12-03 10:11:31 +01:00
Emilien Macchi 193833d05a Acceptance: use common bits from puppet-openstack-integration
Change-Id: I1e969bc14142fbb4fad823d4c4790f4961be6385
2015-11-18 17:56:19 +01:00
Emilien Macchi 7e2bfbcdf9 Bump UCA and RDO to Liberty GA
Bump from UCA RDO Liberty testing to GA repos.
Depends-On: I19a1588c488d56b647703c0267540c7649fdc6d1

Change-Id: Iac3055939db3b4a9270ffad17499bfb9b16463f5
2015-11-04 10:10:32 -05:00
Denis Egorenko 1c4d0bba2a Fix rspec unit & beaker tests
Problem #1
https://review.openstack.org/#/c/228744/ has been merged, we need to
drop the 'tenant' parameter to Keystone_user resource.

Problem #2
https://review.openstack.org/#/c/228744/ has been merged, we need to
drop the '_member_' role management.

Change-Id: I22313fed2c9f2c07caa6058e615d3872e0cfb861
2015-10-21 11:54:56 -04:00
Emilien Macchi 1b209d35be Cleanup configure_delegated_roles deprecated parameter
In Kilo, we decided to use ::heat::keystone::auth to manage the
Keystone_role resource to help with Trusts configuration.
Though the configuration was and still remains part of ::heat::engine
class because we assume ::heat::keystone::auth can be run outside the
heat-engine node.

So this patch aims to drop the deprecated parameter, update the
documentation and unit tests.

Change-Id: I045a3a82095e23778c4e878b13f2fc7f561d680e
2015-09-24 07:54:27 -04:00
Emilien Macchi bfbcb914bd Bump RDO packages to tested repos
RDO has now [1] a repo that is tested against real CI.
Using this repository will avoid more failures in our CI.

[1] http://trunk.rdoproject.org/centos7-liberty/current-passed-ci/

Change-Id: I2729f3f4b218fa083670a76529d80c8f966da573
2015-09-22 13:47:08 -04:00
Emilien Macchi f5193ad715 acceptance: switch RDO to CBS repositories
This patch changes the repositories used to install OpenStack Liberty on
RDO by using CBS repositories and RDO trunk.

Here is the RDO roadmap that is suggested if we want to run Liberty:
From now until GA:
http://trunk.rdoproject.org/centos7-liberty/current/
http://cbs.centos.org/repos/cloud7-openstack-liberty-testing/x86_64/os/
http://cbs.centos.org/repos/cloud7-openstack-common-testing/x86_64/os/

After GA:
http://mirror.centos.org/centos/7/cloud/x86_64/openstack-liberty

Note about EPEL: deps from EPEL are rebuilt in CBS, so EPEL could be
disabled in the future.

Change-Id: Ica576b745e50feefa34bb5f084f79ef5067cb7b1
2015-09-10 15:49:24 -04:00
Emilien Macchi 07e52b5ac9 acceptance: bump trusty packaging to trusty-proposed/liberty
Since our recent discussion about Ubuntu packaging, we decided to bump
Ubuntu packaging to trusty-proposed/liberty so we can install Liberty in
a better shape than current situation (Staging repo).

This patch installs UCA liberty repository.

Depends-On: I57e2ddc5d0e228142f8045623ffbde362c0e7f7b
Change-Id: I20decfb1743b334a44365166b310c264f521e4d7
2015-09-02 21:10:36 +00:00
Jenkins 16b4eca4c9 Merge "Create Heat Domain with Keystone_domain resource" 2015-08-21 03:03:43 +00:00
Jenkins b8cb628617 Merge "Initial msync run for all Puppet OpenStack modules" 2015-08-20 01:24:04 +00:00
Cody Herriges 4fa9985f2a Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, it impacts:

* gitignore: just a sync between projects
* gemfile:
  - update and allow to setup facter version and gem source
  - split beaker gems with a dedicated group
  - switch to rspec-puppet 2.2.0
* rakefile:
  - use the new syntax for lint configuration
  - add a acceptance target
* acceptance:
  - sync nodesets
* spec: added rspec coverage report

Change-Id: Ib75add2af3380d0b1d4ce320b58df22b6c3ffa57
2015-08-18 14:37:18 +02:00
Emilien Macchi 2ed33d3166 acceptance: enable debug & verbosity for OpenStack logs
Enable debug & verbose when possible for OpenStack services logs, so we can read a maximum
of informations in Jenkins jobs logs and easily debug our eventual failures.

Change-Id: I5bdb2f9d9083efdfff9fa43f45371a90a75e38b7
2015-08-16 09:50:01 -04:00
Martin Mágr b5f0f0de74 Create Heat Domain with Keystone_domain resource
This patch replaces the usage of Exec to create the Heat domain, by
using the Keystone_domain resource recently implemented in
puppet-keystone.

Change-Id: I5abdac6334e535e8be4e4d19223b4e83b7a39db1
2015-07-31 13:34:06 -06:00
Emilien Macchi acde13d1cb acceptance: install latest openstack-selinux
Since SELinux is enforced by default, we need to make sure
openstack-selinux is installed from the latest version to have OpenStack
correctly working.

Change-Id: Id35cc15e681068bc2149396118edddb327d5b326
2015-06-29 15:23:40 -04:00
Emilien Macchi cc7faf7e42 acceptance: install RDO repo the right way
Install packages from RDO properly, by using regular packages and not
ones from testing repo that are too unstable.

Change-Id: I3537ca24c1b46643dee6e97f879e0a86f753486e
2015-06-26 15:42:36 -04:00
Sebastien Badia 827ce8b1dc Fix Beaker CI according recent puppetlabs-rabbitmq change.
The puppetlabs-rabbitmq module introduce a new feature related to the
erlang_cookie parameter change (the database must be wiped if the cookie is
changed), the parameter wipe_db_on_cookie_change is configured to false by
default.

But we're not setting up a rabbitmq cluster and we're not using pacemaker in
beaker CI tests, so we just remove the erlang cookie parameter change.

Change-Id: Ib7917e16a4deb9a149b5ceca3c3176d8f04bb475
Closes-Bug: #1468444
2015-06-25 00:01:12 +02:00
Colleen Murphy 2aaab3d4d5 Unpin beaker-rspec
The latest version of beaker tries to manage sshd_config[1] in order to
pass through environment variables. JJB also tries to manage
sshd_config by adding Match blocks to securely allow root SSH[2]. When
beaker tries to append the PermitUserEnvironment line after the Match
blocks, SSH fails to open port 22 and beaker can't SSH in to the
node[3]. This patch unpins beaker-rspec and adds set_env: false to the
nodepool nodesets so that the set_env method is never called and does
not try to mess with the sshd_config.

[1] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L528
[2] http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n42
[3] http://logs.openstack.org/61/185161/1/check/gate-puppet-nova-puppet-beaker-rspec-dsvm-centos7/cd81608/console.html.gz#_2015-05-22_22_05_46_933
[4] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L502

Change-Id: I4064e8fe27eb2a2c2be6d8437ce7f97709529b45
2015-06-08 13:43:51 -07:00
Emilien Macchi 01004884a1 Bring Redhat support to acceptance tests
OpenStack Infra has jobs to run this on both Ubuntu Trusty and CentOS7.

* Add minitest to Gemfile (dependency to run beaker on centos - see
  http://projects.theforeman.org/issues/2650 for details)
* separate nodepool files to have trusty & centos7 support in OS infra
* basic_keystone_spec: add case for repo configuration and support
  RH systems.
* rabbitmq: install module from source
* apt: pin the module
* heat encryption key parameter: use a valid length for the key

Change-Id: If9820a65f1310fe85ff43b32468b746268c04ea0
Closes-bug: #1444736
2015-05-14 13:20:13 -04:00
Emilien Macchi 1750f36a06 Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: I1372f046972ec188c87cbb51ad02eb734c580cb1
2015-05-14 09:33:42 -04:00
Emilien Macchi 2eaa030fe8 Beaker tests
Implement basic structure for beaker tests.

Change-Id: I2824af6868222b1c31b2031194a956308ec1b4b6
Closes-bug: #1444736
2015-05-01 17:36:34 -04:00