nodemanager.git
5 years agoreguire gnupg1 on f>=31; sense the system to use gpg1 when installed 2.1 master
Thierry Parmentelat [Thu, 27 Feb 2020 10:54:40 +0000 (11:54 +0100)]
reguire gnupg1 on f>=31; sense the system to use gpg1 when installed

6 years agoMerge branch 'python3'
Thierry Parmentelat [Mon, 7 Jan 2019 11:41:45 +0000 (12:41 +0100)]
Merge branch 'python3'

6 years agoSetting tag nodemanager-7.0-0 python3 nodemanager-7.0-0
Thierry Parmentelat [Mon, 7 Jan 2019 11:27:56 +0000 (12:27 +0100)]
Setting tag nodemanager-7.0-0
ported to python3
add a systemd dependency to network-online so the service won't start too early
only support systemd, removed init-oriented business
also removed debian-oriented business

6 years agoSetting tag nodemanager-5.2-20 nodemanager-5.2-20
Thierry Parmentelat [Mon, 7 Jan 2019 11:20:19 +0000 (12:20 +0100)]
Setting tag nodemanager-5.2-20
simply make conf_files.py executable, so that bootmanager can be py2/py3 compliant

6 years agonicer docstrings
Thierry Parmentelat [Wed, 2 Jan 2019 16:58:21 +0000 (17:58 +0100)]
nicer docstrings

6 years agocan't blindly decode() a pickle, need to store as bytes
Thierry Parmentelat [Wed, 2 Jan 2019 16:56:12 +0000 (17:56 +0100)]
can't blindly decode() a pickle, need to store as bytes

6 years agocosmetic
Thierry Parmentelat [Wed, 2 Jan 2019 14:04:04 +0000 (15:04 +0100)]
cosmetic

6 years agoone - hopefully - last bytes vs str change for py3
Thierry Parmentelat [Wed, 2 Jan 2019 14:03:51 +0000 (15:03 +0100)]
one - hopefully - last bytes vs str change for py3

6 years agofor python3, use // instead of /
Thierry Parmentelat [Wed, 2 Jan 2019 13:09:22 +0000 (14:09 +0100)]
for python3, use // instead of /

6 years agoa little nicer
Thierry Parmentelat [Tue, 1 Jan 2019 15:17:43 +0000 (16:17 +0100)]
a little nicer

6 years agovarious further fixes for python3
Thierry Parmentelat [Tue, 1 Jan 2019 15:17:10 +0000 (16:17 +0100)]
various further fixes for python3

6 years agopickle requires a file open in binary mode
Thierry Parmentelat [Tue, 1 Jan 2019 12:30:57 +0000 (13:30 +0100)]
pickle requires a file open in binary mode

6 years agocleaner
Thierry Parmentelat [Mon, 31 Dec 2018 15:32:56 +0000 (16:32 +0100)]
cleaner

6 years agotwo more changes for python3 in the bytes vs str area
Thierry Parmentelat [Mon, 31 Dec 2018 15:32:23 +0000 (16:32 +0100)]
two more changes for python3 in the bytes vs str area

6 years agocleanup of conf_files
Thierry Parmentelat [Mon, 31 Dec 2018 10:50:42 +0000 (11:50 +0100)]
cleanup of conf_files

6 years agosomehow with a python3 API, the conf_files process that kicks at boot-time
Thierry Parmentelat [Mon, 31 Dec 2018 10:50:30 +0000 (11:50 +0100)]
somehow with a python3 API, the conf_files process that kicks at boot-time
starts way before the network is ready; so this change adds a systemd dependency
as an attempt to avoid that

6 years agoa few more shebangs or calls to python
Thierry Parmentelat [Sun, 30 Dec 2018 17:55:09 +0000 (18:55 +0100)]
a few more shebangs or calls to python

6 years agoremove initscripts altogether
Thierry Parmentelat [Sun, 30 Dec 2018 17:54:55 +0000 (18:54 +0100)]
remove initscripts altogether

6 years agoshebangs just in case
Thierry Parmentelat [Sun, 30 Dec 2018 16:39:28 +0000 (17:39 +0100)]
shebangs just in case

6 years agofile() is deprecated
Thierry Parmentelat [Sun, 30 Dec 2018 16:01:45 +0000 (17:01 +0100)]
file() is deprecated

6 years agoautopep8'ed tools.py
Thierry Parmentelat [Sun, 30 Dec 2018 16:01:00 +0000 (17:01 +0100)]
autopep8'ed tools.py

6 years agofix writing of str on os.open'ed file (needed bytes)
Thierry Parmentelat [Sun, 30 Dec 2018 13:18:17 +0000 (14:18 +0100)]
fix writing of str on os.open'ed file (needed bytes)

6 years agomaking the source file executable under git was not enough, I suspect setup.py enforc...
Thierry Parmentelat [Sat, 29 Dec 2018 19:58:57 +0000 (20:58 +0100)]
making the source file executable under git was not enough, I suspect setup.py enforces -x

6 years agomaking the source file executable under git was not enough, I suspect setup.py enforc...
Thierry Parmentelat [Sat, 29 Dec 2018 19:58:57 +0000 (20:58 +0100)]
making the source file executable under git was not enough, I suspect setup.py enforces -x

6 years agoadd shebang to conf_files so that bootmanager can call it directly
Thierry Parmentelat [Sat, 29 Dec 2018 13:49:14 +0000 (14:49 +0100)]
add shebang to conf_files so that bootmanager can call it directly

6 years agominor cosmetic in conf_files
Thierry Parmentelat [Sat, 29 Dec 2018 13:51:47 +0000 (14:51 +0100)]
minor cosmetic in conf_files

6 years agoadd shebang to conf_files so that bootmanager can call it directly
Thierry Parmentelat [Sat, 29 Dec 2018 13:49:14 +0000 (14:49 +0100)]
add shebang to conf_files so that bootmanager can call it directly

6 years agostring.atoi is deprecated .. since 2.0
Thierry Parmentelat [Sat, 29 Dec 2018 13:26:22 +0000 (14:26 +0100)]
string.atoi is deprecated .. since 2.0

6 years agomiscell harmless cleanup in makefile and setup
Thierry Parmentelat [Sat, 29 Dec 2018 10:35:34 +0000 (11:35 +0100)]
miscell harmless cleanup in makefile and setup

6 years agonever managed to remember this one right
Thierry Parmentelat [Sat, 29 Dec 2018 09:32:00 +0000 (10:32 +0100)]
never managed to remember this one right

6 years agoforward_api_calls is a binary and should not get packaged by setup.py, use make instead
Thierry Parmentelat [Sat, 29 Dec 2018 07:20:55 +0000 (08:20 +0100)]
forward_api_calls is a binary and should not get packaged by setup.py, use make instead

6 years agocleanup leftovers from debian
Thierry Parmentelat [Sat, 29 Dec 2018 06:58:34 +0000 (07:58 +0100)]
cleanup leftovers from debian

6 years agoblind and brutal 2to3
Thierry Parmentelat [Fri, 28 Dec 2018 21:48:37 +0000 (22:48 +0100)]
blind and brutal 2to3

6 years agofor python3: specfile and makefile, taking this chance for some overdue cleanups
Thierry Parmentelat [Fri, 28 Dec 2018 21:48:13 +0000 (22:48 +0100)]
for python3: specfile and makefile, taking this chance for some overdue cleanups

8 years agoSetting tag nodemanager-5.2-19 nodemanager-5.2-19
Thierry Parmentelat [Sun, 10 Jul 2016 14:09:55 +0000 (16:09 +0200)]
Setting tag nodemanager-5.2-19
tweak to run against libvirt-python-1.3.3 under f24
fix by Thomas Dreibholz - misspelled ovs-ovsctl
default vrf is f24 - not that it matters much

8 years agoset default vref to f24 + minor tweaks
Thierry Parmentelat [Sun, 10 Jul 2016 12:12:47 +0000 (14:12 +0200)]
set default vref to f24 + minor tweaks

8 years agoworkaround for broken libvirt-python on f24
Thierry Parmentelat [Fri, 8 Jul 2016 12:11:28 +0000 (14:11 +0200)]
workaround for broken libvirt-python on f24

9 years agopatch by Thomas Dreibholz - ovs-vsctl and not ovs-ovsctl
Thierry Parmentelat [Wed, 6 Apr 2016 09:31:08 +0000 (11:31 +0200)]
patch by Thomas Dreibholz - ovs-vsctl and not ovs-ovsctl

9 years agogitignore
Thierry Parmentelat [Wed, 16 Dec 2015 08:37:05 +0000 (09:37 +0100)]
gitignore

9 years agoSetting tag nodemanager-5.2-18 nodemanager-5.2-18
Thierry Parmentelat [Fri, 13 Nov 2015 12:03:23 +0000 (13:03 +0100)]
Setting tag nodemanager-5.2-18
remove codemux plugin from lxc - was causing slice re-creation issue
has reconnect capabilities to libvirt deamon
reinstate code from a previous version, that deals with btrfs cleaning up
cleaned up cgroups.py

9 years agono change - just prettified
Thierry Parmentelat [Fri, 13 Nov 2015 07:58:00 +0000 (08:58 +0100)]
no change - just prettified

9 years agominor cleanup, just removed dead code
Thierry Parmentelat [Thu, 12 Nov 2015 19:04:49 +0000 (20:04 +0100)]
minor cleanup, just removed dead code

9 years agoreinstate a workaround about cleaning up btrfs subvolumes; most likely that was still...
Thierry Parmentelat [Thu, 12 Nov 2015 19:02:57 +0000 (20:02 +0100)]
reinstate a workaround about cleaning up btrfs subvolumes; most likely that was still needed

9 years agoturn off the codemux plugin in an lxc environment
Thierry Parmentelat [Thu, 12 Nov 2015 19:01:41 +0000 (20:01 +0100)]
turn off the codemux plugin in an lxc environment
it was confirmed to be responsible for the slice re-creation issue

9 years agocosmetic changes only, pretty printing and comments, no change in behaviour
Thierry Parmentelat [Thu, 12 Nov 2015 19:01:03 +0000 (20:01 +0100)]
cosmetic changes only, pretty printing and comments, no change in behaviour

9 years agotrace actions done on cgroups so we can check if this happens within the lifespan...
Thierry Parmentelat [Tue, 10 Nov 2015 15:04:37 +0000 (16:04 +0100)]
trace actions done on cgroups so we can check if this happens within the lifespan of the sliver

9 years agocosmetic - slightly changed message when a freezer cgroup file can't be figured out
Thierry Parmentelat [Wed, 4 Nov 2015 11:09:56 +0000 (12:09 +0100)]
cosmetic - slightly changed message when a freezer cgroup file can't be figured out

9 years agoremove noise in nodemanager log
Thierry Parmentelat [Wed, 4 Nov 2015 10:54:26 +0000 (11:54 +0100)]
remove noise in nodemanager log

9 years agoreconnect to libvirt when the (unique) connection object looks broken
Thierry Parmentelat [Wed, 4 Nov 2015 10:39:44 +0000 (11:39 +0100)]
reconnect to libvirt when the (unique) connection object looks broken

9 years agose format() instead of % in sliver_lxc.py
Thierry Parmentelat [Mon, 2 Nov 2015 15:09:28 +0000 (16:09 +0100)]
se format() instead of % in sliver_lxc.py

9 years agologging : when a reference image is not found, its expected path was not printed...
Thierry Parmentelat [Mon, 2 Nov 2015 13:48:32 +0000 (14:48 +0100)]
logging : when a reference image is not found, its expected path was not printed out properly

9 years agoSetting tag nodemanager-5.2-17 nodemanager-5.2-17
Thierry Parmentelat [Fri, 26 Jun 2015 12:00:35 +0000 (14:00 +0200)]
Setting tag nodemanager-5.2-17
first step towards auto slice-reimaging
slices that would be reimaged because of a change of slicefamily are
identified in the nodemanager's log
might have fixed fd leaks (use context managers whenever possible)

9 years agoreimaging code revisited
Thierry Parmentelat [Fri, 19 Jun 2015 15:27:28 +0000 (17:27 +0200)]
reimaging code revisited

9 years agospaces after comma
Thierry Parmentelat [Fri, 19 Jun 2015 15:10:16 +0000 (17:10 +0200)]
spaces after comma

9 years agofirst stab at reimaging slivers when created under the wrong slicefamily
Thierry Parmentelat [Fri, 19 Jun 2015 14:45:03 +0000 (16:45 +0200)]
first stab at reimaging slivers when created under the wrong slicefamily

9 years agohopefully fewer leaks in files : always use a context manager to open files
Thierry Parmentelat [Fri, 19 Jun 2015 12:20:21 +0000 (14:20 +0200)]
hopefully fewer leaks in files : always use a context manager to open files

9 years agoanother pass for prettifying - mostly format instead of %
Thierry Parmentelat [Fri, 19 Jun 2015 10:54:28 +0000 (12:54 +0200)]
another pass for prettifying - mostly format instead of %

9 years agono change, just nicer
Thierry Parmentelat [Fri, 19 Jun 2015 09:53:32 +0000 (11:53 +0200)]
no change, just nicer

10 years agoSetting tag nodemanager-5.2-16 nodemanager-5.2-16
Thierry Parmentelat [Fri, 3 Apr 2015 07:55:24 +0000 (09:55 +0200)]
Setting tag nodemanager-5.2-16
initscript plugin reviewed
turn off the initscript machinery completely on hosts that run f>=20
some tweaks related to cgroup naming in f>=20, including for ipv6
ideally all code depending on the cgroup naming scheme should use cgroups.py
we are not there yet but this is a bit cleaner already

10 years agocosmetic tweaks before tagging
Thierry Parmentelat [Fri, 3 Apr 2015 06:32:32 +0000 (08:32 +0200)]
cosmetic tweaks before tagging

10 years agorefactor of reboot_slivers() to cover f21 -- only ipv6 part is affected.
Guilherme Sperb Machado [Wed, 1 Apr 2015 00:40:16 +0000 (02:40 +0200)]
refactor of reboot_slivers() to cover f21 -- only ipv6 part is affected.

10 years agoCorreted a bug in the get_sliver_process() function in tools.py to
Guilherme Sperb Machado [Mon, 23 Mar 2015 22:17:09 +0000 (23:17 +0100)]
Correted a bug in the get_sliver_process() function in tools.py to
consider libvirt cgroup naming standards in Fedora 20 and later. Clean
up a bit ipv6.py and update_ipv6addr_slivertag.py, also correcting minor
bugs.

10 years agoreplace confusing warning message with a debug one
Thierry Parmentelat [Fri, 20 Mar 2015 09:48:42 +0000 (10:48 +0100)]
replace confusing warning message with a debug one

10 years agoturn off the initscript feature altogether in nodes that have machinectl (i.e. f20...
Thierry Parmentelat [Wed, 18 Mar 2015 20:07:10 +0000 (21:07 +0100)]
turn off the initscript feature altogether in nodes that have machinectl (i.e. f20 and higher)

10 years agoan attempt to see if avoiding to run initscripts altogether solves the slice re-creat...
Thierry Parmentelat [Wed, 18 Mar 2015 10:55:05 +0000 (11:55 +0100)]
an attempt to see if avoiding to run initscripts altogether solves the slice re-creation issue

10 years agocleaned up cgroups, updated for recent libvirts,
Thierry Parmentelat [Fri, 13 Mar 2015 15:35:09 +0000 (16:35 +0100)]
cleaned up  cgroups, updated for recent libvirts,
used in coresched - at least the part that keeps on sending messages;
don't know how to check the reservation part

10 years agopretty-printed
Thierry Parmentelat [Fri, 13 Mar 2015 14:23:45 +0000 (15:23 +0100)]
pretty-printed

10 years agodeprecate refresh_slice_vinit and move this code up to Initscript.configure
Thierry Parmentelat [Fri, 13 Mar 2015 11:02:24 +0000 (12:02 +0100)]
deprecate refresh_slice_vinit and move this code up to Initscript.configure

10 years agominor cleanup
Thierry Parmentelat [Fri, 13 Mar 2015 11:01:19 +0000 (12:01 +0100)]
minor cleanup

10 years agofix coresched locating cgroup and reduce verbosity
Thierry Parmentelat [Fri, 13 Mar 2015 10:59:54 +0000 (11:59 +0100)]
fix coresched locating cgroup and reduce verbosity

10 years agooops, too much messing about
Thierry Parmentelat [Fri, 13 Mar 2015 10:29:13 +0000 (11:29 +0100)]
oops, too much messing about

10 years agotrim down the amount of verbosity of update_ipv6addr_slivertag
Thierry Parmentelat [Fri, 13 Mar 2015 09:53:21 +0000 (10:53 +0100)]
trim down the amount of verbosity of update_ipv6addr_slivertag

10 years agolet SystemExit exception go up to the surface so we can exit() and so freeze the...
Thierry Parmentelat [Fri, 13 Mar 2015 09:52:49 +0000 (10:52 +0100)]
let SystemExit exception go up to the surface so we can exit() and so freeze the system for troubleshooting

10 years agojust cosmetics
Thierry Parmentelat [Fri, 13 Mar 2015 09:47:58 +0000 (10:47 +0100)]
just cosmetics

10 years agooops
Thierry Parmentelat [Fri, 13 Mar 2015 07:26:23 +0000 (08:26 +0100)]
oops

10 years agominor tweaks, and revert on forcing refresh_slice_vinit, this is not the problem
Thierry Parmentelat [Thu, 12 Mar 2015 20:23:47 +0000 (21:23 +0100)]
minor tweaks, and revert on forcing refresh_slice_vinit, this is not the problem

10 years agoa few fixes about initscripts under systemd
Thierry Parmentelat [Thu, 12 Mar 2015 15:46:59 +0000 (16:46 +0100)]
a few fixes about initscripts under systemd

10 years agomore pythonic spaces - no real change
Thierry Parmentelat [Thu, 12 Mar 2015 15:38:10 +0000 (16:38 +0100)]
more pythonic spaces - no real change

10 years agosystemctl --system daemon-reload
Thierry Parmentelat [Thu, 12 Mar 2015 09:39:38 +0000 (10:39 +0100)]
systemctl --system daemon-reload

10 years agoanother attempt for smoother initscript integration
Thierry Parmentelat [Tue, 10 Mar 2015 14:42:12 +0000 (15:42 +0100)]
another attempt for smoother initscript integration

10 years agoa convenience target to push systemd unit files on the sliver side
Thierry Parmentelat [Tue, 10 Mar 2015 14:41:37 +0000 (15:41 +0100)]
a convenience target to push systemd unit files on the sliver side

10 years agoonly cosmetic
Thierry Parmentelat [Tue, 10 Mar 2015 14:40:59 +0000 (15:40 +0100)]
only cosmetic
I have noticed numerous failures in get_sliver_process though

10 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

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

10 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.

10 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

10 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.

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

10 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.

10 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

10 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

10 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

10 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

10 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

10 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.

10 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.

10 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

10 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

10 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

10 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