Skip to content

Instantly share code, notes, and snippets.

@virtualhops
virtualhops / heat_contrail_service_chain.env
Last active January 30, 2018 21:52
Heat environment file to create a v2 service chain in Contrail (thanks Ganesha, Nicolas, Bernhard). It is verified to work in Contrail version 3.0.2.
parameters:
# VN config
management_network: 'management_vn'
left_vn: 'left_vn'
right_vn: 'right_vn'
left_vn_fqdn: 'default-domain:admin:left_vn'
right_vn_fqdn: 'default-domain:admin:right_vn'
# VM config
flavor: 'm1.tiny'
image: 'cirros'
@virtualhops
virtualhops / heat_contrail_service_chain.yaml
Last active January 30, 2018 21:52
Heat template to create a v2 Service Chain in Contrail (thanks Ganesha, Nicolas, Bernhard). It is verified to work in Contrail version 3.0.2.
heat_template_version: 2015-04-30
parameters:
management_network:
type: string
description: Name of management network to be created
left_vn:
type: string
description: Name of left network to be created
right_vn:
Contrail Upgrade procedure – Minimal downtime
WARNING: This procedure only works for upgrades between Contrail versions PRIOR TO 3.0. Starting with 3.0, Cassandra version changes and this involves more work.
NOTE: This procedure is *UNSUPPORTED* because fab adds much more error-checking logic than what you can see here. Use this procedure at your own risk.
This document is inspired on another one ( https://gist.github.com/dsundarraj/9dde07f28208737c7729 ), but it breaks the fab steps into commands run on each of the nodes separately.
Upgrade procedure to minimize downtime in the production network. Upgrade controller and compute separately. The procedure is based on fab upgrade_contrail.