aboutsummaryrefslogtreecommitdiffstats
path: root/heat/OpenECOMP/onap_openstack_RC.yaml
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2017-05-03 16:14:30 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2017-05-03 16:16:54 +0800
commit2d223894f6b3410518ffab6ca4a406dca16093d5 (patch)
tree44ad6ccf2d562aa9a21ba87ea0e9c1c27b4b1dac /heat/OpenECOMP/onap_openstack_RC.yaml
parentc55d79043a44fbfea2d2aa8781acfec4ee0d3a17 (diff)
Attach second disk to sdc before booted
Somce openstack env can't recognize second disk until OS is rebooted, this patch directly attach the second disk to instance when it is creating. Change-Id: I54fed1dff37489d38862b03369ff72bd4dd1b84b Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'heat/OpenECOMP/onap_openstack_RC.yaml')
-rw-r--r--heat/OpenECOMP/onap_openstack_RC.yaml10
1 files changed, 3 insertions, 7 deletions
diff --git a/heat/OpenECOMP/onap_openstack_RC.yaml b/heat/OpenECOMP/onap_openstack_RC.yaml
index bb17f40d..0964349f 100644
--- a/heat/OpenECOMP/onap_openstack_RC.yaml
+++ b/heat/OpenECOMP/onap_openstack_RC.yaml
@@ -858,13 +858,6 @@ resources:
name: vol1-sdc-data
size: 100
- sdc_volume_attachment:
- type: OS::Cinder::VolumeAttachment
- properties:
- volume_id: { get_resource: sdc_volume_data }
- instance_uuid: { get_resource: sdc_vm }
- mountpoint: /dev/vdb
-
sdc_vm:
type: OS::Nova::Server
properties:
@@ -878,6 +871,9 @@ resources:
key_name: { get_resource: vm_key }
networks:
- port: { get_resource: sdc_private_port }
+ block_device_mapping:
+ - device_name: /dev/vdb
+ volume_id: {get_resource: sdc_volume_data}
user_data_format: RAW
user_data:
str_replace: