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
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
This ensures that the requirements.txt used for building images
is kept in sync with global requirements.txt.
Change-Id: Id474a8de4798ed4fbc56e7133073d8a674ec4f84
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
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
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
This script adds support to build iso image from the given
kernel and ramdisk
Change-Id: I15dd8b8663af15b4194299986792ad8e6487508b
Implements: blueprint ilo-virtualmedia-ipa
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
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>
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
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
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
When building, `make` ends up calling `docker`, which needs to be
done via sudo. This runs make with sudo.
Change-Id: I49558dff3a00e1795d3fe0489a2ff183f00e6183
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
Because IPA now detects what IP to advertise, specifying this in the PXE
config should no longer be a recommended default.
Change-Id: I3a854fd07cd7987425288b61fd6eeac925db0bff
This:
- includes a link to new gate-built images
- updates the kernel command line options (none needed in newer
images)
Change-Id: I79e9a0ab7de1dc61dd035bebf81c87136e4c3202
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
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
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
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)
- Correct directory to match the relative path correctly
- Include additional requirements.txt for coreos image injector
Change-Id: Ie68f86220f2db786e3e97e72fed288b92704d028
The regex used is environment-specific, let's just not pass this
argument for now (it's optional).
Change-Id: Ia5194ecbb7ec5425ee902338631559f8415308f2