summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * Set up a symlink to the default system version in rawdisk/kvm/vboxTiago Gomes2013-06-141-4/+5
| | | | | | | | | | | | | | deployments Also Change them to use the "default" symlink in the extlinux.conf they create, instead of hardcoding the current system version name
| * Make create_local_system fail if DISK_SIZE isn't definedJonathan Maw2013-05-291-1/+5
| |
| * Remove executable permissions from *.py files that have themLars Wirzenius2013-05-281-0/+0
| |
| * Use the name factory for the first system version.Tiago Gomes2013-05-231-1/+1
| |
| * Allow installing extlinux to other system versions.Tiago Gomes2013-05-201-4/+4
| |
| * Use a kernel named 'kernel' instead of 'linux'Jonathan Maw2013-05-131-2/+2
| |
| * Merge branch 'jonathan/disk-layout' of ↵Richard Maw2013-05-131-25/+47
| |\ | | | | | | | | | ssh://trove.baserock.org/baserock/baserock/morph
| | * Add 'state' dirs as btrfs subvolumesJonathan Maw2013-05-131-0/+11
| | | | | | | | | | | | | | | | | | These subvolumes exist in state/{home,opt,srv} of the disk's root. They are not mounted by default.
| | * Use a different disk system layout for rawdiskJonathan Maw2013-05-131-25/+36
| | | | | | | | | | | | | | | This is in preparation for making deployments able to upgrade existing baserock systems.
| * | Merge branch 'baserock/richardmaw/kvm-write-allow-autostart' of ↵Richard Maw2013-05-131-0/+12
| |\ \ | | |/ | |/| | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed-by: Jonathan Maw on IRC.
| | * Add AUTOSTART to kvm and libvirt write extensionsRichard Maw2013-05-081-0/+12
| | | | | | | | | | | | | | | | | | If AUTOSTART is 'yes' then the VM will be started once it is created. If it is 'no' or undefined, then it will need to be manually started. If it is any other value, then an exception is raised.
| * | Fix typoLars Wirzenius2013-05-091-1/+1
| | |
| * | Merge branch 'liw/fix-rawdisk-on-arm'Lars Wirzenius2013-05-091-1/+24
| |\ \ | | |/ | |/| | | | Reviewed-By: Jonathan Maw (on irc)
| | * Fix recognition of x86-32Lars Wirzenius2013-05-081-1/+5
| | | | | | | | | | | | Reported-by: Richard Maw
| | * Make bootloader installation for disk images optionalLars Wirzenius2013-05-081-1/+20
| | |
| * | Add entry for / in fstab but only if there isn't oneLars Wirzenius2013-05-021-2/+18
| |/
| * Add method to parse $RAM_SIZELars Wirzenius2013-03-281-4/+24
| |
| * Add ATTACH_DISKS support to kvmLars Wirzenius2013-03-201-0/+8
| |
| * Add missing "import sys" to fix error messagesLars Wirzenius2013-02-121-0/+1
| | | | | | | | Reported-By: Richard Maw
| * Refactor: Add WriteExtension.create_local_system methodLars Wirzenius2013-02-071-1/+35
| | | | | | | | | | | | | | | | | | | | This allows code sharing amongst all the places that create a system in a raw disk image. This also adds the creation of a factory-run subvolume, and fixes error messages for errors that happen during a disk image creation. Suggested-By: Richard Maw Suggested-By: Sam Thursfield
| * Do away with unnecessary fstab entries for proc, sysLars Wirzenius2013-02-071-2/+0
| | | | | | | | Suggested-By: Richard Maw
| * Let mount choose loop deviceLars Wirzenius2013-02-071-2/+1
| | | | | | | | Suggested-By: Richard Maw
| * Create hole in-process without executing dd(1)Lars Wirzenius2013-02-071-7/+4
| | | | | | | | Suggested-By: Richard Maw
| * Add morphlib module for common write extension codeLars Wirzenius2013-02-061-0/+157
|
* Fix install-essential-filesAdam Coldrick2015-06-031-2/+1
| | | | Change-Id: I6ace782d08aaa476e9da07d295724734e41b9837
* Merge branch 'baserock/adamcoldrick/all-exts-in-definitions-v2'Adam Coldrick2015-06-02376-512/+3814
|\ | | | | | | Reviewed-by: Richard Maw <richard.maw@codethink.co.uk>
| * Move all the directories used for install-files into a subdirectorybaserock/adamcoldrick/all-exts-in-definitions-v2Adam Coldrick2015-06-02210-15/+15
| | | | | | | | Change-Id: I309c183ce8b9ff9d0f5ac4807244547f2cc4ddf5
| * Move chef-system-x86_64-container.morph into systems subdirectoryAdam Coldrick2015-06-021-0/+0
| | | | | | | | Change-Id: I9a523f5bbe744225b1f5fe30f29d197596337290
| * Move extensions into a subdirectoryAdam Coldrick2015-06-02180-498/+498
| | | | | | | | Change-Id: I12e7c03b30da78da1eb220d2826ce0003d6efe2e
| * Put the deployment extensions from morphlib in definitionsAdam Coldrick2015-06-0240-0/+3302
| |\ |/ / | | | | | | This merge commit merges the deployment extensions and all relevant history from morphlib into definitions.
| * Use keystoneclient python api in openstack.checkRichard Ipsum2015-05-291-29/+28
| | | | | | | | | | | | | | Switching to the keystoneclient python api gives us a more reliable means of detecting auth failure. Change-Id: I5f734bbfe5568c855f524a3448357f7cf46ab254
| * Fix mistake in sysroot.writeSam Thursfield2015-05-081-1/+1
| | | | | | | | | | | | The * should not be in quotes. Change-Id: Ieebdc7532ba1bff5ba9742f72440ed00b0c0de2a
| * Fix sysroot.write trying to overwrite existing filesSam Thursfield2015-05-072-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 807e6a90876c5469d242 changed the behaviour of sysroot.write to avoid deleting the contents of the sysroot. This was done so if you accidentally set 'sysroot=/' it wouldn't delete your whole system. It turns out that SDK deployments like clusters/sdk-example-cluster.morph depended on the contents of the directory being deleted. The system armv7lhf-cross-toolchain-system-x86_64.morph has a bunch of files installed by the cross-toolchain in /usr/armv7lhf-baserock-linux-gnueabi/sys-root. Previously sysroot.write would delete these, but since commit 807e6a90876c5469d242 it would fail with several errors like: mv: can't rename '/src/tmp/deployments/usr/armv7l.../sys-root/sbin' If we use 'cp -a' instead of 'mv' then it is slower to deploy, but there are no errors. I am still unsure why files from the cross-toolchain system are installed and then deleted. Although this patch fixes the immediate issue, I don't know if it's the right thing to do. It seems better to not install those files in the first place, if we do not need them. This commit also removes the check for the sysroot target location being empty. This doesn't work, because it runs /before/ the system being deployed is unpacked. Change-Id: I10671c2f3b2060cfb36f880675b83351c6cdd807
| * install-files.configure: make possible to overwrite symlinksJavier Jardón2015-04-301-1/+10
| | | | | | | | | | | | os.symlink will fail if the origin file/link already exist Change-Id: I8175c8dce699e55c3e39e35dfd45c0c19b8bd96d
| * Add ssh keys conf extRichard Ipsum2015-04-301-0/+25
| | | | | | | | Change-Id: I4e7888cbff2e4708154538f8f0a48aeaa1a8a811
| * Fix lines bigger than 79 characters in install-essential-files.configure.helpFrancisco Redondo Marchena2015-04-281-2/+2
| | | | | | | | | | | | This fixes morph check. Change-Id: I5f9c8f5e73c1976b623f9a75f97b5e9aa1887c44
| * Add install-essential-files configuration extensionJavier Jardón2015-04-282-0/+62
| | | | | | | | | | | | | | This is meant to add essential system files like /etc/profile, /etc/os-release ... Change-Id: I3d67b3a452b32205c5d3c7303d128bda80ce75de
| * Rename help file to work with 'help-extensions' subcommandPedro Alvarez2015-04-241-0/+0
| | | | | | | | Change-Id: Ibf7cf1f81998678f9354d77f52e54344294e89f7
| * Add distbuild-trove-nfsboot.writeSam Thursfield2015-04-213-0/+482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The nfsboot.write deployment extension has been deprecated for a while because it's not generally useful. It's only used for deploying distbuild nodes to a Trove, as far as I know. We still need to support setting up a bunch of machines that boot over NFS from a Trove. But we can do this in a special-purpose .write extension. The new distbuild-trove-nfsboot.write is much more efficient than the more generic nfsboot.write: instead of treating each system individually (thus copying an almost identical ~2GB rootfs to the Trove once per node) it copies the system image to the Trove once, and /then/ sets up a rootfs per node. Upgrades are now supported, although the code assumes distbuild nodes are stateless (as they should be) so nothing special is done for upgrades, other than checking that there is already a version of the given system in existance. The new extension does not create an orig/ and run/ version of each system, because there is no need when the deployed system is stateless. There could be further gains in efficiency, but I don't have time to do them right now. This write extension is full of compromises, its goal is to better support the existing users who have a Trove and a distbuild network deployed via NFS. It is specifically not intended to be useful for other purposes. Change-Id: I9a50c58b714ed272212d1d6c55b289aaa96051b1
| * Add dns option to simple-network conf extRichard Ipsum2015-04-151-1/+8
| | | | | | | | Change-Id: I0f4490d76caca802536b21085ea0d770fb8c0798
| * Add template option to install-files conf extRichard Ipsum2015-04-111-10/+32
| | | | | | | | | | | | | | | | | | This adds an optional 'template' option to the install-files manifest format. A file declared as a template will be rendered using jinja2 with variables substituted in from the environment. Change-Id: I2ed6fe58f5fff315b42b7e4ec478ada851e0a70d
| * Make kvm deploy check that host has virt-installRichard Ipsum2015-04-071-0/+9
| | | | | | | | | | | | | | This allows us to catch a case where virt-install hasn't been installed on the host we're deploying to much earlier in the deployment process. Change-Id: I413ad804a7e8bef4fc2d1231411e01d30d0cb9e8
| * Fix: strip 'network=' from NIC_CONFIGRichard Ipsum2015-04-011-3/+11
| | | | | | | | | | | | Also ensure NIC_CONFIG begins with 'network=', 'bridge=' or is 'user' Change-Id: I3bcbd25eb2c9a05b7fa276697f97a1080cb0316e
| * simple-network: only try to rename "10-dhcp.network" if it actually existJavier Jardon2015-03-241-6/+8
| | | | | | | | Change-Id: I1521c0bdec4d7a6812f8988a2349e66b08161de8
| * simple-network: Use function to ensure directory path will existJavier Jardon2015-03-241-0/+2
| | | | | | | | Change-Id: I44693d15aa5e92d5f09720065788adff34f8685c
| * simple-network: Add functionn to create a path if it doesnt existJavier Jardon2015-03-241-0/+11
| | | | | | | | Change-Id: If011a5518fd30914c89b00099b9d05cff5cd3959
| * simple-network: separate creation of directory and file pathJavier Jardon2015-03-241-4/+8
| | | | | | | | Change-Id: Ic715815bbad3ef1ee9ab457b62a194eaef45744c
| * Add hosts.configureRichard Ipsum2015-03-181-0/+48
| | | | | | | | | | | | This adds a new config extension to allow deployments to write to /etc/hosts by adding HOSTS_x: </etc/hosts line> to a cluster morph in a similar manner to the fstab.configure extension.
| * Make fstab.configure use write_from_dictRichard Ipsum2015-03-181-18/+7
| |
| * Fix line lengths in morphlib/exts/simple-network.configureAdam Coldrick2015-03-171-5/+9
| | | | | | | | | | | | | | | | Some lines were more than 79 characters long. This was causing ./check --full to fail on master of morph. This commit fixes the lines in question. Change-Id: I80969d2d89d3922e021b716c250796188d7a7f4c