Carlos Meza
4e1a5922f7
pylint W0621(redefined-outer-name)
2018-02-25 10:27:53 +00:00
Carlos Meza
23ec568d3c
pylint W0703(broad-except)
2018-02-25 09:43:47 +00:00
Carlos Meza
b180f66ef0
pylint E1101(no-member)
2018-02-25 09:34:12 +00:00
Carlos Meza
4d5732dbd7
pylint R1705(no-else-return)
2018-02-25 08:37:24 +00:00
Carlos Meza
149173ef62
pylint W0622(redefined-builtin)
2018-02-25 08:37:24 +00:00
Carlos Meza
6e183914ac
fix pylint W0403(relative-import)
2018-02-25 04:12:24 +00:00
Tomasz Melcer
9b15c52ed6
fix some typos in documentation
2017-04-23 16:59:37 +02:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths
2016-09-12 19:11:20 +02:00
Anders Ingemann
f62c8ade99
Convert indentation from tabs to spaces (4)
...
Up until now I didn't see the point of using spaces for indentation.
However, the previous commit (a18bec3) was quite eye opening.
Given that python is an indentation aware language, the amount of
mistakes that went unnoticed because tabs and spaces were used
at the same time (tabs for indentation and spaces for alignment)
were unacceptable.
E101,W191 have been re-enable in the tox flake8 checker and
the documentation has been modified accordingly.
The following files have been left as-is:
* bootstrapvz/common/assets/extlinux/extlinux.conf
* bootstrapvz/common/assets/init.d/expand-root
* bootstrapvz/common/assets/init.d/generate-ssh-hostkeys
* bootstrapvz/common/assets/init.d/squeeze/generate-ssh-hostkeys
* bootstrapvz/plugins/docker_daemon/assets/init.d/docker
* bootstrapvz/providers/ec2/assets/bin/growpart
* bootstrapvz/providers/ec2/assets/grub.d/40_custom
* bootstrapvz/providers/ec2/assets/init.d/ec2-get-credentials
* bootstrapvz/providers/ec2/assets/init.d/ec2-run-user-data
* docs/_static/taskoverview.coffee
* docs/_static/taskoverview.less
* tests/unit/subprocess.sh
2016-06-04 11:38:16 +02:00
Anders Ingemann
6bb654b79f
Compat with new sphinx
...
Changed a lot of code:: to code-block::
Also added sphinx_rtd_theme to deps in tox
2016-03-04 01:21:52 +01:00
Anders Ingemann
f8118b3f3e
Rename integration tests to system tests, since they cover the entire system
...
*cough e82bdf4
*cough
2016-03-04 00:48:48 +01:00
Anders Ingemann
072969065c
Implement docker integration test provider and docker tests
...
Also make build_server.remote_command() public. It's quite useful.
2015-12-13 23:12:00 +01:00
Anders Ingemann
bd7675bedf
Introduce run_settings in build_servers.yml
...
Will be used when starting instances during integration testing.
2015-12-13 19:42:15 +01:00
Anders Ingemann
4d561274e4
Make bootstrap-vz-remote actually work
...
Wow, that's quite an oversight...
2015-04-23 23:30:39 +02:00
Anders Ingemann
d496c028cd
Document the remote bootstrapping procedure
2015-04-19 19:28:13 +02:00
Anders Ingemann
a7d5c93fa1
Add README for remote bootstrapping
2015-04-16 23:32:19 +02:00
Anders Ingemann
53c9eb572e
Support testing of EC2 S3 backed instances
2015-04-16 22:22:48 +02:00
Anders Ingemann
51bb3dd57f
Integration testing for EC2
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
51e9e29b24
Move server control code to the top
2015-04-16 22:21:46 +02:00
Anders Ingemann
4582ea1498
Better termination when exiting while connecting to the RPC daemon
2015-04-16 22:21:46 +02:00
Anders Ingemann
9505110d4a
*first* start the callback server *then* the RPC daemon
...
This way we don't stop logging before the daemon is shut down.
2015-04-16 22:21:46 +02:00
Anders Ingemann
686f9e4230
No need to remember the callback server
2015-04-16 22:21:45 +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
a0e3ba218f
Always attempt to close SSH gracefully
2015-04-16 22:21:45 +02:00
Anders Ingemann
e9a3845281
Fix serialization of CalledProcessError
2015-04-16 22:21:45 +02:00
Anders Ingemann
17a4511ee1
Convert remote building state management to work in with statements
...
exception and state handling is a lot easier now, less class vars etc.
2015-04-16 22:21:45 +02:00
Anders Ingemann
ef37cd257f
Move build servers into separate module
2015-04-16 22:21:45 +02:00
Anders Ingemann
36728cf648
Since bootstrap-vz uses `sudo' to elevate privileges, the root password will never be needed
2015-04-16 22:21:45 +02:00
Anders Ingemann
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
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
b4cd905977
Fix serialization of UnitError
2015-04-16 22:21:44 +02:00
Anders Ingemann
ac7e32d35e
Preserve stacktraces when reraising exceptions
2015-04-16 22:21:43 +02:00
Anders Ingemann
b67b174eb5
Extend build server logging when downloading an image
2015-04-16 22:21:43 +02:00
Anders Ingemann
eaf8f8ea0f
Remove leftover pprint
2015-04-16 22:21:42 +02:00
Anders Ingemann
5383811ecc
Allow serialization of PartitionGap class
2015-04-16 22:21:42 +02:00
Anders Ingemann
f43e2480a5
Allow serialization of Sectors class
2015-04-16 22:21:42 +02:00
Anders Ingemann
456a68ea25
Remove unneccessary import
2015-04-16 22:21:12 +02:00
Anders Ingemann
81060b2439
5ffbdc4 made no sense, apt_proxy was already a build setting
2015-04-16 22:18:57 +02:00
Anders Ingemann
70c282e804
Add log statements and remove unused SSHRPCManager
2015-04-16 22:18:57 +02:00
Anders Ingemann
8090d3c5bc
Log to file on the remote
2015-04-16 22:15:20 +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
a8e5c2d6e4
Fix problem with read rights on remote build machine
2015-04-16 22:15:20 +02:00
Anders Ingemann
09fee291a8
Fix bugs in remote build server
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
bc8967529d
Move remote log stuff back into remote module
2015-04-16 22:15:19 +02:00
Anders Ingemann
ece717a79f
Fix bugs when picking the build server
2015-04-16 22:15:19 +02:00
Anders Ingemann
cee05e3fd0
Refactor...
2015-04-16 22:15:19 +02:00