nodemanager.git
9 years agoSetting tag nodemanager-5.2-15 nodemanager-5.2-15
Thierry Parmentelat [Wed, 18 Feb 2015 10:31:46 +0000 (11:31 +0100)]
Setting tag nodemanager-5.2-15
addition to support for ipv6 to lxc slivers
(thanks to Guilherme Sperb Machado)
privatebridge plugin is back to the -lxc rpm
add systemd dependency to network.target

9 years agoAdded debug code.
Thomas Dreibholz [Fri, 6 Feb 2015 19:53:08 +0000 (20:53 +0100)]
Added debug code.

9 years agoAdded lsof call for debugging the F20 issue.
Thomas Dreibholz [Fri, 6 Feb 2015 15:14:44 +0000 (16:14 +0100)]
Added lsof call for debugging the F20 issue.

9 years agoMerge branch 'ipv6'
Thierry Parmentelat [Thu, 30 Oct 2014 08:58:39 +0000 (09:58 +0100)]
Merge branch 'ipv6'

only one minor conflict found in a comment in Makefile

9 years agosmall updates here and there in all three files. The ipv6
Guilherme Sperb Machado [Fri, 3 Oct 2014 13:06:06 +0000 (15:06 +0200)]
small updates here and there in all three files. The
update_ipv6addr-slivertag.py and ipv6.py were updated to support VS,
since "import libvirt" raises error and fails the build on -f14.

9 years agonew syncvs target
Thierry Parmentelat [Fri, 3 Oct 2014 10:36:04 +0000 (12:36 +0200)]
new syncvs target

9 years agoipv6.py adapted to check if the node's virtualization is LXC or VS,
Guilherme Sperb Machado [Mon, 29 Sep 2014 13:37:24 +0000 (15:37 +0200)]
ipv6.py adapted to check if the node's virtualization is LXC or VS,
update_ipv6_slivertag.py adapted to not always remove ipv6 addrs on
/etc/hosts, and tools.py adapted related to import's and search of ipv6
addrs.

9 years agomove the 2 ipv6-related plugins over to the common packaging
Thierry Parmentelat [Thu, 25 Sep 2014 18:59:22 +0000 (20:59 +0200)]
move the 2 ipv6-related plugins over to the common packaging

9 years agoan attempt to put the privatebridge plugin back into the -lxc rpm
Thierry Parmentelat [Tue, 23 Sep 2014 15:35:12 +0000 (17:35 +0200)]
an attempt to put the privatebridge plugin back into the -lxc rpm

9 years agotweak privatebridge to remove exception message when ovs is not installed - prints...
Thierry Parmentelat [Tue, 23 Sep 2014 15:32:52 +0000 (17:32 +0200)]
tweak privatebridge to remove exception message when ovs is not installed - prints out warning instead

9 years agoan attempt to put the privatebridge plugin back into the -lxc rpm
Thierry Parmentelat [Tue, 23 Sep 2014 15:35:12 +0000 (17:35 +0200)]
an attempt to put the privatebridge plugin back into the -lxc rpm

9 years agotweak privatebridge to remove exception message when ovs is not installed - prints...
Thierry Parmentelat [Tue, 23 Sep 2014 15:32:52 +0000 (17:32 +0200)]
tweak privatebridge to remove exception message when ovs is not installed - prints out warning instead

9 years agoBug fix on the update_ipv6addr_slivertag.py plugin. Just avoided to use
Guilherme Sperb Machado [Fri, 19 Sep 2014 12:53:27 +0000 (14:53 +0200)]
Bug fix on the update_ipv6addr_slivertag.py plugin. Just avoided to use
GetSliceIPv6Address() method.

9 years agofew changes on the ipv6.py logic, and a bit of code cleanup in tools.py,
Guilherme Sperb Machado [Thu, 18 Sep 2014 16:34:46 +0000 (18:34 +0200)]
few changes on the ipv6.py logic, and a bit of code cleanup in tools.py,
update_ipv6addr_slivertag.py, and sliver_lxc.py.

9 years agomodified some logic in the ipv6.py (bug fixing) and naming fix in the
Guilherme Sperb Machado [Thu, 18 Sep 2014 00:18:01 +0000 (02:18 +0200)]
modified some logic in the ipv6.py (bug fixing) and naming fix in the
tools.py

9 years agomajor indent mistake on a for loop
Guilherme Sperb Machado [Tue, 16 Sep 2014 23:38:50 +0000 (01:38 +0200)]
major indent mistake on a for loop

9 years agoreviewed Guilherme's code
Thierry Parmentelat [Tue, 16 Sep 2014 09:48:14 +0000 (11:48 +0200)]
reviewed Guilherme's code
had to deeply modify indentations as these were coming with tabs and looked like nothing within my emacs
fixed the issue in tools.py on f14/vs : logger was used before imported

9 years agoiron out the sync target - not used at build time
Thierry Parmentelat [Mon, 15 Sep 2014 06:06:28 +0000 (08:06 +0200)]
iron out the sync target - not used at build time

9 years agoadd ipv6 and update_ipv6addr_slivertag to the lxc rpm
Thierry Parmentelat [Mon, 15 Sep 2014 06:06:10 +0000 (08:06 +0200)]
add ipv6 and update_ipv6addr_slivertag to the lxc rpm

9 years agomodified ipv6.py and update_ipv6addr_slivertag.py -- identation, removed unused metho...
Guilherme Sperb Machado [Sun, 14 Sep 2014 14:08:26 +0000 (16:08 +0200)]
modified ipv6.py and update_ipv6addr_slivertag.py -- identation, removed unused methods/variables

9 years agojust an identation error correction
Guilherme Sperb Machado [Sat, 13 Sep 2014 11:11:32 +0000 (13:11 +0200)]
just an identation error correction

9 years agojust modified the tools.py
Guilherme Sperb Machado [Fri, 12 Sep 2014 14:47:59 +0000 (16:47 +0200)]
just modified the tools.py

9 years agoadded files related to the ipv6 support on slices
Guilherme Sperb Machado [Fri, 12 Sep 2014 14:38:06 +0000 (16:38 +0200)]
added files related to the ipv6 support on slices

9 years agonm.service fix: the node manager needs network.target, since it needs to contact...
Thomas Dreibholz [Tue, 22 Jul 2014 06:22:42 +0000 (08:22 +0200)]
nm.service fix: the node manager needs network.target, since it needs to contact the PLC.

9 years agoSetting tag nodemanager-5.2-14 nodemanager-5.2-14
Thierry Parmentelat [Wed, 16 Jul 2014 10:20:44 +0000 (12:20 +0200)]
Setting tag nodemanager-5.2-14
review packaging : one single spec file
review packaging : some cleanup towards debians although not complete yet
minor tweaks in exposing user's .ssh dir readonly

9 years agojust added a comment
Thierry Parmentelat [Wed, 9 Jul 2014 12:37:48 +0000 (14:37 +0200)]
just added a comment

9 years agofix the way 'arch' is computed, as exposed to the guest XML template
Thierry Parmentelat [Wed, 2 Jul 2014 08:05:12 +0000 (10:05 +0200)]
fix the way 'arch' is computed, as exposed to the guest XML template

9 years agono functional change, just comments + cosmetic code change to be more similar to...
Thierry Parmentelat [Wed, 2 Jul 2014 07:56:50 +0000 (09:56 +0200)]
no functional change, just comments + cosmetic code change to be more similar to the lxc code

9 years agoThomas's change to ensure tighter synchro between conf_files lxc_sliceimage and nodem...
Thierry Parmentelat [Mon, 30 Jun 2014 14:22:53 +0000 (16:22 +0200)]
Thomas's change to ensure tighter synchro between conf_files lxc_sliceimage and nodemanager

9 years agotypo
Thierry Parmentelat [Tue, 27 May 2014 09:23:01 +0000 (11:23 +0200)]
typo

9 years agoremove band-aid code that was re-cleaning the slice rootfs before creating it
Thierry Parmentelat [Tue, 27 May 2014 09:19:31 +0000 (11:19 +0200)]
remove band-aid code that was re-cleaning the slice rootfs before creating it

9 years agofixed nasty bug
Thierry Parmentelat [Tue, 27 May 2014 09:16:17 +0000 (11:16 +0200)]
fixed nasty bug

9 years agofix typo in varname - umounts based on sliver name
Thierry Parmentelat [Fri, 23 May 2014 15:00:18 +0000 (17:00 +0200)]
fix typo in varname - umounts based on sliver name

9 years agodo not call lsof, this is useless and produces huge logs
Thierry Parmentelat [Fri, 23 May 2014 14:59:06 +0000 (16:59 +0200)]
do not call lsof, this is useless and produces huge logs

9 years agoreviewd all timeouts for lxc slice creation/teradown
Thierry Parmentelat [Fri, 23 May 2014 14:36:29 +0000 (16:36 +0200)]
reviewd all timeouts for lxc slice creation/teradown

9 years agouse logger.log_call to run mount/umount
Thierry Parmentelat [Fri, 23 May 2014 14:34:44 +0000 (16:34 +0200)]
use logger.log_call to run mount/umount

9 years agopatch for (hopefully) getting slice re-creation to work again
Thierry Parmentelat [Fri, 23 May 2014 11:11:31 +0000 (13:11 +0200)]
patch for (hopefully) getting slice re-creation to work again
the sliver_lxc code for creating a sliver will check if /vservers/<slicename> exists, if so and it is empty nm will issue another call to
btrfs subvolume delete
in any case if the rootdir cannot be cleaned up sliver creation will be given up

9 years agogiving up on packaging for ubuntu
Thierry Parmentelat [Wed, 21 May 2014 12:10:13 +0000 (14:10 +0200)]
giving up on packaging for ubuntu

9 years agodeb pkg ctd
Thierry Parmentelat [Wed, 21 May 2014 10:28:34 +0000 (12:28 +0200)]
deb pkg ctd

9 years agodebian pkg
Thierry Parmentelat [Wed, 21 May 2014 10:08:35 +0000 (12:08 +0200)]
debian pkg

9 years agotentative fixes for debian
Thierry Parmentelat [Wed, 21 May 2014 09:31:31 +0000 (11:31 +0200)]
tentative fixes for debian

9 years agomore aggressively try to cleanup sliver rootfs upon slice teardown
Thierry Parmentelat [Wed, 21 May 2014 08:21:38 +0000 (10:21 +0200)]
more aggressively try to cleanup sliver rootfs upon slice teardown

9 years agoenable make sync to restart nm only conditionnally
Thierry Parmentelat [Mon, 19 May 2014 14:07:28 +0000 (16:07 +0200)]
enable make sync to restart nm only conditionnally

9 years agotypo
Thierry Parmentelat [Fri, 16 May 2014 09:26:50 +0000 (11:26 +0200)]
typo

9 years agoreviewed packaging contents as compared with the former scheme
Thierry Parmentelat [Fri, 16 May 2014 08:38:59 +0000 (10:38 +0200)]
reviewed packaging contents as compared with the former scheme
in particular, was missing important initscript-related material

9 years agooops
Thierry Parmentelat [Fri, 16 May 2014 06:42:48 +0000 (08:42 +0200)]
oops

9 years agoremove unused Extension in setup
Thierry Parmentelat [Thu, 15 May 2014 15:15:52 +0000 (17:15 +0200)]
remove unused Extension in setup

9 years agoMerge branch 'packaging'
Thierry Parmentelat [Thu, 15 May 2014 11:39:29 +0000 (13:39 +0200)]
Merge branch 'packaging'

9 years agoprovide default to WITH_INIT and WITH_SYSTEMD right in the makefile packaging
Thierry Parmentelat [Thu, 15 May 2014 10:36:00 +0000 (12:36 +0200)]
provide default to WITH_INIT and WITH_SYSTEMD right in the makefile

9 years agomerged the 3 packaging-dependant tracks (-lib, -lxc and -vs) into a single specfile...
Thierry Parmentelat [Wed, 14 May 2014 14:29:48 +0000 (16:29 +0200)]
merged the 3 packaging-dependant tracks (-lib, -lxc and -vs) into a single specfile, single setup script and single Makefile
this is useful in its own, plus hopefully this will make ubuntu packaging much easier,

9 years agofirst and very rough attempt at building for debian
Thierry Parmentelat [Wed, 14 May 2014 12:29:14 +0000 (14:29 +0200)]
first and very rough attempt at building for debian
the way the 3 packages (lib, lxc, vs) are intermixed makes it hard under debian
I might want to rework the rpm packaging first

9 years agoan attempt at robustifying slice teardown once again
Thierry Parmentelat [Tue, 13 May 2014 16:41:49 +0000 (18:41 +0200)]
an attempt at robustifying slice teardown once again
not doing things in the exact right order causes /vservers/<slicename> to remain after slice deletion, thus preventing proper slice-re-creation
looks like finer grained test steps could help here some day

9 years agoanother bugfix
Thierry Parmentelat [Tue, 13 May 2014 09:34:39 +0000 (11:34 +0200)]
another bugfix

9 years agofix for ubuntus
Thierry Parmentelat [Tue, 13 May 2014 09:22:08 +0000 (11:22 +0200)]
fix for ubuntus

9 years agoadd missing import subprocess
Thierry Parmentelat [Tue, 13 May 2014 08:10:28 +0000 (10:10 +0200)]
add missing import subprocess

9 years agono change - reorder imports
Thierry Parmentelat [Tue, 13 May 2014 08:10:10 +0000 (10:10 +0200)]
no change - reorder imports

9 years agoadded some comments about the fuse subsystem wrt systemd & vsys
Thierry Parmentelat [Tue, 13 May 2014 08:05:56 +0000 (10:05 +0200)]
added some comments about the fuse subsystem wrt systemd & vsys

9 years agoSetting tag nodemanager-5.2-13 nodemanager-5.2-13
Thierry Parmentelat [Mon, 28 Apr 2014 11:04:34 +0000 (13:04 +0200)]
Setting tag nodemanager-5.2-13
improve network management in slices
_has_systemctl was not declared as global - vsys was failing to restart

10 years agodon't create network script if the slice hasn't been created yet
Scott Baker [Thu, 10 Apr 2014 08:07:13 +0000 (01:07 -0700)]
don't create network script if the slice hasn't been created yet

10 years agofix _has_systemctl referenced before assignment in python2.7
Scott Baker [Mon, 7 Apr 2014 22:33:37 +0000 (15:33 -0700)]
fix _has_systemctl referenced before assignment in python2.7

10 years agopass args to lxcsu separately when starting network
Scott Baker [Mon, 7 Apr 2014 21:13:48 +0000 (14:13 -0700)]
pass args to lxcsu separately when starting network

10 years agoSetting tag nodemanager-5.2-12 nodemanager-5.2-12
Thierry Parmentelat [Fri, 4 Apr 2014 07:39:02 +0000 (09:39 +0200)]
Setting tag nodemanager-5.2-12
this tag for the first time passes the full range of tests on fedora20
robustified slice teardown wrt vsys
Scott's fix for repairing veth devs
removed sshsh
tools.has_systemctl

10 years agoMerge branch 'master' of ssh://git.onelab.eu/git/nodemanager
Thierry Parmentelat [Wed, 2 Apr 2014 09:45:45 +0000 (11:45 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/nodemanager

10 years agorestart vsys before we actually trash the vsys handle in sliver
Thierry Parmentelat [Wed, 2 Apr 2014 09:45:28 +0000 (11:45 +0200)]
restart vsys before we actually trash the vsys handle in sliver

10 years agofix for 'failed to allocate free veth' issue
Scott Baker [Fri, 28 Mar 2014 22:25:56 +0000 (15:25 -0700)]
fix for 'failed to allocate free veth' issue

10 years agoclean up the code that removes a slice from vsys's scope before its rootfs gets deleted
Thierry Parmentelat [Fri, 28 Mar 2014 16:49:59 +0000 (17:49 +0100)]
clean up the code that removes a slice from vsys's scope before its rootfs gets deleted
however the bulk of that logic was in place already so I doubt this will fix the f20 issue

10 years agosshsh has gone, cleanup in make sync
Thierry Parmentelat [Fri, 28 Mar 2014 16:34:45 +0000 (17:34 +0100)]
sshsh has gone, cleanup in make sync

10 years agoSetting tag nodemanager-5.2-11 nodemanager-5.2-11
Thierry Parmentelat [Tue, 25 Mar 2014 13:39:54 +0000 (14:39 +0100)]
Setting tag nodemanager-5.2-11
ship /etc/sysconfig/nodemanager
trash sshsh

10 years agoMerge branch 'master' of ssh://git.onelab.eu/git/nodemanager
Thierry Parmentelat [Mon, 24 Mar 2014 09:14:23 +0000 (10:14 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/nodemanager

10 years agoprovide an empty /etc/sysconfig/nodemanager that seems to be required
Thierry Parmentelat [Mon, 24 Mar 2014 09:14:09 +0000 (10:14 +0100)]
provide an empty /etc/sysconfig/nodemanager that seems to be required
this is tagged as a config file for rpm of course

10 years agosshsh is totally obsolete, since we use lxc-userspace
Thierry Parmentelat [Mon, 24 Mar 2014 09:13:26 +0000 (10:13 +0100)]
sshsh is totally obsolete, since we use lxc-userspace

10 years agoSetting tag nodemanager-5.2-10 nodemanager-5.2-10
Thierry Parmentelat [Fri, 21 Mar 2014 15:27:00 +0000 (16:27 +0100)]
Setting tag nodemanager-5.2-10
comes with systemd native unit files on >= f18
user-provided initscript gets started through systemd in slivers >= f18
smarter to locate cgroups for various versions of libvirt
nicer log format - and log program termination
tweaks in codemux plugin
bug fixes in libvirt driver, esp. for finding out if domain is running

10 years agofix broken .service file
Thierry Parmentelat [Sat, 22 Feb 2014 13:23:44 +0000 (14:23 +0100)]
fix broken .service file

10 years agofix remaining reference to debuginfo
Thierry Parmentelat [Thu, 20 Feb 2014 16:44:24 +0000 (17:44 +0100)]
fix remaining reference to debuginfo

10 years agofor f20 : use dom.state() rather than dom.info() to assess if domain is running or not
Thierry Parmentelat [Thu, 20 Feb 2014 15:05:41 +0000 (16:05 +0100)]
for f20 : use dom.state() rather than dom.info() to assess if domain is running or not
hopefully should give a more stable release for f20

10 years agono functional change, just log_exc to show hopefully more edible output
Thierry Parmentelat [Tue, 11 Feb 2014 16:33:09 +0000 (17:33 +0100)]
no functional change, just log_exc to show hopefully more edible output

10 years agoan attempt to have vinit.service depend on network-online instead
Thierry Parmentelat [Mon, 3 Feb 2014 13:46:07 +0000 (14:46 +0100)]
an attempt to have vinit.service depend on network-online instead

10 years agoMerge branch 'systemd'
Thierry Parmentelat [Mon, 3 Feb 2014 09:54:23 +0000 (10:54 +0100)]
Merge branch 'systemd'

10 years agoinstall for sytemd *or* init systemd
Thierry Parmentelat [Sat, 1 Feb 2014 13:37:46 +0000 (14:37 +0100)]
install for sytemd *or* init

10 years agofor f14 rootfs, as tweaking with systemd would fail due to missing dir
Thierry Parmentelat [Sat, 1 Feb 2014 11:07:42 +0000 (12:07 +0100)]
for f14 rootfs, as tweaking with systemd would fail due to missing dir

10 years agoit's going to work much better with this
Thierry Parmentelat [Fri, 31 Jan 2014 16:48:06 +0000 (17:48 +0100)]
it's going to work much better with this

10 years agosupport for systemd in sliver space for user-provided initscripts
Thierry Parmentelat [Fri, 31 Jan 2014 16:38:00 +0000 (17:38 +0100)]
support for systemd in sliver space for user-provided initscripts

10 years agoabout to duplicate install_and_enable_vinit for init and systemd
Thierry Parmentelat [Fri, 31 Jan 2014 16:14:38 +0000 (17:14 +0100)]
about to duplicate install_and_enable_vinit for init and systemd

10 years agobugfix, reference to a global symbol debuginfo that is undefined
Thierry Parmentelat [Fri, 31 Jan 2014 16:13:41 +0000 (17:13 +0100)]
bugfix, reference to a global symbol debuginfo that is undefined

10 years agowhen doing e.g. systemctl stop nm.service, systemd attempts to kill nm, so we need...
Thierry Parmentelat [Fri, 31 Jan 2014 15:59:12 +0000 (16:59 +0100)]
when doing e.g. systemctl stop nm.service, systemd attempts to kill nm, so we need to really exit (os._exit) and not just have one random thread die

10 years agokeep it simple
Thierry Parmentelat [Fri, 31 Jan 2014 09:23:59 +0000 (10:23 +0100)]
keep it simple

10 years agooops, the f14 build was installing for systemd instead of init
Thierry Parmentelat [Fri, 31 Jan 2014 08:50:53 +0000 (09:50 +0100)]
oops, the f14 build was installing for systemd instead of init

10 years agoadd chkconfig line in vinit in case it could help with systemd
Thierry Parmentelat [Wed, 22 Jan 2014 13:16:16 +0000 (14:16 +0100)]
add chkconfig line in vinit in case it could help with systemd

10 years agoMerge branch 'systemd'
Thierry Parmentelat [Mon, 20 Jan 2014 20:02:25 +0000 (21:02 +0100)]
Merge branch 'systemd'

10 years agoadd dep to sytemd otherwise systemctl enable won't be done at nodeimage build time...
Thierry Parmentelat [Fri, 17 Jan 2014 13:35:59 +0000 (14:35 +0100)]
add dep to sytemd otherwise systemctl enable won't be done at nodeimage build time and so nodes are inactive

10 years agofor better fit with NodeUpdate
Thierry Parmentelat [Fri, 17 Jan 2014 09:45:46 +0000 (10:45 +0100)]
for better fit with NodeUpdate

10 years agolibvirt 1.2.1 support
Scott Baker [Fri, 17 Jan 2014 07:44:37 +0000 (23:44 -0800)]
libvirt 1.2.1 support

10 years agoWork around an apparent bug in libvirt where it would choose the same vethX device...
Andy Bavier [Thu, 16 Jan 2014 20:59:43 +0000 (15:59 -0500)]
Work around an apparent bug in libvirt where it would choose the same vethX device name for
multiple slices.  This results in the slice not being able to start.

10 years agopython-2.7
Thierry Parmentelat [Thu, 16 Jan 2014 19:26:04 +0000 (20:26 +0100)]
python-2.7

10 years agouse systemctl instead of chkconfig
Thierry Parmentelat [Thu, 16 Jan 2014 15:07:09 +0000 (16:07 +0100)]
use systemctl instead of chkconfig

10 years agofix packaging ctd
Thierry Parmentelat [Thu, 16 Jan 2014 13:28:27 +0000 (14:28 +0100)]
fix packaging ctd

10 years agofixes
Thierry Parmentelat [Thu, 16 Jan 2014 13:15:29 +0000 (14:15 +0100)]
fixes

10 years agoinstall nodemanager with systemd unit files instead of initscripts
Thierry Parmentelat [Thu, 16 Jan 2014 09:17:00 +0000 (10:17 +0100)]
install nodemanager with systemd unit files instead of initscripts

10 years agoset default to f18
Thierry Parmentelat [Thu, 16 Jan 2014 09:12:18 +0000 (10:12 +0100)]
set default to f18

10 years agofix misleading comments that improperly refer to vsliver_vs on an lxc node
Thierry Parmentelat [Thu, 16 Jan 2014 09:11:51 +0000 (10:11 +0100)]
fix misleading comments that improperly refer to vsliver_vs on an lxc node