Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 472170 - sys-kernel/vserver-sources - missing blkio.* entries in sys/fs/cgroup/blkio
Summary: sys-kernel/vserver-sources - missing blkio.* entries in sys/fs/cgroup/blkio
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard: Pending removal: 2016-02-05
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2013-06-03 14:03 UTC by BRULE Herman
Modified: 2016-02-28 15:27 UTC (History)
4 users (show)

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


Attachments
kernel config (config.xz,14.44 KB, application/x-xz)
2013-06-05 14:36 UTC, BRULE Herman
Details
vserver-sources-2.3.8.3.ebuild (vserver-sources-2.3.8.3.ebuild,597 bytes, text/plain)
2016-01-10 21:03 UTC, Sergey Okhapkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2013-06-03 14:03:33 UTC
Hello,

I normal gentoo I have:
user@amber ~ $ ls /sys/fs/cgroup/blkio
blkio.io_merged  blkio.io_service_bytes  blkio.io_serviced   blkio.reset_stats  blkio.time    blkio.weight_device    cgroup.event_control  notify_on_release  tasks
blkio.io_queued  blkio.io_service_time   blkio.io_wait_time  blkio.sectors      blkio.weight  cgroup.clone_children  cgroup.procs          release_agent
Then all is correct.

On gentoo + vserver (vprocunhide I have: on boot), I presume firstly: need sysfs missing
But I have not the blkio.* entry (I have another ones).
Same /proc/mounts on vanilla gentoo or gentoo + vserver.

Cheer,
Comment 1 BRULE Herman 2013-06-05 12:54:44 UTC
More info: All my partition is under md raid (md1 -> /, md2 -> /home)
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2013-06-05 13:29:16 UTC
please attach your kernel config(s)
Comment 3 BRULE Herman 2013-06-05 14:36:30 UTC
Created attachment 350212 [details]
kernel config
Comment 4 Pacho Ramos gentoo-dev 2015-11-06 15:10:54 UTC
CCing treecleaners:
- This need a maintainer to take care of at least keeping the versions updated to follow kernel releases.

Currently, our stable version for this is pulling an old 2.6 kernel, I have looked into stable a one in sync with some of our stable kernels and I have noticed one using 3.4.27 kernel... but that kernel has known security bugs (https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.14.28), if I check for all other versions it is likely to occur the same
Comment 5 Sergey Okhapkin 2016-01-10 21:03:22 UTC
Created attachment 422522 [details]
vserver-sources-2.3.8.3.ebuild

Please find attached ebuild for the latest available vserver patch. /sys/fs/cgroup/blkio works OK, the patch is against 4.1.12 kernel.
Comment 6 Anton Bolshakov 2016-01-27 09:12:33 UTC
Please do not remove ebuilds just because you cannot maintain it.

Where are a lot of virtual servers rely on it. These servers are sitting in the isolated environment with very limited access so these security bugs are less critical.

Masking it is good enough.
Comment 7 Pacho Ramos gentoo-dev 2016-02-20 17:43:56 UTC
removed
Comment 8 Anton Bolshakov 2016-02-21 22:29:25 UTC
this so great. Could you ask for proxy-maintaining it least?

what you have done is just damn stupid
Comment 9 Nikolay Kichukov 2016-02-23 20:45:57 UTC
The linux-vserver project is alive and it _is_ maintained! It is a shame that the vserver-sources were removed from portage! Pacho, please provide next steps for getting the package back into the portage tree.

Latest kernel version is 3.18.21 and there will be a 4.x release coming up soon.

Thank you!
Comment 10 Adrian Butterworth 2016-02-28 15:27:31 UTC
Linux-Vserver has provided containerisation extensions to the Linux kernel since 2001.  It is stable, secure, actively maintained and widely used in large production environments.

Despite the lack of a maintainer the ebuilds had been recently bumped 
   09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org>
and were quite current prior to deletion. The latest being vserver-sources-2.3.7.4.ebuild ( current vserver patches against kernel 3.18.7 )

Gentoo is about choice, so while it is unfortunate an administrative matter has resulted in the dropping of major technical functionality, Gentoo provides the hooks for us to locally add it back and bump as we choose.

So for those wanting a local ebuild until this is sorted:

# If you don't already have a local overlay create one, eg:
-----
echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/portage/make.conf
mkdir -p /usr/local/portage/{metadata,profiles}
echo "masters = gentoo" > /usr/local/portage/metadata/layout.conf
echo "local_overlay" > /usr/local/portage/profiles/repo_name
chown -R portage:portage /usr/local/portage
-----

# ebuild for vserver 2.3.7.4 kernel 3.18.21
-----
mkdir -p /usr/local/portage/sys-kernel/vserver-sources
cat >/usr/local/portage/sys-kernel/vserver-sources/vserver-sources-2.3.7.4.ebuild <<EOF
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

ETYPE="sources"
CKV="3.18.21"

K_USEPV=1
K_NOSETEXTRAVERSION=1

inherit kernel-2
detect_version

KEYWORDS="amd64 hppa x86"
IUSE=""

DESCRIPTION="Full sources including Linux-VServer patchsets for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:VPS"
SRC_URI="${KERNEL_URI} ${ARCH_URI}
	http://vserver.13thfloor.at/Experimental/patch-${CKV}-vs${PV}.diff"

UNIPATCH_LIST="${DISTDIR}/patch-${CKV}-vs${PV}.diff"
UNIPATCH_STRICTORDER=1
EOF
-----

build manifest and check
-----
ebuild /usr/local/portage/sys-kernel/vserver-sources/vserver-sources-2.3.7.4.ebuild manifest
emerge -pv sys-kernel/vserver-sources
-----

You can use any version from http://vserver.13thfloor.at/Experimental/ for the latest - patch-4.1.18-vs2.3.8.4.diff - name the ebuild vserver-sources-2.3.8.4.ebuild & set CKV=4.1.18