Merge "Fix usage volume type in Heat"
This commit is contained in:
commit
c45b83e0a7
@ -280,9 +280,11 @@ class ClusterTemplate(object):
|
||||
volume_attach_name = _get_volume_attach_name(inst_name, volume_idx)
|
||||
properties = {
|
||||
"name": volume_name,
|
||||
"size": six.text_type(volumes_size),
|
||||
"volume_type": volume_type
|
||||
"size": six.text_type(volumes_size)
|
||||
}
|
||||
if volume_type:
|
||||
properties["volume_type"] = volume_type
|
||||
|
||||
if volumes_availability_zone:
|
||||
properties["availability_zone"] = volumes_availability_zone
|
||||
|
||||
|
@ -15,10 +15,10 @@ resources:
|
||||
line3'}
|
||||
type: OS::Nova::Server
|
||||
cluster-worker-001-volume-0:
|
||||
properties: {name: cluster-worker-001-volume-0, size: '10', volume_type: null}
|
||||
properties: {name: cluster-worker-001-volume-0, size: '10'}
|
||||
type: OS::Cinder::Volume
|
||||
cluster-worker-001-volume-1:
|
||||
properties: {name: cluster-worker-001-volume-1, size: '10', volume_type: null}
|
||||
properties: {name: cluster-worker-001-volume-1, size: '10'}
|
||||
type: OS::Cinder::Volume
|
||||
cluster-worker-001-volume-attachment-0:
|
||||
properties:
|
||||
|
@ -31,10 +31,10 @@ resources:
|
||||
server_id: {Ref: cluster-worker-001}
|
||||
type: OS::Nova::FloatingIPAssociation
|
||||
cluster-worker-001-volume-0:
|
||||
properties: {name: cluster-worker-001-volume-0, size: '10', volume_type: null}
|
||||
properties: {name: cluster-worker-001-volume-0, size: '10'}
|
||||
type: OS::Cinder::Volume
|
||||
cluster-worker-001-volume-1:
|
||||
properties: {name: cluster-worker-001-volume-1, size: '10', volume_type: null}
|
||||
properties: {name: cluster-worker-001-volume-1, size: '10'}
|
||||
type: OS::Cinder::Volume
|
||||
cluster-worker-001-volume-attachment-0:
|
||||
properties:
|
||||
|
@ -24,7 +24,7 @@ resources:
|
||||
properties: {network_id: private_net, replacement_policy: AUTO}
|
||||
type: OS::Neutron::Port
|
||||
cluster-master-001-volume-0:
|
||||
properties: {name: cluster-master-001-volume-0, size: '10', volume_type: null}
|
||||
properties: {name: cluster-master-001-volume-0, size: '10'}
|
||||
type: OS::Cinder::Volume
|
||||
cluster-master-001-volume-attachment-0:
|
||||
properties:
|
||||
|
Loading…
Reference in New Issue
Block a user