From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=Basic tests for OpenVZ Linux Containers and Checkpoint/Restore In Userspace (CRIU) | |description=Basic tests for OpenVZ Linux Containers and Checkpoint/Restore In Userspace (CRIU) | ||
==Known | ==Known issues== | ||
* Kernel older 3.11 | * Kernel older 3.11 | ||
** Before a stop you shall execute {{command | vzctl exec killall udevd}} | ** Before a stop you shall execute {{command | vzctl exec killall udevd}} | ||
Line 12: | Line 12: | ||
** OpenVZ # [https://bugzilla.openvz.org/show_bug.cgi?id=2659 2659] | ** OpenVZ # [https://bugzilla.openvz.org/show_bug.cgi?id=2659 2659] | ||
|setup= | |setup= | ||
# Open terminal | # Open terminal | ||
# Switch to root user: {{command | su -}} | # Switch to root user: {{command | su -}} | ||
# Install: {{command | yum install vzctl}} | |||
|actions= | |actions= | ||
# Create new container: {{command | vzctl create 101 --ostemplate centos-6-x86_64}} | # Create new container: {{command | vzctl create 101 --ostemplate centos-6-x86_64}} |
Revision as of 09:58, 10 July 2013
Description
Basic tests for OpenVZ Linux Containers and Checkpoint/Restore In Userspace (CRIU)
Known issues
- Kernel older 3.11
- Before a stop you shall execute
vzctl exec killall udevd
- Before a stop you shall execute
- Random system freezes
- RHBZ # 982489
- Doesn't work
vzctl exec 101 ps axf
(proc is not mounted)- OpenVZ # 2658
- Doesn't work
vzctl restore 101
(VE_VETH_DEVS failure)- OpenVZ # 2659
Setup
- Open terminal
- Switch to root user:
su -
- Install:
yum install vzctl
How to test
- Create new container:
vzctl create 101 --ostemplate centos-6-x86_64
- Start container:
vzctl start 101
- Exec ps in container:
vzctl exec 101 ps axf
- Enter to container:
vzctl enter 101
- Exec ps in container directly:
ps axf
- Exit from container:
logout
- Suspend container:
vzctl suspend 101
- Restore container:
vzctl restore 101
orvzctl resume 101
- Stop container:
vzctl stop 101
Expected Results
The following must be true to consider this a successful test run. Be brief ... but explicit.
- All steps completes without error
- Steps #3, #5 shows the same. Like this:
Directory /proc/vz not found, assuming non-OpenVZ kernel PID TTY STAT TIME COMMAND 551 pts/0 R+ 0:00 ps axf 1 ? Ss 0:00 init 59 ? S<s 0:00 /sbin/udevd -d 299 ? S< 0:00 \_ /sbin/udevd -d 459 ? Sl 0:00 /sbin/rsyslogd -i /var/run/syslogd.pid -c 5 488 ? Ss 0:00 /usr/sbin/sshd 495 ? Ss 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid 502 ? Ss 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 503 ? S 0:00 \_ /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 518 ? Ss 0:00 sendmail: accepting connections 526 ? Ss 0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue 534 ? Ss 0:00 /usr/sbin/httpd 537 ? S 0:00 \_ /usr/sbin/httpd 542 ? Ss 0:00 crond
Optional
Optionally provide hints for exploratory testing.