Updating the Contrail Multicloud Cluster
Perform the following procedure to update the Contrail multicloud cluster with adding another gateway to an existing Virtual Private Cloud (VPC).
Adding Another Gateway to an Existing VPC
To add another gateway to an existing Virtual Private Cloud (VPC):
Run the following request payload to create the gateway node object.
The UUIDs listed in
cloud_security_group_refs
,tag_refs
, andcloud_private_subnet_refs
were created in the topic “Deploy Public Cloud Infrastructure” in Deploying Contrail Multicloud using REST API.Example:
create_new__public_gw_node.yml
resources: - data: uuid: 39845468-903b-4d69-b6d3-dec647ec223e name: public_gateway_node_B parent_type: global-system-config fq_name: - default-global-system-config - public_gateway_node_B perms2: owner: admin hostname: gateway_B interface_name: eth1 type: private cloud_info: availability_zone: a machine_id: ami-18726478 instance_type: t2.xlarge roles: - gateway cloud_private_subnet_refs: - uuid: 4bd887b1-3f65-59c1-bc2f-dfbaeac5798d credential_refs: - uuid: 9d0fffff-3fd8-439c-bdb2-ff5800497579 cloud_security_group_refs: - uuid: 4bd887b1-3f65-59c1-bc2f-dfbaeac57123 tag_refs: - uuid: efd769a8-2e6c-11e9-b210-d663bd873d93 kind: node operation: CREATE
Create the
contrail-multicloud-gw-node
object.The UUID listed in
node_refs
was created in Step 1.Example:
create_new_mcgw_node.yml
resources: - data: name: public_contrail_multicloud_gw_node_B node_refs: - uuid: 39845468-903b-4d69-b6d3-dec647ec223e protocols_mode: - ssl_server - ipsec_server - ipsec_client - ssl_client parent_type: contrail-cluster parent_uuid: a5063dde-2681-11e9-8021-0050568a3bf0 kind: contrail_multicloud_gw_node operation: CREATE
Update the cloud object with
provisioning_state
as NOSTATE. This cloud object was created in the topic “Deploy Public Cloud Infrastructure” in Deploying Contrail Multicloud using REST API.resources: - data: provisioning_state: NOSTATE uuid: dfb40e0d-c9f4-47cd-bd5c-1efdd28fd4fc kind: cloud Operation: UPDATE
Update cluster object with
provisioning_state
as NOSTATE andprovisioning_action
as UPDATE_CLOUD.resources: - data: uuid: a5063dde-2681-11e9-8021-0050568a3bf0 provisioning_state: NOSTATE provisioning_action: UPDATE_CLOUD kind: contrail_cluster operation: UPDATE