Commit graph

293 commits

Author SHA1 Message Date
Zach Marano
79a1aa1616 Add GCE buster builds. 2017-08-30 17:50:27 -07:00
Guillaume Plessis
7234be601b Fix flake8 tests 2017-08-23 14:42:31 -07:00
Guillaume Plessis
cb886fe3d6 Don’t crash on empty AMI name 2017-08-23 12:58:23 -07:00
Anders Ingemann
bf7525426b
vbox: Make guest additions path relative to manifest 2017-07-14 18:27:16 +02:00
Brendan Harley
cc69173e52 Add qcow2 as a disk backend for KVM
This allows to build an image with qcow2 as a disk backend.

The update implements a new class that inherits from QEMUVolume and just
needs the extention and file format.
2017-06-16 15:54:51 +02:00
Anders Ingemann
3e5c94f0d4 Merge pull request #381 from Exy13/lvm
Add LVM as a disk backend
2017-06-08 21:55:34 +02:00
Brendan Harley
511a44f72e Add LVM as a disk backend
Enables the use of Logical Volumes as disk backends.

It uses an existing volume group and has no support for creating a new one.
It will not override an existing logical volume and fail gracefully.

The lv is created, activated and then mounted as a loop device.
The boostraping process is then launched on the loop device.
Once the process is completed, the lv is unmounted and desactivated.

The created lv will be deleted should the boostraping process fail.

The lv must be activated before use.

A manifest has been included for testing purposes.
2017-06-08 17:05:48 +02:00
Zach Marano
c6a6a6e8b1 Enable SCSI block multiqueue for GCE Stretch images. 2017-05-02 12:55:51 -07:00
Anders Ingemann
a40c639c3c
Move some package adding tasks into the preparation phase 2017-04-15 10:01:27 +02:00
Christopher Grim
c87aa22069 EC2: Update the URL to dowload the ixgbevf driver
The URL for the ixgbevf driver is currently returning a 404. Updating
to the new mirror URL gets EC2 builds with enhanced networking support
working again.
2017-03-15 16:57:44 -04:00
Anders Ingemann
5bc4937704
Update docs with boto3 req.
Fixes #362
2017-02-03 15:41:47 +01:00
Zach Marano
74a58c6829 Create a plugin for expand_root to replace the internal common task.
Switch GCE to use this plugin.
2017-01-26 10:18:04 -08:00
Anders Ingemann
6e4722c011
Remove '*****' from InstallENANetworking task desc. 2017-01-23 23:14:39 +01:00
Marcin Kulisz
673260ec63 EC2 provider: fixing snapshot tagging 2017-01-21 22:44:16 +00:00
Marcin Kulisz
ef698b06ca Final fix for ec2_launch plugin 2017-01-21 20:31:49 +00:00
Marcin Kulisz
07c66e9030 EC2 provider: added ENA driver (installing with +
enhanced_networking set to simple)
2017-01-19 18:53:26 +00:00
Marcin Kulisz
89eedae5fc Porting EC2 provider to boto3 2017-01-19 18:53:26 +00:00
Zach Marano
84f258e748 Fixes to create stretch images. Add stretch manifest for GCE. 2017-01-10 13:30:31 -08:00
Peter Wagner
441786e8e1 Support ca-central-1
AMI? More like eh-MI
2016-12-09 08:39:17 +01:00
Anders Ingemann
00de1738d7
Fix indentation typo in ec2 network task 2016-12-01 15:06:28 +01:00
James Bromberger
0664bdd2ac
Get new SR IOV network driver. Update official manifest to generate tags on AMIs. 2016-12-01 15:03:22 +01:00
Marcin Kulisz
0d95674c36 Disabling PIE during ixgbevf compilation for AWS +
enhanced network instances Stretch upwards.
* For GCC >=6 in Debian PIE (Position Independent Executable) has being activated
  it is causing enhanced network driver for AWS images to fail at
  compilation time due to incompatibility with PIE options for the kernel
* To learn what PIE is read docs at
  https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html#Code-Gen-Options
2016-10-31 16:18:44 +00:00
Marcin Kulisz
5267d95360 Added AMI tagging for AWS provider +
* minor syntax fixes
* added official Stretch manifest
2016-10-31 15:26:17 +00:00
Marcin Kulisz
c3a6d4f232 Backports should be available for all releases <= stable 2016-09-24 19:05:29 +01:00
Marcin Kulisz
ee64a87889 Stretch (9.0) patch #2 - EC2: Removing backports +
if release >= jessie and not stable
2016-09-24 19:03:28 +01:00
Anders Ingemann
e5c96195bb Merge pull request #341 from nbraud/rel_path
Use the rel_path utility function
2016-09-20 16:34:07 +02:00
James Bromberger
97c03a85f3 Rename debiancloud.conf to .cfg to match cloud-init requirements. 2016-09-19 15:42:52 +00:00
James Bromberger
ca636254a5 Rename cloud-init config file to match *.cfg
Change EC2 cloud-init config file to preserve apt sources (cloudfonrt.debian.net) and manage /etc/hosts
2016-09-19 15:21:32 +00:00
Nicolas Braud-Santoni
90da634226
Systematically use rel_path for relative paths 2016-09-12 19:11:20 +02:00
Nicolas Braud-Santoni
81778136bc
Moving host_dependencies tasks to the validation phase 2016-09-12 01:12:19 +02:00
Nicolas Braud-Santoni
9bf2c45ee2
Moving checking tasks to the validation phase 2016-09-12 00:52:10 +02:00
The Fox in the Shell
eca54d6c21
docker: Use a standard escaping function.
The outer double-quotes (") were breaking things on some versions
of Docker, such as the one currently available on Travis.
2016-08-13 14:46:53 +02:00
Zach Marano
1f747788c1 Fix missing source repo in GCE images. Add back baseline apt cache as
well. Add in additional GCE guest package into manifests (init files
were split into their own package to make the python package adhere to
pypi standards).
2016-07-21 14:14:42 -07:00
Anders Ingemann
96086329e6 ec2: Only enable systemd when grub is the bootloader
Right now we can only properly edit the linux bootparams,
when using grub. This should be fixed so that it works for extlinux
as well.

Fixes #328
2016-06-08 16:55:56 +02:00
Anders Ingemann
8b4b2701fb docker: Let the autostart of daemons by apt remain disabled 2016-06-05 19:06:16 +02:00
Anders Ingemann
49ddd3879f docker: Fix dockerfile creation 2016-06-05 17:19:27 +02:00
Justin Santa Barbara
0a8ececb20 Source ixgbevf driver from intel, not sourceforge
Sourceforge is often down at the moment, causing bootstrap-vz to fail.

Fix #287
2016-06-05 10:45:19 +02:00
Anders Ingemann
98de220f78 ec2: Add tasks for EC2 tuning
Snatched from PR #256 by @JamesBromberger
2016-06-05 10:45:19 +02:00
Anders Ingemann
8eb51524f3 vbox: Add tty0 as grub console output
Fixes #312
2016-06-04 19:54:39 +02:00
Anders Ingemann
cd969b5427 ec2: Fix for 9d2ad17, use tasks.grub not grub 2016-06-04 19:32:03 +02:00
Anders Ingemann
a5f5b9ef3a ec2: Fix PVM grub console output 2016-06-04 19:26:31 +02:00
Anders Ingemann
45fb28082a ec2: Add hvc0 as grub console output device 2016-06-04 19:23:35 +02:00
Anders Ingemann
9d2ad17d09 ec2: Enable systemd on >=jessie 2016-06-04 19:20:31 +02:00
Anders Ingemann
cf6234bafd Split grub config into small tasks
The way boot options for linux and config params for grub
were configured gave rise to quite a few bugs.
The configuration has now been abstracted so that
options can be added without interfering with the work
of other tasks (no more sed_i!)
2016-06-04 18:48:54 +02:00
Anders Ingemann
da50ed7978 ec2: Silence boto before determining the AMI name 2016-06-04 18:48:54 +02:00
Anders Ingemann
306c87d535 ec2: provider.description is required 2016-06-04 18:48:53 +02:00
Anders Ingemann
4cbeed5263 Add manifest, kernel and NIC config for stretch 2016-06-04 18:19:49 +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
2d6a026160 Fix a slew of indentation & spacing issues 2016-06-04 11:38:16 +02:00
Anders Ingemann
4cff2f3e70 Merge pull request #326 from zmarano/master
Overhaul GCE image build.
2016-06-04 09:39:52 +02:00