124 Commits

Author SHA1 Message Date
Dmitry Tantsur
60875730fd CI: add a non-voting partition-iscsi DIB job
Change-Id: I387a95c1d5fa51ee861cdbb1a1d24f447d1c031d
Depends-On: https://review.opendev.org/701950
2020-01-10 13:55:46 +01:00
Zuul
19dccd5d66 Merge "Convert versions for software builds to variables" 2020-01-10 04:03:36 +00:00
Zuul
5bdd94999e Merge "Upgrade syslinux version" 2020-01-03 03:34:28 +00:00
Zuul
27c91658d7 Merge "Use variables for syslinux in build-iso script" 2020-01-03 03:34:27 +00:00
Zuul
9388d664cb Merge "Replace CentOS 7 images with CentOS 8" 2020-01-02 14:04:14 +00:00
Dmitry Tantsur
3c78c29e94 Replace CentOS 7 images with CentOS 8
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
2019-12-26 12:37:59 +01:00
Julia Kreger
e28167a8f5 Be a bit more verbose around tinyipa for rescue
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
2019-12-17 06:24:10 -08:00
Madhuri Kumari
a6c0f2ce63 Fix the binary name in document
Change-Id: Ic64b2129767ae0ef114fddcecbbf574aa1203bf0
2019-12-12 11:35:46 +05:30
Zuul
73fbda5477 Merge "Add efibootmgr" 2019-12-11 11:57:50 +00:00
Zuul
f10a39c934 Merge "Update tinycore mirrors" 2019-12-10 09:31:32 +00:00
Zuul
61985939fa Merge "Revert "Update tinycore from 9.x to 10.x"" 2019-12-10 01:01:28 +00:00
Julia Kreger
d6aeb03b47 Revert "Update tinycore from 9.x to 10.x"
This reverts commit e8c8a9f76b81081cd366ac872a400fc8f934ef0c.

Change-Id: I9bb95f611460b0a1e657a79a1f4d02e0c1d4a291
2019-12-09 21:54:04 +00:00
Julia Kreger
55d0a24176 Update tinycore mirrors
Update mirrors since some were out of date.

Change-Id: I0086888839f59aa0d86ae7acb9f08aedafab2bd2
2019-12-09 13:19:43 -08:00
Iury Gregory Melo Ferreira
e564be1905 Add efibootmgr
We will be using efibootmgr on ipa so let's add
to the ipa-builder so the ramdisk will have it.

Change-Id: Ic3b3f65715719b31f7e94d14504be9705ab4ba0e
2019-12-09 16:08:31 +01:00
Riccardo Pittau
021fe13239 Upgrade syslinux version
Latest version of syslinux is 6.03

Change-Id: Ibf9da9e0fe1f4411f045c832613dee7979e8bb01
2019-12-09 15:30:12 +01:00
Riccardo Pittau
0064cae136 Convert versions for software builds to variables
This patch converts the versions of the custom dependencies builds
to variables.
Includes:
tgt
qemu
lshq
biosdevname
ipmitool

Change-Id: I516256624b6ec12329dc02b185701b287897954d
2019-12-06 13:22:26 +01:00
Riccardo Pittau
a44f84aeef Use variables for syslinux in build-iso script
Converting syslinux related version and download path to variables.

Change-Id: I54f0c027961f3ea46777cc0829ad80781e06c031
2019-12-06 10:46:00 +01:00
Kaifeng Wang
0916598653 Add words on building image for other architecture
Change-Id: I2ca2a574ba84f44dfbfa197d80c14ac0e4c59de2
2019-12-05 10:20:10 +08:00
Zuul
a34dfda613 Merge "Update tinycore from 9.x to 10.x" 2019-12-02 21:59:59 +00:00
Madhuri Kumari
55aaf172b1 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-python-agent-builder is ready with python 3 and ok to drop
the python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I4dc5fe4cbb2ec4e604e18f77da4b5723ab7f9c2b
2019-11-23 18:39:21 +05:30
Pierre Riteau
fc070c691e Fix IPA execution issues due to lack of entropy
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
2019-11-21 15:35:35 +01:00
Julia Kreger
e8c8a9f76b Update tinycore from 9.x to 10.x
Change-Id: I14a44700df8c7acc524bd4c410d60b56cc79f67e
Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
2019-11-19 12:53:44 +00:00
Dmitry Tantsur
86f9d22592 Generate checksums for DIB images
Change-Id: If8c0cdab5c443f7533873eef0d79673760bfa51b
2019-11-18 16:59:20 +01:00
Zuul
f9ec4c5d16 Merge "CLI: add --verbose and --extra-args" 1.1.0 2019-10-31 20:11:25 +00:00
Dmitry Tantsur
28d7cdd05a tinyIPA: raise udevadm settle timeout
We're hitting this timeout in the CI, so let's make it a bit bigger.

Change-Id: Iee915dffc19377ec285e242c5b7000770a69cf6d
2019-10-29 16:56:30 +01:00
Zuul
51f53ab943 Merge "DIB: add --branch argument to override IPA branch" 2019-10-29 10:58:55 +00:00
Zuul
74e00b7021 Merge "Clone and checkout is not needed anymore" 2019-10-26 09:25:44 +00:00
Zuul
44f46a3ccd Merge "Blacklist sphinx 2.1.0 (autodoc bug)" 2019-10-25 16:39:00 +00:00
Zuul
6fcc8dab8b Merge "Revert "Temporary raise diskimage-builder to the latest version"" 2019-10-24 09:05:12 +00:00
Dmitry Tantsur
07d27a573e CLI: add --verbose and --extra-args
The --extra-args argument allows passing arbitrary arguments to DIB.

Change-Id: I26be362263c08ea5cfe3bd265372ff5ab406d85c
2019-10-23 16:10:04 +02:00
Dmitry Tantsur
f6bf7b97d5 DIB: add --branch argument to override IPA branch
Change-Id: I6954342e4c2d3936cdea415838849c31c84b77ac
2019-10-18 12:49:57 +02:00
Dmitry Tantsur
19f046112d Update upper-constraints handling
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
2019-10-18 12:49:28 +02:00
Zuul
37f09a567b Merge "Allow extra python pakgs into tinyipa" 2019-10-18 07:45:43 +00:00
Dmitry Tantsur
3be5066aa9 Allow changing DIB_RELEASE and add a job with CentOS 8
Change-Id: Ia0e3897ba414827fb81ba7ca7367e86899ea455a
2019-10-16 15:10:02 +02:00
Zuul
c016bfbc48 Merge "Slim down the pre-built DIB IPA images" 2019-10-16 13:08:20 +00:00
Zuul
7d975fe286 Merge "DIB: allow disabling rescue mode" 2019-10-16 13:08:19 +00:00
Zuul
8e6e24b63e Merge "Increase the DIB DHCP timeout to 60" 2019-10-16 12:32:08 +00:00
Zuul
42ec4f9aea Merge "DIB: default to installing pip and virtualenv from packages" 2019-10-16 11:12:06 +00:00
Dmitry Tantsur
67f29b8cb6 Revert "Temporary raise diskimage-builder to the latest version"
The upper-constraints have been updated.

This reverts commit aafcdd263d9e2361bd2378941ed53357e6cf164f.

Change-Id: Iba1fa483e0e27b8ee30a21d5fb36868446ca25ae
2019-10-16 09:17:17 +00:00
Dmitry Tantsur
aafcdd263d Temporary raise diskimage-builder to the latest version
The one in upper-constraints is breaking us.

Change-Id: I827a72a40c14bf439168aff86d4a5a493dc491a7
2019-10-15 15:24:10 +02:00
Riccardo Pittau
5b315f8875 Clone and checkout is not needed anymore
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
2019-10-14 10:28:52 +02:00
Michael Davies
c51b43806a Allow extra python pakgs into tinyipa
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
2019-10-14 09:12:06 +10:30
Zuul
2380586d2f Merge "DIB: do not mention dhcp-all-interfaces explicitly" 2019-10-09 18:45:25 +00:00
Dmitry Tantsur
f45996c192 Slim down the pre-built DIB IPA images
* 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
2019-10-09 09:32:34 +00:00
Dmitry Tantsur
cecbc860dd DIB: allow disabling rescue mode
Change-Id: Ife73d59b8e5c4454634d0e6c4f23daaf7cc9fb66
2019-10-09 09:32:04 +00:00
pengyuesheng
cb9f2a0fef Blacklist sphinx 2.1.0 (autodoc bug)
See https://github.com/sphinx-doc/sphinx/issues/6440 for upstream details

Change-Id: Ie33a627ce346bb1aa174963dbf7f4a8f8308ad04
2019-10-09 16:23:43 +08:00
Dmitry Tantsur
eaaa1118ad DIB: default to installing pip and virtualenv from packages
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
2019-10-09 07:50:20 +00:00
Dmitry Tantsur
59e683cfd7 DIB: add non-voting image building jobs for various distros
This way we can track if image building still works on them.

Change-Id: Ib86ce189a892eafdb9646063d45b484b81e16ce0
2019-10-09 07:48:02 +00:00
Zuul
027992e26d Merge "Clean up the ansible playbooks" 2019-10-01 12:21:33 +00:00
Dmitry Tantsur
ee436f1478 DIB: do not mention dhcp-all-interfaces explicitly
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
2019-09-30 20:44:59 +02:00