summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Write extensions: pass -s to rsyncRichard Maw2013-06-093-6/+6
|/ / | | | | | | | | | | | | | | | | | | | | | | | | -s, or --protect-args prevents the file path components of destination or source paths being interpreted by the remote shell. This is for wildcards or other shell features, but it breaks when paths have whitespace. We tend to always use absolute paths, so all uses of rsync now pass -s. kvm.write needs it, since the disk can be written to a path with spaces. Nfsboot and ssh-rsync need it because version labels are used, which may have spaces, and temporary directories are used, which could have spaces in weird TMPDIR configurations.
* | Merge branch 'jonathan/kvm-nic'Jonathan Maw2013-06-191-0/+5
|\ \ | | | | | | | | | Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
| * | kvm.write uses NIC_CONFIGJonathan Maw2013-06-191-0/+5
|/ /
* | Fix a typoTiago Gomes2013-06-191-1/+1
| |
* | GC Plugin: Fix usage of satus.Richard Maw2013-06-091-1/+1
| | | | | | | | I don't know how that one slipped through.
* | Merge remote-tracking branch 'origin/symb-link-running-systems'Lars Wirzenius2013-06-192-6/+19
|\ \
| * | Support upgrades in older running versions.Tiago Gomes2013-06-141-3/+11
| | | | | | | | | | | | | | | | | | | | | Verify if are using and older extlinux configuration and upgrade it if the case, by checking if the "default" symbolic link exists on the target. Note that with the symbolic link we don't need to update extlinux configuration after an upgrade
| * | Create a symbolic link to the default system version when upgrading running ↵Tiago Gomes2013-06-141-2/+6
| | | | | | | | | | | | systems.
| * | Only upgrade an older extlinux configuration if we want one.Tiago Gomes2013-06-141-1/+2
| | |
* | | Merge branch 'baserock/richardmaw/S7905-morph-gc-v3' of ↵Richard Maw2013-06-095-8/+248
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph There were no major objections to the design and it has been sitting in the merge queue long enough that it was decided to merge it. It has been reviewed and lightly tested by Jonathan Maw.
| * | util: suggest how to deal with insufficient spaceRichard Maw2013-06-071-1/+7
| | |
| * | plugins: add morph gc subcommandRichard Maw2013-06-072-0/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes staging areas and extracted chunks from --tempdir. Then asks the local artifact cache what artifacts it has and how old they are, removing all sources older than --cachedir-artifact-delete-older-than, and may delete other sources that are younger than --cachedir-artifact-keep-younger-than if it still needs to make space.
| * | lac_tests: Cover list and deleteRichard Maw2013-06-072-2/+34
| | |
| * | LAC: implement contents listing and removal by keyRichard Maw2013-06-071-0/+28
| | |
| * | lac_tests: set cache keyRichard Maw2013-06-071-1/+3
| | |
| * | util: split out space unify logicRichard Maw2013-06-071-6/+19
| | |
* | | Merge branch 'baserock/tiagogomes/vbox-networking2' of ↵Tiago Gomes2013-06-171-7/+65
|\ \ \ | | | | | | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed by Richard Maw, Lars Wirzenis, Daniel Silverstone and Jonathan Maw.
| * | | Improve network setup of the virtualbox write extension.Tiago Gomes2013-06-061-7/+65
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The VirtualBox deployment write extension will configure networking in the following manner: - One host-only network interface will be used to group the virtual machines together (and to give access between the host and the virtual machines). It will be bound to eth0 of the virtual machine. - One NAT (or Bridge) network interface will be used to allow the virtual machines access to the wider network. This will be bound to eth1 of the virtual machine. Now deployment to virtual box will require that both HOST_IPADDR and NETMASK environment variables be set, and also configuration for eth0 and eth1 is expected in the NETWORK_CONFIG environment variable. This commit also replaces some run_cmd with ssh_runcmd.
* | | Merge branch 'baserock/tiagogomes/default-symlink' of ↵Tiago Gomes2013-06-172-5/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed by Richard Maw and Lars Wirzenius
| * | | Set up a symlink to the default system version in rawdisk/kvm/vboxTiago Gomes2013-06-142-5/+14
| |/ / | | | | | | | | | | | | | | | | | | deployments Also Change them to use the "default" symlink in the extlinux.conf they create, instead of hardcoding the current system version name
* | | Merge branch 'baserock/tiagogomes/nfs-boot-sl' of ↵Tiago Gomes2013-06-171-9/+9
|\ \ \ | |_|/ |/| | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed by Lars Wirzenius
| * | Change the symbolic link target and directory the default system on NFS server.Tiago Gomes2013-06-171-9/+9
|/ / | | | | | | | | | | | | | | | | With this we'll have "default -> factory" instead of "default-run" -> "factory/run". Also change to use VERSION_LABEL instead of VERSION and "factory" instead of "version1", to be more consistent with other parts of the code.
* | Merge branch 'liw/check-full-fails'Lars Wirzenius2013-06-171-0/+1
|\ \ | |/ |/| | | Reviewed-by: Daniel Silverstone on IRC
| * Fix scripts/test-morph to pass min space options alwaysLars Wirzenius2013-06-171-0/+1
|/ | | | | It was misisng one case, making the test suite fail on computers with suitable amounts of free space in the right filesystem.
* Add the install-files extension to morphJonathan Maw2013-06-061-0/+112
|
* Merge branch 'baserock/richardmaw/suggested-cleanups-for-tmpdir' of ↵Richard Maw2013-06-064-20/+15
|\ | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed-by: Tiago Gomes
| * Remove intermediate variablesRichard Maw2013-06-062-6/+5
| | | | | | | | | | I find it easier to read without them, since there are less variables to remember.
| * Shorten create_if_not_exists logicRichard Maw2013-06-061-11/+7
| | | | | | | | | | | | | | | | I find the loop easier to read since there's less redundancy. Also less code to maintain. Note that tmpdir is not explicitly created, since makedirs of one of its subdirectories will handle that.
| * process_args: Move directory creation to after dump configRichard Maw2013-06-061-4/+4
| | | | | | | | | | | | I put my directory creation logic there, since it's an unintended side-effect to create the directories if all you want to do is dump the config.
| * builder: replace shelling out to mv with os.renameRichard Maw2013-06-061-1/+1
|/ | | | It's just 1 system call instead of at least 3.
* Merge branch 'baserock/tiagogomes/tmpdir' of ↵Tiago Gomes2013-06-055-17/+33
|\ | | | | | | | | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph I had fixed an conflict and change to use morph_tmp instead of morph as default temp dir. Reviewed by Lars Wirzenius Conflicts: morphlib/app.py
| * Change the structure of the temporary directory used by morphTiago Gomes2013-06-055-12/+31
| | | | | | | | | | | | Now, inside the temporary directory we will have the following subdirectories: chunks, staging, failed and deployments. The failed directory will contain the staging areas of failed builds.
* | Merge branch 'baserock/richardmaw/S7904-warn-disk-full-v2' of ↵Richard Maw2013-06-0514-35/+115
|\ \ | | | | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed-by: Lars Wirzenius
| * | S7904: Add disk space checks before build & deployRichard Maw2013-06-053-1/+24
| | | | | | | | | | | | | | | | | | | | | The same check that cachedir and tempdir are large enough is used for both build and build-morphology. Deploy only checks for tempdir being large enough.
| * | S7904: method for checking disk space is availableRichard Maw2013-06-051-0/+21
| | |
| * | S7904: method for testing paths are on the same fsRichard Maw2013-06-051-0/+10
| | |
| * | S7904: add method for finding bytes free in pathRichard Maw2013-06-051-0/+7
| | | | | | | | | | | | | | | This has no tests, as the ability to run them requires root privilidges or a more recent kernel and user namespace support.
| * | tests: disable the cache and tempdir space checksRichard Maw2013-06-051-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | The size checks are irrelevant for most tests, since they tend to produce tiny systems. This still leaves the size checks themselves untested, however doing so is arguably a system-wide test.
| * | S7904: add new config options for minimum sizesRichard Maw2013-06-051-0/+28
| | |
| * | S7904: Move cache settings to storage optionsRichard Maw2013-06-051-10/+14
| | |
| * | Create cachedir and tempdir if they do not existRichard Maw2013-06-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has been a thorn in my side for many a deployment. A nascent cache directory will cause the size checks to fail. We could get complicated and try the parent directories, or create the directories in the size check, but the former is not worth the complication and the latter is the wrong place to put it, so do it during process_args, so the directories exist before subcommands are run, so they don't have to bother with it themselves.
| * | tests: don't put cachedir in the workspaceRichard Maw2013-06-058-22/+2
| | | | | | | | | | | | | | | | | | This was a wild idea when we first designed the branch structure. It causes more problems than it's worth as you may have multiple workspaces, and it needed to be set manually in the first place.
| * | util: Fix a missing import in combine_aliasesRichard Maw2013-06-041-1/+1
| | | | | | | | | | | | ciapp is not imported, but morphlib.Error is an appropriate exception
* | | Merge branch 'baserock/richardmaw/S7903-update-artifact-mtimes' of ↵Richard Maw2013-06-041-4/+35
|\ \ \ | |/ / |/| | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph Reviewed-by: Lars Wirzenius on IRC.
| * | Update timestamps on artifact accessRichard Maw2013-06-011-4/+35
| |/
* | Merge branch 'jonathan/kvm-autostart'Jonathan Maw2013-06-041-4/+6
|\ \ | |/ |/| | | Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
| * kvm.write: Set VM to autostart if specifiedJonathan Maw2013-06-031-0/+3
| |
| * kvm.write: use ssh_runcmdJonathan Maw2013-06-031-4/+3
|/
* Merge branch 'baserock/danielsilverstone/more-pattern-fixes'Daniel Silverstone2013-06-031-2/+2
|\ | | | | | | Reviewed-By: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
| * UTIL: Update trove-id processing for hyphensDaniel Silverstone2013-06-031-2/+2
|/ | | | | Ensure that trove-id meets the same requirements as repo aliases in terms of naming.