Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
}
},
"executions": [],
"scenario": "replica"
"scenario": "replica",
"clustered": false
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"origin_minion_pool_id": null,
"destination_minion_pool_id": null,
"instance_osmorphing_minion_pool_mappings": {},
"clustered": false,
"executions": [
{
"created_at": "2019-07-11T10:06:47.000000",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"instances": {}
},
"id": "0460aa4d-6b16-4c98-bd56-27ee186e4a22",
"scenario": "replica"
"scenario": "replica",
"clustered": false
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@
"ubuntu-xenial": "echo 'anything you need'"
}
},
"scenario": "replica"
"scenario": "replica",
"clustered": false
}
}
}
8 changes: 8 additions & 0 deletions coriolis/api-refs/source/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ connection_info_schema:
in: body
type: object
required: false
clustered:
description: |
Present only in API responses (read-only). ``true`` when the transfer
includes more than one instance, ``false`` for a single instance. Not
stored in the database; derived from ``instances``.
in: body
type: boolean
required: false
deployment_cancel:
description: |
Object containing information about the type of deployment cancellation.
Expand Down
3 changes: 3 additions & 0 deletions coriolis/api-refs/source/transfer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Response
- instance_osmorphing_minion_pool_mappings : instance_osmorphing_minion_pool_mappings
- user_scripts : user_scripts
- scenario: scenario_type
- clustered : clustered

**Example of Transfer List Response**

Expand Down Expand Up @@ -111,6 +112,7 @@ Response
- instance_osmorphing_minion_pool_mappings : instance_osmorphing_minion_pool_mappings
- user_scripts : user_scripts
- scenario: scenario_type
- clustered : clustered

**Example of Transfer Show Response**

Expand Down Expand Up @@ -183,6 +185,7 @@ Response
- instance_osmorphing_minion_pool_mappings : instance_osmorphing_minion_pool_mappings
- user_scripts : user_scripts
- scenario: scenario_type
- clustered : clustered

**Example of Transfer Create Response**

Expand Down
6 changes: 4 additions & 2 deletions coriolis/conductor/rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def create_instances_transfer(self, ctxt,
source_environment, destination_environment,
instances, network_map, storage_mappings,
notes=None, user_scripts=None,
clone_disks=True, skip_os_morphing=False):
clone_disks=True, skip_os_morphing=False,
clustered=None):
return self._call(
ctxt, 'create_instances_transfer',
transfer_scenario=transfer_scenario,
Expand All @@ -187,7 +188,8 @@ def create_instances_transfer(self, ctxt,
source_environment=source_environment,
user_scripts=user_scripts,
clone_disks=clone_disks,
skip_os_morphing=skip_os_morphing)
skip_os_morphing=skip_os_morphing,
clustered=clustered)

def get_transfers(self, ctxt, include_tasks_executions=False,
include_task_info=False):
Expand Down
Loading
Loading