summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * yarns: Fix how Morph is runSam Thursfield2014-03-041-6/+2
| | | | | | | | | | | | | | | | As we are running Morph from the source dir we need to set PYTHONPATH so that extensions are correctly loaded. Also, the version of Yarn in Baserock sets 'SRCDIR' so we do not need to set a default any more.
| * deploy: Add upgrading to deployment.yarnSam Thursfield2014-03-042-1/+39
| |
| * deploy: Fix double exception in rawdisk.writeSam Thursfield2014-03-041-1/+2
| | | | | | | | | | | | | | If the disk image was not yet created then the os.remove() call fails and the original exception gets lost, causing confusion and sadness. Also print status earlier on failure
| * deploy: Check the --upgrade flag has been used correctly.Sam Thursfield2014-03-046-0/+199
| | | | | | | | | | Most write extensions don't handle both initial deployments and upgrades of a system.
| * deploy: Add optional 'check' extensionsSam Thursfield2014-03-041-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A write extension will have various kinds of sanity checks to do before actually performing the write. The current architecture of 'morph deploy' means that several minutes pass between the user starting the command and the write extension actually executing. It would be rage-inducing watching `morph deploy` spend 3 minutes unpacking a system only to then abort due to a silly error such as forgetting the --upgrade switch. Therefore it's better for now to split the sanity checks out into separate extensions that can be run as soon as possible and abort if the write extension is not going to be able to operate. For now this will just be used to validate usage of the --upgrade flag but in future checking connectivity to remote servers and the like should be done here too.
| * deploy: Honour AUTOSTART in ssh-rsync extensionSam Thursfield2014-03-041-0/+5
| | | | | | | | | | Now you can deploy an upgrade, set it to be the default version and reboot into it all with one call to `morph deploy`.
| * Make parse_autostart() into more general get_environment_boolean()Sam Thursfield2014-03-044-11/+11
| | | | | | | | | | 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: Always set new system as defaultSam Thursfield2014-03-041-0/+5
| |
| * deploy: Depend on client OS version manager to deploy upgradesSam Thursfield2014-03-041-91/+41
| | | | | | | | | | | | We now have a OS version manager tool in Baserock (in tbdiff.git). The code to deploy a new base OS version should live there, to minimise duplication between write extensions.
| * Don't create a blank /etc/fstabSam Thursfield2014-03-046-30/+1
| | | | | | | | | | | | | | | | This messes up the baserock-system-config-sync tool. Systemd does not require /etc/fstab to exist in any case. I have bumped the 'system-compatibility-version' field in this commit to trigger rebuilding all system artifacts.
| * deploy: Finish off the Btrfs system layout implementationSam Thursfield2014-03-043-42/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * deploy: Add new --upgrade optionSam Thursfield2014-03-041-0/+7
| |
| * 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.
* Add missing year to copyright headerLars Wirzenius2014-03-031-1/+1
| | | | | | After this, "./check --full" works. Reviewed-by: Daniel Silverstone (on IRC)
* Revert "Make '--help' and help subcommand the same."Mark Doffman2014-02-211-53/+16
| | | | This reverts commit a72c8dca6965d1ac239e4f0102f08fbf7fe59ac7.
* Revert "Add utilities for listing and finding extensions."Mark Doffman2014-02-214-156/+40
| | | | This reverts commit ab0a83a09a93ca33aa402d9c4d3b916a48a1a882.
* Revert "Add write and configuration extensions to help."Mark Doffman2014-02-211-51/+38
| | | | This reverts commit 329b81419be20e7b1f2651a47030186216044eec.
* Add write and configuration extensions to help.baserock/markdoffman/s10382/add-help-option-v2Mark Doffman2014-02-211-38/+51
| | | | | | | Add a command 'help-extensions' to list all extensions. Add the ability to find help on an extension by calling 'morph help [extension name]'. This will then call the extension with the '--help' option to obtain help text.
* Add utilities for listing and finding extensions.Mark Doffman2014-02-214-40/+156
|
* Make '--help' and help subcommand the same.Mark Doffman2014-02-211-16/+53
| | | | | '--help' when used with a subcommand will show the subcommand help. Do not reflow the help text by using a custom formatter.
* Merge branch 'baserock/richardmaw/S10407/field-order'Richard Maw2014-02-1813-204/+176
|\ | | | | | | Reviewed-by: Lars Wirzenius
| * cmdtests: Use new morphology field orders in tag testsRichard Maw2014-02-172-8/+8
| |
| * Legacy morph code: Also dump in specified orderRichard Maw2014-02-174-125/+12
| | | | | | | | | | This rips out any remaining order-preserving code and instead uses the yaml dumper from morphloader.
| * cmdtests: Update to use new orderingRichard Maw2014-02-177-74/+71
| |
| * morphloader: Dump dicts with a nicer key orderRichard Maw2014-02-172-5/+93
|/
* Merge remote-tracking branch ↵Richard Maw2014-02-173-6/+36
|\ | | | | | | | | | | | | | | 'origin/baserock/richardmaw/10312/ensure-not-add-repo-ref' This includes a typo fix of Unpertify -> Unpetrify Reviewed-by: Lars Wirzenius
| * yarns: Ensure machine altered morphologies don't include repo/refRichard Maw2014-02-143-1/+32
| |
| * yarns: Remove code to check refs to strataRichard Maw2014-02-141-5/+4
|/ | | | | | | | It should no longer be possible to set these fields. Either we create the morphologies with them in a GIVEN, at which point we already know it's there, so checking whether it is there is pointless; or we check that morph doesn't create them, but the current implementation would not allow it, since yarn doesn't have THEN NOT.
* Merge branch 'baserock/richardmaw/S10310/invalid-repo-ref-v2'Richard Maw2014-02-1439-767/+222
|\ | | | | | | Reviewed-by: Sam Thursfield
| * Warn and default to null if repo or ref are givenRichard Maw2014-02-139-63/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This now means that the system morphology is not altered when chunks are altered, so some tests had to change. Since this uses the python warnings API, these warnings can be ignored by running python -W ignore:"stratum morphology" \ -W ignore:"system morphology" \ "$(which morph)" ...` or turned into errors with python -W error:"stratum morphology" \ -W error:"system morphology" \ "$(which morph)" ...`
| * Remove tests for working with null refsRichard Maw2014-02-137-180/+1
| | | | | | | | | | Refs should be completely omitted, and this is now the standard behaviour, so there's little value in testing the behaviour separately.
| * Don't use repo or ref in test suiteRichard Maw2014-02-1315-79/+15
| |
| * Allow omitting repo and ref when referring to strataRichard Maw2014-02-136-34/+35
| |
| * Allow tagging branches with null refsRichard Maw2014-02-131-27/+13
| | | | | | | | | | | | | | This includes various changes allowing the repo and ref fields to be missing; but also a change to the the component_key function, so that instead of generating a string, it returns a tuple, since it's only required to be a consistently hashable index.
| * Remove edit-updates-stratum-build-depends testRichard Maw2014-02-122-95/+0
| | | | | | | | | | | | | | | | | | | | This test stopped being fit for purpose after an accidental edit made it no longer check the stratum build depends. However, rather than fixing it, it should be removed, since we're changing morph's behaviour to not support morphologies in different repositories, which means that updating these refs is no longer necessary.
| * Remove test for tagging with multiple morphs reposRichard Maw2014-02-122-289/+0
| | | | | | | | | | We don't support this any more, it makes morphologies complicated to implement and reason about.
* | Update copyright in READMESam Thursfield2014-02-141-1/+1
| |
* | Add note to README about running Morph from a Git checkoutSam Thursfield2014-02-131-0/+4
|/
* Update Copyright and wrap lines longer than 79 charsPedro Alvarez2014-02-041-2/+3
|
* Improve help for gc commandrichardipsum/gc_plugin_improve_helpRichard Ipsum2014-01-301-6/+9
|
* Fix copyright year in previous commitRichard Maw2014-01-281-1/+1
|
* Merge branch 'baserock/richardmaw/S10140/vbox-3.4.0-deploy'Richard Maw2014-01-281-1/+19
|\ | | | | | | Reviewed-by: Pedro Alvarez, Lars Wirzenius and Rob Taylor
| * virtualbox-ssh: Work around change in VBox optionsRichard Maw2014-01-281-1/+19
|/ | | | | | | | | | | | VirtualBox changed a command line option in 4.3 incompatibly, so we now have to check the version number and change an option from --sataportcount to --portcount if the version of VirtualBox running on the target is at least 4.3 This turns the version into a tuple and compares it against another, since it's more reliable than comparing strings, which will count '1.10' as earlier than '1.2', and more convenient than comparing the digits individually.
* Merge branch 'benbrown/S9933/validate-chunk-refs'Ben Brown2014-01-222-0/+69
|\
| * Add validation for chunk refs in strata to be (non-empty) stringsBen Brown2014-01-222-0/+69
|/
* Merge branch ↵Richard Maw2014-01-224-17/+95
|\ | | | | | | | | | | 'baserock/richardmaw/S10166/test-key-collision-with-artifact-names-v2' of git://git.baserock.org/baserock/baserock/morph Reviewed-by: Lars Wirzenius
| * yarns: Add regression test for cache-key clashRichard Maw2014-01-223-0/+52
| |
| * yarns: Move system artifact inclusion implementationRichard Maw2014-01-223-16/+42
| | | | | | | | | | | | This moves the GIVEN system $system uses $artifacts from $source to the generic implements section, and the Python implementation into the edit-morph helper script.
| * yarns: install misc files in /etc, not /usr/etcRichard Maw2014-01-221-1/+1
|/
* Merge branch 'baserock/richardmaw/S10135/fixups-v2' of ↵Richard Maw2014-01-224-6/+102
|\ | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed-by: Sam Thursfield