S.Çağlar Onur [Sun, 29 Aug 2010 05:23:03 +0000 (01:23 -0400)]
everybody deserves a second chance
S.Çağlar Onur [Fri, 27 Aug 2010 16:40:38 +0000 (12:40 -0400)]
handle shell redirects
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.
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"
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.
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
S.Çağlar Onur [Wed, 11 Aug 2010 14:18:19 +0000 (10:18 -0400)]
or/and
S.Çağlar Onur [Wed, 11 Aug 2010 14:15:16 +0000 (10:15 -0400)]
handle fsck return codes in a different code path
S.Çağlar Onur [Mon, 2 Aug 2010 16:24:48 +0000 (12:24 -0400)]
add BootManagerException back
S.Çağlar Onur [Mon, 2 Aug 2010 16:19:56 +0000 (12:19 -0400)]
replace deprecated popen2 with subprocess
S.Çağlar Onur [Fri, 30 Jul 2010 14:22:25 +0000 (10:22 -0400)]
Setting tag bootmanager-5.0-10
Fix typo
S.Çağlar Onur [Fri, 30 Jul 2010 14:20:50 +0000 (10:20 -0400)]
fix other typo
Barış Metin [Fri, 30 Jul 2010 13:00:19 +0000 (15:00 +0200)]
Setting tag bootmanager-5.0-9
fix typo
Barış Metin [Fri, 30 Jul 2010 10:27:04 +0000 (12:27 +0200)]
fix typo
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
S.Çağlar Onur [Wed, 28 Jul 2010 04:30:13 +0000 (00:30 -0400)]
disable time/count based filesystems checks
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
S.Çağlar Onur [Wed, 28 Jul 2010 03:45:39 +0000 (23:45 -0400)]
resize2fs has obsoleted ext2online long ago :(
S.Çağlar Onur [Wed, 28 Jul 2010 02:57:34 +0000 (22:57 -0400)]
S.Çağlar Onur [Wed, 28 Jul 2010 02:45:19 +0000 (22:45 -0400)]
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
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
Thierry Parmentelat [Wed, 7 Jul 2010 09:33:17 +0000 (09:33 +0000)]
hashlib not avail. on python2.4/centos5
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
Thierry Parmentelat [Mon, 5 Jul 2010 07:13:02 +0000 (07:13 +0000)]
bugfix
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
S.Çağlar Onur [Tue, 29 Jun 2010 21:23:23 +0000 (21:23 +0000)]
try to recover filesystems errors
Thierry Parmentelat [Wed, 23 Jun 2010 08:38:33 +0000 (08:38 +0000)]
Setting tag BootManager-5.0-4
nicer initscript now uses 'action' from /etc/init.d/functions
bugfix for nodes with extensions
Barış Metin [Mon, 31 May 2010 09:54:31 +0000 (09:54 +0000)]
fix action calls. first argument is the message and rest shall be the command
Barış Metin [Thu, 27 May 2010 08:17:06 +0000 (08:17 +0000)]
fix typo
Thierry Parmentelat [Fri, 2 Apr 2010 13:07:44 +0000 (13:07 +0000)]
Setting tag BootManager-5.0-3
create /etc/planetlab if missing
uses key 'ssh_rsa_key' in BootUpdateNode (requires PLCAPI-5.0.5)
Thierry Parmentelat [Thu, 1 Apr 2010 11:05:37 +0000 (11:05 +0000)]
uses the native node field name (latest BootUpdateNode supports both)
Barış Metin [Mon, 29 Mar 2010 15:01:15 +0000 (15:01 +0000)]
this shall fix the problem with test vnodes.
Thierry Parmentelat [Sat, 13 Feb 2010 21:06:15 +0000 (21:06 +0000)]
Setting tag BootManager-5.0-2
caglar's change to run MkInitrd right before kexec
plus clean up old code
S.Çağlar Onur [Thu, 11 Feb 2010 23:18:25 +0000 (23:18 +0000)]
solve the ordering problem which causes the boot failure
S.Çağlar Onur [Thu, 11 Feb 2010 23:07:20 +0000 (23:07 +0000)]
Remove kernel-2.4 support
Thierry Parmentelat [Fri, 29 Jan 2010 13:55:53 +0000 (13:55 +0000)]
Setting tag BootManager-5.0-1
first working version of 5.0:
pld.c/, db-config.d/ and nodeconfig/ scripts should now sit in the module they belong to
uses PLCAPI's GetNodeFlavour to get all info on the bootstrapfs tarball(s) to install
installation layout on the plc side has changed, more consistent for e.g. 'alpha' bootmanagers
Thierry Parmentelat [Thu, 28 Jan 2010 14:10:54 +0000 (14:10 +0000)]
svn:keywords
Thierry Parmentelat [Wed, 27 Jan 2010 18:44:46 +0000 (18:44 +0000)]
fixed and moved the server-side yum scripts, from nodeconfig/yum to BootstrapFS/nodeconfig/yum
now known as the nodeyum package
(might need some moer work for properly handling kexcludes in multi-fc plcs)
cleaned up all uses of /etc/planetlab/{node,slice}family
nodeconfig now does not need the build/ module anymore at build time
Thierry Parmentelat [Tue, 26 Jan 2010 13:57:24 +0000 (13:57 +0000)]
3-fold nodefamily now has fcdistro as well
Thierry Parmentelat [Mon, 25 Jan 2010 20:06:06 +0000 (20:06 +0000)]
use major numbers in conflicts
Thierry Parmentelat [Mon, 25 Jan 2010 16:36:18 +0000 (16:36 +0000)]
uses new branches numbers
Thierry Parmentelat [Mon, 25 Jan 2010 16:31:13 +0000 (16:31 +0000)]
the logic of selecting the right bootstrapfs has moved to GetNodeFlavour
Thierry Parmentelat [Mon, 25 Jan 2010 14:21:46 +0000 (14:21 +0000)]
Branch 5.0 for module BootManager created (as new trunk) from tag BootManager-4.3-16
Thierry Parmentelat [Wed, 20 Jan 2010 18:50:49 +0000 (18:50 +0000)]
svn:keywords
Thierry Parmentelat [Fri, 15 Jan 2010 08:39:52 +0000 (08:39 +0000)]
oops
Thierry Parmentelat [Thu, 14 Jan 2010 16:05:58 +0000 (16:05 +0000)]
Thierry Parmentelat [Thu, 14 Jan 2010 15:55:15 +0000 (15:55 +0000)]
get rid of the old dirty trick that allowed to spot the right bootstrapfs for alpha nodes and the like
the bootmanager configuration is not patched anymore, instead we rely on GetNodeDeployment
Thierry Parmentelat [Thu, 14 Jan 2010 15:39:14 +0000 (15:39 +0000)]
needed to resurrect that one
Thierry Parmentelat [Thu, 14 Jan 2010 12:22:09 +0000 (12:22 +0000)]
fix
Thierry Parmentelat [Thu, 14 Jan 2010 12:12:54 +0000 (12:12 +0000)]
iterate
Thierry Parmentelat [Thu, 14 Jan 2010 08:50:55 +0000 (08:50 +0000)]
try harder
Thierry Parmentelat [Wed, 13 Jan 2010 20:47:20 +0000 (20:47 +0000)]
oops, this was not meant to be committed
Thierry Parmentelat [Wed, 13 Jan 2010 17:08:08 +0000 (17:08 +0000)]
drop uudecode
Thierry Parmentelat [Wed, 13 Jan 2010 16:55:23 +0000 (16:55 +0000)]
forgotten
Thierry Parmentelat [Wed, 13 Jan 2010 16:52:45 +0000 (16:52 +0000)]
first draft of a deployment-friendly bootmanager
attempt to make some sense of the various locations used
move the nodeconfig script, as well as the plc.d script,
into bootmanager, where it belongs
Thierry Parmentelat [Sat, 9 Jan 2010 07:18:22 +0000 (07:18 +0000)]
Setting tag BootManager-4.3-16
support for fedora 12
Thierry Parmentelat [Fri, 8 Jan 2010 14:18:08 +0000 (14:18 +0000)]
uploading bmlog - fits new pycurl
Thierry Parmentelat [Thu, 7 Jan 2010 15:37:08 +0000 (15:37 +0000)]
support for pyparted-2.x (f12)
Marc Fiuczynski [Sat, 19 Dec 2009 14:06:06 +0000 (14:06 +0000)]
Setting tag BootManager-4.3-15
- support for when the node is behind a NAT
- clean up RUN_LEVEL support
- support for early sshd
Daniel Hokka Zakrisson [Sat, 28 Nov 2009 04:49:12 +0000 (04:49 +0000)]
Use utils.sysexec.
Daniel Hokka Zakrisson [Sat, 28 Nov 2009 04:18:14 +0000 (04:18 +0000)]
Add means for executing a script before starting sshd.
Barış Metin [Wed, 25 Nov 2009 22:22:04 +0000 (22:22 +0000)]
revert previous commit for deployment tag.
bootmanager + nodeconfig + myplc: they provide the very same
functionality altogether.
Barış Metin [Wed, 25 Nov 2009 13:32:31 +0000 (13:32 +0000)]
check deployment node tag and if present install the deployment bootstrapfs.
we use this to install "alpha" nodes. what we do is, build the packages separately
(using the automated nightly build/test) and put them in a sub-folder.
Daniel Hokka Zakrisson [Wed, 25 Nov 2009 08:13:08 +0000 (08:13 +0000)]
Rework NAT support.
Marc Fiuczynski [Wed, 25 Nov 2009 07:40:28 +0000 (07:40 +0000)]
make sure we only use proper run_level values
Thierry Parmentelat [Thu, 19 Nov 2009 12:04:46 +0000 (12:04 +0000)]
fixed erroneous changelog
Daniel Hokka Zakrisson [Thu, 19 Nov 2009 03:53:39 +0000 (03:53 +0000)]
Setting tag BootManager-4.3-14
Use ext2 instead of ext3.
Add NAT model option for nodes which don't resolve properly.
Marc Fiuczynski [Thu, 19 Nov 2009 03:38:49 +0000 (03:38 +0000)]
revert back to ext3
Daniel Hokka Zakrisson [Wed, 18 Nov 2009 04:25:44 +0000 (04:25 +0000)]
Add means to disable the hostname check for nodes behind NAT.
Thierry Parmentelat [Thu, 22 Oct 2009 09:23:49 +0000 (09:23 +0000)]
Setting tag 4.3-13 (manually) with only changeset svn.planet-lab.org/changeset/15328
Stephen Soltesz [Thu, 15 Oct 2009 18:21:10 +0000 (18:21 +0000)]
fsck forced by the length of time since the last fsck, returns 256. this is
not a documented return value, but catching it will prevent BM from exiting
unnecessarily.
Marc Fiuczynski [Fri, 11 Sep 2009 17:07:08 +0000 (17:07 +0000)]
- switch to using ext2 vs. ext3.
Marc Fiuczynski [Fri, 11 Sep 2009 17:05:40 +0000 (17:05 +0000)]
- mount /vserver after /proc
- remove backwards compat support for CKRM enabled kernels
- use sysexec and not sysexec_noerr for umount/vgchange operations
Marc Fiuczynski [Fri, 11 Sep 2009 17:02:34 +0000 (17:02 +0000)]
initialize NODE_MODL_OPTIONS in case we go into debug mode before we've successfully contacted the API
Stephen Soltesz [Mon, 7 Sep 2009 18:18:59 +0000 (18:18 +0000)]
Setting tag BootManager-4.3-12
Moved some configuration values from BootServerRequest.py to 'configuration' file.
BootServerRequest takes the 'VARS' variable to read these values.
UPLOAD_LOG_SCRIPT can point optionally to the 'upload-bmlog.php' or 'monitor/upload'
(or any other interface that accepts a POST file)
build.sh bundles cacerts for boot and monitor servers (if present) to
authenticate the UPLOAD_LOG_SCRIPT.
Previously, these certs were re-used from the bootcd, now they are bundled
with BM. This allows the BM to point to a completely different myplc if
desired, and it is still secure, because the original download is
authenticated.
Stephen Soltesz [Tue, 1 Sep 2009 00:01:13 +0000 (00:01 +0000)]
add ssl certificate fields for Monitor in default_config.xml
add ssl certificate generation for Monitor in plc.d/ssl
separate bootcd values from bootmanager configuration
build.sh now collects all the certificates that it needs to authenticate the
https sessions. As well, the BM configuration includes several new values that
control how and where it uploads logs.
BOOT_API_SERVER remains as the API server for all API calls
BOOT_SERVER is the host from which the bootstrapfs and other files are fetched.
MONITOR_SERVER is the host where logs are uploaded
UPLOAD_LOG_SCRIPT is the path to the upload script or entry point.
If the configuration value PLC_MONITOR_ENABLED=false, then MONITOR_SERVER=BOOT_SERVER
It is now much easier to extend BM in the future to upload additional files
such as for hardware information, SMART data, commands run by root users
during the session, etc.
Stephen Soltesz [Wed, 26 Aug 2009 19:22:28 +0000 (19:22 +0000)]
Setting tag BootManager-4.3-11
raise a single exception for nodes with authentication errors
fix syntax error in MakeInitrd.py
Stephen Soltesz [Thu, 20 Aug 2009 20:26:22 +0000 (20:26 +0000)]
Catch and raise the exception when GetSession Fails.
Then start sshd and stop BootManager immediately so that only one message goes to the user
Anil-Kumar Vengalil [Wed, 12 Aug 2009 08:42:08 +0000 (08:42 +0000)]
syntax problem; node boot process was failing here
Stephen Soltesz [Mon, 10 Aug 2009 17:59:32 +0000 (17:59 +0000)]
Setting tag BootManager-4.3-10
Replace UpdateBootstate with UpdateRunlevel where appropriate.
Removed failboot and install from forced states.
Removed checks for initrd in Validate
Added extra messages for Validate failures, not-installed, no kernel, failed fsck
Added libc-opendir-hack.so patch from 3.2 branch for 2.6.12 bootcds on PL.
Stephen Soltesz [Mon, 10 Aug 2009 17:24:19 +0000 (17:24 +0000)]
do not check for initrd in Validate, since it is recreated later.
catch the error if removing initrd fails in MakeInitrd, since it's about to
recreate it anyway.
In combination this patch avoids the situation where initrd is missing but BM
fails. Now, if initrd is missing, BM will proceed and recreate it without
error.
Stephen Soltesz [Tue, 28 Jul 2009 22:47:16 +0000 (22:47 +0000)]
add -ldl, missing from original patch
Stephen Soltesz [Mon, 27 Jul 2009 16:52:07 +0000 (16:52 +0000)]
no tabs...
Stephen Soltesz [Mon, 27 Jul 2009 16:15:39 +0000 (16:15 +0000)]
Add additional messages regarding kinds of boot failures due to
notinstalled
filesystem corrupted
mount failed
missing kernel
Each of these events occurs with enough frequency that differentiating them
is helpful both for operators and for the user.
Stephen Soltesz [Sat, 25 Jul 2009 05:19:48 +0000 (05:19 +0000)]
added file missing from last commit to use 'runlevel' rather than 'bootstate'
Stephen Soltesz [Fri, 24 Jul 2009 20:42:29 +0000 (20:42 +0000)]
remove 'failboot' from possible boot states
update run level rather than the boot state
only upudate boot state for manual calls and reinstall->boot
Stephen Soltesz [Wed, 22 Jul 2009 23:44:30 +0000 (23:44 +0000)]
also return if fsck fails; it's a bad bad idea to try to mount if fsck has just failed.
Stephen Soltesz [Wed, 22 Jul 2009 23:05:47 +0000 (23:05 +0000)]
missed the 'merge' conflict stuff
Stephen Soltesz [Wed, 22 Jul 2009 23:02:31 +0000 (23:02 +0000)]
svn merge -c 9766 https://svn.planet-lab.org/svn/BootManager/branches/3.2 into trunk
Stephen Soltesz [Fri, 17 Jul 2009 22:06:30 +0000 (22:06 +0000)]
sync sys clock to hardware to prevent fsck reboot bug for systems with wrong
hardware clocks. there may be a better place for this code in bm.
Stephen Soltesz [Mon, 13 Jul 2009 17:36:03 +0000 (17:36 +0000)]
disable runlevelagent when it is installed by bootmanager as part of myplc.
Marc Fiuczynski [Mon, 29 Jun 2009 18:17:52 +0000 (18:17 +0000)]
Tagging module BootManager - BootManager-4.3-9
Special handling for "forcedeth" ethernet NIC.
Marc Fiuczynski [Sat, 20 Jun 2009 16:39:27 +0000 (16:39 +0000)]
https://bugzilla.redhat.com/show_bug.cgi?id=178557
lspci says that the builtin ethernet on nVidia nForce3 chipset is a
Bridge. It should be a Communications device.
This specifically was a problem on planetlab2.icu.ac.kr, but there
were a few others as well for which we worked around the problem by
inserting a known-to-work NIC card.
With this little special exception we basically treat this device as a
network device and can therefore use this NIC.
Stephen Soltesz [Mon, 15 Jun 2009 18:56:22 +0000 (18:56 +0000)]
Tagging module BootManager - BootManager-4.3-8
include a fix for public pl dealing with old/new boot images and root
environments
Stephen Soltesz [Mon, 8 Jun 2009 17:40:03 +0000 (17:40 +0000)]
clear immutible attribute before writing file, to address wide-spread issues
seen on public pl related to 2.6.12 boot cd and 2.6.22 root context.
Thierry Parmentelat [Fri, 15 May 2009 13:39:30 +0000 (13:39 +0000)]
Tagging module BootManager - BootManager-4.3-7
review selection nodefamily at bootstrapfs install-time
now based on (1) tags (2) nodefamily and (3) defaults
this is required on very old bootcd
Thierry Parmentelat [Fri, 15 May 2009 13:01:13 +0000 (13:01 +0000)]
use arch and pldistro tag first, then /etc/planetlab/nodefamily, then defaults
this is required for very old bootCD's that don't have a nodefamily
also this is compliant with what BetBootMedium is currently doing
Marc Fiuczynski [Wed, 29 Apr 2009 20:49:39 +0000 (20:49 +0000)]
Use modprobe module to write out /etc/modprobe.conf.
Tagging module BootManager - BootManager-4.3-6
Thierry Parmentelat [Wed, 22 Apr 2009 17:55:28 +0000 (17:55 +0000)]
Tagging module BootManager - BootManager-4.3-5
minor updates - using the new modprobe module *not* in this tag