Anders Ingemann
f4851ac06d
fix typo in comment
2015-04-16 22:22:48 +02:00
Anders Ingemann
9101b2e9ec
Add a little helpful not to tasklist ordering warning
2015-04-16 22:22:47 +02:00
Anders Ingemann
50297d790c
Fix problem with 1 MiB too large volume when combining gpt and grub
2015-04-16 22:22:47 +02:00
Anders Ingemann
80ac206fb4
Issue warning when specifying pre/successors across phases
2015-04-16 22:22:47 +02:00
Anders Ingemann
b582bac853
Generally deny installing grub on squeeze
2015-04-16 22:22:47 +02:00
Anders Ingemann
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
2015-04-16 22:21:46 +02:00
Anders Ingemann
e035f83edf
Fix problem when (de-)serializing bootstrapinfo twice
2015-04-16 22:21:46 +02:00
Anders Ingemann
3c642e0b02
Fix serialization of DictClass
...
using it in Queue.put somehow broke it
2015-04-16 22:21:46 +02:00
Anders Ingemann
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.
2015-04-16 22:21:45 +02:00
Anders Ingemann
4cbc8e4f8e
Related to 26bb907, both gpt and msdos partitions need the 1 sector gap now
2015-04-16 22:21:45 +02:00
Anders Ingemann
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
2015-04-16 22:21:44 +02:00
Anders Ingemann
e5dd68acc7
Extlinux booting on gpt now working
2015-04-16 22:21:44 +02:00
Anders Ingemann
9a50cea204
Add 1 sector gap between partitions on GPT
2015-04-16 22:21:44 +02:00
Anders Ingemann
4d74c72d99
Simplify GPT a little by explicitly taking care of the GPT primary & secondary
...
Do the math for the GPT offset a little differently
2015-04-16 22:21:44 +02:00
Anders Ingemann
016fef606f
Account for PartitioGap in a few more places
2015-04-16 22:21:44 +02:00
Anders Ingemann
31b9cb5caa
The dmsetup function still divided self.size by 512, which is not necessary any longer since we are calculating in actual sectors now
2015-04-16 22:21:43 +02:00
Anders Ingemann
ac7e32d35e
Preserve stacktraces when reraising exceptions
2015-04-16 22:21:43 +02:00
Anders Ingemann
16eaade09a
Fix sectors/bytes type problem with single partition
2015-04-16 22:21:42 +02:00
Anders Ingemann
a476248ed6
Partition volumes by sectors instead of bytes
...
This allows for finer grained control over the partition sizes and gaps
2015-04-16 22:21:13 +02:00
Anders Ingemann
e8d6e7f602
factor AbstractPartition.Mount out into separate module and make it serializable
2015-04-16 22:15:20 +02:00
Anders Ingemann
e9137ac172
Make serialization a lot more easy to handle
2015-04-16 22:15:20 +02:00
Anders Ingemann
ab18516f79
Support SIGINT over the network
2015-04-16 22:15:20 +02:00
Anders Ingemann
2b6fefd789
Fix serialization of exceptions
2015-04-16 22:15:20 +02:00
Anders Ingemann
056d279b65
Read import in base.__init__
2015-04-16 22:15:19 +02:00
Anders Ingemann
bc8967529d
Move remote log stuff back into remote module
2015-04-16 22:15:19 +02:00
Anders Ingemann
909e5cee46
Put remote module into pkg root
2015-04-16 22:15:19 +02:00
Anders Ingemann
209651ef38
Dry run working in tests
2015-04-16 22:15:19 +02:00
Anders Ingemann
a7a3161d66
Require Pyro4 >= 4.30
2015-04-16 22:15:19 +02:00
Anders Ingemann
c5bc45218e
Fix documentation
2015-04-16 22:15:19 +02:00
Anders Ingemann
65b9e10ce3
VirtualBox integration
2015-04-16 22:15:19 +02:00
Anders Ingemann
31c453070f
Add log source to log messages
2015-04-16 22:15:18 +02:00
Anders Ingemann
0f4c08e51d
Refactor, logging, comments
2015-04-16 22:15:18 +02:00
Anders Ingemann
08976ffe07
Remove unused import
2015-04-16 22:15:18 +02:00
Anders Ingemann
1ddc0fbc32
Add comment about random ports
2015-04-16 22:15:18 +02:00
Anders Ingemann
f8d79f06e3
More graceful CallbackServer shutdown
2015-04-16 22:15:18 +02:00
Anders Ingemann
d88d73c7f1
Allow listening on different ports on remote and local
2015-04-16 22:15:18 +02:00
Anders Ingemann
fd07954764
Remove manual deserialization
2015-04-16 22:15:18 +02:00
Anders Ingemann
ed222d579f
Little refactor
2015-04-16 22:15:17 +02:00
Anders Ingemann
3542406b91
Fix (de-)serialization
2015-04-16 22:15:17 +02:00
Anders Ingemann
2b33561b82
Don't kill SSH, ask callback server to stop instead of commtimeout
2015-04-16 22:15:17 +02:00
Anders Ingemann
a35ae91b67
Simplify? Hopefully...
2015-04-16 22:15:17 +02:00
Anders Ingemann
282e22c001
debugging
2015-04-16 22:15:17 +02:00
Anders Ingemann
569e1246a5
Deserialize manifest
2015-04-16 22:15:17 +02:00
Anders Ingemann
922cabe80a
Serialize exception info by printing it
2015-04-16 22:15:17 +02:00
Anders Ingemann
150b15bb4f
(g|s)etstate for manifest
2015-04-16 22:15:17 +02:00
Anders Ingemann
aa9616f4a6
Stop callback server last
2015-04-16 22:15:17 +02:00
Anders Ingemann
16837b38c2
Close thread on both ends!
2015-04-16 22:15:17 +02:00
Anders Ingemann
e271f3e49a
Initial work on integration testing started.
...
The work consists of three parts:
* Allow for bootstrapping remotely,
this makes it possible to run the tests
on e.g. OSX with VirtualBox installed
* Make bootstrapping a fully automated process
where the manifests can be generated by the tests
and the tests can call the bootstrapper directly in python
* Create a framework wherein instances can be booted up
using the bootstrapped images and subsequently tested
2015-04-16 22:15:17 +02:00
Anders Ingemann
d06fbb4a2d
Turn on nazi option for sphinx and fix warnings
2015-04-11 16:40:44 +02:00
Jonh Wendell
1290694f9a
Add the manifest "include-source-type" key for packages object
...
It controls whether to include the 'deb-src' lines in image's
source.list.
Currently they are always included. This patch changes this
behavior by not including them by default; the user must set
this new config to true in order to include them.
This saves a bit of bandwidth in default installations. Also,
the use of src packages is not so usual in ordinary installations.
2015-03-03 19:39:58 -03:00