Commit Graph

43 Commits

Author SHA1 Message Date
Takashi Kajinami 8522fa13a8 Ensure Redis is enabled in acceptance test
Designate requires that the coordination backend is up, otherwise
the central service does not start.

Depeneds-on: https://review.opendev.org/855261
Change-Id: I201743c6796b9b863b0befffaa85fff1675d80b0
2022-11-18 11:28:33 +09:00
Takashi Kajinami 0731665f1d Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I18744c9cf014c42933952fe9ee560f12c8f65e4a
2022-08-31 00:59:38 +09:00
Takashi Kajinami ea262853af Extend coverage of config acceptance tests
Change-Id: Iccf1bcc19bb1e65fbccf61dc6f17429d6a3b88bd
2022-07-10 12:31:59 +09:00
Tobias Urdin 40700887a6 Add Puppet Litmus
Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: I8a5b608735cffe1fc7ca5fcd51930cfbe8b3e0eb
2020-08-31 21:16:26 +02:00
Takashi Kajinami 345059eba8 Use common class to manage apache service in beaker job
Depends-on: https://review.opendev.org/#/c/745246/
Change-Id: Ic6e773a53dc93f71d73285cd2812d8943dd7690a
2020-08-27 12:00:16 +09:00
Takashi Kajinami d28dcf505f Add CentOS8 to nodesets
Change-Id: I42aca6939adb87830b7e1462a20fc1106bcb0110
2020-05-10 21:44:12 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
Tobias Urdin 4ce3638ee2 modulesync: sync and add nodepool-bionic for beaker
Change-Id: I3b20e37a6fa7ec3b9949d1c8cbdaa7b40e9104a7
2018-07-18 16:17:36 +02:00
ZhongShengping 36ca8ed176 Switch acceptance tests to use integration classes
Change-Id: Ic42de07b2a6083685be04927f7dbf2533f923525
2018-03-14 17:29:02 +08:00
Sam Morrison ae4b864bbc Remove service:central/backend_driver option, no longer exists
Change-Id: Ide49b872e0bbea640d9948c6d3d6809b70e5d767
2016-12-09 10:45:40 +11:00
Alex Schultz 609859b307 Deprecate rabbitmq connection parameters
The rabbitmq connection parameters have been deprecated in favor of the
transport_url setting. Additionally, the configuration has been switched
over to use the oslo::messaging::rabbit resource.

Change-Id: I43500ac7be4296ea534266fa14ca37fc700b0092
Related-Bug: #1625198
2016-11-09 07:43:54 -07:00
Alex Schultz d9b8080925 Update keystone authtoken configuration pattern
This change updates our previous implementation of the keystone
authtoken setting to use the new designate::keystone::authtoken class to
do the configuration for the api.

Change-Id: Ib2a1d20d4e29353fc139835ce1c010a801506b9c
Closes-Bug: #1604463
2016-08-10 00:04:15 -03:00
Alex Schultz e18e6eb355 Configure keystone authtoken options
Update designate::api to leverage keystone::resource::authtoken to
configure the keystone middleware. This patch also allows designate to
be able to leverage Keystone v3.

Some deprecations:
- designate::api::keystone_tenant is deprecated in favor of
  designate::api::project_name.
- designate::api::keystone_user is deprecated in favor of
  designate::api::username.
- designate::api::keystone_password is deprecated in favor of
  designate::api::password.
- designate::api::keystone_host, designate::api::keystone_port,
  designate::api::keystone_protocol are deprecated in favor of
  designate::api::auth_uri and designate::api_auth_url.
- designate::api::keystone_memcached_servers is deprecated in favor of
  designate::api::memcached_servers.

The patch is backward compatible.

Change-Id: I2cb4076b3e8679adac2722871f8391e750e8b4b0
Closes-Bug: #1604463
2016-07-21 14:12:47 -06:00
David Moreau-Simard 63cdcd713a Fix idempotency and re-enable idempotency check in beaker tests
- Change file_line resources to concat resources instead to
  concat a fragment within the puppet-dns concat templates
  resources.

This change depends on an upstream change to puppet-dns which
has not yet merged.
https://github.com/theforeman/puppet-dns/pull/64

Change-Id: I499f2c7bfe8330ddb3c3d91d5eadcdad9e64e614
Depends-On: I73145a8992292038ab22824d3a858dcc7193fd35
2016-07-06 12:21:30 -04:00
David Moreau-Simard 350b4938a3 Deprecate designate::dns, stop managing config files in lib
The designate::dns class was really just configuring things
according to a bind9 backend. As such, move it's resources to
the bind9 backend manifest and deprecate this class.

Additionnally, we stop managing configuration files resources
inside /var/lib/designate. According to upstream documentation
[1] and from discussing this with upstream developers, this is
not an intended way of configuring designate.
This also avoids having to manage permissions (and selinux)
between designate and bind.

[1]: http://docs.openstack.org/developer/designate/getting-started.html

Change-Id: Ia62a3d1a72622f3eb1ceeabaf4cef36090a7a8d3
2016-07-06 12:12:51 -04:00
David Moreau-Simard c55b82433d Enable testing on Redhat based packaging
RDO provides packaging for designate since liberty. If it doesn't
work we need to know.

Change-Id: I14cb274a7481b60f5f4cbf4f33436fc6ed1b41af
Depends-On: I2247304d164facb352b60039d8ddae9fb62d1eb8
2016-07-05 09:40:03 -04:00
David Moreau-Simard 0e786ff0aa Also test designate::central in beaker tests
Change-Id: If2ec92d814e01b908cc397aca41a94818549c293
2016-07-05 02:44:31 +00:00
Emilien Macchi a33be0dd16 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: I60126532847978c9ab0961a906d71e35c65ee252
2016-06-10 13:30:42 -04:00
Iury Gregory Melo Ferreira 7f70b7f548 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: I4b148ae18f5196951f7de2afdff2fe815becfdb6
2016-05-18 23:21:05 -03:00
Alex Schultz af9f5be5e6 Support of PyMySQL driver for MySQL backend
This change adds the ability to use the python-pymysql library as a
backend for MySQL connections. This change also updates the acceptance
test to leverage the pymysql driver.

Change-Id: I9730266163166a9f75f68e25a26c6dcbf38fcea8
2016-01-06 23:08:57 -07:00
Emilien Macchi 2e7c5e62bb Acceptance: use common bits from puppet-openstack-integration
Change-Id: I0b390833da6a1eadca60ade6d95165b1f730ec61
2015-11-18 17:53:52 +01:00
Emilien Macchi 5d603ecfc4 Bump UCA and RDO to Liberty GA
Bump from UCA RDO Liberty testing to GA repos.
Depends-On: I19a1588c488d56b647703c0267540c7649fdc6d1

Change-Id: I87d05c26c5d3c73f7b370e92104b7c1b31b4ef0f
2015-11-04 09:49:09 -05:00
Emilien Macchi c7fbedcbfc 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: I31aff55d305502c908473aadd1fa3fce84333c24
2015-09-22 13:47:07 -04:00
Jenkins 71bde92152 Merge "acceptance: switch RDO to CBS repositories" 2015-09-11 10:22:13 +00:00
Emilien Macchi c79e100a6a 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: Ic5dc6cbba7d637f8a0fb86cf2d2e626717d3ec0d
2015-09-10 12:13:16 -04:00
Gael Chamoulaud 2a618ff54f Fix rspec 3.x syntax
- Convert 'should' keyword to 'is_expected.to',
- The old ':should' syntax in rspec 3.x is deprecated in favor of ':expect'
  syntax,
- Expectations on attribute of subject with 'its'.

Change-Id: I99d7819595a51c16b0b82122d75c0a6ebfad7907
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-09-10 10:56:31 +02:00
Emilien Macchi 4fde6bccf1 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: Ib7e8a4cd8a4b294d32a663d3bf179ead1dbc8f77
2015-09-02 21:12:01 +00:00
Jenkins 37df389934 Merge "Reflect provider change in puppet-openstacklib" 2015-08-21 21:12:29 +00:00
Jenkins 10a8d914fb Merge "Initial msync run for all Puppet OpenStack modules" 2015-08-20 01:11:31 +00:00
Yanis Guenane aa4184a043 Reflect provider change in puppet-openstacklib
With the creation of the new openstack_config provider, some processing
that was done in designate_config has been centralized in
openstack_config.

Impacted methods are :

  * section
  * setting
  * separator

Also, this commit adds the fact that, when passing a specific string
(ensure_absent_val) the provider will behave as if ensure => absent was
specified. '<SERVICE DEFAULT>' is the default value for
ensure_absent_val.

The use case is the following :

designate_config { 'DEFAULT/foo' : value => 'bar' } # will work as usual

designate_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>' } # will mean absent

That means that all the current :

if $myvar {
  designate_config { 'DEFAULT/foo' : value => $myvar }
} else {
  designate_config { 'DEFAULT/foo' : ensure => absent }
}

can be removed in favor of :

designate_config { 'DEFAULT/foo' : value => $myvar }

If for any reason '<SERVICE DEFAULT>' turns out to be a valid value for
a specific parameter. One could by pass that doing the following :

designate_config { 'DEFAULT/foo' : value => '<SERVICE DEFAULT>',
ensure_absent_val => 'foo' }

Change-Id: I16873c60bfce5b2f432f034755b7bfa3f1383dc5
Depends-On: I0eeebde3aac2662cc7e69bfad7f8d2481463a218
2015-08-19 10:56:46 +02:00
Jenkins 4f7c34a6a4 Merge "acceptance: enable debug & verbosity for OpenStack logs" 2015-08-17 14:17:07 +00:00
Emilien Macchi d71e2bfc8f 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: I0c94ab8c4ad19d3f8464b5e1762a4ec716dbecf2
2015-08-16 09:50:01 -04:00
Emilien Macchi 31e8b3fe4f acceptance: bump to Liberty release
Upgrade acceptance manifest from Kilo (stable) to Liberty (dev)
on both Ubuntu Trusty & Centos7.

Change-Id: Ifcad7b55e640ad13020ae49a2e42e23329abc0ce
Co-Authored-By: Lukas Bezdicka <lbezdick@redhat.com>
Depends-On: I7c1f31b3cc4c6ea1f894a263a8cff60e357accb8
2015-08-07 14:48:01 +00:00
Cody Herriges 9948a9b252 Initial msync run for all Puppet OpenStack modules
This patch is the initial modulesync run, its impact:

* 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: If1902135ecb45e84d25d5b6ddd5698dd98c87646
2015-08-06 20:41:13 +02:00
Sebastien Badia 37644e946f acceptance: Remove dirty fix for empty values (fixed in inifile module)
Fixed by Mike in [MODULES-1599] : If a previously blank/empty value
is changed to a non-empty value, the value is put on a new line.

Link: https://tickets.puppetlabs.com/browse/MODULES-1599

Partial-bug: #1465780
Change-Id: Ib4ef48857a212f3a7aa2f465a9d391160ee9b45b
Depends-On: I9fcd5823b70dacbe1e41737f05d52a175481d57d
2015-07-10 15:16:57 +00:00
Emilien Macchi 730e3d6b51 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: Id46919667621d2c031cc615b90b3397413fb98d6
2015-06-29 15:23:21 -04:00
Emilien Macchi e83759da12 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: I2b97aeedf292e1d61d2a667761e693ffbdadc1aa
2015-06-26 15:41:58 -04:00
Sebastien Badia c500d84a3a 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: Ia0fc7ca568f9b0b25d96d25c3ee7b67da5bbfd45
Closes-Bug: #1468444
2015-06-25 00:01:35 +02:00
Colleen Murphy 7d0a36f79e 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: I69f7cfe293fa26a8bd43aef2af898db262872bc7
2015-06-19 14:30:52 +00:00
Jeremy Stanley fb9af2b3a2 Fix beaker on Trusty and update .gitreview file
* Update .gitreview file because of Puppet OpenStack modules project
  renaming.
* Fix Beaker tests on Ubuntu Trusty (newline added if secret)

We have to do that in a single patch because:
* project has been renamed so gitreview needs to be updated
* beaker jobs are voting

Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
Co-Authored-By: Emilien Macchi <emilien@redhat.com>
Co-Authored-By: Sebastien Badia <sbadia@redhat.com>
Closes-Bug: #1465780
Change-Id: If562aa5bc969c316fd8fd0cb06ed7115c465a57d
2015-06-19 00:58:54 +02:00
Emilien Macchi bee3621298 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
* spec: add case for repo configuration and support
  RH systems.
* rabbitmq: install module from source
* apt: pin the module
* don't try to install designate on centos (packaging not ready)

Change-Id: I687e6b274938d622860063cb1a2494f0e7f4635f
Closes-bug: #1444736
2015-05-14 13:18:35 -04:00
Emilien Macchi 3ea04aca8c Beaker: install APT repo with openstack_extras
Use openstack_extras module to manage Ubuntu Cloud Archive repository.

Change-Id: Idb70fc8a953f05d37e214ec229652eece6d6978c
2015-05-12 00:07:58 -04:00
Emilien Macchi d6e7965bc1 Beaker tests
Implement basic structure for beaker tests.

Change-Id: I8b5db1c81dd5816080617ea2c773574312b3d23d
Closes-bug: #1444736
2015-05-01 17:28:47 -04:00