Commit Graph

38 Commits

Author SHA1 Message Date
Julia Kreger 11350ed5ac Fix readme for deprecation
Change-Id: I7158d53060ab83fca1bb0faebab39c2df3efe1e9
2020-02-11 08:39:48 -08:00
Julia Kreger 66073f0865 Mark coreos-image-builder repo contents decomissioned
This repository never went anywhere and it is time to remove
it. Removed contents and pointed anyone who stumbles upon the
README file to go look at a more up to date tool.

Change-Id: I90a3d22e8ece6b769d071f6400e767a25c7c6b96
2020-02-11 07:59:05 -08:00
OpenDev Sysadmins 4062deba64 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:04 +00:00
Jenkins f4dd2e933e Merge "Fix typos in coreos-image-builder" 2015-05-25 16:01:48 +00:00
Mitsuhiro SHIGEMATSU 6b967afcf8 Fix typos in coreos-image-builder
Change-Id: Ic7f7ebf3290051836243467109a1ba7adc982f44
2015-05-15 03:57:24 +09:00
Mitsuhiro SHIGEMATSU 72d81bd46c Add .gitreview file
Change-Id: I2af27ca064690e1ec87da4c4a64c2a7f8e25c975
2015-05-15 03:44:41 +09:00
Jay Faulkner e92e41b937 Prevent CoreOS from using configdrive in ramdisk
Without this change, coreos-cloudinit will read and try to perform init
actions while we're provisioning. Under no circumstances (especially in
things like cleaning), do we want any contents of the disk to modify
ramdisk behavior.

Masking these units removes them at boot before it has an opportunity
to run.

Change-Id: Icd93954f0e4a76a7285d2914b9626b03fd457b9d
2015-02-06 11:24:08 -08:00
Jim Rollenhagen e8fab2b997 Use requirements.txt from the root for image build
This ensures that the requirements.txt used for building images
is kept in sync with global requirements.txt.

Change-Id: Id474a8de4798ed4fbc56e7133073d8a674ec4f84
2014-11-18 14:53:59 -08:00
Vladyslav Drok a912ef16f3 Cleanup coreos-oem-inject.py
The current script used to inject the IPA container into CoreOS is
not pep8 compliant, has requirements that are not in
global-requirements, and never has tests run. Now requirement on
plumbum is removed, script is pep8 compliant, flake8 runs against the
script when tests are run.

Closes-bug: #1337551

Change-Id: I14d3e46e60c4e072f34f80dc50d7214079953f49
2014-11-18 14:52:32 -08:00
Jim Rollenhagen f36e3200dd Fix requests version for build scripts
Global requirements specifies a different version of requests
than we do in these build scripts. Fix this temporarily; in the
future the build scripts should use the requirements.txt file
at the root.

Change-Id: I3f03f8a5a34a2a23ff4f76de7a73289cf4d769ff
2014-11-18 14:46:38 -08:00
Jenkins 5ddb118276 Merge "Add support to build iso image" 2014-09-19 17:05:24 +00:00
Ramakrishnan G 6ff2830247 Preserve environment variables when doing sudo
This commit adds the '-E' option for all the sudo commands
in build script of agent which causes it to preserve environment
variables.

Change-Id: Ic3fbc4ee8189cc82ef99359bf61eef33dae40a5a
Closes-Bug: 1371418
2014-09-19 10:45:57 +05:30
Ramakrishnan G 029e94e1c7 Add support to build iso image
This script adds support to build iso image from the given
kernel and ramdisk

Change-Id: I15dd8b8663af15b4194299986792ad8e6487508b
Implements: blueprint ilo-virtualmedia-ipa
2014-09-17 21:34:48 +05:30
Jay Faulkner 75248efb48 Add missing "/files" to IPA image URLs
Corrects a 404 error when visiting these URLs.

Change-Id: I701186c0845f86ac0326efa148c3846ad0440786
2014-09-08 17:24:22 -07:00
Jay Faulkner 81a73a468b Fix minor documentation issues
I updated the URL to point to the correct path to the uploaded IPA
ramdisk, as well as adding a note about running IPA inside Virtual
Media.

Change-Id: Ib4f3da5ea9fd0172e9d4ff018fd5a2890ddb978b
2014-09-08 11:23:40 -07:00
Jay Faulkner 632fa39738 Fix incorrect documentation
Two changes, first is that we now upload individual files instead of a
tarball of both. The other is a catch from Jim to properly use building.

Change-Id: Icfaccb190d066feee5f30aed83c1b830fbe9cd89
Co-Authored-By: Jim Rollenhagen <jim@jimrollenhagen.com>
2014-09-08 09:35:22 -07:00
Jim Rollenhagen 8c6ed7d0eb Clean up image build script
This change allows the image build script to support the existing
jobs that build images for distribution, as well as future jobs that
build the image within devstack for testing.

Change-Id: I6cae0ce336fde872678fafe6ba2b31af465944a1
2014-08-26 13:08:04 -07:00
Jim Rollenhagen abccecce5b Bump CoreOS to latest stable
Two reasons:

1) Use a build that is marked stable
2) Fixes an issue where boot hangs for minutes on updating CA
   things, which enables much faster deploy times.

Change-Id: Ic7fca96f0dfe87065e2df5feaf2c29efc662a0e1
2014-07-29 23:04:16 +00:00
Jay Faulkner 62027ae0bb Migrate CoreOS to use coreos-cloudinit
http://coreos.com/docs/cluster-management/setup/cloudinit-cloud-config/
describes how to use coreos-cloudinit to configure a node. Migrate to
using this instead of a single BASH script (which is deprecated).

This also means we need the latest version of CoreOS, so I've updated
coreos-oem-inject.py to pull from the most recent copies, and this
includes moving to the amd64-usr builds.

Change-Id: I620b8fec1bfc5d58b560434d17b4f617734fadb8
2014-07-09 16:46:26 -07:00
Jay Faulkner 0eec6c3b22 Install requirements for coreos-oem-inject.py
This script needs plumbum and requests, which are not installed by
default on bare-trusty.

Change-Id: I6bf1ebe66afcbbf47c5d9fe96d1a2b1b889882de
2014-07-03 13:16:43 -07:00
Jim Rollenhagen 3edd258910 Run make with sudo when building
When building, `make` ends up calling `docker`, which needs to be
done via sudo. This runs make with sudo.

Change-Id: I49558dff3a00e1795d3fe0489a2ff183f00e6183
2014-07-02 15:10:17 -07:00
Jim Rollenhagen cecc0fecd4 Add current directory logging to build script
Helps debug post job.

Change-Id: Ia30a8b5511dc087ddd1ecdbfe8eb3ca1e63a0ad5
2014-07-02 11:04:00 -07:00
Jay Faulkner ff78a85e23 Add infra build script to IPA
We now do builds of the IPA CoreOS ramdisk in the post script. (Ref:
openstack-infra/config/tree/modules/openstack_project/files/
jenkins_job_builder/config/ironic-python-agent-jobs.yaml)
We should store the build script for this in the local repo so we can
modify it as needed without needing commits to openstack-infra/config.

Change-Id: I92655c0552179613c23b129d1e2dce2ef1643391
2014-06-25 17:22:13 -07:00
Mike Heald 2690a09455 Converted documentation in md format to rst
Change-Id: I88c642a24fb032b6e0920c8ba378127f8e12116c
Closes-Bug: 1332741
2014-06-25 09:04:49 +01:00
Jay Faulkner 5ee5b3e75b No longer recommend use of ipa-advertise-url
Because IPA now detects what IP to advertise, specifying this in the PXE
config should no longer be a recommended default.

Change-Id: I3a854fd07cd7987425288b61fd6eeac925db0bff
2014-06-24 15:39:55 -07:00
Jay Faulkner d132a50afc Improve readme for CoreOS imagebuild
This:
  - includes a link to new gate-built images
  - updates the kernel command line options (none needed in newer
    images)

Change-Id: I79e9a0ab7de1dc61dd035bebf81c87136e4c3202
2014-06-20 15:53:51 -07:00
Jay Faulkner 432c65dcbe Use systemd-nspawn instead of docker for image
Using systemd-nspawn gives us more flexibility in what hardware the
agent can see. With this setup, the network is not virtualized, and the
/dev inside the container looks nearly identical to the one in the host.

Also added RestartSec=30s to the unit file because without this, systemd
will respawn the agent every 100ms if it dies (say, because DHCP hasn't
completed yet). Since it retries a max of 5 times per 60s, unless the restart value is
set higher it will be marked 'failed' forever and not retry. Adding this prevents that.

Change-Id: Ic64ab4b0824595683e5428464512594dd90eed83
2014-04-25 14:28:49 -07:00
Jenkins 8012500e87 Merge "Uniquely identify builds to prevent race" 2014-04-24 19:29:15 +00:00
Jay Faulkner e637152eef Uniquely identify builds to prevent race
In the original implementation of this, the latest running container
containing "PICKME" was selected for the container to export. This
creates a race condition.

Instead we now identify the image by a UUID created each run, so that
they will not overlap if multiple builds happen simultaneously.

Change-Id: Iaaf5683435f424517774067a1d95732ad096c988
2014-04-17 11:15:29 -07:00
Jay Faulkner d51a6ac06c Better documentation and defaults for coreos image
The existing coreos image required 20G+ of RAM, which isn't reasonable.
Also there was no documentation about how to get the image running, so a
sample configuration with iPXE was added. These changes are required to
help folks who want to use the agent now.

Change-Id: I845bebf17c62653521282863d596ac512dd6b82e
2014-04-17 10:06:11 -07:00
Jay Faulkner 5516cd5baf Use docker import/export to make image smaller
Using docker export gives us only the top filesystem layer and not all
the layers used to build. Resulting image is about 20% smaller. Further
optimizations will be made in future commits via removing build time
deps and temporary files in the Dockerfile.

Change-Id: I0f7ad6d00c6f47836dcd71b05907076701bb2789
(cherry picked from commit 99dba22eaa3961234abde1294e55026fd2cc9d4d)
2014-04-17 10:05:56 -07:00
Jay Faulkner 8edf98a199 Minor fixes to image build
- Correct directory to match the relative path correctly
- Include additional requirements.txt for coreos image injector

Change-Id: Ie68f86220f2db786e3e97e72fed288b92704d028
2014-04-14 13:33:04 -07:00
Jim Rollenhagen e4f2a04660 Remove advertise-host from service file
The regex used is environment-specific, let's just not pass this
argument for now (it's optional).

Change-Id: Ia5194ecbb7ec5425ee902338631559f8415308f2
2014-03-28 09:52:41 -07:00
Josh Gachnang 6199c7eb2e Doing replacement on imagebuild 2014-03-19 16:35:55 -07:00
Jim Rollenhagen 879e85b506 add horrible method of getting the host IP 2014-03-14 16:10:47 -07:00
Jay Faulkner 0d0429b359 fix(coreos-oem-inject): Default to dev-channel
- We'll switch this to a 'stable' channel once one exists for coreos
2014-03-10 13:52:57 -07:00
Jay Faulkner 3b68e8d423 remove api-url from unit file
- Patch incoming to the agent for it to discover API url (and other
  params) via kernel command line
2014-03-10 13:45:50 -07:00
Jay Faulkner c5d2b5282f img(coreos): Initial commit of CoreOS image build
- Mostly imported from github.com/racker/teeth-agent-image
2014-03-04 15:16:35 -08:00