Commit graph

  • b843cbe089 Remove skipped tests that test functionality that'll probably never be implemented Anders Ingemann 2015-04-08 21:23:47 +02:00
  • e47d67bc4f Launch ec2 test instances inside a VPC Anders Ingemann 2015-04-08 21:23:21 +02:00
  • 7f4d46a330 Fix serialization error when ManifestException is thrown ("__init__() takes at least 3 arguments (2 given)") Anders Ingemann 2015-04-08 21:21:41 +02:00
  • c18e8800b5 Simplify ebs_pvm test suite Anders Ingemann 2015-04-07 18:15:17 +02:00
  • 59f19fe164 Rename ec2 testsuite to ec2_ebs_pvm Anders Ingemann 2015-04-07 17:42:32 +02:00
  • 29fd2d928a Add tests for all ebs 64 bit pvgrub booted instances Anders Ingemann 2015-03-25 21:07:55 +01:00
  • 0c20acce11 Fix positional argument handling in tox It's now possible to pass a single test through tox to nosetest Anders Ingemann 2015-03-25 21:07:25 +01:00
  • 694f46923b Fix snapshot deletion on AMI testing cleanup Anders Ingemann 2015-03-25 21:07:05 +01:00
  • e9736f58a8 Add _stable to vbox test names, that test Debian stable Anders Ingemann 2015-03-25 20:44:06 +01:00
  • b33577a023 Remove ec2 default instance type Anders Ingemann 2015-03-25 20:40:15 +01:00
  • 07e4c97c09 Fix PEP8 nitpick Anders Ingemann 2015-03-25 20:38:33 +01:00
  • a3fdeddd79 Rename virtualbox_tests.py to be less tautological Anders Ingemann 2015-03-25 20:38:07 +01:00
  • 25051d4c04 Improve __getstate__ for bootstrapinfo This approach may be a little hacked, but it works for now and if it breaks at some point in the future because of e.g. circular references that bridge will have to be crossed then Anders Ingemann 2015-03-25 20:36:06 +01:00
  • 51bb3dd57f Integration testing for EC2 Anders Ingemann 2015-03-10 23:05:12 +01:00
  • ec96de3a0e fix log_call logging when command is a string Anders Ingemann 2015-03-06 11:47:37 +01:00
  • d26ba8bea4 Simplify exception throwing in sed_i Anders Ingemann 2015-03-05 17:15:13 +01:00
  • f63d3c73aa Use subn to count the actual replacements done in inline_replace() Anders Ingemann 2015-03-04 12:51:11 +01:00
  • e035f83edf Fix problem when (de-)serializing bootstrapinfo twice Anders Ingemann 2015-01-25 20:00:57 +01:00
  • 3c642e0b02 Fix serialization of DictClass using it in Queue.put somehow broke it Anders Ingemann 2015-01-25 19:52:28 +01:00
  • 51e9e29b24 Move server control code to the top Anders Ingemann 2015-01-25 19:29:49 +01:00
  • 4582ea1498 Better termination when exiting while connecting to the RPC daemon Anders Ingemann 2015-01-25 19:29:26 +01:00
  • 9505110d4a *first* start the callback server *then* the RPC daemon This way we don't stop logging before the daemon is shut down. Anders Ingemann 2015-01-25 19:06:06 +01:00
  • 686f9e4230 No need to remember the callback server Anders Ingemann 2015-01-25 19:02:13 +01:00
  • b067ada15e Introduce some awesome signal handling We can now press Ctrl+C remotely while any subprocess of the bootstrapping process is running, previously SIGINTs weren't propagated to the bootstrapping process because there was a thread in between it all. Now the bootstrapping process is in it's own process group. Anders Ingemann 2015-01-25 17:38:17 +01:00
  • a0e3ba218f Always attempt to close SSH gracefully Anders Ingemann 2015-01-25 17:32:23 +01:00
  • e9a3845281 Fix serialization of CalledProcessError Anders Ingemann 2015-01-25 17:31:46 +01:00
  • 17a4511ee1 Convert remote building state management to work in with statements exception and state handling is a lot easier now, less class vars etc. Anders Ingemann 2015-01-25 13:31:34 +01:00
  • 5b48ce58c5 Fix lock handling for virtualbox tests Anders Ingemann 2015-01-25 13:30:32 +01:00
  • ef37cd257f Move build servers into separate module Anders Ingemann 2015-01-25 11:55:15 +01:00
  • 36728cf648 Since bootstrap-vz uses `sudo' to elevate privileges, the root password will never be needed Anders Ingemann 2015-01-25 11:37:26 +01:00
  • f1bfee24a0 Prepare integration testing framework to work with providers other than virtualbox Also, convert with context handlers in classes to functions with generators This makes the code a lot more readable Anders Ingemann 2015-01-25 11:35:30 +01:00
  • 75e70c96f7 Fix extlinux booting on jessie when /boot is on another partition Anders Ingemann 2015-01-21 22:32:04 +01:00
  • b70e24a848 Switch to using 3 partitions when testing gpt+msdos Make boot partition a little bigger Anders Ingemann 2015-01-20 08:31:12 +01:00
  • 4cbc8e4f8e Related to 26bb907, both gpt and msdos partitions need the 1 sector gap now Anders Ingemann 2015-01-19 23:53:21 +01:00
  • a62ce1705a Remove the PartitionGap class, it's way too much of a hassle to work with Instead pad_start and pad_end have been introduced Anders Ingemann 2015-01-19 23:11:19 +01:00
  • 05006f2d83 Allow using integers for more operations with Sectors Anders Ingemann 2015-01-19 23:11:00 +01:00
  • d105d10c76 raise proper Skip exception rather than the plugin class Anders Ingemann 2015-01-19 18:40:46 +01:00
  • e5dd68acc7 Extlinux booting on gpt now working Anders Ingemann 2015-01-19 17:19:27 +01:00
  • 0e19b4c1ed Fix boot detection and extend boot timeout Anders Ingemann 2015-01-19 16:37:31 +01:00
  • 0f82fbd6af Add some GPT tests Anders Ingemann 2015-01-19 01:39:48 +01:00
  • 9a50cea204 Add 1 sector gap between partitions on GPT Anders Ingemann 2015-01-19 01:38:16 +01:00
  • 4d74c72d99 Simplify GPT a little by explicitly taking care of the GPT primary & secondary Do the math for the GPT offset a little differently Anders Ingemann 2015-01-19 01:22:12 +01:00
  • f0402d6a9b Preserve stacktrace when reraising in vbox instance up() Anders Ingemann 2015-01-19 01:21:30 +01:00
  • b4cd905977 Fix serialization of UnitError Anders Ingemann 2015-01-19 01:21:16 +01:00
  • 1569797e5b Properly set the states of different partitions in prebootstrapped plugin Anders Ingemann 2015-01-19 01:20:43 +01:00
  • 016fef606f Account for PartitioGap in a few more places Anders Ingemann 2015-01-19 01:20:29 +01:00
  • 31b9cb5caa The dmsetup function still divided self.size by 512, which is not necessary any longer since we are calculating in actual sectors now Anders Ingemann 2015-01-18 23:01:15 +01:00
  • 44dcdec0ec No need to skip jessie/extlinux tests any longer Anders Ingemann 2015-01-17 12:42:47 +01:00
  • 744001a9ab grub now works on jessie Anders Ingemann 2015-01-17 12:42:05 +01:00
  • 8d8a823092 Properly detect successful boot on jessie Anders Ingemann 2015-01-17 12:29:47 +01:00
  • 6b6b636f3b extlinux is now running on jessie Anders Ingemann 2015-01-17 12:29:33 +01:00
  • f6e4903a8e Update the kernel image after package installation Anders Ingemann 2015-01-17 12:27:29 +01:00
  • ac7e32d35e Preserve stacktraces when reraising exceptions Anders Ingemann 2015-01-16 23:49:08 +01:00
  • b67b174eb5 Extend build server logging when downloading an image Anders Ingemann 2015-01-16 01:54:05 +01:00
  • 149db4c989 Add new task: DeterminKernelVersion, this can potentially fix a lot of small problems Anders Ingemann 2015-01-16 01:53:35 +01:00
  • 767b32d20e Improve read_from_socket, a lot... Anders Ingemann 2015-01-16 01:52:42 +01:00
  • 7ef88d284d Don't try unlocking the machine before locking it If it's already locked, that should be an error. Anders Ingemann 2015-01-16 01:52:16 +01:00
  • 0fe3c9e984 Cleanup adfter keyboard interrupts (also do a better job of cleaning up) Anders Ingemann 2015-01-16 01:51:58 +01:00
  • 87f2d889b7 Delete image after use, apparently the vbox version of delete is to do nothing Anders Ingemann 2015-01-16 01:50:27 +01:00
  • bd4cf250a2 Fix spelling Anders Ingemann 2015-01-16 01:50:03 +01:00
  • e1946fcb68 Simpler check for whether to create image or use image in prebootstrapped plugin Anders Ingemann 2015-01-15 22:44:55 +01:00
  • eaf8f8ea0f Remove leftover pprint Anders Ingemann 2015-01-03 14:40:02 +01:00
  • 5383811ecc Allow serialization of PartitionGap class Anders Ingemann 2015-01-03 13:26:14 +01:00
  • 16eaade09a Fix sectors/bytes type problem with single partition Anders Ingemann 2015-01-03 12:44:57 +01:00
  • f43e2480a5 Allow serialization of Sectors class Anders Ingemann 2015-01-03 12:44:32 +01:00
  • b537f2d987 Remove __abs__ from bytes and sectors, one should convert to int instead Anders Ingemann 2015-01-02 15:12:48 +01:00
  • 7f84e405f0 Cast to int before comparing in ec2 validate_manifest() Anders Ingemann 2015-01-02 15:11:36 +01:00
  • 7310129f4e Disable getty processes on jessie through logind config Anders Ingemann 2015-01-02 14:50:05 +01:00
  • 4be7e8966c Add {posargs} to nosetest commands Anders Ingemann 2015-01-02 14:40:52 +01:00
  • 1cca37985d Mov tox main config to top of tox file Anders Ingemann 2015-01-02 14:40:24 +01:00
  • a476248ed6 Partition volumes by sectors instead of bytes This allows for finer grained control over the partition sizes and gaps Anders Ingemann 2015-01-01 21:09:16 +01:00
  • 3ff1c57980 Don't require qemu for raw volumes, use truncate instead Anders Ingemann 2015-01-01 21:00:59 +01:00
  • 9a6975ce7d Add new Sectors unit, enhance Bytes unit, add unit tests for both Anders Ingemann 2015-01-01 18:45:39 +01:00
  • 456a68ea25 Remove unneccessary import Anders Ingemann 2014-12-31 15:41:40 +01:00
  • 6ade2a90c2 More verbose image name Anders Ingemann 2014-12-31 15:24:50 +01:00
  • 7b77b484f2 Fix #179 Anders Ingemann 2014-12-31 15:24:30 +01:00
  • 5823c9119b Split grub and extlinux installs into separate modules Anders Ingemann 2014-12-31 14:14:43 +01:00
  • ce8dd02cbf Fix dict merge conflict in test_unpartitioned_extlinux_unstable Anders Ingemann 2014-12-31 13:40:33 +01:00
  • a241842ef9 Better dict merging (less side-effectful) Anders Ingemann 2014-12-31 13:40:16 +01:00
  • b6976eb6e9 Lowercase L for InstallExlinux taskname Anders Ingemann 2014-12-31 13:39:54 +01:00
  • 2aebc870a4 Fix extlinux config for squeeze Anders Ingemann 2014-12-31 13:39:40 +01:00
  • 81060b2439 5ffbdc4 made no sense, apt_proxy was already a build setting Anders Ingemann 2014-12-21 19:42:43 +01:00
  • 943aab111f Add some more tests Anders Ingemann 2014-12-21 18:55:44 +01:00
  • bbec32a987 Use stable/unstable, rather than wheezy/jessie Anders Ingemann 2014-12-21 17:28:52 +01:00
  • 50fabe65ec remove duplicated code Anders Ingemann 2014-12-21 17:28:11 +01:00
  • 8bb34c604b Fix serious bug in merge_dicts where the original dict would be modified Anders Ingemann 2014-12-20 23:18:27 +01:00
  • 70c282e804 Add log statements and remove unused SSHRPCManager Anders Ingemann 2014-12-20 17:59:39 +01:00
  • 9c6af89e78 Abstract bootstrapping, instance creation, booting etc.. This all now runs using a simple with: statement Anders Ingemann 2014-12-20 16:52:31 +01:00
  • a11e466611 Generalize reading from socket Anders Ingemann 2014-12-20 16:07:00 +01:00
  • c71a8230fe Make tests/ a module, so that test scripts can import and run the tests manually Anders Ingemann 2014-12-20 15:43:28 +01:00
  • 58d66fea68 Make extlinux output boot messages to the serial console (fixes #136) Anders Ingemann 2014-12-20 15:42:14 +01:00
  • 200c5086e5 Extend sed_i to raise Exceptions when the expected amount of replacements is not met Anders Ingemann 2014-12-20 15:40:48 +01:00
  • 27950af66e Check runlevel in order to terminate reading from the console Anders Ingemann 2014-12-20 02:43:20 +01:00
  • ed98ab30fd Able to get console output from the machine now! It's blocking though, so maybe there should be a check for "Entering runlevel: 2" or some shit... Anders Ingemann 2014-12-20 02:25:47 +01:00
  • 6a0bef147a Refactor. Locking a vbox is now quite a bit easier Anders Ingemann 2014-12-20 01:21:00 +01:00
  • 6f23bcaafc Add apt_proxy partial Anders Ingemann 2014-12-20 01:17:56 +01:00
  • 8090d3c5bc Log to file on the remote Anders Ingemann 2014-12-19 21:55:32 +01:00
  • e8d6e7f602 factor AbstractPartition.Mount out into separate module and make it serializable Anders Ingemann 2014-12-19 01:43:10 +01:00
  • ad52df37bd Add partial for config of root password Anders Ingemann 2014-12-19 01:27:16 +01:00
  • 71e0d943fc Make json and yaml files conflict instead of override Anders Ingemann 2014-12-19 01:26:33 +01:00