Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444201 - sys-cluster/vzctl-3.3-r1 with >=sys-apps/iproute2-3.5.1 fails to load containers, should use /bin/ip or not hard-code the path
Summary: sys-cluster/vzctl-3.3-r1 with >=sys-apps/iproute2-3.5.1 fails to load contain...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreis Vinogradovs ( slepnoga )
URL: http://bugzilla.openvz.org/show_bug.c...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2012-11-21 17:49 UTC by Joakim
Modified: 2013-01-03 20:54 UTC (History)
4 users (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 Joakim 2012-11-21 17:49:41 UTC
In /etc/init.d/vz line 96

# we don't operate on a running interface
if /sbin/ip addr list | grep -q "venet0:.*UP" 2>/dev/null; then
        return 0
fi

Line 97 faiuls due to this (from iproute2 changelog):
*iproute2-3.5.0-r1 (13 Aug 2012)

  13 Aug 2012; Mike Frysinger <vapier@gentoo.org>
  +files/iproute2-3.5.0-ip-a-s.patch, +iproute2-3.5.0-r1.ebuild:
  Fix `ip a s` so it shows addresses #430320 by Graham Murray.  Move ip into
  /bin #330115 by Thilo Bangert.

As the ebuild in question no longer exists in the tree I cannot tell if any thought was given to possible consequences of this move giving a warning of any sort, at least there is none in the oldest next after it 3.5.1, anyhow not sure what the proper fix is for openvz and vzctl, a symlink, init script test or depend on iproute2-3.4.0?

Anyhow it's a bug and should be fixed in some end.


Reproducible: Always

Steps to Reproduce:
on an openvz-sources system
1. Run unstable aka KEYWORDS="~amd64"
2. Emerge vzctl iproute2
3. /etc/init.d/vz restart

Actual Results:  
I can't get the error output in here as this luckily came out on an isolated test system but basically it fails to load containers as the script fail in a /sbin/ip not existent error.

Expected Results:  
script should succeed and load containers.
Comment 1 Joakim 2012-11-21 18:02:29 UTC
I may add, creating the symlink,

# ln -s /bin/ip /sbin/ip seem to work although I don't know if this is a wise solution or if if may cause other complications. At least containers load and can be used.
Comment 2 Andreis Vinogradovs ( slepnoga ) 2013-01-02 07:24:29 UTC
Wranglers, please assigne vz bugs to me
Thanks
Comment 3 Andreis Vinogradovs ( slepnoga ) 2013-01-02 07:33:23 UTC
upstream informed
Comment 4 Kir Kolyshkin 2013-01-03 19:46:06 UTC
Fixed in git:
http://git.openvz.org/?p=vzctl;a=commit;h=2fc34ffb5f5e
Comment 5 Sergey Popov (RETIRED) gentoo-dev 2013-01-03 20:54:27 UTC
+  03 Jan 2013; Sergey Popov <pinkbyte@gentoo.org> -vzctl-3.3.ebuild,
+  -vzctl-3.3-r1.ebuild, +vzctl-3.3-r2.ebuild,
+  +files/vzctl-3.3-initscript-paths.patch:
+  Fix initscript paths, wrt bug #444201. Patch by Kir Kolyshkin. Drop old
+  revisions