Compare commits

...

2 Commits

Author SHA1 Message Date
Fupan Li
c4771aaef2 CI: output the containerd log
output the containerd log

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
2026-03-22 08:50:36 +08:00
Fupan Li
23f0ae0a50 hypervisor: add the dragonball log
add the dragonball nydus log

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
2026-03-21 10:23:02 +08:00
3 changed files with 16 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
use std::any::Any;
use std::collections::HashMap;
use std::ffi::CString;
use std::fs;
use std::fs::File;
use std::io::{BufRead, BufReader, Read};
use std::marker::PhantomData;
@@ -453,6 +454,17 @@ impl<AS: GuestAddressSpace> VirtioFs<AS> {
prefetch_list_path: Option<String>,
) -> FsResult<()> {
debug!("http_server rafs");
let currentnetns = fs::read_link("/proc/self/ns/net").unwrap_or_default();
info!("========fupan====1==netns={:?}", currentnetns);
let tid = unsafe { libc::syscall(libc::SYS_gettid) as i32 };
let netnspath = format!("/proc/{}/ns/net", tid);
let netns = fs::read_link(netnspath.as_str()).unwrap_or_default();
info!("========fupan====2==netns={:?}", netns);
info!("========fupan====3==config={:?}", config);
let file = Path::new(&source);
let (mut rafs, rafs_cfg) = match config.as_ref() {
Some(cfg) => {

View File

@@ -63,6 +63,8 @@ else
include $(ARCH_FILE)
endif
ifeq ($(PREFIX),)
PREFIX := /usr
EXEC_PREFIX := $(PREFIX)/local

View File

@@ -203,6 +203,8 @@ function teardown() {
echo "Running teardown"
local rc=0
journalctl -x -t kata --since "10 minutes ago" || true
local pid
for bin in containerd-nydus-grpc nydusd; do
pid=$(pidof $bin)