ceph: osd: fix wrong log file path on host

Log file path on host for OSDs was dataDirHostPath/log/<namespace>
instead of dataDirHostPath/<namespace>/log as with other daemons.

Signed-off-by: Blaine Gardner <blaine.gardner@suse.com>
This commit is contained in:
Blaine Gardner
2019-10-15 10:10:06 -06:00
parent fdd92ec883
commit 3584e8ccce
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -9,9 +9,12 @@
- The job for detecting the Ceph version can be started with node affinity or tolerations according to the same settings in the Cluster CR as the mons.
- A new CR property `skipUpgradeChecks` has been added, which allows you force an upgrade by skipping daemon checks. Use this at **YOUR OWN RISK**, only if you know what you're doing. To understand Rook's upgrade process of Ceph, read the [upgrade doc](Documentation/ceph-upgrade.html#ceph-version-upgrades).
- Ceph OSD's admin socket is now placed under Ceph's default system location `/run/ceph`.
- Mon Quorum Disaster Recovery guide has been updated to work with the latest Rook and Ceph release.
- A new CRD property `PreservePoolsOnDelete` has been added to Filesystem(fs) and Object Store(os) resources in order to increase protection against data loss. if it is set to `true`, associated pools won't be deleted when the main resource(fs/os) is deleted. Creating again the deleted fs/os with the same name will reuse the preserved pools.
- OSDs:
- Ceph OSD's admin socket is now placed under Ceph's default system location `/run/ceph`.
- The on-host log directory for OSDs was set incorrectly to `<dataDirHostPath>/<namespace>/log`;
fix this to be `<dataDirHostPath>/log/<namespace>`, the same as other daemons.
### EdgeFS
+1 -1
View File
@@ -102,7 +102,7 @@ func PodVolumes(dataDirHostPath, namespace string, confGeneratedInPod bool) []v1
return []v1.Volume{
{Name: k8sutil.DataDirVolume, VolumeSource: dataDirSource},
configVolume,
StoredLogVolume(path.Join(dataDirHostPath, "log", namespace)),
StoredLogVolume(path.Join(dataDirHostPath, namespace, "log")),
}
}