Commit Graph

6 Commits

Author SHA1 Message Date
Damian Dabrowski 9709e102df Wait for magnum endpoint before creating cluster templates
Magnum playbook flushes handlers(that cause service restart) and then
it starts creating magnum resources right away.

In some cases(for ex. magnum tls upgrade job), magnum haproxy endpoint
is down before playbook flushes handlers. It means that after flushing
them, haproxy healthchecks need some time to rise magnum endpoint.
In this case, there is a high chance that playbook will try to connect
to magnum endpoint before haproxy marks it as alive.

To solve this issue, this patch implements an extra task to ensure
that magnum endpoint is reachable before playbook tries to reach it.

This patch also fixing linters issue in an example playbook to resolve
circular dependency.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-plugins/+/896017
Change-Id: I36cf9f4b71daa107e27e966ebe25816c7bffa42a
2023-11-08 08:48:08 +00:00
Zuul db51a18ef2 Merge "Trivial: Fix the pep8 warning" 2018-08-17 05:47:51 +00:00
wangqi 6ed8767cd7 Trivial: Fix the pep8 warning
The yaml should start with "---"

Change-Id: I55a1dfd56348d42c1a9a9ffc3060efbef16fbd6a
2018-08-06 07:35:59 +00:00
Jesse Pretorius 2bf14e2122 Remove unnecessary MQ vhost/user creation tasks/vars
There is no record for why we implement the MQ vhost/user creation
outside of the role in the playbook, when we could do it inside the
role.

Implementing it inside the role allows us to reduce the quantity of
group_vars duplicated from the role, and allows us to better document
the required variables in the role. The delegation can still be done
as it is done in the playbook too.

In this patch we remove the test vars and tasks which were duplicated
as they are no longer required.

Change-Id: Ibc217400d16ce06f9943d69e2305e46762ec2662
2018-07-30 12:02:24 +00:00
Andy Smith e587d74d29 Update to use oslo.messaging service for RPC and Notify
This introduces oslo.messaging variables that define the RPC and
Notify transports for the OpenStack services. These parameters replace
the rabbitmq values and aure used to generate the messaging
transport_url for the service. The association of the messaging
backend server to the oslo.messaging services will then be transparent
to the magnum service.

This patch:
* Add oslo.messaging variables for RPC and Notify to defaults
* Add transport_url generation to conf template
* Add oslo.messaging to tests inventory
* Update tests
* Update examples
* Add release note

Change-Id: Ib44af3b1d153742975351a321d65c8812a994370
2018-07-20 11:53:00 +00:00
Robb Romans faf032a896 [DOCS] Move example playbook to separate file
Change-Id: I104ee25bd12f25eb3c88f1e1cb6860058e2154e4
2016-08-11 20:59:56 -05:00