mirror of
https://github.com/optim-enterprises-bv/openstack-helm-infra.git
synced 2026-01-01 12:42:25 +00:00
ceph-osd: Log the script name, lineno and funcname
For the scripts in the ceph-osd daemonset that source common.sh (i.e. those that run in the osd-init and ceph-osd-default containers), updates the PS4 prompt so that the script name, line number, and function are included in xtrace output. Change-Id: Ieebbb82b64db4cf363ed4396289c823744d4a860
This commit is contained in:
@@ -15,6 +15,7 @@ limitations under the License.
|
||||
*/}}
|
||||
|
||||
set -ex
|
||||
export PS4='+${BASH_SOURCE:+$(basename ${BASH_SOURCE}):${LINENO}:}${FUNCNAME:+${FUNCNAME}():} '
|
||||
|
||||
: "${CRUSH_LOCATION:=root=default host=${HOSTNAME}}"
|
||||
: "${OSD_PATH_BASE:=/var/lib/ceph/osd/${CLUSTER}}"
|
||||
|
||||
@@ -15,6 +15,7 @@ limitations under the License.
|
||||
*/}}
|
||||
|
||||
set -ex
|
||||
export PS4='+${BASH_SOURCE:+$(basename ${BASH_SOURCE}):${LINENO}:}${FUNCNAME:+${FUNCNAME}():} '
|
||||
|
||||
: "${CRUSH_LOCATION:=root=default host=${HOSTNAME}}"
|
||||
: "${OSD_PATH_BASE:=/var/lib/ceph/osd/${CLUSTER}}"
|
||||
|
||||
Reference in New Issue
Block a user