Stephen Soltesz [Wed, 12 Mar 2008 18:18:36 +0000 (18:18 +0000)]
No longer needed. fixed the right way.
Stephen Soltesz [Wed, 12 Mar 2008 18:18:20 +0000 (18:18 +0000)]
No longer needed. Fixed the right way.
Stephen Soltesz [Wed, 12 Mar 2008 18:17:46 +0000 (18:17 +0000)]
Added a replacement code for get_devices() in case this runs on older boot cds
that cannot load the pciscan.so library.
Thierry Parmentelat [Sun, 9 Mar 2008 20:23:41 +0000 (20:23 +0000)]
fixed 2 glitches
Thierry Parmentelat [Sun, 9 Mar 2008 17:18:53 +0000 (17:18 +0000)]
cross-module change for multi-arch myplc
* name of the bootstrap tarball changed into
bootstrapfs-<id>-<arch>.tar.bz2
with id=<planetlab-distro> for the main tarball
and id=<extension> for the extensions tarballs
* bootmanager to use node's nodegroups to figure the tarball to use
* the noderepo rpm allows to install /var/www/html/install-rpms/<repo>
==
status
* checkpoint version to verify that mono-arch mono-distro still works
* build phase tested
* but some parts are still missing for complete multi-arch behaviour:
* bootstrapfs's rpm name should sontain pldistro and arch (as it is a noarch rpm)
* yum.php.conf also needs tunings
Thierry Parmentelat [Sun, 9 Mar 2008 16:57:02 +0000 (16:57 +0000)]
renaming bootmanager step InstallBootstrapRPM into InstallBootstrapFS
Faiyaz Ahmed [Wed, 5 Mar 2008 22:26:13 +0000 (22:26 +0000)]
Get plc_config via PlanetLabConf
Stephen Soltesz [Wed, 20 Feb 2008 18:22:51 +0000 (18:22 +0000)]
Adds backward compatibility to the BootManager for older bootcds. Rather than
failing to load the new pciscan library, it will succeed with the old
behavior. In particular some devices will fail to be detected using the old
bootcd. But, this shouldn't be that much of a problem.
Daniel has proposed that the pypciscan.so library simply be re-written in
python by parsing /proc/bus/pci/devices to create a structure like:
pypciscan.get_devices()
returns {'<domain>:<bus>:<dev>.<func>' :
(<vendor id>, <device id>, <subvendor id>, <subdevice id>, <device class << 8 | progif>)}
for all PCI devices.
I agree that this would be a better approach. Would have to check that the
older bootcd kernel exports all of this information, then rewrite the module.
Marc Fiuczynski [Fri, 15 Feb 2008 22:49:34 +0000 (22:49 +0000)]
mount explicitly with -t ext3; be more verbose with log info
Marc Fiuczynski [Fri, 15 Feb 2008 22:20:06 +0000 (22:20 +0000)]
This fix to the MakeRequest() method gets rid of the hiddeous
exception message that shows up when a node goes into debug mode. For
example, in the past one would see this type of message on the
console:
Exception exceptions.OSError: (2, 'No such file or directory', '/tmp/tmpBjmo14') in <bound method _TemporaryFileWrapper.__del__ of <closed file '<fdopen>', mode 'w+b' at 0xb7b108d8>> ignored
This is no longer the case.
Thierry Parmentelat [Fri, 8 Feb 2008 09:24:16 +0000 (09:24 +0000)]
Tagging module BootManager -- from bootmanager-3.2-3 to bootmanager-3.2-4
usage of wireless attributes fixed and tested
breakpoints cleaned up (no change for production)
less alarming message when floppy does not get unloaded
Marc Fiuczynski [Tue, 5 Feb 2008 16:09:59 +0000 (16:09 +0000)]
- not printing ominous warning message: "Unknown effect on other platforms"
- moved 4 second sleep after e1000 unload into module != "" branch
Thierry Parmentelat [Tue, 5 Feb 2008 07:28:06 +0000 (07:28 +0000)]
cleanup of breakpoints - no functional change
Thierry Parmentelat [Tue, 5 Feb 2008 07:26:39 +0000 (07:26 +0000)]
fixes for wireless interfaces
Thierry Parmentelat [Thu, 31 Jan 2008 14:16:57 +0000 (14:16 +0000)]
Tagging module BootManager -- from bootmanager-3.2-2 to bootmanager-3.2-3
network config : support the full set of settings from ifup-wireless - see also http://svn.planet-lab.org/svn/MyPLC/tags/myplc-4.2-1/db-config
removes legacy calls to PlanetLabConf.py
refrains from unloading floppy
first draft of the dual-method for implementing extensions (bootstrapfs-like images or yum install)
Stephen Soltesz [Mon, 28 Jan 2008 15:32:57 +0000 (15:32 +0000)]
A patch to avoid unloading the floppy module before chain booting the node
into the production kernel. This prevents the HP dc7800 from hanging during boot
up. Unknown cause, since the machine has no floppy drive.
Thierry Parmentelat [Wed, 23 Jan 2008 11:34:53 +0000 (11:34 +0000)]
yum-based extensions :
- fetches yum.conf
- mounts /proc
first draft, apparently works, needs more tests though
Thierry Parmentelat [Thu, 17 Jan 2008 14:09:14 +0000 (14:09 +0000)]
yum's return code is not reliable - ignore it
Thierry Parmentelat [Mon, 14 Jan 2008 14:59:48 +0000 (14:59 +0000)]
--editor-cmd=emacs
Thierry Parmentelat [Fri, 11 Jan 2008 17:11:34 +0000 (17:11 +0000)]
First draft of a dual method for installing extensions
- core tarball always installed through the tarball
- extensions (nodegroups) are then attempted by the same method
i.e. by fetching PlanetLab-Bootstrap-%s.tar.bz2
- if that fails, then we try via
yum groupinstall extension<nodegroup>
NOTE.
due to a bug with GetNodes that causes the nodegroups fetching part to fail
I could not have the tests completed yet
However nodes should correctly install the core software
Faiyaz Ahmed [Wed, 9 Jan 2008 20:33:41 +0000 (20:33 +0000)]
PlanetLabConf.py no longer exists.
Thierry Parmentelat [Tue, 8 Jan 2008 11:49:43 +0000 (11:49 +0000)]
ready for tagging
reviewed URLs and %{plrelease}
Stephen Soltesz [Tue, 18 Dec 2007 18:54:48 +0000 (18:54 +0000)]
Cross module commit for 'diag' and 'disabled' node states.
Thierry Parmentelat [Wed, 12 Dec 2007 14:01:51 +0000 (14:01 +0000)]
restoring operations default settings for breakpoint mode
Thierry Parmentelat [Wed, 12 Dec 2007 12:12:20 +0000 (12:12 +0000)]
cosmetic
Thierry Parmentelat [Wed, 12 Dec 2007 12:05:43 +0000 (12:05 +0000)]
fixed so as to use correct default value when prompt is on
Daniel Hokka Zakrisson [Fri, 7 Dec 2007 23:35:14 +0000 (23:35 +0000)]
Fix indentation.
Daniel Hokka Zakrisson [Fri, 7 Dec 2007 23:30:00 +0000 (23:30 +0000)]
Support multihoming on a single interface.
Daniel Hokka Zakrisson [Thu, 6 Dec 2007 17:12:18 +0000 (17:12 +0000)]
Add all matching modules.
Let the pcimap decide which modules to load.
Daniel Hokka Zakrisson [Thu, 6 Dec 2007 03:29:32 +0000 (03:29 +0000)]
Deal with values containing = rather than bailing out on them.
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 21:27:03 +0000 (21:27 +0000)]
Use tagxid.
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 19:37:37 +0000 (19:37 +0000)]
Don't need the ESSID or IWCONFIG in BootManager.
Write the MODE as well.
Marc Fiuczynski [Wed, 5 Dec 2007 19:05:18 +0000 (19:05 +0000)]
no longer 'pushd BootManager' due to wacky build environment
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 18:54:00 +0000 (18:54 +0000)]
Don't build a bootmanager script during %build.
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 18:01:35 +0000 (18:01 +0000)]
Add support for wireless interfaces.
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 17:02:01 +0000 (17:02 +0000)]
Support old BootCDs which do not have pypcilib.
Daniel Hokka Zakrisson [Mon, 3 Dec 2007 21:38:22 +0000 (21:38 +0000)]
Use the correct MAC-address.
Daniel Hokka Zakrisson [Thu, 29 Nov 2007 19:29:27 +0000 (19:29 +0000)]
Update for Linux-VServer 2.3 and Fedora 7's mkinitrd.
Daniel Hokka Zakrisson [Tue, 27 Nov 2007 22:18:45 +0000 (22:18 +0000)]
Support multiple interfaces.
Daniel Hokka Zakrisson [Mon, 26 Nov 2007 22:57:27 +0000 (22:57 +0000)]
Use scsi_hostadapterX for the first one too.
If ata_generic is going to be loaded, make sure it claims the devices.
Thierry Parmentelat [Thu, 22 Nov 2007 19:30:16 +0000 (19:30 +0000)]
A few goodies from onelab's bootmanager
(*) breakpoint utilities - for when things get bad - disabled of course
(*) spec file changed to support auto-tagging
(*) Makefile : use make sync to install your working dir on a test plc
(*) also I had numbered this a version 4 CD, so had to make changes that seem to make sense anyway
Daniel Hokka Zakrisson [Wed, 21 Nov 2007 19:21:23 +0000 (19:21 +0000)]
Merge disconnected operations branch.
Daniel Hokka Zakrisson [Wed, 21 Nov 2007 03:47:38 +0000 (03:47 +0000)]
Progif added to class.
Daniel Hokka Zakrisson [Wed, 21 Nov 2007 03:28:59 +0000 (03:28 +0000)]
No more hwdata.
Marc Fiuczynski [Tue, 6 Nov 2007 23:08:34 +0000 (23:08 +0000)]
* Removed building PlanetLab-Bootstrap.tar.bz2 from the package. It
now lives in the BootstrapFS package.
* Modified the InstallBootstrapRPM.py to download the following:
- base bootstrapfs tar ball -> PlanetLab-Bootstrap.tar.bz2
- node group specific tar ball -> PlanetLab-Bootstrap-$nodegroup.tar.bz2
* Removed some of the empty directories under the support-files/ directory.
Stephen Soltesz [Thu, 25 Oct 2007 16:12:46 +0000 (16:12 +0000)]
Include the 'time' module as well... doh.
Stephen Soltesz [Thu, 25 Oct 2007 16:12:18 +0000 (16:12 +0000)]
Added a check for the e1000 driver. When it is unloaded, the script sleeps
for 4 seconds before continuing.
Marc Fiuczynski [Mon, 15 Oct 2007 16:25:00 +0000 (16:25 +0000)]
Explicitly add filesystem module to required packages.
Marc Fiuczynski [Sun, 14 Oct 2007 18:28:27 +0000 (18:28 +0000)]
pushd to BootManager rather than bootmanager due to module renaming.
Marc Fiuczynski [Fri, 31 Aug 2007 02:29:35 +0000 (02:29 +0000)]
use build/build.common functions
Marc Fiuczynski [Thu, 30 Aug 2007 20:10:21 +0000 (20:10 +0000)]
revert to previous head, as the modular build changes need to go onto the (temporary) modular_build branch first
Marc Fiuczynski [Thu, 30 Aug 2007 20:09:20 +0000 (20:09 +0000)]
use build/build.common to use common build operations
Marc Fiuczynski [Tue, 28 Aug 2007 21:52:38 +0000 (21:52 +0000)]
fix to selecting Fedora release number
Marc Fiuczynski [Fri, 24 Aug 2007 06:38:01 +0000 (06:38 +0000)]
bump version
Marc Fiuczynski [Fri, 24 Aug 2007 06:37:14 +0000 (06:37 +0000)]
Make Fedora 7 compatible
Marc Fiuczynski [Fri, 24 Aug 2007 06:13:56 +0000 (06:13 +0000)]
make Fedora 7 compatible
Faiyaz Ahmed [Wed, 22 Aug 2007 15:45:20 +0000 (15:45 +0000)]
Bump revision
Faiyaz Ahmed [Wed, 22 Aug 2007 15:43:47 +0000 (15:43 +0000)]
Changed NodeUpdate's path. Nothing should exist in /usr/local.
Faiyaz Ahmed [Tue, 7 Aug 2007 19:59:01 +0000 (19:59 +0000)]
Change path from /usr/local/planetlab to /usr
Marc Fiuczynski [Thu, 8 Mar 2007 17:53:17 +0000 (17:53 +0000)]
fix for FC releases that do not have pcitable file
Marc Fiuczynski [Thu, 8 Mar 2007 17:52:34 +0000 (17:52 +0000)]
invoke buildnode.sh with fedora core release argument
Faiyaz Ahmed [Mon, 19 Feb 2007 21:07:42 +0000 (21:07 +0000)]
Hack to make older bootcds create initrds. Uses mkinitrd shell script.
Mark Huang [Sat, 10 Feb 2007 23:33:06 +0000 (23:33 +0000)]
bool was not a real type in Python <2.3 and had to be marshalled as a
custom type in xmlrpclib. Make sure that bools serialize consistently.
Mark Huang [Tue, 6 Feb 2007 16:35:05 +0000 (16:35 +0000)]
- move InstallBuildVServer.update_vserver_network_files() to
UpdateNodeConfiguration (this is all that InstallBuildVServer usefully
did)
- remove useless InstallBuildVServer step, setting barrier bit has
been done by the vserver-reference initscript since 3.0
- modify update_vserver_network_files() to modify reference images in
new 4.0 location (/vservers/.vref and /vservers/.vcache)
Mark Huang [Sun, 4 Feb 2007 01:30:00 +0000 (01:30 +0000)]
- look for PlanetLab-Bootstrap-<nodegroup>.tar.bz2 in the boot/
directory, to support rinses by nodegroup (>=4.0 only, which supports
calling GetNodes() and GetNodeGroups() via BootAPI)
Mark Huang [Sun, 4 Feb 2007 01:28:36 +0000 (01:28 +0000)]
- fix totally broken call canonicalization code, to be only somewhat
broken
Mark Huang [Wed, 17 Jan 2007 22:44:17 +0000 (22:44 +0000)]
do not dereference symlinks when chowning files back to the SUDO_USER
Mark Huang [Sat, 13 Jan 2007 20:43:37 +0000 (20:43 +0000)]
- use get_partition_path_from_device() to get the path to the first
partition of a device (under devfs on 2.4, it's /part1, not
/disc1!). This also checks for cciss device paths..
Mark Huang [Sat, 13 Jan 2007 18:05:58 +0000 (18:05 +0000)]
- fix get_partition_path_from_device() to work with 2.x cds that may or
may not use devfs
Mark Huang [Sat, 13 Jan 2007 18:05:03 +0000 (18:05 +0000)]
- fix last checkin to just store the full path (e.g.,
ide/host0/bus0/target0/lun0/disc) of the valid block name instead of
storing the name of the symlink (e.g., hda)
- ...since vgcreate doesn't follow symlinks (see accompanying checkin to
InstallPartitionDisks.py)
Mark Huang [Sat, 13 Jan 2007 17:41:53 +0000 (17:41 +0000)]
- fix get_block_device_list() regression
- devfs under 2.4 (old boot cds) used to list partitions in a format
such as scsi/host0/bus0/target0/lun0/disc and /dev/sda, etc. were just
symlinks
Mark Huang [Fri, 12 Jan 2007 19:11:17 +0000 (19:11 +0000)]
- handle BootAPI failures gracefully
Mark Huang [Fri, 12 Jan 2007 00:06:36 +0000 (00:06 +0000)]
- always run PlanetLabConf (or conf_files) before booting
- must update /etc/planetlab/session before running conf_files
Mark Huang [Tue, 9 Jan 2007 18:33:28 +0000 (18:33 +0000)]
ata_piix and ahci both claim 8086:2652 and 8086:2653,
and it is usually a non-visible BIOS option that decides
which is appropriate. Just load both.
Mark Huang [Mon, 8 Jan 2007 20:38:24 +0000 (20:38 +0000)]
- recognize SATA classid (0106)
Marc Fiuczynski [Wed, 22 Nov 2006 19:23:50 +0000 (19:23 +0000)]
Be more careful in how we remove the PLCONF_DIR, especially for systems
that use the readonly cramfs.
Mark Huang [Wed, 22 Nov 2006 19:20:36 +0000 (19:20 +0000)]
- fix whitespace bug
Faiyaz Ahmed [Fri, 17 Nov 2006 17:56:34 +0000 (17:56 +0000)]
Fix for cciss devices. Wrong partition was being quieried when installation was being validated, resulting in the lvm trying to recreate a volume. Checks correct partition now.
Mark Huang [Wed, 15 Nov 2006 22:52:20 +0000 (22:52 +0000)]
remove useless InstallNodeInit step
Mark Huang [Wed, 15 Nov 2006 22:52:01 +0000 (22:52 +0000)]
Node Manager needs at least PLC_API_HOST and PLC_BOOT_HOST in /etc/planetlab/plc_config
Mark Huang [Tue, 24 Oct 2006 14:31:54 +0000 (14:31 +0000)]
ata_piix and ahci both claim the same chipsets, and it
is usually a non-visible BIOS option that decides which is
appropriate. Prefer ata_piix over ahci for now.
Marc Fiuczynski [Wed, 23 Aug 2006 12:58:14 +0000 (12:58 +0000)]
* Change the TEMP_PATH and SYSIMG_PATH to be mounted in /tmp/mnt
rather than /mnt/tmp
Mark Huang [Tue, 22 Aug 2006 22:03:00 +0000 (22:03 +0000)]
always regenerate initrd before booting in case hardware changes or new kernel is installed
Mark Huang [Tue, 22 Aug 2006 22:01:47 +0000 (22:01 +0000)]
always regenerate initrd before booting in case hardware changes or new kernel is installed
Marc Fiuczynski [Tue, 22 Aug 2006 18:13:08 +0000 (18:13 +0000)]
* Add in import for notify_messages
Thierry Parmentelat [Sun, 20 Aug 2006 21:21:23 +0000 (21:21 +0000)]
Cleaning up bootmanager :
- None of the three former support-files output is no longer necessary, so
we obsolete these three components :
alpina-BootstrapRPM.tar.gz, that was no longer built anyway,
alpina-BootLVM.tar.gz and
alpina-PartDisks.tar.gz
Thierry Parmentelat [Fri, 11 Aug 2006 13:04:03 +0000 (13:04 +0000)]
dev replaced with udev for mkfedora package checking
Marc Fiuczynski [Thu, 10 Aug 2006 19:05:20 +0000 (19:05 +0000)]
Detangled steps. No step makes calls into another step.
Broke out some functionality into new steps.
Fixed support to adding a new disk to a system.
Marc Fiuczynski [Thu, 10 Aug 2006 19:03:31 +0000 (19:03 +0000)]
Modularized code and handled exception handling.
Marc Fiuczynski [Thu, 10 Aug 2006 19:02:05 +0000 (19:02 +0000)]
The functionality of this module previously was implemented as a OO Class.
However, as it was never used in the form of an instance, it has been
converted to simply operate as a module with variables and procedures.
Marc Fiuczynski [Thu, 10 Aug 2006 19:00:27 +0000 (19:00 +0000)]
Copyright notice for both Intel and Princeton
Marc Fiuczynski [Thu, 3 Aug 2006 16:33:40 +0000 (16:33 +0000)]
Fix for adding new disks to system:
- umount proc to ensure that subsequent lvm modification succeed
- make lvm extents visible again after lvm modifications
- switched to using ext2online to extend vserver filesystem across
newly added lvm extents.
Marc Fiuczynski [Wed, 2 Aug 2006 18:21:27 +0000 (18:21 +0000)]
Fix get_block_device_list() function:
- search for well known block device names (sdX, hdX, cciss/cXdX)
as raw block devices
- run sfdisk against the proper cciss block device names
- use open("w") to determine if a block device is writable,
rather than running hdparm
Marc Fiuczynski [Tue, 18 Jul 2006 00:33:48 +0000 (00:33 +0000)]
support for mkfs.ext2 w/ badblock search
Marc Fiuczynski [Fri, 14 Jul 2006 14:49:39 +0000 (14:49 +0000)]
- fix to support /smp model option for rins
Marc Fiuczynski [Thu, 13 Jul 2006 19:51:47 +0000 (19:51 +0000)]
Fall back to up kernel if smp model option is set but the smp kernel is not installed
Marc Fiuczynski [Thu, 13 Jul 2006 19:50:43 +0000 (19:50 +0000)]
Cleaned up NodeRunStates handling
Marc Fiuczynski [Thu, 13 Jul 2006 17:14:50 +0000 (17:14 +0000)]
Cleaned up model option processing
Marc Fiuczynski [Thu, 13 Jul 2006 17:14:18 +0000 (17:14 +0000)]
Added support to force the node run state from command line.
Mark Huang [Wed, 12 Jul 2006 16:15:04 +0000 (16:15 +0000)]
- continue to install boot server certs in /mnt/cdrom/bootme for
backward compatibility with old vserver-reference images