Merge "Add DeploymentSwiftDataMap parameter"
This commit is contained in:
commit
5dc466725b
@ -44,6 +44,9 @@ parameters:
|
||||
Command or script snippet to run on all overcloud nodes to
|
||||
initialize the upgrade process. E.g. a repository switch.
|
||||
default: ''
|
||||
deployment_swift_data:
|
||||
type: json
|
||||
default: {}
|
||||
|
||||
resources:
|
||||
deployed-server:
|
||||
@ -51,6 +54,7 @@ resources:
|
||||
properties:
|
||||
name: {get_param: name}
|
||||
software_config_transport: {get_param: software_config_transport}
|
||||
deployment_swift_data: {get_param: deployment_swift_data}
|
||||
|
||||
UpgradeInitConfig:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
|
@ -142,6 +142,24 @@ parameters:
|
||||
RoleParameters:
|
||||
type: json
|
||||
description: Role Specific Parameters
|
||||
DeploymentSwiftDataMap:
|
||||
type: json
|
||||
description: |
|
||||
Map of servers to Swift container and object for storing deployment data.
|
||||
The keys are the Heat assigned hostnames, and the value is a map of the
|
||||
container/object name in Swift. Example value:
|
||||
overcloud-controller-0:
|
||||
container: overcloud-controller
|
||||
object: 0
|
||||
overcloud-controller-1:
|
||||
container: overcloud-controller
|
||||
object: 1
|
||||
overcloud-controller-2:
|
||||
container: overcloud-controller
|
||||
object: 2
|
||||
overcloud-novacompute-0:
|
||||
container: overcloud-compute
|
||||
object: 0
|
||||
default: {}
|
||||
|
||||
conditions:
|
||||
@ -150,6 +168,12 @@ conditions:
|
||||
equals:
|
||||
- {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]}
|
||||
- 1
|
||||
deployment_swift_data_map_unset:
|
||||
equals:
|
||||
- get_param:
|
||||
- DeploymentSwiftDataMap
|
||||
- {get_param: Hostname}
|
||||
- ""
|
||||
|
||||
resources:
|
||||
BlockStorage:
|
||||
@ -178,6 +202,12 @@ resources:
|
||||
- {get_param: BlockStorageServerMetadata}
|
||||
- {get_param: ServiceMetadataSettings}
|
||||
scheduler_hints: {get_param: BlockStorageSchedulerHints}
|
||||
deployment_swift_data:
|
||||
if:
|
||||
- deployment_swift_data_map_unset
|
||||
- {}
|
||||
- {get_param: [DeploymentSwiftDataMap,
|
||||
{get_param: Hostname}]}
|
||||
|
||||
# Combine the NodeAdminUserData and NodeUserData mime archives
|
||||
UserData:
|
||||
|
@ -148,6 +148,24 @@ parameters:
|
||||
RoleParameters:
|
||||
type: json
|
||||
description: Role Specific Parameters
|
||||
DeploymentSwiftDataMap:
|
||||
type: json
|
||||
description: |
|
||||
Map of servers to Swift container and object for storing deployment data.
|
||||
The keys are the Heat assigned hostnames, and the value is a map of the
|
||||
container/object name in Swift. Example value:
|
||||
overcloud-controller-0:
|
||||
container: overcloud-controller
|
||||
object: 0
|
||||
overcloud-controller-1:
|
||||
container: overcloud-controller
|
||||
object: 1
|
||||
overcloud-controller-2:
|
||||
container: overcloud-controller
|
||||
object: 2
|
||||
overcloud-novacompute-0:
|
||||
container: overcloud-compute
|
||||
object: 0
|
||||
default: {}
|
||||
|
||||
conditions:
|
||||
@ -156,6 +174,12 @@ conditions:
|
||||
equals:
|
||||
- {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]}
|
||||
- 1
|
||||
deployment_swift_data_map_unset:
|
||||
equals:
|
||||
- get_param:
|
||||
- DeploymentSwiftDataMap
|
||||
- {get_param: Hostname}
|
||||
- ""
|
||||
|
||||
resources:
|
||||
CephStorage:
|
||||
@ -184,6 +208,12 @@ resources:
|
||||
- {get_param: CephStorageServerMetadata}
|
||||
- {get_param: ServiceMetadataSettings}
|
||||
scheduler_hints: {get_param: CephStorageSchedulerHints}
|
||||
deployment_swift_data:
|
||||
if:
|
||||
- deployment_swift_data_map_unset
|
||||
- {}
|
||||
- {get_param: [DeploymentSwiftDataMap,
|
||||
{get_param: Hostname}]}
|
||||
|
||||
# Combine the NodeAdminUserData and NodeUserData mime archives
|
||||
UserData:
|
||||
|
@ -160,9 +160,33 @@ parameters:
|
||||
RoleParameters:
|
||||
type: json
|
||||
description: Role Specific Parameters
|
||||
DeploymentSwiftDataMap:
|
||||
type: json
|
||||
description: |
|
||||
Map of servers to Swift container and object for storing deployment data.
|
||||
The keys are the Heat assigned hostnames, and the value is a map of the
|
||||
container/object name in Swift. Example value:
|
||||
overcloud-controller-0:
|
||||
container: overcloud-controller
|
||||
object: 0
|
||||
overcloud-controller-1:
|
||||
container: overcloud-controller
|
||||
object: 1
|
||||
overcloud-controller-2:
|
||||
container: overcloud-controller
|
||||
object: 2
|
||||
overcloud-novacompute-0:
|
||||
container: overcloud-compute
|
||||
object: 0
|
||||
default: {}
|
||||
|
||||
conditions:
|
||||
deployment_swift_data_map_unset:
|
||||
equals:
|
||||
- get_param:
|
||||
- DeploymentSwiftDataMap
|
||||
- {get_param: Hostname}
|
||||
- ""
|
||||
server_not_blacklisted:
|
||||
not:
|
||||
equals:
|
||||
@ -198,6 +222,12 @@ resources:
|
||||
- {get_param: NovaComputeServerMetadata}
|
||||
- {get_param: ServiceMetadataSettings}
|
||||
scheduler_hints: {get_param: NovaComputeSchedulerHints}
|
||||
deployment_swift_data:
|
||||
if:
|
||||
- deployment_swift_data_map_unset
|
||||
- {}
|
||||
- {get_param: [DeploymentSwiftDataMap,
|
||||
{get_param: Hostname}]}
|
||||
|
||||
# Combine the NodeAdminUserData and NodeUserData mime archives
|
||||
UserData:
|
||||
|
@ -178,6 +178,24 @@ parameters:
|
||||
RoleParameters:
|
||||
type: json
|
||||
description: Role Specific Parameters
|
||||
DeploymentSwiftDataMap:
|
||||
type: json
|
||||
description: |
|
||||
Map of servers to Swift container and object for storing deployment data.
|
||||
The keys are the Heat assigned hostnames, and the value is a map of the
|
||||
container/object name in Swift. Example value:
|
||||
overcloud-controller-0:
|
||||
container: overcloud-controller
|
||||
object: 0
|
||||
overcloud-controller-1:
|
||||
container: overcloud-controller
|
||||
object: 1
|
||||
overcloud-controller-2:
|
||||
container: overcloud-controller
|
||||
object: 2
|
||||
overcloud-novacompute-0:
|
||||
container: overcloud-compute
|
||||
object: 0
|
||||
default: {}
|
||||
|
||||
parameter_groups:
|
||||
@ -192,7 +210,12 @@ conditions:
|
||||
equals:
|
||||
- {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]}
|
||||
- 1
|
||||
|
||||
deployment_swift_data_map_unset:
|
||||
equals:
|
||||
- get_param:
|
||||
- DeploymentSwiftDataMap
|
||||
- {get_param: Hostname}
|
||||
- ""
|
||||
|
||||
resources:
|
||||
|
||||
@ -222,6 +245,12 @@ resources:
|
||||
- {get_param: ControllerServerMetadata}
|
||||
- {get_param: ServiceMetadataSettings}
|
||||
scheduler_hints: {get_param: ControllerSchedulerHints}
|
||||
deployment_swift_data:
|
||||
if:
|
||||
- deployment_swift_data_map_unset
|
||||
- {}
|
||||
- {get_param: [DeploymentSwiftDataMap,
|
||||
{get_param: Hostname}]}
|
||||
|
||||
# Combine the NodeAdminUserData and NodeUserData mime archives
|
||||
UserData:
|
||||
|
@ -143,6 +143,25 @@ parameters:
|
||||
type: json
|
||||
description: Role Specific Parameters
|
||||
default: {}
|
||||
DeploymentSwiftDataMap:
|
||||
type: json
|
||||
description: |
|
||||
Map of servers to Swift container and object for storing deployment data.
|
||||
The keys are the Heat assigned hostnames, and the value is a map of the
|
||||
container/object name in Swift. Example value:
|
||||
overcloud-controller-0:
|
||||
container: overcloud-controller
|
||||
object: 0
|
||||
overcloud-controller-1:
|
||||
container: overcloud-controller
|
||||
object: 1
|
||||
overcloud-controller-2:
|
||||
container: overcloud-controller
|
||||
object: 2
|
||||
overcloud-novacompute-0:
|
||||
container: overcloud-compute
|
||||
object: 0
|
||||
default: {}
|
||||
|
||||
conditions:
|
||||
server_not_blacklisted:
|
||||
@ -150,6 +169,12 @@ conditions:
|
||||
equals:
|
||||
- {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]}
|
||||
- 1
|
||||
deployment_swift_data_map_unset:
|
||||
equals:
|
||||
- get_param:
|
||||
- DeploymentSwiftDataMap
|
||||
- {get_param: Hostname}
|
||||
- ""
|
||||
|
||||
resources:
|
||||
|
||||
@ -178,6 +203,12 @@ resources:
|
||||
- {get_param: SwiftStorageServerMetadata}
|
||||
- {get_param: ServiceMetadataSettings}
|
||||
scheduler_hints: {get_param: ObjectStorageSchedulerHints}
|
||||
deployment_swift_data:
|
||||
if:
|
||||
- deployment_swift_data_map_unset
|
||||
- {}
|
||||
- {get_param: [DeploymentSwiftDataMap,
|
||||
{get_param: Hostname}]}
|
||||
|
||||
# Combine the NodeAdminUserData and NodeUserData mime archives
|
||||
UserData:
|
||||
|
@ -168,6 +168,24 @@ parameters:
|
||||
RoleParameters:
|
||||
type: json
|
||||
description: Role Specific Parameters
|
||||
DeploymentSwiftDataMap:
|
||||
type: json
|
||||
description: |
|
||||
Map of servers to Swift container and object for storing deployment data.
|
||||
The keys are the Heat assigned hostnames, and the value is a map of the
|
||||
container/object name in Swift. Example value:
|
||||
overcloud-controller-0:
|
||||
container: overcloud-controller
|
||||
object: 0
|
||||
overcloud-controller-1:
|
||||
container: overcloud-controller
|
||||
object: 1
|
||||
overcloud-controller-2:
|
||||
container: overcloud-controller
|
||||
object: 2
|
||||
overcloud-novacompute-0:
|
||||
container: overcloud-compute
|
||||
object: 0
|
||||
default: {}
|
||||
|
||||
conditions:
|
||||
@ -176,6 +194,12 @@ conditions:
|
||||
equals:
|
||||
- {get_param: [DeploymentServerBlacklistDict, {get_param: Hostname}]}
|
||||
- 1
|
||||
deployment_swift_data_map_unset:
|
||||
equals:
|
||||
- get_param:
|
||||
- DeploymentSwiftDataMap
|
||||
- {get_param: Hostname}
|
||||
- ""
|
||||
|
||||
resources:
|
||||
{{role}}:
|
||||
@ -204,6 +228,12 @@ resources:
|
||||
- {get_param: {{role}}ServerMetadata}
|
||||
- {get_param: ServiceMetadataSettings}
|
||||
scheduler_hints: {get_param: {{role}}SchedulerHints}
|
||||
deployment_swift_data:
|
||||
if:
|
||||
- deployment_swift_data_map_unset
|
||||
- {}
|
||||
- {get_param: [DeploymentSwiftDataMap,
|
||||
{get_param: Hostname}]}
|
||||
|
||||
# Combine the NodeAdminUserData and NodeUserData mime archives
|
||||
UserData:
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- Added new DeploymentSwiftDataMap parameter, which is used to set the
|
||||
deployment_swift_data property on the Server resoures. The parameter is a
|
||||
map where the keys are the Heat assigned hostnames, and the value is a map
|
||||
of the container/object name in Swift.
|
Loading…
Reference in New Issue
Block a user