375 Commits

Author SHA1 Message Date
Jenkins
1766e8d21d Merge "Fix postgresql" 2016-07-13 09:08:59 +00:00
Iury Gregory Melo Ferreira
1bba29e12f Fix postgresql
puppet-openstack-integration require v4.7.1
pin metadata to accept this version.

Change-Id: I844dc0371ec03a84ce5df8c737c6a14fedd9ed55
2016-07-12 16:41:41 -03:00
Oleksiy Molchanov
5aaaff5d90 Add optional params for idempotency in service_validation
Change-Id: Ib3c2d2864a19b0b5761f546d6cbb9c4a51203412
2016-07-12 10:14:26 +00:00
Ben Nemec
b61adb6257 Make Apache vhost respect X-Forwarded-Proto header
Without this, some OpenStack services will return invalid URLs if
you are using SSL termination at a proxy in front of the service.

Change-Id: I3ee6b5838f4703e3b8b1b6632dd45c94057b2202
Closes-Bug: 1597935
2016-07-11 21:07:20 +00:00
Emilien Macchi
e4253e04b5 Prepare 9.1.0 (newton-2)
Prepare the second milestone of Newton cycle.

Change-Id: I7f19f5f4ee78e8209d08726aec59be02bbbbf19b
9.1.0
2016-07-07 09:09:32 -04:00
Sofer Athlan-Guyot
8cf821dc2f Default file for all. Use it for virtual package.
This file is to be included by all puppet modules.

First feature is to make sure that allow_virtual is set to true for all
openstack modules.  It's set to false for puppet 3.6.1 to
4.0.0 [1]

[1] https://docs.puppet.com/puppet/3.6/reference/release_notes.html#puppet-361

Change-Id: I9d0a10d48124ee71ea80134ceef96436c8ee196e
Closes-Bug: 1599113
Related-Bug: 1597753
Depends-On: I2699eaa3a10589c9a0c680bb1de489994fe01b67
2016-07-06 15:24:37 +02:00
Iury Gregory Melo Ferreira
413a6149bd Remove 12.04 and add 16.04 to metadata
Change-Id: Ic270e585d81ebfb6f3cd9e825a8cc81e67bf3a76
2016-06-29 22:41:09 -03:00
Sofer Athlan-Guyot
806f31d740 Add optional exceptions regex to avoid to retry.
This is useful when the user (a puppet provider) is expecting a error.
With this it doesn't have to wait for the long retry cycle to have its
error back.  This replace the awkward mechanism in
self.request_without_retry which was dynamically mangling
request_timeout and disabled even legit retry.

Examples of such function are self.fetch_user, self.fetch_project in the
keystone provider.

Change-Id: I589da0100ad3ccf3abf17ac8b26c827793ace484
Related-Bug: 1597357
2016-06-29 15:42:13 -04:00
Jenkins
d25bb915f4 Merge "Remove mitaka release prelude note" 2016-06-29 03:29:29 +00:00
Emilien Macchi
b7c202b4b1 Remove mitaka release prelude note
We had a prelude note when releasing Mitaka. This note
keep showing-up at every release while we're on Newton now.

We don't need a prelude release note, we already have nice sections
for every note we push.

This patch aims to remove this prelude starting from Newton.

Change-Id: I50918c49bb7ce20d241159d9ecbbff6a1a2c1999
2016-06-28 15:09:32 -04:00
Sofer Athlan-Guyot
4890996324 DEBUG: testing increase timeout for tripleo CI.
If that's working maybe do https://review.openstack.org/334011

Change-Id: Id428b112eeaa22ecef78a21032b0c1dcc0ac0592
2016-06-28 18:22:59 +02:00
Denis Egorenko
85d8296030 Set policy-rc.d file as executable
Policy-rc.d requires to be set with +x chmod.

Change-Id: I1bad3301729fa6310d9d1a50c22c621ffe44e24a
2016-06-21 18:56:19 +03:00
Denis Egorenko
2fc25c54ce Add release note for policy_rcd provider
Change Ic54b9707b6ef36032d71fe9dc04a7e310293f127 missed release note,
so this patch adds it.

Alos improve unit test for policy-rcd provider.

Change-Id: Ie6d4dd1e5406acd097969a9ff7fccd5dfa7f8632
2016-06-21 12:38:34 +03:00
Denis Egorenko
ec58851c44 Add provider for managing policy-rc.d
Use provider for managing policy-rc.d file to be sure that
services stopped right after package installed.

Also added tests.

Change-Id: Ic54b9707b6ef36032d71fe9dc04a7e310293f127
2016-06-20 21:36:50 +03:00
Emilien Macchi
7a70e28a16 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: Ie05c2c61ff4c07ccae8b1adce55ded02fbae4cc9
2016-06-10 13:33:17 -04:00
Emilien Macchi
6a89264e8e Prepare 9.0.0 release
First release of Newton.

Change-Id: Ife2e3f3a5d2b8781281186300e6a98ac6befbadf
9.0.0
2016-06-03 19:18:43 +00:00
Jenkins
cf441d54c6 Merge "Change wiki to docs" 2016-06-03 16:46:18 +00:00
Denis Egorenko
9bfb5eb133 Cleanup README
Change-Id: Ie4e6093b8b2dc1c2035e1ec45c9e2f6a343ffa4d
2016-06-03 12:33:18 +03:00
Iury Gregory Melo Ferreira
116f15c1bd Change wiki to docs
Change-Id: I276408e718d3d33e25cbf6d9e00ae2c91a00515c
2016-06-02 23:33:22 -03:00
Oleksiy Molchanov
157c6d1d7d Downcase all hostnames for MySQL user/db creation
Mysql puppet providers apply downcase method for hostnames, that
lead us to errors when we use hostnames with upper-case letters.

Change-Id: I0da9e9aac3504d3defdfbb8b916ae7e9ae2339db
Closes-Bug: 1584247
2016-05-27 13:30:39 +00:00
iberezovskiy
6c98032ea5 Fix unit tests for latest puppet version
It's required to have title in 'not contain' test.

Change-Id: I64857817bb0ccae98d80d5eb76bc8c5e10c5f3fc
2016-05-25 08:26:42 +00:00
iberezovskiy
177604c189 Adapt openstacklib tests for a new concat version
Change-Id: I1e159105a52f8126528aae96415dbb1e73cfb111
2016-05-24 17:47:48 +00:00
Jenkins
d110042f5b Merge "Fixed require statements for puppet 4" 2016-05-20 11:05:46 +00:00
Emilien Macchi
d2b14a71fd Add other-requirements.txt for bindep
Bindep is a binary automation tool used in openstack-infra.  With it,
projects can better control the default packages installed into the
OS. Because we are using puppet, we actually don't want any packages
installed by default as to better test our manifests.

Change-Id: If45b2a41aa6fa8d187a9a341d547b16d0b378cbf
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2016-05-19 19:15:38 +02:00
Matthew J Black
06a9784af4 Fixed require statements for puppet 4
This change updates the require statements in the providers
to resolve the issues with the autoloader in puppet. This
issue technically always existed but was masked prior to the
split with puppet server and puppet agent because both used to
share the same loadpath. Documentation on this issue can be
read at https://tickets.puppetlabs.com/browse/PUP-4450.

Change-Id: I72a27fe92a41a5eb845adba6b82252b8aac1c164
2016-05-16 12:51:59 -04:00
Matthew Black
45f8a57770 Added policy-rc.d class.
On debian os family systems the methodology is to
start services when installed. This causes a problem
with keystone sometimes at random in CI jobs.

Change-Id: Id0b38743a9bf536f69d155e1d6e664a5585e5e1d
2016-04-22 10:41:36 -04:00
Sofer Athlan-Guyot
fedb3152c9 Add the possibility to execute without retry.
It may be useful to be able to execute a command without a retry.

A good use case is provider in [1], where the keystone_user resource try
to get an user by fetching it.  It is expected to fail when the user is
absent.  With the current implementation, it will takes 60 seconds for
the provider to give up on the user.

[1] https://review.openstack.org/299301

Closes-Bug: #1563898

Change-Id: I5b334e3ffd26df4ba8584d77a5e41b56e73536c8
2016-04-13 14:06:03 +00:00
Sofer Athlan-Guyot
18c3ffa0cf Fix beaker test with package_provider error.
This commit[1] in puppet-stdlib adds the package_provider.  Since
puppetlabs-stdlib 4.11 in pulled out of the repo[2], it has this patch.
The declaration of the $package_provider variable is no longer possible.
This patch removes it and uses the fact.

Closes-Bug: 1568983

[1] e1a9bf5063
[2] http://logs.openstack.org/90/304190/1/check/gate-puppet-openstacklib-puppet-beaker-rspec-centos-7/9a2160a/console.html#_2016-04-11_15_55_23_678

Change-Id: I61edd49393694f2627cbe07064013dd75eef11a9
2016-04-12 21:30:27 +02:00
Matt Fischer
adb0b1d012 Log the correct command_timeout value
For the no-retry_actions we need to log the correct, longer, timeout.

Change-Id: I035c1eee84f0db5f04e3b63f8bb12a13738d4327
2016-03-31 10:20:13 -06:00
Jenkins
0c7003c37a Merge "Gemfile: rely on puppet-openstack_spec_helper for dependencies" 2016-03-30 22:56:30 +00:00
Matt Fischer
579ad2d370 Adjust timeout for non-retry calls
Give non-retry calls the full timeout seconds to finish and also
don't log that you're going to retry them when you are not.

Change-Id: I51cbe3905b55f035718245b45bfc34536b8ce602
2016-03-30 08:31:55 -06:00
Emilien Macchi
4c9d173197 Gemfile: rely on puppet-openstack_spec_helper for dependencies
Rely on puppet-openstack_spec_helper gemspec file for managing Gems
dependencies.

Change-Id: I819370f2f46a36baa4971c7c1f971405a7bc0770
2016-03-29 21:37:06 -04:00
Jenkins
2a97ab016e Merge "acceptance: do not enable EPEL" 2016-03-28 14:50:22 +00:00
Emilien Macchi
50f1667f31 acceptance: do not enable EPEL
EPEL is causing CI failures randomly, because Fedora servers are quite
often down and do not offer EPEL repos in a stable way.

This patch just disables the usage of EPEL which is not needed to
download RabbitMQ.

Change-Id: Ifc04092b924b867063fc5c50960b1600b3fe379d
2016-03-26 15:01:28 -04:00
Emilien Macchi
d4b48c775a Import release notes from stable/mitaka
stable/mitaka branch does exist now, let's import the notes from it.

Change-Id: I73c23d36eb8a24018bedba676711e75a2c9f2836
2016-03-24 19:04:20 -04:00
Emilien Macchi
104f2d3e58 Release 8.0.0
* Update CHANGELOG with release notes URL.
* Update README with new release number & name.
* Update metadata.json with new tag & dependencies.
* Add release note prelude for Mitaka.
* Update Reno release note to drop prelude.
* Improve release note landing page.

Change-Id: Id57b311e22d813f01d2ae8bc5003610a0544808b
2016-03-23 16:07:47 -04:00
Emilien Macchi
1c2e64fc43 releasenotes: add notes for Mitaka cycle
Change-Id: I535fa5aa2e052027cc4fd52611cf39fb12806de9
2016-03-18 17:00:44 -04:00
Emilien Macchi
5e40aa6285 Add basic structure for ReNo
ReNo [1] is the release management tool in OpenStack.
This patch adds the basic structure to start using it.

* Update .gitignore
* Add a basic note "use-reno"
* Add releasenotes/ dir and basic files
* Add python files: setup.cfg, setup.py, test-requirements.txt and
  tox.ini.

[1] http://docs.openstack.org/developer/reno

Change-Id: I77f0375f185053425906ee52f6ad3bc83c7dd24d
2016-03-14 08:34:17 -04:00
Radoslaw Smigielski
b1ff5ff4be Fix type in os_service_default fact
Fix a type in path for facter >= 2.0.1, path: facts.d/os_services_default.txt
does not exist.

Change-Id: I8879bc6ff498776a488e6a62d5d9de06fefa9cfc
2016-03-09 16:27:12 +01:00
Jenkins
73d9983c08 Merge "Utility to handle IPv6 address brackets." 8.0.0b1 2016-02-11 18:13:16 +00:00
Sofer Athlan-Guyot
af2aefbd74 Utility to handle IPv6 address brackets.
This add the function normalize_ip_for_uri to the parser.  It encloses
into brackets any valid IPv6 address thrown at it.

Change-Id: I093dd5a4e6294e20761cb3d33373652eeadeac36
Closes-bug: 1531960
2016-02-11 13:41:14 +01:00
Lukas Bezdicka
4ccb828137 Remove notes about aviator puppet module from README
The aviator module was abandoned in favor of python-openstackclient

Change-Id: I0c32ad4900b1b4bc561a28bb15e3a26db47dbe7c
2016-02-01 12:05:45 +01:00
Emilien Macchi
8d374c39a2 drop mock dependency
mock is not used anywhere in the module, let's drop it.
This patch will help to hit this bug:
https://launchpad.net/bugs/1492636

Change-Id: I9a131fb79ba112a5dc1b774e31c5b5381d46d2ee
2016-01-22 09:58:49 -05:00
Emilien Macchi
4599ad6675 Use puppet-openstack_spec_helper for Rakefile & spec_helper_acceptance
Use common code in puppet-openstack_spec_helper in Rakefile and
spec_helper_acceptance.

Change-Id: I89ad78d3478c64502e68ff52928560a9b79e4008
2016-01-18 09:11:30 -05:00
Jenkins
3dcf1cb6c5 Merge "Add rspec-puppet-facts to the spec_helper" 2016-01-14 20:18:05 +00:00
Alex Schultz
b04e0dbd6e Add rspec-puppet-facts to the spec_helper
This change adds the rspec-puppet-facts gem to the spec helper so that
we can centralize the management of the base operating systems that we
support. rspec-puppet-facts allows us to simplify our unit tests and
provides a more complete list of Operating Systems and their associated
facts for the unit tests.  With this change we can now loop over and
test CentOS, Debian, Fedora, RedHat, and Ubuntu by simply providing a
list of supported os to rspec-puppet-facts.

Additionally this change includes a central object for managing our
supported os list for rspec-puppet-facts and providing our default facts
like os_service_default. This central object should replace the usage of
@default_facts within the unit tests for each module.

Change-Id: Id2b35992bfe360a12412652270c738423f857906
2016-01-14 20:09:51 +03:00
Martin Mágr
3e43f5ddcf openstackconfig idempotency fix
- fixed idempotency issues with single string values
- fixed deletion of multiple values

This patch is required for I95cf32c3211bc4498eaa68e6e748a27dfd9af0fa to pass
acceptance tests

Change-Id: I619de3038cd2690bebe47cd601c085692506ac3d
2016-01-08 13:27:32 +01:00
Martin Mágr
b3f0b0a810 Fix handling of ensure_absent_val
When :array_matching => :all is used for value, the values comes
in form of array even when they are passed as single string and
so <SERVICE DEFAULT> mechanism does not currently work without hack
on each inherited resource.

This is required for I95cf32c3211bc4498eaa68e6e748a27dfd9af0fa to pass
acceptance tests.

Change-Id: Ibbc8a376496b8120d7c1d87f7a9005024ae14984
2016-01-07 11:50:49 +01:00
Michael Polenchuk
bad1c6514a Update os_database_connection with extra param
Add support for providing additional parameters to be used when
constructing the database uri. This change adds an 'extra' parameter
which is a hash that will be joined together when constructing the
database uri. It should be noted that the charset option, which can be
provided as a standalone option, will override charset when passed in
the 'extra' parameter. This is to maintain backwards compatibility.

Usage Example:
  os_database_connection({
    ...
    extra => { 'charset' => 'utf-8', 'read_timeout' => 60 }
  })

Change-Id: I7ef078b76ac6cd7bea42a0ac92b383cefd47167a
Co-Authored-By: Alex Schultz <aschultz@mirantis.com>
2015-12-28 15:05:33 -07:00
Jenkins
6cbf40bdc1 Merge "Add retries to the openstack command" 2015-12-23 10:07:18 +00:00