Skip to content

Conversation

@s-t-e-v-e-n-k
Copy link
Contributor

Designate has another service 'producer', which is used to run
long-running periodic tasks. Install the package and start the service
on nodes with the server role.

Copy link
Contributor

@dirkmueller dirkmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Producer is not active/active. Either use a pacemaker resource Singleton or a dlm. Please consult https://docs.openstack.org/designate/latest/admin/ha.html for further details.

@s-t-e-v-e-n-k
Copy link
Contributor Author

This will require two packages to be added to Cloud (or at least I can't find them there), which are python2-pymemcache and python2-future.

Designate has another service 'producer', which is used to run
long-running periodic tasks. Install the package and start the service
on one of the server nodes, monitored by pacemaker.
end
service_transaction_objects << "pacemaker_primitive[#{designate_producer_primitive}]"

designate_producer_loc = openstack_pacemaker_controller_only_location_for designate_producer_primitive
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [102/100] (https://github.com/SUSE/style-guides/blob/master/Ruby.md#metricslinelength)

@s-t-e-v-e-n-k s-t-e-v-e-n-k removed the wip label Aug 20, 2019
# Recipe:: api
#

package "openstack-designate-producer"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't that done by the designate_service resource already?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see, this is to install the package so that the singleton service (which is done after the sync mark?) will always be able to start. a comment would be helpful (of a thing like "if ha_enabled", needs to be moved a few lines down then)

Copy link
Contributor

@dirkmueller dirkmueller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks okay to me. the only concern I have is that when a customer switches from non-HA to HA, we don't revert the systemctl enable that is done on the service , and then we have it potentially running twice. we maybe want to drop in a service disable into the ha codepath just to be sure.

Copy link
Contributor

@nicolasbock nicolasbock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@nicolasbock nicolasbock merged commit 1e127bf into crowbar:master Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants