Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180258 - sys-cluster/vzctl-3.0.8 - openvz vzmigrate tool contais wrong paths
Summary: sys-cluster/vzctl-3.0.8 - openvz vzmigrate tool contais wrong paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo VPS Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-29 18:47 UTC by Eero Volotinen
Modified: 2007-06-15 15:20 UTC (History)
0 users

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 Eero Volotinen 2007-05-29 18:47:21 UTC
vzmigrate -script contains wrong paths to gentoo distribution.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 19:34:16 UTC
Which ebuild and version is this about? Which wrong paths, you get some errors, or?
Comment 2 Eero Volotinen 2007-05-29 19:42:13 UTC
Well, look at:

script vzmigrate  at variables confdir and vzconf

confdir="/etc/sysconfig/vz-scripts"
vzconf="/etc/sysconfig/vz"

Gentoo uses /etc/vz by default, not /etc/sysconfig/* , it spill out error, if you try to use it
I changed it to /etc/vz/ and it worked, but still get some error.

vzctl is version 3.0.0.8 which is latest stable.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-05-29 19:46:59 UTC
(In reply to comment #2)
> Well, look at:

I really can't have a look if I even don't know which ebuild is this about; please don't assume that everyone must be familiar with some weird cluster stuff next time.
Comment 4 Eero Volotinen 2007-05-29 20:03:10 UTC
ok. my patch follows, don't know if it still works correctly, but it worked better on my system.
If paths are incorrect, it does not work at all.

vz is virtualmachine, not clustering stuff. vzmigrate is stuff where you can move node to other vz machine, online or offline.

--- /usr/sbin/vzmigrate.backup  2006-12-13 21:31:50.000000000 +0200
+++ /usr/sbin/vzmigrate 2007-05-29 21:33:39.000000000 +0300
@@ -61,8 +61,8 @@
 keep_dst=0
 debug=0
 out="/dev/null"
-confdir="/etc/sysconfig/vz-scripts"
-vzconf="/etc/sysconfig/vz"
+confdir="/etc/vz"
+vzconf="/etc/vz"
 tmpdir="/var/tmp"
 
 # Errors:
Comment 5 Eero Volotinen 2007-05-29 20:08:51 UTC
just a little note, I am not *vz* guru, just run one of vz boxes on top of gentoo and this night I migrate it to other node. It worked with this modification
Comment 6 Christian Heim (RETIRED) gentoo-dev 2007-06-09 07:15:52 UTC
Could you please try the latest stable and see if it works for you in that regard ? Thanks.