Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

deploy: add HEKETI_DEBUG_UMOUNT_FAILURES environment variable for extra debugging #560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/kube-templates/heketi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ spec:
value: "y"
- name: HEKETI_IGNORE_STALE_OPERATIONS
value: "true"
- name: HEKETI_DEBUG_UMOUNT_FAILURES
value: "true"
ports:
- containerPort: 8080
volumeMounts:
Expand Down
6 changes: 6 additions & 0 deletions deploy/ocp-templates/heketi-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ objects:
value: "y"
- name: HEKETI_IGNORE_STALE_OPERATIONS
value: "true"
- name: HEKETI_DEBUG_UMOUNT_FAILURES
value: "true"
ports:
- containerPort: 8080
volumeMounts:
Expand Down Expand Up @@ -126,3 +128,7 @@ parameters:
- name: HEKETI_IGNORE_STALE_OPERATIONS
displayName: Whether to ignore stale operations at startup
description: This allows to control whether heketi should start up when there are stale pending operation entries present in the database. Setting this to true lets heketi ignore existing pending operations at startup. Setting it to false causes heketi to refuse to start if pending operations are found in the database.
- name: HEKETI_DEBUG_UMOUNT_FAILURES
displayName: Capture more details in case brick unmounting fails
description: When unmounting a brick fails, Heketi will not be able to cleanup the Gluster volume completely. The main causes for preventing to unmount a brick, seem to originate from Gluster processes. By enabling this option, the heketi.log will contain the output of 'lsof' to aid with debugging of the Gluster processes and help with identifying any files that may be left open.
value: true