Skip to content

Instantly share code, notes, and snippets.

@the2hill
Created December 13, 2015 20:45
Show Gist options
  • Save the2hill/9a6bec20346e4ae5812d to your computer and use it in GitHub Desktop.
Save the2hill/9a6bec20346e4ae5812d to your computer and use it in GitHub Desktop.
# Gather networking data and remove old amphorae
create_member_tf = self._taskflow_load(
self._member_flows.get_pre_create_container_member_flow(),
store=store)
with tf_logging.DynamicLoggingListener(create_member_tf, log=LOG):
create_member_tf.run()
# Create the new amphorae configuration for the load balancer
create_lb_tf = self._taskflow_load(
self._lb_flows.get_create_load_balancer_flow(
topology=CONF.controller_worker.loadbalancer_topology),
store=store)
with tf_logging.DynamicLoggingListener(create_lb_tf, log=LOG):
create_lb_tf.run()
# Update amphorae networking data and finalizie creation
post_lb_amp_assoc = self._taskflow_load(
self._lb_flows.get_post_lb_amp_association_container_flow(
prefix='post-amphora-association',
topology=CONF.controller_worker.loadbalancer_topology),
store=store)
with tf_logging.DynamicLoggingListener(post_lb_amp_assoc,
log=LOG):
post_lb_amp_assoc.run()
# Update remaining data for the member creation
update_listeners_tf = self._taskflow_load(
self._listener_flows
.get_update_listeners_from_load_balancer_flow())
with tf_logging.DynamicLoggingListener(update_listeners_tf,
log=LOG):
update_listeners_tf.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment