CentOS 7 uses Python 2. Although it's possible to install Python 3
on it, it not trivial with DIB. We should rather switch to
a distribution where Python 3 is the default version.
As a nice side effect, the CentOS 8 images seem smaller.
The CentOS 7 job definitions are kept around since they're used
on stable/train.
Change-Id: I6b23da21eab19c69f7b070adff76b35e1752bf8d
Seems we have no real way to grok if there was a rescue setup failure
because we don't log any information to the console about the node
once dhcp has occured.
As such, added an additional line of text to be logged and added
the ip addr command which should save a list of addresses by
interface to the console to assist in CI job troubleshooting.
Change-Id: Ib3f6e24d0687e9da8e551355fe04faf3f86ff582
This patch converts the versions of the custom dependencies builds
to variables.
Includes:
tgt
qemu
lshq
biosdevname
ipmitool
Change-Id: I516256624b6ec12329dc02b185701b287897954d
While running TinyIPA stable/stein images in KVM virtual machines with
Tenks, we noticed that IPA would start but not execute further, which
appeared to be caused by a lack of entropy.
This patch installs haveged, a simple entropy daemon [1], into the
tinyipa ramdisk and starts it on boot, which resolves the issue.
While this problem was reproduced reliably with stable/stein and not
seen with stable/train or stable/rocky images, we will start running
haveged in all versions, for consistency. It adds less than 20 KiB to
the ramdisk.
[1] http://www.issihosts.com/haveged/
Change-Id: I7d47b7828733cc03c1ed6c370c451465a6d492b6
Story: 2006911
Task: 37554
For tinyIPA, migrate the generate_upper_constraints script in-tree.
For DIB, use a source repository with requirements to fetch
upper-constraints. As a nice side effect, it allows depending on
requirements patches in the CI.
Change-Id: I6be51b98adab641cfaa1613306cbdcc3b42de1c2
The upper-constraints have been updated.
This reverts commit aafcdd263d9e2361bd2378941ed53357e6cf164f.
Change-Id: Iba1fa483e0e27b8ee30a21d5fb36868446ca25ae
The version of git installed in tinycore is now 2.18.0.
Thre's no need to clone and checkout anymore.
Leaving depth option that also implies single-branch.
Change-Id: I077b687241a5862f4753065d4de9bc062d886005
Allow the user to specify additional python packages via the
PYTHON_EXTRA_SOURCES_DIR_LIST env variable. The list of packages
needs to be a comma separated list of directories of local checkouts.
This allows additional optional packages, such as 'hardware', to be added
into a tinyipa build, even though they aren't specified in a
requirements.txt file elsewhere.
Also turn off python package optimisation if 'hardware' is included, due
to one of its dependencies.
Change-Id: I001aa9c116bfd78afd70a489a69c53c60f6a265b
* Move remove-extra-packages to post-install since finalise.d
is running on the final image and the DIB documentation
recommends avoiding unnecessary actions there.
* Remove a few packages that used to be removed only for Fedora;
do not try to remove those that aren't on the cloud image.
* Do all uninstallations in pre-install phase, so that it doesn't try
to remove dependencies of already installed packages.
* Exclude more locale files from the image.
* Exclude the content of /var/log.
Change-Id: Idb7819b1d783f4f5f390cc7621019d3be2fa576f
This reduces the size of the image slightly. We don't need latest
versions since we update pip in our venv anyway.
Change-Id: I7729b8c286c641a7b70a775ffe73f9f1c9dbff2d
It's a dependency of the ironic-python-agent-ramdisk element, so
it will be included anyway.
Depends-On: https://review.opendev.org/684304
Change-Id: Id47b8ff78506a15045cf31a5f619649a0b3147ed