summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Add initramfs support to write extensions that produce disksRichard Maw2014-06-021-8/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If INITRAMFS_PATH is specified and the file exists, then the produced kernel command line will use root=UUID=$uuid_of_created_disk rather than root=/dev/sda, which may be incorrect. Help files have been updated to mention the new option. This leads to an unfortunate duplication of the path to the initramfs, in both the location field of the nested deployment and the INITRAMFS_PATH of the disk image creation. However, an initramfs could be produced by a chunk and put in the same place, so it doesn't make sense to couple the rawdisk and initramfs write extensions to remove this duplication. Similarly, there may be multiple valid initramfs in the rootfs e.g. extlinux loads a hypervisor, which is Linux + initramfs, and the initramfs then boots a guest Linux system, which uses a different initramfs. This makes it important to explicitly let the rootfs write extensions know which to use, or not as the case may be. util-linux's blkid is required, since the busybox version ignores the options to filter its output, and parsing the output is undesirable. Because syslinux's btrfs subvolume support is limited to being able to use a non-0 default subvolume, the initramfs has to be copied out of the run-time rootfs subvolume and into the boot subvolume. This pushed the required disk space of a minimal system over the 512M threshold because we do not have the userland tooling support to be able to do a btrfs file contents clone.
| | * Fix state subvolume generator to preserve permissionsDaniel Silverstone2014-05-161-1/+1
| | | | | | | | | | | | | | | | | | shutil.move() does not preserve permissions, file modes, ownerships etc, resulting in much confusion when prepopulating a non-root user during deployment. This change to `mv` fixes that.
| | * deploy: Share SSH connectivity check in the common writeexts.py codeSam Thursfield2014-04-151-0/+9
| | | | | | | | | | | | | | | Also, change it to log the real error message in morph.log before raising a more general exception to the user.
| | * Adding support to add extra kernel args in extlinux.confPedro Alvarez2014-04-041-1/+5
| | |
| | * Make parse_autostart() into more general get_environment_boolean()Sam Thursfield2014-03-041-7/+7
| | | | | | | | | | | | | | | Also, be more flexible when parsing environment booleans -- convert to lower case and match 0/1 and true/false as well as yes/no.
| | * deploy: Finish off the Btrfs system layout implementationSam Thursfield2014-03-041-42/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The shared state directories defined in writeexts.py (/var, /home etc.) are now separate Btrfs subvolumes that are mounted in place using fstab. There are some warnings on mounting /var and /srv about the mountpoint not being empty. Not yet investigated. If a configure extension has already added / to the fstab, use the device it chose rather than assuming /dev/sda. This is required for the vdaboot.configure extension that we use for OpenStack deployments. Similarly, if a configure extension has added an entry for a state directory in /etc/fstab already, we don't replace it with a /state/xxx directory. That's only done as a default behaviour.
| | * Adding syslinux 'menu.c32' file during the deployment.Pedro Alvarez2014-03-041-1/+19
| | | | | | | | | | | | | | | We will need this file to enable a bootloader menu to choose between OS after an upgrade.
| | * Import morphlib as we are using morphlib.ErrorTiago Gomes2013-07-171-0/+1
| | |
| | * Allow to set the number of cpus for virtualbox and kvm deployments.Tiago Gomes2013-07-021-0/+4
| | |
| | * Write extensions: Flush output when using status()Richard Maw2013-06-101-0/+1
| | | | | | | | | | | | | | | This is required to get real-time output and the timestamps meaning anything useful.
| | * 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
| |
* | Tempest: Create custom flavor for running tempest test in VMFrancisco Redondo Marchena2015-06-181-0/+13
| | | | | | | | | | | | | | | | | | | | tempest requires to have an alternative flavor and the m1.small flavor by default is very big in terms of RAM and disk for a test VM. Adding the possibility to set a smaller custom flavor gives the possibility to run tempests test for onenode in a VM without having memory or disk allocation problems with libvirt. Change-Id: I14bfb5b8c1cca820e00877649f664fb921f2ec1f
* | Move ebtables to networking-utilsFrancisco Redondo Marchena2015-06-183-8/+8
| | | | | | | | | | | | | | Makes more sense to have ebtables in networking-utils than in virtualization. Change-Id: Ic71d89b5997f3b5ea020ab2a8d81fe6755df0a87
* | Add conntrack-tools to networking-utilsFrancisco Redondo Marchena2015-06-187-0/+66
| | | | | | | | | | | | | | | | conntrack-tools are a set of userspace tools for interacting with the Connetion Tracking System, module for inspecting packets for iptables. Change-Id: I7b66c5a366501bb15a5e0e073f62d23b2a82580b
* | Cinder: Set explicitly the iSCSI listening portFrancisco Redondo Marchena2015-06-181-1/+1
| | | | | | | | Change-Id: I08ca6fa9a8b40d5f166f36930d91052e8299c83b
* | Cinder: Wipe only the first 50 MiB of the Volumes when deletingFrancisco Redondo Marchena2015-06-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | This will wipe the partition table of the Volume making the process of deleting a volume faster. Note that before when deleting a volume it was filled by zeros wiping all the contents on it no matter the size of the volume. This process is very long and can cause performance issues to the the users if some volumes are deleting a the same time. Change-Id: I701810758683b715c98e10ac6a923c48afc519c4
* | Tempest: Add extra configuration for neutron and novaFrancisco Redondo Marchena2015-06-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Nova: - Disable explicitly test migrations blocks in live migrations - Set apiv1 to true Neutron: - Add dns_server - Only test router extension Change-Id: I3b7b5e04996cd232fcff168ae669e6e54612a647
* | OpenStack: configure dnsmasq to provide a MTUTiago Gomes2015-06-173-1/+5
| | | | | | | | | | | | | | | | | | | | | | This is recommended in the OpenStack install guide if GRE tunnels are being used for inter VM traffic [1]. Without lowering the MTU from the typical 1500 bytes, I was unable to SSH into the VMs launched by Nova at least on my testing environment. [1]: http://docs.openstack.org/kilo/install-guide/install/apt/content/neutron-network-node.html Change-Id: I4e05144a4e9709e800e38a9008ff2295bfc5e2f6
* | Fix liberasurecode buildTiago Gomes2015-06-172-0/+6
| | | | | | | | Change-Id: Id05778e81b4231b6c1ba0d0053527976396359e5
* | OpenStack: avoid running OpenVSwitch in the ControllerTiago Gomes2015-06-171-0/+30
| | | | | | | | | | | | | | Avoid running OpenVSwitch in the Controller node for a three-node OpenStack system. Change-Id: I7a2da7f1d3ff1ed3dce5060675560d0a04996563
* | OpenStack: request time from the ControllerTiago Gomes2015-06-174-0/+67
| | | | | | | | | | | | | | | | Configure the Networking and Compute machines to ntpd from the Controller machine instead of other lower strata NTP servers. This is the recommended by the OpenStack install guide. Change-Id: I6911a50ee4bcebd2626859626b7236935994de9b
* | Improve ntpd systemd unit and configurationTiago Gomes2015-06-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Start ntpd with the `-N` and `-g` options, as recommended in the man page. `-N` will, to the extent permitted by the operating system, run the ntpd at the highest priority. `-g` will make ntpd to update the time even if the offset with the current time is greater than 1000s. Add 'limited' to the restrict options to avoid the following warning in the log: 'restrict ::: KOD does nothing without LIMITED'. Change-Id: I23e264533ef27af7a0504e8cd5b69c7e01843728
* | Update shadow to latest stable (4.2.1)Javier Jardón2015-06-162-3/+5
| | | | | | | | Change-Id: I7947f088ed59948deb68760a03714d722840a00a
* | pulseaudio: do not run configure command twiceJavier Jardón2015-06-161-1/+2
| | | | | | | | Change-Id: I4bd097d1607231f5e9dd11684b705d2d821ad900
* | core: build libtool from gitJavier Jardón2015-06-162-38/+59
| | | | | | | | | | libtool-tarball is still needed to build the libtool dependencies Change-Id: Icd90c0c92574812f860a649f40343bf13930b0ad
* | strata/core.morph: patch doesnt depend on shadowJavier Jardón2015-06-161-1/+4
| | | | | | | | | | | | But in automake, autoconf, mini-utils and bison Change-Id: I6333bd5a6665697805c0acbd8f18928e32cdbde6
* | Fix 'sed' invocation to work with BSD 'sed'Sam Thursfield2015-06-161-1/+4
| | | | | | | | | | | | The BSD 'sed' used on Mac OS X is a bit rubbish compared with GNU 'sed'. Change-Id: Ic26878301b49099252b04d8a0854e551c352ad54