Commit Graph

23 Commits

Author SHA1 Message Date
Ghanshyam Mann e06f50cb06 Retire Tripleo: remove repo content
TripleO project is retiring
- https://review.opendev.org/c/openstack/governance/+/905145

this commit remove the content of this project repo

Change-Id: I73df79a8698625815ea4e3099904da448a49887e
2024-02-24 11:42:30 -08:00
Cédric Jeanneret 0592be3ad6 Allow disabling puppet tasks to configure apache/vhost
The new parameter allows to toggle the apache configuration management.
This will be useful once we get [1] so that we can migrate services to
the new configuration management one by one.

[1] https://review.opendev.org/c/openstack/tripleo-ansible/+/853481

Change-Id: Id1ddbae4946e5c428d0f21ef89e20a11665a370e
2022-09-05 15:14:01 +02:00
Takashi Kajinami 28b340c09b Octavia: Replace hiera by lookup
The hiera function is deprecated and does not work with the latest
hieradata version 5. It should be replaced by the new lookup
function[1].

[1] https://puppet.com/docs/puppet/7/hiera_automatic.html

With the lookup function, we can define value type and merge behavior,
but these are kept default at this moment to limit scope of this change
to just simple replacement. Adding value type might be useful to make
sure the value is in expected type (especially when a boolean value is
expected), but we will revisit that later.

example:
lookup(<NAME>, [<VALUE TYPE>], [<MERGE BEHAVIOR>], [<DEFAULT VALUE>])

Change-Id: Id64aea3cc7986446087ad272bec74be01ef20362
2022-05-13 07:20:28 +00:00
Takashi Kajinami 46024cd5bf haproxy: Use healthcheck middleware to monitor service availability
This change makes that haproxy monitors service availability by sending
HTTP request which is responsed by healthcheck middleware, to ensure
that backend api can respond to requests.

Change-Id: Idbfe6a8e110ec24d9fe64e43d82772bb05fa00ba
2021-06-03 00:58:07 +09:00
Zuul e27d092742 Merge "Add Octavia OVN Provider configuration (2 of 2)" 2020-04-10 15:24:46 +00:00
Flavio Fernandes a485965a23 Add Octavia OVN Provider configuration (2 of 2)
This is part 2 of 2, where ovn provider info located in
tripleo::profile::base::octavia::api will move
to newly created octavia::provider::ovn.
But that has to be split into 2 parts to avoid breaking the
CI until the THT+pupple-tripleo changes merges [1].

[1]: https://review.opendev.org/#/q/topic:bug/1861886+(status:open+OR+status:merged)

This patch enhances Octavia's OVN driver config, so it can connect to
OVN_Northbound DB using TLS.

Depends-On: https://review.opendev.org/#/c/711333/
Depends-On: https://review.opendev.org/#/c/711557/
Depends-On: https://review.opendev.org/#/c/705728/
Depends-On: https://review.opendev.org/#/c/707695/

Closes-Bug: #1861886

Change-Id: If4a6f25015374883050c48b7705e8207906118f4
2020-04-09 09:41:51 -04:00
Alex Schultz a566d6b9b8 Add check for bootstrap_node for downcase
Downcase in puppet 6.14 throws an error if the input to it is Undef. We
can avoid this by checking for a value before trying to downcase.

See context https://review.rdoproject.org/r/#/c/26297/

Change-Id: Ib2e97060523a4198a14949a15c9171b56928699c
2020-04-07 14:51:41 -06:00
Tobias Urdin 1523a4b804 Convert all class usage to relative names
Change-Id: Ib2ed745b682cf12f9469a5a64451adcabec400af
2019-12-08 23:23:25 +01:00
Takashi Kajinami 1b1de7c9dd Use memcached for token caching in octavia authtoken
Use memcached to cache token in octavia authtoken, as in-process
cache, which we currently use, was already deprecated[1].

[1] Ied2b88c8cefe5655a88d0c2f334de04e588fa75a

Change-Id: I09a73ae54e7b4b04396c3b31063833eca8bf5352
2019-09-10 14:30:28 +09:00
Rabi Mishra 517eea7481 Remove ovn specific logic for octavia
We probably should not have the ovn neutron driver specific
logic here. This deprecates and ignores 'neutron_driver'
parameter.

Change-Id: I9ba293d6a245ee875bf273d116baf64e44d0a554
Closes-Bug: #1839436
2019-08-09 18:00:40 +05:30
Gregory Thiemonge 77ffbe059b Fix amphora provider driver description
Fixed provider driver description to match octavia and
octavia-tempest-plugin descriptions.

See: https://opendev.org/openstack/octavia/src/branch/master/octavia/common/\
config.py\#L89

Closes-Bug: #1830702
Change-Id: I04ad7b59c1cdbef61fcd6188c09525da989020c6
2019-06-26 11:21:32 +02:00
Carlos Goncalves c6858e7a1c Fix amphora provider driver description
Closes-Bug: #1830702
Change-Id: Id2c61fd10df8c5427416fd6e6914e95502c3a714
2019-05-28 11:13:26 +02:00
Carlos Goncalves 1ae89eb002 Include 'octavia' driver on ML2/OVN deployments
By default, both the 'amphora' and 'octavia' provider drivers are
enabled in Octavia API. A previous change in puppet-tripleo included the
'ovn' driver when on Neutron ML2/OVN deployments but in doing so omitted
the 'octavia' driver. This patch ensures the 'octavia' driver remains
enabled as is needed for Octavia Tempest tests.

Change-Id: I5b29a51d7edace30e6357a2af95d1af4596ddfd3
2019-05-20 12:16:26 +02:00
Rabi Mishra d88db3ad71 Add support to set ovs_nb_connection
When using ovn provider unless set, it would try to
connect to 127.0.0.1.

Change-Id: If8eb685dd21791b65845afd44fb483592b8bcc0c
Depends-On: https://review.openstack.org/653673
Closes-Bug: #1825146
2019-04-18 13:47:49 +05:30
Rabi Mishra 2a1167dd7b Set octavia provider_drivers config option correctly
Change-Id: I4cb95de0cd963899d2db7e08704ed734e87751d7
Partial-Bug: #1825146
2019-04-17 21:33:38 +05:30
Brent Eagles 5277954a76 Run octavia-api under apache
octavia-api uses wsgiref simpleserver which does not work well with
haproxy so we need to move to running it under apache.

Change-Id: I00f537ce27b1d4642738f0eb90d7ed1f2c21e729
2019-03-15 09:59:24 -02:30
Kamil Sambor 97c46ca768 Add OVN to enabled provider drivers in Octavia
Add OVN driver to Octavia provider driver,
when OVN is in neutron mechanism driver

Change-Id: I578360029d044255fa85b0fdf29ea1ea0e7a47e4
2019-02-21 09:50:56 +01:00
Carlos Goncalves 43ffaed334 Include octavia::controller
Commits https://review.openstack.org/#/c/612395/ and
https://review.openstack.org/#/c/619013/ deprecated some
parameters in class octavia::worker and moved them to the new class
octavia::controller. The latter commit also removed the include of the
controller class so because of that we have to include it in the Octavia
services manifest files in puppet-tripleo.

Partial-Bug: #1805345

Change-Id: I0256e125de367615c21343683ed5311521d8337c
2018-12-04 18:44:48 +01:00
Steven Hardy 9cde9139c4 Replace bootstrap_nodeid with SERVICE_short_bootstrap_node_name
This solves the problem that bootstrap_nodeid, which is set to the
first node in each role via t-h-t, can match potentially more than
one node - e.g in the event that a service is deployed such that it
spans more than one role.

The SERVICE_short_bootstrap_node_name is automatically generated
based on the composable service template service_name, and this
considers all roles where the service is enabled, e.g it should
only evaluate true once regardles off the roles where the service
is enabled.

Change-Id: I48ec4549552910f3cb8db960b0ff10a6c61b4bb9
Partial-Bug: #1792613
2018-10-12 10:14:48 +00:00
Carlos Goncalves de28e026cd Enable TLS in the internal network for Octavia API
Partial-Bug: #1789303
Co-Authored-By: Kellen Gattis <kgattis@redhat.com>
Change-Id: I38a71f28667ad0c50ebabd24cfbd148d52fe398b
2018-10-01 14:17:12 +00:00
Brent Eagles 0c20211e86 Remove erroneous octavia code related to sync_db
The octavia api manifest includes a conditional that appears to be
related to database synchronization that can be removed as the this is
handled by passing the value of sync_db to the octavia puppet module.

Change-Id: I1426b9066c7af76492c4ab75e421c4db9f8cc65f
2017-09-11 15:21:32 -02:30
Steve Baker 94f13e6608 Ensure hiera step value is an integer
The step is typically set with the hieradata setting an integer value:

  {"step": 1}

However it would be useful for the value to be a string so that
substitutions are possible, for example:

  {"step": "%{::step}"}

This change ensures the step parameter defaults to an integer by
calling Integer(hiera('step'))

This change was made by manually removing the undef defaults from
fluentd.pp, uchiwa.pp, and sensu.pp then bulk updating with:

    find ./ -type f -print0 |xargs -0 sed -i "s/= hiera('step')/= Integer(hiera('step'))/"

Change-Id: I8a47ca53a7dea8391103abcb8960a97036a6f5b3
2017-06-14 14:31:52 +12:00
beagles 193e45b84f Add base profile for Octavia services
Adds initial base profile and profile for API service.

Partially-implements: blueprint octavia-service-integration
Change-Id: I77783029797be4fb488c6e743c51d228eba9c474
2017-01-19 13:05:27 -03:30