From Fedora Project Wiki

No edit summary
No edit summary
Line 22: Line 22:
# Steps #3, #5 shows the same:
# Steps #3, #5 shows the same:
<code>
<code>
 
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
</code>
|optional=Optionally provide hints for exploratory testing.
|optional=Optionally provide hints for exploratory testing.
}}
}}

Revision as of 15:09, 9 July 2013


Description

A brief description of the functionality being tested.

Note.png
Note for kernel earlier 3.10
Before suspend need killall udevd in container

Setup

  1. Install: su -c 'yum install vzctl'
  2. Open terminal
  3. Switch to root user: su -

How to test

  1. Create new container: vzctl create 101 --ostemplate centos-6-x86_64
  2. Start container: vzctl start 101
  3. Exec ps in container: vzctl exec 101 ps axf
  4. Enter to container: vzctl enter 101
  5. Exec ps in container directly: ps axf
  6. Exit from container: logout
  7. Suspend container: vzctl suspend 101
  8. Restore container: vzctl restore 101 or vzctl resume 101
  9. Stop container: vzctl stop 101

Expected Results

The following must be true to consider this a successful test run. Be brief ... but explicit.

  1. All steps completes without error
  2. Steps #3, #5 shows the same:

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.