Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151180 - sys-cluster/vzctl-3.0.12 - vzmigrate fails
Summary: sys-cluster/vzctl-3.0.12 - vzmigrate fails
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo VPS Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 07:07 UTC by pom
Modified: 2006-12-24 18:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pom 2006-10-13 07:07:28 UTC
hi,

server1 ~ # vzmigrate -v --online VZ01 101
OPT:-v
OPT:--online
OPT:server1
Starting online migration of VE 101 on server1
bash: /dev/stdout: No such device or address
OpenVZ is not running on the target machine
Can't continue migration

Bug in /usr/sbin/vzmigrate script.

@@ -296,7 +296,7 @@
 fi

 # Check if OpenVZ is running
-if ! $SSH "-o BatchMode=yes" "root@$host" "/etc/init.d/vz status &> $out"; then
+if ! $SSH "-o BatchMode=yes" "root@$host" "/etc/init.d/vz status" &> $out; then
        echo "OpenVZ is not running on the target machine"
        echo "Can't continue migration"
        exit $MIG_ERR_OVZ_NOT_RUNNING
Comment 1 Christian Heim (RETIRED) gentoo-dev 2006-10-13 07:37:47 UTC
(In reply to comment #0)
> hi,
> 
> server1 ~ # vzmigrate -v --online VZ01 101
> OPT:-v
> OPT:--online
> OPT:server1
> Starting online migration of VE 101 on server1
> bash: /dev/stdout: No such device or address
> OpenVZ is not running on the target machine
> Can't continue migration
> 
> Bug in /usr/sbin/vzmigrate script.
> 
> @@ -296,7 +296,7 @@
>  fi
> 
>  # Check if OpenVZ is running
> -if ! $SSH "-o BatchMode=yes" "root@$host" "/etc/init.d/vz status &> $out";
> then
> +if ! $SSH "-o BatchMode=yes" "root@$host" "/etc/init.d/vz status" &> $out;
> then
>         echo "OpenVZ is not running on the target machine"
>         echo "Can't continue migration"
>         exit $MIG_ERR_OVZ_NOT_RUNNING

Could you please check what the following looks like on your host-system ?

$ ls -l /dev/stdout /dev/fd/1

it should read something like this:
lrwx------ 1 phreak users     64 Oct 13 16:36 /dev/fd/1 -> /dev/pts/5
lrwxrwxrwx 1 root   root       4 Oct 10 19:32 /dev/stdout -> fd/1

Comment 2 Christian Heim (RETIRED) gentoo-dev 2006-12-24 18:30:54 UTC
Once you get back, could you please test it with vzctl-3.0.13 and reopen the bug if this is still an issue ? Thanks