Skip to content

not ok 1 - time-namespace #1718

@chuanchang

Description

@chuanchang
[root@dell-r730-051 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 9.6 (Plow)

[root@dell-r730-051 crun]# git log -1
commit 9b6bd79b21608f7705fa9dad7aa0c3870d62d65f (HEAD -> main, origin/main, origin/HEAD)
Merge: 5e48e2ad dfb649b3
Author: Giuseppe Scrivano <[email protected]>
Date:   Fri Apr 4 15:54:45 2025 +0200

    Merge pull request #1714 from giuseppe/more-uniform-err-messages
    
    src: make error messages more uniform

[root@dell-r730-051 crun]# make check-TESTS
...ignore...
PASS: tests/test_seccomp.py 1 - seccomp-listener
FAIL: tests/test_time.py 1 - time-namespace
PASS: tests/tests_libcrun_utils 1 - test_crun_path_exists
PASS: tests/tests_libcrun_utils 2 - test_write_read_file
PASS: tests/tests_libcrun_utils 3 - test_run_process
PASS: tests/tests_libcrun_utils 4 - test_dir_p
PASS: tests/tests_libcrun_utils 5 - test_socket_pair
PASS: tests/tests_libcrun_utils 6 - test_send_receive_fd
PASS: tests/tests_libcrun_utils 7 - test_append_paths
PASS: tests/tests_libcrun_utils 8 - test_path_is_slash_dev
PASS: tests/tests_libcrun_utils 9 - test_parse_sd_array
PASS: tests/tests_libcrun_utils 10 - test_get_scope_path
PASS: tests/tests_libcrun_utils 11 - test_cpuset_string_to_bitmask
PASS: tests/tests_libcrun_ring_buffer 1 - test_ring_buffer_read_write
PASS: tests/tests_libcrun_errors 1 - test_crun_make_error
PASS: tests/tests_libcrun_errors 2 - test_crun_write_warning_and_release
PASS: tests/tests_libcrun_intelrdt 1 - test_compare_rdt_configurations
PASS: tests/tests_libcrun_intelrdt 2 - test_intelrdt_clean_l3_cache_schema
============================================================================
Testsuite summary for crun 1.21.0.0.0.37-9b6b
============================================================================
# TOTAL: 148
# PASS:  136
# SKIP:  11
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
Please report to [email protected]
============================================================================
make[1]: *** [Makefile:2805: test-suite.log] Error 1
make[1]: Leaving directory '/root/crun'

[root@dell-r730-051 crun]# grep -A2 "not ok" ./test-suite.log
not ok 1 - time-namespace
FAIL: tests/test_time.py 1 - time-namespace

[root@dell-r730-051 crun]# python tests/test_time.py
1..1
not ok 1 - time-namespace

Debugging
[root@dell-r730-051 ~]# cat /tmp/config.json 
{"ociVersion": "1.0.0", "process": {"user": {"uid": 0, "gid": 0}, "terminal": false, "args": ["/init", "cat", "/proc/self/timens_offsets"], "env": ["PATH=/bin", "TERM=xterm"], "cwd": "/", "noNewPrivileges": true}, "root": {"path": "rootfs", "readonly": true}, "mounts": [{"destination": "/proc", "type": "proc"}, {"destination": "/sys", "type": "sysfs", "source": "sysfs", "options": ["nosuid", "noexec", "nodev", "ro"]}, {"destination": "/sys/fs/cgroup", "type": "cgroup", "source": "cgroup", "options": ["nosuid", "noexec", "nodev", "relatime", "rw"]}, {"destination": "/dev", "type": "tmpfs", "source": "tmpfs", "options": ["nosuid", "strictatime", "mode=755", "size=65536k"]}, {"destination": "/dev/pts", "type": "devpts", "source": "devpts", "options": ["nosuid", "noexec", "newinstance", "ptmxmode=0666", "mode=0620"]}, {"destination": "/dev/shm", "type": "tmpfs", "source": "shm", "options": ["nosuid", "noexec", "nodev", "mode=1777", "size=65536k"]}, {"destination": "/dev/mqueue", "type": "mqueue", "source": "mqueue", "options": ["nosuid", "noexec", "nodev"]}], "linux": {"rootfsPropagation": "rprivate", "namespaces": [{"type": "mount"}, {"type": "pid"}, {"type": "uts"}, {"type": "ipc"}, {"type": "network"}, {"type": "time"}], "timeOffsets": {"monotonic": {"secs": 1, "nanosecs": 2}, "boottime": {"secs": 3, "nanosecs": 4}}}}

[root@dell-r730-051 crun]# /root/crun/crun --cgroup-manager cgroupfs --root /root/crun/.testsuite-run-82557/root run --config /tmp/config.json  test-tmpj91u89jp
2025-04-10T14:45:12.135335Z: invalid namespace type: `time`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions