bootmanager.git
9 years agoMerge remote-tracking branch 'origin/5.0' into bootmanager-vender bootmanager-vender
Git User [Tue, 14 Oct 2014 07:17:39 +0000 (03:17 -0400)]
Merge remote-tracking branch 'origin/5.0' into bootmanager-vender

11 years agoSetting tag bootmanager-5.0-24 5.0 bootmanager-5.0-24 bootmanager-5.2-0
Thierry Parmentelat [Fri, 31 Aug 2012 17:40:15 +0000 (19:40 +0200)]
Setting tag bootmanager-5.0-24
run parted with --script to avoid it to hang

11 years agorun parted with the --script option to prevent from hanging
Thierry Parmentelat [Fri, 31 Aug 2012 09:58:21 +0000 (11:58 +0200)]
run parted with the --script option to prevent from hanging
also use more explicit --list option instead of -l

11 years agoSetting tag bootmanager-5.0-23 bootmanager-5.0-23
Thierry Parmentelat [Mon, 9 Jul 2012 09:44:32 +0000 (11:44 +0200)]
Setting tag bootmanager-5.0-23
added support for disks larger than 2Tb using gpt instead of msdos

11 years agoimprove rendering in log
Thierry Parmentelat [Sat, 30 Jun 2012 06:48:48 +0000 (08:48 +0200)]
improve rendering in log

11 years agoanother angle to the 'try msdos, fallback to gpt' approach
Thierry Parmentelat [Fri, 29 Jun 2012 18:19:48 +0000 (20:19 +0200)]
another angle to the 'try msdos, fallback to gpt' approach

11 years agoadd a comment about why this partitioning code is still broken
Thierry Parmentelat [Fri, 29 Jun 2012 16:35:19 +0000 (18:35 +0200)]
add a comment about why this partitioning code is still broken

11 years agosfdisk does not support gpt partition tables
Sapan Bhatia [Thu, 28 Jun 2012 08:25:43 +0000 (04:25 -0400)]
sfdisk does not support gpt partition tables

11 years agopartition tables using gpt instead of msdos with disks larger than 2TB
Thierry Parmentelat [Wed, 27 Jun 2012 11:27:05 +0000 (13:27 +0200)]
partition tables using gpt instead of msdos with disks larger than 2TB

11 years agoSetting tag bootmanager-5.0-22 bootmanager-5.0-22
Thierry Parmentelat [Tue, 15 May 2012 11:16:11 +0000 (13:16 +0200)]
Setting tag bootmanager-5.0-22
bootmanager log clearly states duration of download and extraction of node image

11 years agowhoops
Thierry Parmentelat [Tue, 15 May 2012 10:20:34 +0000 (12:20 +0200)]
whoops

11 years agoeasier to retrieve duration for downloading/extracting install image
Thierry Parmentelat [Tue, 15 May 2012 08:27:57 +0000 (10:27 +0200)]
easier to retrieve duration for downloading/extracting install image

12 years agoSetting tag bootmanager-5.0-21 bootmanager-5.0-21
Thierry Parmentelat [Fri, 13 Apr 2012 14:39:56 +0000 (16:39 +0200)]
Setting tag bootmanager-5.0-21
no significant change, just checkpoint as 5.1 is addressing lxc

12 years agonew make sync for vs or lxc
Thierry Parmentelat [Mon, 2 Apr 2012 15:43:49 +0000 (17:43 +0200)]
new make sync for vs or lxc

12 years agono change - only added comment
Thierry Parmentelat [Thu, 29 Mar 2012 08:17:17 +0000 (10:17 +0200)]
no change - only added comment

12 years agoSetting tag bootmanager-5.0-20 bootmanager-5.0-20 bootmanager-5.1-0
Thierry Parmentelat [Thu, 7 Jul 2011 08:46:31 +0000 (10:46 +0200)]
Setting tag bootmanager-5.0-20
be more explicit on the node conf_file actually used
did this after a former PLC node tried to boot at PLE with its PLC plnode.txt still on a usb stick

12 years agowe're finding nodes that have old material from their time at PLC
Thierry Parmentelat [Sat, 25 Jun 2011 08:47:33 +0000 (10:47 +0200)]
we're finding nodes that have old material from their time at PLC
prints a summary line to say where the config file was found

12 years agoSetting tag bootmanager-5.0-19 bootmanager-5.0-19
Thierry Parmentelat [Fri, 10 Jun 2011 13:11:54 +0000 (15:11 +0200)]
Setting tag bootmanager-5.0-19
nicer log - was intended for previous tag

12 years agoMerge branch 'master' of ssh://git.onelab.eu/git/bootmanager
Thierry Parmentelat [Fri, 10 Jun 2011 12:21:23 +0000 (14:21 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/bootmanager

12 years agoSetting tag bootmanager-5.0-18 bootmanager-5.0-18
Thierry Parmentelat [Wed, 8 Jun 2011 14:24:14 +0000 (16:24 +0200)]
Setting tag bootmanager-5.0-18
{Start,Stop,}RunLevelAgent now ship with bootmanager
new UpdateLastBootOnce
root_size bumped to 14Gb which is more in line with modern h/w
more safely tries to umount /dev/ and /sys
support for raid partitions
mkswap -f
blacklist files from /etc/modprobe.conf/* instead

12 years agoadded support for software raid
Tony Mack [Thu, 2 Jun 2011 20:08:37 +0000 (16:08 -0400)]
added support for software raid

12 years agofixed typo
Stephen Soltesz [Fri, 27 May 2011 20:46:11 +0000 (16:46 -0400)]
fixed typo

12 years agoAdd Runlevelagent to BM. Add UpdateLastBootOnce() to record last_* in DB.
Stephen Soltesz [Fri, 27 May 2011 20:40:06 +0000 (16:40 -0400)]
Add Runlevelagent to BM.  Add UpdateLastBootOnce() to record last_* in DB.
   remove the dependency on monitor runlevelagent package.
   add UpdateLastBootOnce to update last_time_spent_online/_offline
   ensure that UpdateLastBootOnce() is called only once per boot.
   remove calls to runlevelagent in BM

12 years agoMerge branch 'master' of ssh://git.onelab.eu/git/bootmanager
Thierry Parmentelat [Mon, 9 May 2011 08:04:05 +0000 (10:04 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/bootmanager

12 years agocosmetic
Thierry Parmentelat [Thu, 5 May 2011 09:08:27 +0000 (11:08 +0200)]
cosmetic

13 years agoMerge branch 'master' of ssh://git.planet-lab.org/git/bootmanager
Stephen Soltesz [Mon, 18 Apr 2011 19:41:03 +0000 (15:41 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/bootmanager

13 years agoAdd extra umounts for /dev and /sys
Stephen Soltesz [Mon, 18 Apr 2011 19:40:43 +0000 (15:40 -0400)]
Add extra umounts for /dev and /sys
In some cases, /tmp/mnt/sysimg was failing to umount due to these mount points

13 years agoAdd extra umounts for /dev and /sys
Stephen Soltesz [Mon, 18 Apr 2011 19:30:30 +0000 (15:30 -0400)]
Add extra umounts for /dev and /sys
In some cases, /tmp/mnt/sysimg was failing to umount due to these mount points

13 years agoRevert "handle one hostname <--> multiple ip"
S.Çağlar Onur [Fri, 8 Apr 2011 22:49:40 +0000 (18:49 -0400)]
Revert "handle one hostname <--> multiple ip"

This reverts commit 1a55aa095e9e5ca2033626ef66b5925f408773f3.

13 years agohandle one hostname <--> multiple ip
S.Çağlar Onur [Fri, 8 Apr 2011 22:48:49 +0000 (18:48 -0400)]
handle one hostname <--> multiple ip

13 years agoIncrease the default root fs size to 14G. This will help account for out-of
Stephen Soltesz [Fri, 1 Apr 2011 21:17:56 +0000 (17:17 -0400)]
Increase the default root fs size to 14G.  This will help account for out-of
space conditions due to fprobe data logging in the worst cases, and leave more
room for logging.

13 years agoSilent following warning;
S.Çağlar Onur [Wed, 16 Mar 2011 15:54:55 +0000 (11:54 -0400)]
Silent following warning;

  mkswap: /dev/planetlab/swap: warning: don't erase bootbits sectors
          on whole disk. Use -f to force.

13 years agoremove hardcoded file list
S.Çağlar Onur [Tue, 15 Mar 2011 18:31:44 +0000 (14:31 -0400)]
remove hardcoded file list

13 years agoSetting tag bootmanager-5.0-17 bootmanager-5.0-17
Thierry Parmentelat [Thu, 17 Feb 2011 21:10:09 +0000 (22:10 +0100)]
Setting tag bootmanager-5.0-17
on install of boostrapfs, keep track in /bm-install.log with date & flavour

13 years agooops
Thierry Parmentelat [Tue, 15 Feb 2011 13:56:59 +0000 (14:56 +0100)]
oops

13 years agoadd bm version
Thierry Parmentelat [Mon, 14 Feb 2011 16:11:15 +0000 (17:11 +0100)]
add bm version

13 years agoadd /bm-install.txt at the root of the installed hdd
Thierry Parmentelat [Mon, 14 Feb 2011 16:07:55 +0000 (17:07 +0100)]
add /bm-install.txt at the root of the installed hdd

13 years agoSetting tag bootmanager-5.0-16 bootmanager-5.0-16
Thierry Parmentelat [Sun, 23 Jan 2011 11:51:52 +0000 (12:51 +0100)]
Setting tag bootmanager-5.0-16
for f14 : try to mount /dev as devtmpfs before bind-mounting to on the hdd's /dev
fix for chosing version of parted - for f14
added support for virtio deveices in /dev/vd
fixed scanning of new disks
slightly reviewed logs - default mode is verbose
removed deprecated mkinitrd.sh

13 years agoadd ext3 in initrd for f14
Thierry Parmentelat [Tue, 18 Jan 2011 16:17:18 +0000 (17:17 +0100)]
add ext3 in initrd for f14

13 years agoalways pass log to sysexec for consistency between bm.log and tty output
Thierry Parmentelat [Tue, 18 Jan 2011 13:07:02 +0000 (14:07 +0100)]
always pass log to sysexec for consistency between bm.log and tty output

13 years agoreview logging policies
Thierry Parmentelat [Tue, 18 Jan 2011 13:06:11 +0000 (14:06 +0100)]
review logging policies

13 years agothis sysexec thing just sucks
Thierry Parmentelat [Mon, 17 Jan 2011 21:33:54 +0000 (22:33 +0100)]
this sysexec thing just sucks

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/bootmanager
Thierry Parmentelat [Mon, 17 Jan 2011 21:28:02 +0000 (22:28 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/bootmanager

13 years agoworkaround for f14 bootCD
Thierry Parmentelat [Mon, 17 Jan 2011 15:34:55 +0000 (16:34 +0100)]
workaround for f14 bootCD

13 years agoremove never used breakpoint
Thierry Parmentelat [Mon, 17 Jan 2011 15:22:53 +0000 (16:22 +0100)]
remove never used breakpoint

13 years agoreviewed convenience targets
Thierry Parmentelat [Mon, 17 Jan 2011 15:21:49 +0000 (16:21 +0100)]
reviewed convenience targets

13 years agoagain check for virtio disks (not used now but it doesn't hurt to have them here)
Barış Metin [Fri, 14 Jan 2011 14:37:07 +0000 (15:37 +0100)]
again check for virtio disks (not used now but it doesn't hurt to have them here)

13 years ago/dev might be present but not populated. fixes the boot issue on f8/f12.
Barış Metin [Thu, 13 Jan 2011 15:26:32 +0000 (16:26 +0100)]
/dev might be present but not populated. fixes the boot issue on f8/f12.

13 years agoFix bug when not using monitor
Andy Bavier [Tue, 11 Jan 2011 20:11:18 +0000 (15:11 -0500)]
Fix bug when not using monitor

13 years agoinfo messages
Thierry Parmentelat [Thu, 6 Jan 2011 14:13:18 +0000 (15:13 +0100)]
info messages

13 years agofix for f14
Thierry Parmentelat [Thu, 6 Jan 2011 12:09:17 +0000 (13:09 +0100)]
fix for f14

13 years agocosmetic
Thierry Parmentelat [Thu, 6 Jan 2011 11:48:17 +0000 (12:48 +0100)]
cosmetic

13 years agofix CheckForNewDisks
Thierry Parmentelat [Thu, 6 Jan 2011 10:05:11 +0000 (11:05 +0100)]
fix CheckForNewDisks

13 years agocosmetic
Thierry Parmentelat [Thu, 6 Jan 2011 10:04:48 +0000 (11:04 +0100)]
cosmetic

13 years agofix the parted-version selection code, f14 has parted.version broken
Thierry Parmentelat [Wed, 5 Jan 2011 16:43:51 +0000 (17:43 +0100)]
fix the parted-version selection code, f14 has parted.version broken

13 years agoremove svn keywords and use %{SCMURL} in spec file
Thierry Parmentelat [Mon, 3 Jan 2011 13:22:34 +0000 (14:22 +0100)]
remove svn keywords and use %{SCMURL} in spec file

13 years agonow a git module
Thierry Parmentelat [Mon, 3 Jan 2011 13:20:47 +0000 (14:20 +0100)]
now a git module

13 years agoremove obsolete mkinitrd.sh script
Thierry Parmentelat [Mon, 3 Jan 2011 13:12:32 +0000 (14:12 +0100)]
remove obsolete mkinitrd.sh script

13 years agoMerge branch 'master' of dhozac@git.planet-lab.org:/git/bootmanager
Daniel Hokka Zakrisson [Tue, 14 Dec 2010 21:04:50 +0000 (16:04 -0500)]
Merge branch 'master' of dhozac@git.planet-lab.org:/git/bootmanager

13 years agoForce vgremove so it's automatic.
Daniel Hokka Zakrisson [Tue, 14 Dec 2010 20:53:13 +0000 (15:53 -0500)]
Force vgremove so it's automatic.

13 years agoSetting tag bootmanager-5.0-15 bootmanager-5.0-15
S.Çağlar Onur [Fri, 10 Dec 2010 18:22:23 +0000 (13:22 -0500)]
Setting tag bootmanager-5.0-15
Fix problems caused by shell redirection

13 years agostdoutdata can be None object
S.Çağlar Onur [Fri, 10 Dec 2010 18:11:42 +0000 (13:11 -0500)]
stdoutdata can be None object

13 years agoThis reverts commit 858dc952b15d2876373c38911a2173aa0bf522a9.
S.Çağlar Onur [Fri, 10 Dec 2010 18:02:37 +0000 (13:02 -0500)]
This reverts commit 858dc952b15d2876373c38911a2173aa0bf522a9.

13 years agofix 5e12a0a27c0c7518641e03cfa1ba2a32143a44aa
S.Çağlar Onur [Fri, 10 Dec 2010 17:34:39 +0000 (12:34 -0500)]
fix 5e12a0a27c0c7518641e03cfa1ba2a32143a44aa

13 years agoSetting tag bootmanager-5.0-14 bootmanager-5.0-14
Thierry Parmentelat [Thu, 9 Dec 2010 22:22:05 +0000 (23:22 +0100)]
Setting tag bootmanager-5.0-14
tag 5.0-13 is broken

13 years agouse sysexec_noerr for error handling
S.Çağlar Onur [Thu, 9 Dec 2010 03:26:07 +0000 (22:26 -0500)]
use sysexec_noerr for error handling

13 years agoSetting tag bootmanager-5.0-13 bootmanager-5.0-13
S.Çağlar Onur [Wed, 8 Dec 2010 18:50:34 +0000 (13:50 -0500)]
Setting tag bootmanager-5.0-13
Add support for uploading bash_history to a central server for failboot nodes.
Start to use subprocess instead of deprecated popen2 module
Fix typo for VSERVERS_SIZE
Add --allow-missing parameter to support different kernel configs with mkinitrd

13 years agoadd --allow-missing parameter to support different kernel configs
S.Çağlar Onur [Tue, 7 Dec 2010 22:36:52 +0000 (17:36 -0500)]
add --allow-missing parameter to support different kernel configs

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/bootmanager
Thierry Parmentelat [Sun, 5 Dec 2010 15:33:39 +0000 (16:33 +0100)]
Merge branch 'master' of ssh://git.onelab.eu/git/bootmanager

13 years agomissing include
Thierry Parmentelat [Sun, 5 Dec 2010 15:33:30 +0000 (16:33 +0100)]
missing include

13 years agoFix typo.
Daniel Hokka Zakrisson [Fri, 19 Nov 2010 22:20:58 +0000 (17:20 -0500)]
Fix typo.

13 years agonever fail when uploading logs
Stephen Soltesz [Wed, 10 Nov 2010 23:19:28 +0000 (18:19 -0500)]
never fail when uploading logs

13 years agoThis is supported only if there is a receiving server, such as myops, for the
Stephen Soltesz [Wed, 10 Nov 2010 23:09:29 +0000 (18:09 -0500)]
This is supported only if there is a receiving server, such as myops, for the
uploaded history files.  Otherwise, there is no effect.

Configure by setting MONITOR_SERVER in bootmanager/configuration

13 years agoAdd support for uploading bash_history to a central server for failboot nodes.
Stephen Soltesz [Wed, 10 Nov 2010 23:05:54 +0000 (18:05 -0500)]
Add support for uploading bash_history to a central server for failboot nodes.
This is supported only if there is a receiving server, such as myops, for the
uploaded history files.  Otherwise, there is no effect.

Configure by setting MONITOR_SERVER in bootmanager/configuration

13 years agoeverybody deserves a second chance
S.Çağlar Onur [Sun, 29 Aug 2010 05:23:03 +0000 (01:23 -0400)]
everybody deserves a second chance

13 years agohandle shell redirects
S.Çağlar Onur [Fri, 27 Aug 2010 16:40:38 +0000 (12:40 -0400)]
handle shell redirects

13 years agoRevert "Revert "replace deprecated popen2 with subprocess""
S.Çağlar Onur [Fri, 27 Aug 2010 16:36:44 +0000 (12:36 -0400)]
Revert "Revert "replace deprecated popen2 with subprocess""

This reverts commit e33917845bcb7537ced58a3acaa8c297d8eba1f1.

13 years agoSetting tag bootmanager-5.0-12 bootmanager-5.0-12
S.Çağlar Onur [Thu, 26 Aug 2010 19:57:50 +0000 (15:57 -0400)]
Setting tag bootmanager-5.0-12
Revert "replace deprecated popen2 with subprocess"

13 years agoRevert "replace deprecated popen2 with subprocess"
S.Çağlar Onur [Thu, 26 Aug 2010 19:49:45 +0000 (15:49 -0400)]
Revert "replace deprecated popen2 with subprocess"

This reverts commit 37388b93f7ef01f73393a26e0db22dc80b74a620.

13 years agoSetting tag bootmanager-5.0-11 bootmanager-5.0-11
S.Çağlar Onur [Wed, 11 Aug 2010 20:31:52 +0000 (16:31 -0400)]
Setting tag bootmanager-5.0-11
replace deprecated popen2 with subprocess and handle fsck return codes in a different code path

13 years agoor/and
S.Çağlar Onur [Wed, 11 Aug 2010 14:18:19 +0000 (10:18 -0400)]
or/and

13 years agohandle fsck return codes in a different code path
S.Çağlar Onur [Wed, 11 Aug 2010 14:15:16 +0000 (10:15 -0400)]
handle fsck return codes in a different code path

13 years agoadd BootManagerException back
S.Çağlar Onur [Mon, 2 Aug 2010 16:24:48 +0000 (12:24 -0400)]
add BootManagerException back

13 years agoreplace deprecated popen2 with subprocess
S.Çağlar Onur [Mon, 2 Aug 2010 16:19:56 +0000 (12:19 -0400)]
replace deprecated popen2 with subprocess

13 years agoSetting tag bootmanager-5.0-10 bootmanager-5.0-10
S.Çağlar Onur [Fri, 30 Jul 2010 14:22:25 +0000 (10:22 -0400)]
Setting tag bootmanager-5.0-10
Fix typo

13 years agofix other typo
S.Çağlar Onur [Fri, 30 Jul 2010 14:20:50 +0000 (10:20 -0400)]
fix other typo

13 years agoSetting tag bootmanager-5.0-9 bootmanager-5.0-9
Barış Metin [Fri, 30 Jul 2010 13:00:19 +0000 (15:00 +0200)]
Setting tag bootmanager-5.0-9
fix typo

13 years agofix typo
Barış Metin [Fri, 30 Jul 2010 10:27:04 +0000 (12:27 +0200)]
fix typo

13 years agoSetting tag bootmanager-5.0-8 bootmanager-5.0-8
S.Çağlar Onur [Wed, 28 Jul 2010 20:55:38 +0000 (16:55 -0400)]
Setting tag bootmanager-5.0-8
disable time/count based filesystem checks

13 years agodisable time/count based filesystems checks
S.Çağlar Onur [Wed, 28 Jul 2010 04:30:13 +0000 (00:30 -0400)]
disable time/count based filesystems checks

13 years agoSetting tag bootmanager-5.0-7 bootmanager-5.0-7
S.Çağlar Onur [Wed, 28 Jul 2010 03:59:12 +0000 (23:59 -0400)]
Setting tag bootmanager-5.0-7
Fix new disk additions to LVM array

13 years agoresize2fs has obsoleted ext2online long ago :(
S.Çağlar Onur [Wed, 28 Jul 2010 03:45:39 +0000 (23:45 -0400)]
resize2fs has obsoleted ext2online long ago :(

13 years agorevert cca3a2cd2096c0235dddb5982b1f05c8d4c7f916 as well
S.Çağlar Onur [Wed, 28 Jul 2010 02:57:34 +0000 (22:57 -0400)]
revert cca3a2cd2096c0235dddb5982b1f05c8d4c7f916 as well

13 years agoThis reverts commit 69124f104991e36e254c0be4a5f8155609f1d3fe.
S.Çağlar Onur [Wed, 28 Jul 2010 02:45:19 +0000 (22:45 -0400)]
This reverts commit 69124f104991e36e254c0be4a5f8155609f1d3fe.

13 years ago...
S.Çağlar Onur [Tue, 27 Jul 2010 17:15:01 +0000 (13:15 -0400)]
...
        cmd = "pvdisplay %s | grep -q 'planetlab'" % lvm_partition
        already_added= utils.sysexec_noerr(cmd, log)

        if already_added:
            log.write( "It appears %s is part of the volume group, continuing.\n" %
                       device )
....

fails because pvdisplay returns a non-negative number on error

[root@mlab1 ~]# pvdisplay /dev/sdb1
  Failed to read physical volume "/dev/sdb1"
[root@mlab1 ~]# echo $?
  5

13 years agoSetting tag BootManager-5.0-6
Thierry Parmentelat [Wed, 7 Jul 2010 11:06:35 +0000 (11:06 +0000)]
Setting tag BootManager-5.0-6
bugfix for centos5/python2.4 missing hashlib

13 years agohashlib not avail. on python2.4/centos5
Thierry Parmentelat [Wed, 7 Jul 2010 09:33:17 +0000 (09:33 +0000)]
hashlib not avail. on python2.4/centos5

13 years agoSetting tag BootManager-5.0-5
Barış Metin [Mon, 5 Jul 2010 12:25:03 +0000 (12:25 +0000)]
Setting tag BootManager-5.0-5
check sha1sum of downloaded bootstrapfs
try recovering filesystem errors

13 years agobugfix
Thierry Parmentelat [Mon, 5 Jul 2010 07:13:02 +0000 (07:13 +0000)]
bugfix

13 years agocheck the sha1 checksum of the downloaded bootstrapfs tarball to protect ourselves...
S.Çağlar Onur [Thu, 1 Jul 2010 04:09:33 +0000 (04:09 +0000)]
check the sha1 checksum of the downloaded bootstrapfs tarball to protect ourselves from corrupted images. NOTE: requires generating a bootstrapfs-planetlab-i386.tar.bz2.sha1sum file