Skip to content

Commit

Permalink
DNM: clh: debug ci
Browse files Browse the repository at this point in the history
debug ci by printing agent logs in stdout

Depends-on: github.com/kata-containers/tests#2165

Fixes: kata-containers#666

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
  • Loading branch information
jcvenegas committed Jan 8, 2020
1 parent 3ea3d32 commit 9318a33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ cidir=$(dirname "$0")
source "${cidir}/lib.sh"

pushd "${tests_repo_dir}"
touch /tmp/serial-ch
tail -f /tmp/serial-ch &
.ci/run.sh
popd
12 changes: 6 additions & 6 deletions cli/config/configuration-clh.toml.in
Original file line number Diff line number Diff line change
Expand Up @@ -73,21 +73,21 @@ virtio_fs_cache = "always"
# to the proxy logs, but only when proxy debug is also enabled.
#
# Default false
#enable_debug = true
enable_debug = true

[proxy.@PROJECT_TYPE@]
path = "@PROXYPATH@"

# If enabled, proxy messages will be sent to the system log
# (default: disabled)
#enable_debug = true
enable_debug = true

[shim.@PROJECT_TYPE@]
path = "@SHIMPATH@"

# If enabled, shim messages will be sent to the system log
# (default: disabled)
#enable_debug = true
enable_debug = true

# If enabled, the shim will create opentracing.io traces and spans.
# (See https://www.jaegertracing.io/docs/getting-started).
Expand All @@ -104,7 +104,7 @@ path = "@SHIMPATH@"
[agent.@PROJECT_TYPE@]
# If enabled, make the agent display debug-level messages.
# (default: disabled)
#enable_debug = true
enable_debug = true

# Enable agent tracing.
#
Expand Down Expand Up @@ -141,14 +141,14 @@ path = "@NETMONPATH@"

# If enabled, netmon messages will be sent to the system log
# (default: disabled)
#enable_debug = true
enable_debug = true


[runtime]
# If enabled, the runtime will log additional debug messages to the
# system log
# (default: disabled)
#enable_debug = true
enable_debug = true
#
# Internetworking model
# Determines how the VM should be connected to the
Expand Down
4 changes: 2 additions & 2 deletions virtcontainers/clh.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,13 @@ func (clh *cloudHypervisor) createSandbox(ctx context.Context, id string, networ

// set the serial console to the cloud hypervisor
if clh.config.Debug {
serialPath, err := clh.serialPath(clh.id)
//serialPath, err := clh.serialPath(clh.id)
if err != nil {
return err
}
clh.vmconfig.Serial = chclient.ConsoleConfig{
Mode: cctFILE,
File: serialPath,
File: "/tmp/serial-ch",
}

} else {
Expand Down

0 comments on commit 9318a33

Please sign in to comment.