From 384454de57299981f8020e75bab781f73bacae86 Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Fri, 27 Sep 2013 13:17:34 +0200 Subject: [PATCH] ensure tgtd is running in debug mode this change enables on-the-fly tgtd debug before starting cinder Change-Id: I193bfd77c5a82e8347d75e2a7fe670a6e25f5558 --- lib/cinder | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cinder b/lib/cinder index bec65ed234..ccf38b4dea 100644 --- a/lib/cinder +++ b/lib/cinder @@ -496,6 +496,8 @@ function start_cinder() { # name, and would need to be adjusted too exit_distro_not_supported "restarting tgt" fi + # NOTE(gfidente): ensure tgtd is running in debug mode + sudo tgtadm --mode system --op update --name debug --value on fi screen_it c-api "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-api --config-file $CINDER_CONF"