375 Commits

Author SHA1 Message Date
Juan Antonio Osorio Robles
83653d442e Add tls options to mysql user creation
This enables us to set several TLS requirements for the users created
by the host_access resource.

Change-Id: If550f184f85f8fdbc197fc9f930d4446de67090a
2016-12-16 07:58:13 +02:00
Joe Talerico
e6b658bd00 Update os_workers to have other options
Adding additional options for os_workers.rb:

        os_workers_small
        os_workers_large

os_workers will provide response times close to what
$::processorcount had (with two sockets machines).

os_workers_small will be the existing calculation.

os_workers_large can be used where services are distributed across
multiple machines and high worker count is not a concern.

Closes-bug: #1650424

Change-Id: I5dce760044d49ef9e3c88736c73cc267fd039ae7
2016-12-15 20:14:38 -05:00
Xing Zhou
ed9c5cf626 Add customization for wsgi process display name
when ceilometer api is deployed in httpd, however
 the process name is like '/usr/sbin/httpd -DFOREGROUND',
it is ambiguous and make monitoring more difficult.
the aodh, gnocchi module are also like that.
so we should set an appropriate name for wsgi process.

Change-Id: I5e8c9be062a88e9ed6442e6cbce6573fba385030
Related-Bug: #1626550
2016-12-15 15:25:11 +08:00
Alex Schultz
8d37c059d2 Fix os_transport_url with single hosts array
If an array with a single host is passed into the hosts param, the
function was erroring because the host was getting converted to a string
when it was checking for bracketing for ipv6. This change checks the
type and fixes the case where a single host is being passed so it
continues to function.

Change-Id: I91b9959a6f71b4e6885e55a568116cc28cf16ddd
Closes-Bug: #1650042
2016-12-14 15:21:03 -07:00
Alex Schultz
d91a4c7b36 Add ability to skip mysql user/grants
Previously if you wanted to use the openstack::db::mysql for to create a
database and use the same user for multiple databases, the catalog would
fail due to a duplicate mysql_user definition. This change adds the
ability to disable the user creation as well as the grant if the user
does not need it.

Change-Id: Id04a622cc900254fe60bc257a9e42d16c676bf40
Related-Bug: 1649341
10.1.0
2016-12-12 14:46:07 -07:00
Alex Schultz
efe3cd52d7 Prepare 10.1.0 release
The second release for Ocata.

Change-Id: If7cda2b81d23aeb88a8db6e5e67a025c86ad7ce2
2016-12-09 09:35:19 -07:00
Flavio Percoco
2a2a096ca1 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/421dedda55d2aaa17516a9cb359fa804

Change-Id: Id037361229dc5fb205bca679a891d77436fea4c2
2016-11-25 17:22:15 +01:00
Jenkins
5cc12dd0a2 Merge "os_transport_url parser function" 2016-11-18 05:21:25 +00:00
Jenkins
afd018600a Merge "Prepare 10.0.0 release" 10.0.0 2016-11-17 19:37:27 +00:00
Juan Antonio Osorio Robles
3388c98ab0 Add wsgi_chunked_request option for apache vhost resource
This sets the WSGIChunkedRequest setting in the vhost, which is
something that services like glance need when running over httpd.

Change-Id: I1c8816e9e5a9a38a3a86f3c0c5016df18f09ea62
2016-11-17 10:42:33 +02:00
Alex Schultz
172e149753 Prepare 10.0.0 release
First release of Ocata.

Change-Id: Ia8dec96473c86c572201061f70cfc4fb4559e730
2016-11-14 16:40:45 -07:00
Alex Schultz
7ef2f7b0d7 os_transport_url parser function
This change adds a os_transport_url function that can be used to
generate correct URIs for the transport_url setting used by
oslo.messaging.

Change-Id: If83c0f0e61a08061334536399a42767a305966b7
2016-11-10 16:17:30 -07:00
Juan Antonio Osorio Robles
59ee7b0930 Add support for allow_encoded_slashes for apache
This ends up as the AllowEncodedSlashes option in the vhost.

Change-Id: I9a9246522810de546a7c460ab1133d6bf9081a15
2016-11-10 15:34:19 +02:00
Jenkins
53a398e330 Merge "Fix puppet version for requirements in metadata" 2016-11-03 23:53:46 +00:00
ZhongShengping
4a0eafdf06 Fix puppet version for requirements in metadata
http://logs.openstack.org/08/393008/1/check/gate-puppet-openstack-integration-4-scenario002-tempest-ubuntu-xenial/283f87f/logs/puppet-version.txt.gz

Change-Id: I99f00b590e448382d06c991e59e14193b4154130
2016-11-03 12:03:05 +08:00
Arnoud de Jonge
3670d9255e Added interface parameter for auth
I want to be able to use the internal API endpoints from Puppet.  This is done
by setting $OS_INTERFACE to internal for use with the openstack CLI. This
change will do this by also reading OS_INTERFACE from the environment or
/root/openrc.

Change-Id: Id826836ccfe8f61780a6201ef2851068d75391ab
2016-11-02 13:44:14 +01:00
Alex Schultz
525d77195e Improve tests with rspec-puppet-facts
This change updates the tests to use rspec-puppet-facts when doing
different OS testing. Additionally as part of this change, there are
improvements to the openstacklib::policycrd testing which uncovered
issues with the verify_contents catalog test. The verify_contents calls
have been replaced with heredocs to better test when multiple services
are excluded.

Change-Id: I86bae2b16026e15b6e4445f3749419b8802bc94d
2016-10-26 17:49:59 -06:00
Maksym Yatsenko
a5f39c6233 Change worker defaults to ::os_workers
This patch changes the default worker count from ::processorcount to the
new ::os_workers fact. ::os_workers is based on the number of processors
(currently cpu/4) but is capped at a maximum of 8 worker processors.
This is a much more reasonable default in general and prevents excessive
resource consumption on systems with a large number of CPUs.

Change-Id: I458791aa8027cffeeec49698b302cb96ae5af2e2
2016-10-10 19:34:03 +03:00
Andreas Jaeger
2d76effaba 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: I4e38d2da134afa1e2bbbe3b747deec2b3adb6413
2016-10-06 20:47:14 +02:00
Jenkins
693ec57b79 Merge "Changed the home-page to point Openstack Puppet Homepage" 2016-10-05 04:25:55 +00:00
Jenkins
55e63c987a Merge "Move rspec-puppet-facts to spec helper" 2016-10-04 16:15:35 +00:00
Sharat Sharma
4d9d27c0dc Changed the home-page to point Openstack Puppet Homepage
Change-Id: I08f0fafb738759051b4d8309d1c816d02195d84a
Closes-Bug: #1629876
2016-10-04 11:05:27 +05:30
Clayton O'Neill
f705fd6f4d Add region support to credentials
This fixes the credentials classes to properly accept region as a
property to manage.  This allows OS_REGION_NAME to be set properly if
the child class passes it in.

Change-Id: I3345dac8bebd68f93290c1d45aa9a4d80bf3fb34
Partial-Bug: #1517220
2016-10-03 20:49:31 +00:00
Alex Schultz
e87618d9e5 Move rspec-puppet-facts to spec helper
This change updates the module to use the rspec-puppet-facts as defined
in the puppet-openstack_spec_helper.

Change-Id: Ida010fef458cbf86346928360971d87efba6b5d1
2016-09-30 13:25:05 -06:00
Jenkins
c6644f3162 Merge "Add a refreshonly parameter to service_validation" 2016-09-27 23:43:01 +00:00
Doug Hellmann
0a70c536be Update reno for stable/newton
Change-Id: Ia2131ea65fcc49bd7d951c5bc17bc0cbc3e047f5
2016-09-27 10:59:31 -06:00
David Moreau-Simard
48a89dfeea Add a refreshonly parameter to service_validation
This will allow to run the service_validation on demand when required
from a notification, for example.

Change-Id: I18ea45f39cd7f4930de4916d658653d22d8530b3
2016-09-27 10:45:42 -04:00
Jenkins
adf3ce3d1d Merge "Remove unnecesary spaces in log messages." 9.4.0 2016-09-27 06:02:09 +00:00
Jenkins
dc79250db1 Merge "Puppet OpenStack Newton RC2" 2016-09-27 00:46:57 +00:00
Alex Schultz
81bf321c2b Puppet OpenStack Newton RC2
9.4.0 will be our RC2.

Change-Id: Idb2c1c0aeb63814bab4c86a9f37d3104f8514339
2016-09-26 07:32:56 -06:00
Carlos Camacho
b51b2881dc Remove unnecesary spaces in log messages.
Spaces added by mistake in some log messages.

Change-Id: Iaf5b6f3d402a465957a9610619988d23da080153
2016-09-26 14:31:47 +02:00
Alex Schultz
01664cf5fe Fix typo in os_worker
Should be Facter not Factor.

Change-Id: I86557e4e49e5e90ff4158094e25b9231477b762c
2016-09-25 18:05:45 -06:00
Jenkins
ef585be926 Merge "Fix .gitignore for /openstack/" 2016-09-24 02:01:01 +00:00
Alex Schultz
1b6c0a7272 Create os_workers fact
This change adds a new fact that can be used as the default values for
any worker configuration. When used this fact will reduce the number of
default workers configured for services. Previously we were using
$::processorcount which could lead to excessive memory consumption or
connection limits being execeeded when services were deployed on
baremetal with large number of processors. The os_workers fact uses the
larger of two following values, '2' or '# processors / 4' but will not
exceed '8'.

Change-Id: Ia588817fde9203a134bc9eaad9a5bd5453d7639a
2016-09-23 10:13:46 -06:00
Matt Fischer
fe1e3e3ea7 Fix .gitignore for /openstack/
We should only ignore openstack from the root directory because
otherwise new files in the openstack/ subfolders under lib are not
tracked.

Change-Id: Ife454df6ae8d45826608bea59c3df2eb04e43016
Closes-Bug: #1541896
2016-09-21 20:02:42 -06:00
Jenkins
e6e3ee03d0 Merge "Add support for setting a timeout for service_validation" 2016-09-20 20:56:10 +00:00
Jenkins
84a7bf6212 Merge "normalize_ip_for_uri: allow to give an array of IP addresses" 2016-09-20 14:55:29 +00:00
Emilien Macchi
435c50fe88 normalize_ip_for_uri: allow to give an array of IP addresses
Allow to give an array of IP addresses to normalize_ip_for_url function.
Each IP in the list will be normalized like it would be for a string.

Change-Id: I8d361ce9cfcfe6a3f8592b2b7991971a3c748c75
Co-Authored-By: Athlan-Guyot sofer <sathlang@redhat.com>
2016-09-20 12:55:11 +02:00
David Moreau-Simard
ab226968e0 Add support for setting a timeout for service_validation
The default exec timeout in puppet is 300 seconds, this can be a
very long while on services that do not return immediately.
With default values, a command that never returns we're looking at
10*300 seconds (or 50 minutes).
Let's default to something more reasonable, 60 seconds, and also
make it configurable.

Change-Id: I53bd4935fbbb3a86ac1ad522a0f3d8f017151dd0
2016-09-19 12:17:19 -04:00
Emilien Macchi
081c6f91e7 Prepare 9.3.0 (newton rc1)
Preparing Newton rc1 release.

Change-Id: I4fc68427eff455ebd574bc788fb35e6236855ae6
9.3.0
2016-09-16 11:41:36 -04:00
Carlos Camacho
b12479ba5b Fix puppet-lint before upgrading gem
Removing puppet-lint warnings
in favor of upgrading to latest gem

2016-09-13 21:12:33.947117 | manifests/db/postgresql.pp:37:WARNING: line has more than 140 characters

Change-Id: If40b8e5874c791e0a94bd634c09768c77f0c2d93
2016-09-14 13:59:31 +02:00
Emilien Macchi
7c889eccbe Prepare 9.2.0 (newton b3)
Preparing Newton b3 release.

Change-Id: I1d99cf92c4e10185cdc92325c64726d2d125d51a
9.2.0
2016-08-26 09:56:06 -04:00
Jenkins
48635e5c01 Merge "Add missing namevar method to openstack_config provider" 2016-08-13 05:02:55 +00:00
Andreas Jaeger
41045131b7 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: I905a4339d881fb9910329a6fd2b82be7eb40a578
2016-08-12 21:10:31 +02:00
Brent Eagles
72150f2202 Add missing namevar method to openstack_config provider
openstack_config contains a method 'self.instances' that is required for
purging unmanaged resources that references a static namevar method that
is not defined in openstack_config and may not be provided by base
classes. The 'namevar' method doesn't require any information from the
derived class so a default implementation in the base provider type
suffices.

Closes-Bug: #1612009

Change-Id: If27152863b9df5a28bf45e23ca989019666a958c
2016-08-12 02:00:08 +00:00
Sofer Athlan-Guyot
f1fe244d13 Add doc for openstack_config provider.
This explain why there are two of them.

Change-Id: I7fa5cc9c7f9f7e3bd357fa40df92dfbbfea516a6
2016-08-11 15:57:58 +02:00
Sofer Athlan-Guyot
2075930b90 Add a way for provider to transform value in config.
For instance this would enable this:

    neutron_l3_agent_config {
        'DEFAULT/router_id': value => $router_name, transform_to => 'uuid';
    }

The neutron_l3_agent_config would only have to implement this:

    def to_uuid(name)
      # code to get the uuid
    end

    def from_uuid(uuid)
      # code to return the name
    end

Change-Id: I3b7c17590b27cd3a22c5458342d049969ade2281
Co-Authored-By: Drew Fisher <drew.fisher@oracle.com>
2016-08-04 12:53:50 -07:00
John Trowbridge
c628427575 Increase command_timeout for openstackclient commands
We recently patched the openstackclient code to increase the number
of retries when running commands[1], but I think what we really wanted
was to increase the amount of time to wait on each retry.

The original approach did help somewhat, but it is doing so by just
racing more times. Instead, it would be better to win the race more
often.

This is mostly a CI or developer environment issue where we are
deploying with the minimal amount of computing resources to get
a functioning cloud.

[1] https://git.openstack.org/cgit/openstack/puppet-openstacklib/commit/?id=489099632446b1903986549e5feb80b509f9b77d

Change-Id: I0707165a9e8054c1b3e0ad299604356cecc9f99f
2016-07-25 12:16:29 -04:00
Emilien Macchi
f37a0a339a service validation: log output on failures
When validating a service, it's useful to have logs when exec output
fails.
This patch adds this feature.

Change-Id: I43c9eff8516ea562bf9bde8d5651ddceeb496163
2016-07-14 18:16:49 -04:00
Jenkins
d15ec4ffc7 Merge "Add optional params for idempotency in service_validation" 2016-07-14 22:12:34 +00:00