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

4 years agoshebags mention python2 explicitly
Thierry Parmentelat [Thu, 28 Nov 2019 10:52:18 +0000 (11:52 +0100)]
shebags mention python2 explicitly

5 years agoSetting tag bootmanager-6.0-0 bootmanager-6.0-0
Thierry Parmentelat [Mon, 7 Jan 2019 10:08:16 +0000 (11:08 +0100)]
Setting tag bootmanager-6.0-0
* this is STILL BASED ON PYTHON2, but relies on 2 accessory libraries that are pypcilib and pyplnet
for this reason, the relevant files are COPIED at packaging time
* new settings lxc_ROOT_SIZE=12G (was 70G) and SWAP_SIZE=4G (was 1G)
and lxc_TOTAL_MINIMUM_DISK_SIZE=50 (was 120)
* invoke conf_files.py as a plain script (i.e. expects a shebang) since we ideally can still
use this code against a python2 nodemanager
* skip nodeupdate step, will be redone later anyway
* rely on NetworkManager utilities when ifconfig can't be found
* tear down patch for very old 2.6.12 kernels
* a little closer to python3 though

5 years agovarious cleanups and cosmetic improvements in utils and InstallWriteConfig
Thierry Parmentelat [Mon, 31 Dec 2018 12:20:25 +0000 (13:20 +0100)]
various cleanups and cosmetic improvements in utils and InstallWriteConfig
still py2, but closer to py3

5 years agobugfix in sysexec_chroot_noerr, path not passed along
Thierry Parmentelat [Mon, 31 Dec 2018 12:19:45 +0000 (13:19 +0100)]
bugfix in sysexec_chroot_noerr, path not passed along

5 years agorely on a shebang in conf_files.py to choose between python2 or python3
Thierry Parmentelat [Sat, 29 Dec 2018 14:01:08 +0000 (15:01 +0100)]
rely on a shebang in conf_files.py to choose between python2 or python3

5 years agocosmetic
Thierry Parmentelat [Fri, 28 Dec 2018 23:59:18 +0000 (00:59 +0100)]
cosmetic

5 years agoplnet expects key 'interfaces' and does no longer support the old 'networks' form
parmentelat [Thu, 20 Dec 2018 12:56:11 +0000 (13:56 +0100)]
plnet expects key 'interfaces' and does no longer support the old 'networks'  form

5 years agocosmetic pep8-like
parmentelat [Thu, 20 Dec 2018 11:29:55 +0000 (12:29 +0100)]
cosmetic pep8-like

5 years agouse context manager to save and read node session
parmentelat [Thu, 20 Dec 2018 11:29:16 +0000 (12:29 +0100)]
use context manager to save and read node session

5 years agofor the python3 distribution, ignore __pycache__ when copying rpm contents
parmentelat [Tue, 18 Dec 2018 14:41:53 +0000 (15:41 +0100)]
for the python3 distribution, ignore __pycache__ when copying rpm contents

5 years agoservice and ifconfig have gone
parmentelat [Tue, 18 Dec 2018 08:23:01 +0000 (09:23 +0100)]
service and ifconfig have gone

6 years agodisabled btrfs quota because of a bug making the node gain a very high load
Ciro Scognamiglio [Wed, 6 Dec 2017 18:53:13 +0000 (19:53 +0100)]
disabled btrfs quota because of a bug making the node gain a very high load

6 years agoupdated node partition configuration
Ciro Scognamiglio [Wed, 6 Dec 2017 18:52:34 +0000 (19:52 +0100)]
updated node partition configuration

6 years agoMINIMUM disk size to 80GB to allow SSD 120GB to be used
Ciro Scognamiglio [Thu, 5 Oct 2017 14:27:34 +0000 (16:27 +0200)]
MINIMUM disk size to 80GB to allow SSD 120GB to be used

6 years agoskipping nodeupdate on node reinstall
Ciro Scognamiglio [Wed, 20 Sep 2017 14:44:35 +0000 (16:44 +0200)]
skipping nodeupdate on node reinstall

8 years agoSetting tag bootmanager-5.3-4 bootmanager-5.3-4
Thierry Parmentelat [Sun, 10 Jan 2016 13:07:48 +0000 (14:07 +0100)]
Setting tag bootmanager-5.3-4
runlevelagent was not able to reach myplc because of
server verification that is now implicit in python 2.7.9

8 years agobetter patch for unverified context
Thierry Parmentelat [Wed, 16 Dec 2015 08:26:59 +0000 (09:26 +0100)]
better patch for unverified context

8 years agoSetting tag bootmanager-5.3-3 bootmanager-5.3-3
Thierry Parmentelat [Tue, 8 Dec 2015 10:19:19 +0000 (11:19 +0100)]
Setting tag bootmanager-5.3-3
patch for f23 as of dec. 2015 where kernel and initrd show up in
a new location under /boot
plus bugfix with format and single { and } for awk args

8 years agobugfix (would not find kernel at all)
Thierry Parmentelat [Mon, 7 Dec 2015 15:18:59 +0000 (16:18 +0100)]
bugfix (would not find kernel at all)
+ factorized kernel and initrd

8 years agoMerge branch 'master' of ssh://git.onelab.eu/git/bootmanager
Thierry Parmentelat [Mon, 7 Dec 2015 13:01:37 +0000 (14:01 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/bootmanager

* 'master' of ssh://git.onelab.eu/git/bootmanager:
  Setting tag bootmanager-5.3-2 not a noarch package anymore (indeed it does come with binaries) fix ssl connection for runlevelagent for recent pythons for fedora23, ignore if rsa1 key generation fails

8 years agobugfixes for the location of kernel and initrd as observed on recent f23
Thierry Parmentelat [Mon, 7 Dec 2015 13:01:28 +0000 (14:01 +0100)]
bugfixes for the location of kernel and initrd as observed on recent f23
plus, a couple of calls to format() had real {} that needed doubling

8 years agoSetting tag bootmanager-5.3-2 bootmanager-5.3-2
Thierry Parmentelat [Fri, 13 Nov 2015 11:56:21 +0000 (12:56 +0100)]
Setting tag bootmanager-5.3-2
not a noarch package anymore (indeed it does come with binaries)
fix ssl connection for runlevelagent for recent pythons
for fedora23, ignore if rsa1 key generation fails

8 years agoadded check for ssl _create_unverified_context when talking to API
Ciro Scognamiglio [Tue, 10 Nov 2015 13:29:41 +0000 (14:29 +0100)]
added check for ssl _create_unverified_context when talking to API

8 years agosame as previous change : ignore error when producing the rsa1 ssh key
Thierry Parmentelat [Mon, 9 Nov 2015 11:38:57 +0000 (12:38 +0100)]
same as previous change : ignore error when producing the rsa1 ssh key

8 years agowhen generating keys inside the bootcd environment, ignore errors about the rsa1...
Thierry Parmentelat [Mon, 9 Nov 2015 10:40:06 +0000 (11:40 +0100)]
when generating keys inside the bootcd environment, ignore errors about the rsa1 key type, as support for this has been dropped apparently in f23

8 years agonot noarch anymore
Thierry Parmentelat [Sat, 7 Nov 2015 13:00:59 +0000 (14:00 +0100)]
not noarch anymore

8 years agomake debugmode can push this code on board a node in debug mode (aka safeboot)
Thierry Parmentelat [Fri, 30 Oct 2015 15:33:14 +0000 (16:33 +0100)]
make debugmode can push this code on board a node in debug mode (aka safeboot)

8 years agofix for when upgrading too old nodes
Thierry Parmentelat [Thu, 8 Oct 2015 12:45:29 +0000 (14:45 +0200)]
fix for when upgrading too old nodes

8 years agoSetting tag bootmanager-5.3-1 bootmanager-5.3-1
Thierry Parmentelat [Fri, 26 Jun 2015 11:54:05 +0000 (13:54 +0200)]
Setting tag bootmanager-5.3-1
Use TLSv1 to connect to myplc, instead of SSLv3 that is known to be broken
Can implement 'upgrade' in addition to 'reinstall' boot state
upgrade does essentially the same as reinstall except that slices are preserved
upgrade works only on nodes already running containers
because /vservers/ needs to be a btrfs filesystem
pycurl is now a strong requirement (old curl-based code removed)
bugfix for ssh key generation (were all typed rsa1)
a lot of prettification

8 years agoremove old code that was filling in for when pycurl is not available
Thierry Parmentelat [Fri, 26 Jun 2015 11:35:47 +0000 (13:35 +0200)]
remove old code that was filling in for when pycurl is not available
even f12 bootCDs have pycurl

8 years agosimplified PARTITIONS to use one entry per each partition
Thierry Parmentelat [Thu, 25 Jun 2015 21:49:08 +0000 (23:49 +0200)]
simplified PARTITIONS to use one entry per each partition
we used to have e.g. PARTITIONS['root'] and PARTITIONS['mapper-root']
but we don't need them both and it makes things confusing

8 years agovgchange is required so that /dev/mapper/* and /dev/planetlab/* show up when upgrading
Thierry Parmentelat [Thu, 25 Jun 2015 21:30:17 +0000 (23:30 +0200)]
vgchange is required so that /dev/mapper/* and /dev/planetlab/* show up when upgrading

8 years agoadd debug messages about the status of partitions
Thierry Parmentelat [Thu, 25 Jun 2015 21:02:03 +0000 (23:02 +0200)]
add debug messages about the status of partitions

8 years agotry to fix upgrade mode - run vgscan --mknodes
Thierry Parmentelat [Thu, 25 Jun 2015 16:29:52 +0000 (18:29 +0200)]
try to fix upgrade mode - run vgscan --mknodes
apparently not enough though

8 years agonotes about an idea to rpm install a more recent btrfs-progs rpm in f14 boot-cds...
Thierry Parmentelat [Thu, 25 Jun 2015 16:29:15 +0000 (18:29 +0200)]
notes about an idea to rpm install a more recent btrfs-progs rpm in f14 boot-cds, but no place in the ramfs...

8 years agoupgrade mode was not working; CheckForNewDisks was erroneously taking the disk as...
Thierry Parmentelat [Thu, 25 Jun 2015 11:09:08 +0000 (13:09 +0200)]
upgrade mode was not working; CheckForNewDisks was erroneously taking the disk as not yet in the volume, and would destroy everything
this is now taken care of by beinf a llittle more conservative in ChekForNewDisks

8 years agorename util get_block_device_list into get_block_devices_dict and clean up its usage
Thierry Parmentelat [Wed, 24 Jun 2015 14:47:45 +0000 (16:47 +0200)]
rename util get_block_device_list into get_block_devices_dict and clean up its usage

8 years agobreakpoint messages always show up
Thierry Parmentelat [Wed, 24 Jun 2015 14:44:12 +0000 (16:44 +0200)]
breakpoint messages always show up

8 years agouse git ls-files to make tags
Thierry Parmentelat [Wed, 24 Jun 2015 13:44:59 +0000 (15:44 +0200)]
use git ls-files to make tags

8 years agosmall cosmetic changes
Thierry Parmentelat [Wed, 24 Jun 2015 12:59:08 +0000 (14:59 +0200)]
small cosmetic changes

8 years agoprettyfied
Thierry Parmentelat [Tue, 23 Jun 2015 13:36:56 +0000 (15:36 +0200)]
prettyfied

8 years agoa first stab at upgrading nodes
Thierry Parmentelat [Tue, 23 Jun 2015 11:22:46 +0000 (13:22 +0200)]
a first stab at upgrading nodes
not working yet, but I need to build all this

8 years agoalways use print_function
Thierry Parmentelat [Tue, 23 Jun 2015 07:24:37 +0000 (09:24 +0200)]
always use print_function

8 years agouse TLSv1 instead of SSLv3
Thierry Parmentelat [Sun, 21 Jun 2015 17:08:50 +0000 (19:08 +0200)]
use TLSv1 instead of SSLv3

8 years agoremove breakpoints, and use log instead of print when possible
Thierry Parmentelat [Wed, 29 Apr 2015 09:30:41 +0000 (11:30 +0200)]
remove breakpoints, and use log instead of print when possible

8 years agostill prettifying
Thierry Parmentelat [Wed, 29 Apr 2015 09:25:49 +0000 (11:25 +0200)]
still prettifying

8 years agowas meant with previous commit
Thierry Parmentelat [Wed, 29 Apr 2015 09:03:03 +0000 (11:03 +0200)]
was meant with previous commit

8 years agooops
Thierry Parmentelat [Tue, 28 Apr 2015 11:21:13 +0000 (13:21 +0200)]
oops

8 years agoprettifying source/
Thierry Parmentelat [Tue, 28 Apr 2015 11:09:34 +0000 (13:09 +0200)]
prettifying source/
comprehension instead of map

8 years agothis well deserves a minor bump in version number
Thierry Parmentelat [Tue, 28 Apr 2015 10:15:28 +0000 (12:15 +0200)]
this well deserves a minor bump in version number

8 years agodone prettifying
Thierry Parmentelat [Tue, 28 Apr 2015 10:14:42 +0000 (12:14 +0200)]
done prettifying

8 years agobugfix for ssh key generation (were all typed rsa1)
Thierry Parmentelat [Tue, 28 Apr 2015 09:53:40 +0000 (11:53 +0200)]
bugfix for ssh key generation (were all typed rsa1)

8 years agomore prettifying
Thierry Parmentelat [Tue, 28 Apr 2015 09:53:12 +0000 (11:53 +0200)]
more prettifying

8 years agooops
Thierry Parmentelat [Tue, 28 Apr 2015 09:21:39 +0000 (11:21 +0200)]
oops

8 years agooops
Thierry Parmentelat [Tue, 28 Apr 2015 08:47:30 +0000 (10:47 +0200)]
oops

8 years agono real change, just made prettier with a more standard layout - half of steps
Thierry Parmentelat [Tue, 28 Apr 2015 00:15:48 +0000 (02:15 +0200)]
no real change, just made prettier with a more standard layout - half of steps

9 years agonew boot_state 'upgrade' is recognized much like 'reinstall'
Thierry Parmentelat [Fri, 24 Apr 2015 15:15:27 +0000 (17:15 +0200)]
new boot_state 'upgrade' is recognized much like 'reinstall'
in this first rough implementation, a node in 'upgrade' mode goes through almost exactly the same steps as 'reinstall'  except for re-partitioning
one possible drawback of this approach is we might en up with too much stuff in /
that is to say we might need to clean up manually some areas of the system to avoid accumulating things from previous releases

9 years agopurely cosmetic: white spaces, .format rather than %, this kind of things only
Thierry Parmentelat [Fri, 24 Apr 2015 15:08:03 +0000 (17:08 +0200)]
purely cosmetic: white spaces, .format rather than %, this kind of things only

9 years agomake sync does not use lxc-enter-namespace
Thierry Parmentelat [Fri, 24 Apr 2015 14:07:28 +0000 (16:07 +0200)]
make sync does not use lxc-enter-namespace

9 years agoonly cosmetic
Thierry Parmentelat [Fri, 24 Apr 2015 13:16:32 +0000 (15:16 +0200)]
only cosmetic

9 years agoSetting tag bootmanager-5.2-5 bootmanager-5.2-5 bootmanager-5.3-0
Thierry Parmentelat [Wed, 16 Jul 2014 10:13:07 +0000 (12:13 +0200)]
Setting tag bootmanager-5.2-5
runs AnsibleHook, that optionnally runs playbooks (by default, usual behaviour)
introduces the ONE_PARTITION configuration variable
some suport for chainbooting ubuntu

9 years agoMerge branch 'ansible'
Thierry Parmentelat [Thu, 15 May 2014 09:28:36 +0000 (11:28 +0200)]
Merge branch 'ansible'

9 years agoSetting tag bootmanager-5.2-4 bootmanager-5.2-4
Thierry Parmentelat [Mon, 28 Apr 2014 11:00:06 +0000 (13:00 +0200)]
Setting tag bootmanager-5.2-4
no functional change, only tweaks in Makefile for interating with test environment

10 years agodefine extensions in vars even if not yet set ansible
Thierry Parmentelat [Wed, 16 Apr 2014 22:12:40 +0000 (00:12 +0200)]
define extensions in vars even if not yet set

10 years agoMerge branch 'ansible' of ssh://git.planet-lab.org/git/bootmanager into ansible
Sapan Bhatia [Wed, 16 Apr 2014 06:41:41 +0000 (02:41 -0400)]
Merge branch 'ansible' of ssh://git.planet-lab.org/git/bootmanager into ansible

10 years agoThe extensions variable is not expected to be in the configuration file if the latest...
Sapan Bhatia [Wed, 16 Apr 2014 06:41:37 +0000 (02:41 -0400)]
The extensions variable is not expected to be in the configuration file if the latest version of MyPLC is installed

10 years agofor debugging - print stack in case of exceptions caught at toplevel
Thierry Parmentelat [Wed, 16 Apr 2014 06:24:15 +0000 (08:24 +0200)]
for debugging - print stack in case of exceptions caught at toplevel

10 years agofix make sync for the current state of the test infra
Thierry Parmentelat [Wed, 16 Apr 2014 06:18:41 +0000 (08:18 +0200)]
fix make sync for the current state of the test infra

10 years agofix make sync for the current state of the test infra
Thierry Parmentelat [Wed, 16 Apr 2014 06:18:41 +0000 (08:18 +0200)]
fix make sync for the current state of the test infra

10 years agoMore workarounds for MyPLC 5.0
Sapan Bhatia [Fri, 4 Apr 2014 21:38:43 +0000 (17:38 -0400)]
More workarounds for MyPLC 5.0

10 years agoWorkaround to make extensions variable work with MyPLC 5.0
Sapan Bhatia [Fri, 4 Apr 2014 21:34:19 +0000 (17:34 -0400)]
Workaround to make extensions variable work with MyPLC 5.0

10 years agoCopy and paste error
Sapan Bhatia [Fri, 4 Apr 2014 21:18:18 +0000 (17:18 -0400)]
Copy and paste error

10 years agoAdd AnsibleHook step to list of available modules
Sapan Bhatia [Fri, 4 Apr 2014 20:58:41 +0000 (16:58 -0400)]
Add AnsibleHook step to list of available modules

10 years agoSet ONE_PARTITION if you want to make one giant root partition
Sapan Bhatia [Thu, 3 Apr 2014 18:46:30 +0000 (14:46 -0400)]
Set ONE_PARTITION if you want to make one giant root partition

10 years agoChanges to support running BootManager 5.2 on MyPLC < 5.2
Sapan Bhatia [Thu, 3 Apr 2014 18:39:30 +0000 (14:39 -0400)]
Changes to support running BootManager 5.2 on MyPLC < 5.2

10 years agoStep to hook into Ansible
Sapan Bhatia [Tue, 1 Apr 2014 12:43:13 +0000 (08:43 -0400)]
Step to hook into Ansible

10 years agoIgnore vservers partition
Sapan Bhatia [Tue, 1 Apr 2014 04:08:04 +0000 (00:08 -0400)]
Ignore vservers partition

10 years agoFixed path to Ubuntus initrd
Sapan Bhatia [Tue, 1 Apr 2014 04:03:10 +0000 (00:03 -0400)]
Fixed path to Ubuntus initrd

10 years agoLook for kernel in image, not in root
Sapan Bhatia [Tue, 1 Apr 2014 03:55:29 +0000 (23:55 -0400)]
Look for kernel in image, not in root

10 years agoDrop node manager and node update
Sapan Bhatia [Tue, 1 Apr 2014 03:48:13 +0000 (23:48 -0400)]
Drop node manager and node update

10 years agoDrop call to authconfig in generic distribution
Sapan Bhatia [Tue, 1 Apr 2014 03:42:38 +0000 (23:42 -0400)]
Drop call to authconfig in generic distribution

10 years agoDon't write vservers to fstab for non-rpm
Sapan Bhatia [Tue, 1 Apr 2014 03:37:02 +0000 (23:37 -0400)]
Don't write vservers to fstab for non-rpm

10 years agoSupport non-rpm distributions
Sapan Bhatia [Tue, 1 Apr 2014 03:15:46 +0000 (23:15 -0400)]
Support non-rpm distributions

10 years agoSupport kernel check other than rpm
Sapan Bhatia [Tue, 1 Apr 2014 02:18:03 +0000 (22:18 -0400)]
Support kernel check other than rpm

10 years agoTabulation issue
Sapan Bhatia [Mon, 31 Mar 2014 23:15:19 +0000 (19:15 -0400)]
Tabulation issue

10 years agoIntroduce new variable: ONE_PARTITION for indicating single-partition installations
Sapan Bhatia [Mon, 31 Mar 2014 23:13:07 +0000 (19:13 -0400)]
Introduce new variable: ONE_PARTITION for indicating single-partition installations

10 years agoTypo
Sapan Bhatia [Mon, 31 Mar 2014 23:03:38 +0000 (19:03 -0400)]
Typo

10 years agoDon't mount vservers partition if absent
Sapan Bhatia [Mon, 31 Mar 2014 23:00:44 +0000 (19:00 -0400)]
Don't mount vservers partition if absent

10 years agoDon't mount vservers partition if absent
Sapan Bhatia [Mon, 31 Mar 2014 22:42:34 +0000 (18:42 -0400)]
Don't mount vservers partition if absent

10 years agoROOT_SIZE is a string not a number
Sapan Bhatia [Mon, 31 Mar 2014 22:29:42 +0000 (18:29 -0400)]
ROOT_SIZE is a string not a number

10 years agoIdentify kernel version in a way that does not depend on rpm
Sapan Bhatia [Mon, 31 Mar 2014 21:31:01 +0000 (17:31 -0400)]
Identify kernel version in a way that does not depend on rpm

10 years agoSupport having only one partition
Sapan Bhatia [Mon, 31 Mar 2014 21:20:00 +0000 (17:20 -0400)]
Support having only one partition

10 years agoSetting tag bootmanager-5.2-3 bootmanager-5.2-3
Thierry Parmentelat [Tue, 25 Mar 2014 13:19:35 +0000 (14:19 +0100)]
Setting tag bootmanager-5.2-3
some old f18 bootCDs do not support mkfs.btrfs -f
so invoke this option only when supported

10 years agoinvoke mkfs.btrfs with -f only if supported
Thierry Parmentelat [Fri, 21 Mar 2014 17:19:02 +0000 (18:19 +0100)]
invoke mkfs.btrfs with -f only if supported

10 years agoSetting tag bootmanager-5.2-2 bootmanager-5.2-2
Thierry Parmentelat [Fri, 21 Mar 2014 15:12:59 +0000 (16:12 +0100)]
Setting tag bootmanager-5.2-2
conf_files.py is expected in /usr/share/NodeManager, not in /etc/init.d any more
smarter for locating initrd, for f20
add -f to mkfs.btrfs - sometimes hangs otherwise

10 years agotypo
Thierry Parmentelat [Tue, 14 Jan 2014 14:27:18 +0000 (15:27 +0100)]
typo

10 years agoavoid using conf_files initscript that might go when moving to systemd
Thierry Parmentelat [Tue, 14 Jan 2014 14:27:02 +0000 (15:27 +0100)]
avoid using conf_files initscript that might go when moving to systemd

10 years agoinitrd has a new location under /boot/ in f20
Thierry Parmentelat [Sat, 11 Jan 2014 15:14:48 +0000 (16:14 +0100)]
initrd has a new location under /boot/ in f20

10 years agoThomas's fix about calling mkfs.btrfs with the -f option
Thierry Parmentelat [Sun, 22 Dec 2013 09:50:37 +0000 (10:50 +0100)]
Thomas's fix about calling mkfs.btrfs with the -f option