30065 Commits

Author SHA1 Message Date
Michael Marineau
99982182b9 feat(image_to_vm): Switch to qcow2 as default qemu disk format.
We only really need raw images for dd'ing to block devices and this
format has been requested for some cases so lets just use it!
2013-08-02 14:53:08 -04:00
Brandon Philips
b324d3d215 Merge pull request #76 from philips/add-copy-box
feat(core_upload_update): copy stuff to channel URL
2013-08-02 11:49:39 -07:00
Brandon Philips
77123e9a2c feat(core_upload_update): copy stuff to channel URL
on upload copy stuff to channel URL.

TODO: add channel stuff to the index
2013-08-02 11:33:02 -07:00
polvi
f0324170ff Merge pull request #75 from polvi/vagrant-bump
add version requirement to the vagrantfile
2013-08-01 20:32:07 -07:00
Alex Polvi
9ddb254ac1 feat(vagrant) add version requirement to the vagrantfile 2013-08-01 20:29:38 -07:00
polvi
72d31f3a89 Merge pull request #74 from marineam/gzip
fix(image_to_vm): gzip vagrant's .box files
2013-08-01 19:45:33 -07:00
Michael Marineau
9c88c24131 fix(image_to_vm): gzip vagrant's .box files 2013-08-01 22:42:37 -04:00
Michael Marineau
382645945a Merge pull request #72 from marineam/vlite
vagrant image with oem partition
2013-08-01 19:30:26 -07:00
polvi
8aac92d989 Merge pull request #149 from polvi/etcd-bootstrap
feat(oem-service): make etcd bootstrapping optional, and only supported ...
2013-08-01 19:29:28 -07:00
Alex Polvi
76d81a0f19 feat(oem-service): make etcd bootstrapping optional, and only supported on ec2 for now. This will continue to be refactored. 2013-08-01 19:15:21 -07:00
Michael Marineau
ae3202da32 fix(image_to_vm): Add VM MAC address to Vagrantfile, create box image.
Vagrant should now be good to go!
2013-08-01 19:39:12 -04:00
Michael Marineau
626ebd7eb0 fix(image_to_vm): Remove unused --prod flag, prod_image is the right one 2013-08-01 19:05:16 -04:00
Brandon Philips
cba48d9b3b Merge pull request #141 from philips/etcd-restrictions
feat(dev-db/etcd): run as etcd user
2013-08-01 13:38:00 -07:00
Michael Marineau
a2046afc40 fix(image_to_vm): Use vmdk disks for vagrant and write configs.
Vagrant will need the virtualbox ovf plus its own Vagrantfile config.
After this we will need an optional "package" step to this script to
take these files and bundle them into a .box tarball. This could also be
used to switch from .ovf+vmdk for plain virtualbox images to a bundled
.ova archive which combines the two.
2013-08-01 16:35:28 -04:00
Michael Marineau
867e664a94 Merge pull request #146 from marineam/vlite
vagrant oem, misc cleanups
2013-08-01 13:34:44 -07:00
Brandon Philips
b9739b6108 Merge pull request #148 from philips/add-netfilter-redirect
feat(sys-kernel/coreos-kernel): add netfilter redirect
2013-08-01 13:16:30 -07:00
Michael Marineau
52dab6e268 fix(coreos-base/oem-ami): Cleanup ebuild, bump to EAPI=5
Generally a good idea to use newer EAPIs that default to failing on
errors. Uses the same S fix as oem-vagrant does.
2013-08-01 16:12:49 -04:00
Brandon Philips
eac9de51bf feat(sys-kernel/coreos-kernel): add netfilter redirect
add this so we can do some 169. magic with etcd
2013-08-01 13:03:55 -07:00
Greg Kroah-Hartman
6ed2da047d Merge pull request #147 from philips/bump-to-3.10.4
bump(sys-kernel/coreos-kernel): to 3.10.4
2013-08-01 12:42:43 -07:00
Brandon Philips
0fbecd3a4e bump(sys-kernel/coreos-kernel): to 3.10.4
- bump to the latest stable - 3.10.4
- add some minimal real hardware support
- modify cros-workon to allow EGIT_BRANCH to be set
2013-08-01 11:49:18 -07:00
Michael Marineau
ce01e133db fix(image_to_vm): Use vmdk+ovf for virtual box images.
Now we have a config file that can be imported into VirtualBox.
2013-08-01 14:42:04 -04:00
Michael Marineau
dec3691adc fix(coreos-base/oem-vagrant): Fix compatibility with newer EAPIs
No source directory exists so change the value of S, otherwise the
implied cd $S prior to src_install fails. This isn't an issue in oem-ami
which I was using as reference because it declares EAPI=2 which doesn't
make errors fatal by default.
2013-08-01 11:36:28 -04:00
Michael Marineau
5e1337307a feat(image_to_vm): Basic vagrant disk image support
This just generates a vdi that includes the vagrant ssh key.
2013-08-01 00:02:33 -04:00
Michael Marineau
e5f16ba427 add(coreos-base/oem-vagrant): Add OEM package for the vagrant ssh key 2013-07-31 23:53:03 -04:00
Michael Marineau
7c48115da6 fix(image_to_vm): Use saved version info instead of parsing directory.
Trying to include version info by adding the directory name to VM image
names didn't work and a better solution is for build_image to write out
a version.txt file. This should also fix an issue where uploading from
image_to_vm.sh didn't always go to the same location as the images
uploaded from build_image did.
2013-07-31 21:22:52 -04:00
Brandon Philips
857da8829f Merge pull request #70 from philips/fix-core-update
fix(core_upload_update): remove CORE_UPDATE_URL
2013-07-31 15:49:52 -07:00
Brandon Philips
94c36b5483 fix(core_upload_update): remove CORE_UPDATE_URL
We are using the CoreOS CA now in core-admin. This isn't needed (and in
fact breaks things).
2013-07-31 13:58:18 -07:00
Michael Marineau
7cdb04ef14 fix(make.conf): Use absolute path to make.conf.host_setup
The relative path wasn't working with euse correctly. Gotta love
re-implementations of portage config parsing, in perl, with weird bugs.
2013-07-31 15:59:18 -04:00
Michael Marineau
95b3dedcf1 remove(app-emulation/qemu-kvm): Remove ancient qemu version. 2013-07-31 15:23:07 -04:00
Brandon Philips
8e0c8bb8d0 Merge pull request #69 from philips/cleanup-LICENSE
LICENSE: minor cleanups
2013-07-31 11:21:42 -07:00
Brandon Philips
1537c81485 LICENSE: minor cleanups
add 2013 and cleanup the formatting
2013-07-31 11:20:58 -07:00
Brandon Philips
82b40d702a Merge pull request #68 from traviscross/master
License project under the BSD-3 license used by Chrome OS
2013-07-31 11:17:34 -07:00
Travis Cross
3d235a8f74 License project under the BSD-3 license used by Chrome OS 2013-07-31 18:15:32 +00:00
Michael Marineau
18e28643ac Merge pull request #143 from marineam/buildbot
Buildhost ebuilds
2013-07-31 09:36:08 -07:00
Michael Marineau
0691ddf271 Merge pull request #27 from marineam/buildbot
bump(dev-util/buildbot): sync with upstream
2013-07-31 09:35:41 -07:00
Greg Kroah-Hartman
af7f241310 Merge pull request #144 from marineam/evdev
fix(sys-kernel/coreos-kernel): Add evdev module.
2013-07-30 18:59:51 -07:00
Michael Marineau
2e37393af5 fix(sys-kernel/coreos-kernel): Add evdev module.
ACPI power buttons are input devices! Without this it isn't possible to
trigger a graceful shutdown via qemu's command 'system_powerdown' or
whatever libvirt and similar APIs that are layered on top of it.

Probably applicable to other things too that we just don't know about.
2013-07-30 21:10:41 -04:00
Michael Marineau
9d975a3dd7 fix(coreos-devel/coreos-buildbot): Update git commit hash
Merged, use fresh new merge hash.
2013-07-30 16:52:26 -04:00
Michael Marineau
5f2f390b9a fix(profiles): Set use flags required by buildhost-depends 2013-07-30 13:41:23 -04:00
Michael Marineau
4e829155c2 bump(dev-util/buildbot): sync with upstream
Lots of dependencies to pull in!

Packages updated:
  dev-python/decorator
  dev-python/jinja
  dev-python/markupsafe
  dev-python/pyflakes
  dev-python/python-dateutil
  dev-python/six
  dev-python/sqlalchemy
  dev-python/sqlalchemy-migrate
  dev-python/tempita
  dev-python/twisted
  dev-python/twisted-web
  dev-util/buildbot
  dev-util/buildbot-slave
  net-zope/zope-fixers
  net-zope/zope-interface
2013-07-30 13:37:31 -04:00
Michael Marineau
0c564ebf78 add(coreos-devel/*-depends): Meta ebuilds for buildhost and SDK.
Create a meta-ebuild for the SDK based on the packages currently listed
explicitly in bootstrap_sdk.sh and a buildhost ebuild that expands on
that, adding packages that are required in containers used by build
slave instances.
2013-07-30 13:19:15 -04:00
Michael Marineau
ae43aaf5df add(coreos-devel/coreos-buildbot): Add ebuild for our buildbot tools.
Creating a new category for this, coreos-base is overused and dev-python
didn't seem right for custom infrastructure tools. Going forward I'd
like to put SDK and build host specific stuff in this category when
previously coreos-base would be used. Things that actually land in
images would stick with coreos-base.
2013-07-30 13:02:17 -04:00
Brandon Philips
64350b1aed Merge pull request #140 from philips/drop-unused-package
chore(coreos): remove app-crypt/trousers
2013-07-30 09:24:57 -07:00
Michael Marineau
4e88f96fa1 Merge pull request #142 from marineam/notice-404
fix(dev-db/etcd): Handle missing ec2 user-data correctly.
2013-07-30 09:21:44 -07:00
Brandon Philips
bf35170ead fix(dev-db/etcd): use mkdir -p in pre-exec
Ensure that we don't fail on the /var/run/etcd directory creation.
2013-07-30 09:04:47 -07:00
Brandon Philips
db2708f2e8 fix(dev-db/etcd): use new state location
have etcd use /var/lib like other daemons do.
2013-07-30 09:03:45 -07:00
Michael Marineau
9d25f8c06c fix(dev-db/etcd): Handle missing ec2 user-data correctly.
Important notice to all using curl: by default a 404 is not an error!

I noticed that instances created without any user data were attempting
to connect to a *lot* of random IP addresses and failing. After
attempting the curl command c10n uses to fetch user data it would seem
we have lots of virtual machines using the following as a secret key:

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
             "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
     <head>
      <title>404 - Not Found</title>
     </head>
     <body>
      <h1>404 - Not Found</h1>
     </body>
    </html>

ᕙ(⇀‸↼‶)ᕗ

The --fail option is required for curl to behave responsibly.
2013-07-30 11:44:46 -04:00
Brandon Philips
5bd666247c feat(dev-db/etcd): run as etcd user
thie patch does a few things

1) Add the etcd user and run etcd as that user

2) Add the /var/lib/etcd directory and have it owned by the etcd user

3) Move /media/state/etcd/* files into /var/lib/etcd/ and chown them to
   etcd

Test-plan: Build an AMI and ensure this all works with the
bootstrapping.
2013-07-29 23:09:14 -07:00
Brandon Philips
ea25c209af chore(coreos): remove app-crypt/trousers
It will be awhile before CoreOS runs on something with a working TPM.
Remove this.
2013-07-29 21:39:53 -07:00
Brandon Philips
62db854432 Merge pull request #139 from philips/cleanup-unix-users
chore(coreos-base/coreos-base): remove unused groups/users
2013-07-29 21:36:58 -07:00