Don't mount drive with label ephemeral0 to /mnt
The patch denies to mount drive with label ephemeral0 to /mnt because in
Ceph case this drive is used as bluestore and have not to be used at the
moment when Ceph configures it as bluestore drive.
Related-PROD: PROD-0000
Change-Id: Iedd328437139af93a3af7d01e05069afe967e73a
diff --git a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
index a302144..f78a198 100644
--- a/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
+++ b/de/heat-templates/fragments/SrvInstancesVMCephOSD.yaml
@@ -64,6 +64,15 @@
hardware_metadata:
description: The content of lab metadata.
type: string
+ user_data_config:
+ description: This is part of clout-config which denies to mount drive with label ephemeral0 to /mnt
+ type: string
+ default: |
+ #cloud-config
+ #
+ # Don't mount ephemeral0 to /mnt as it's by default
+ mounts:
+ - [ ephemeral0, null ]
resources:
@@ -114,6 +123,7 @@
parts:
- config: {get_resource: software_config}
- config: {get_resource: inject_files}
+ - config: {get_param: user_data_config}
server:
type: OS::Nova::Server