20 Commits

Author SHA1 Message Date
Zuul
3abd1459bb Merge "DIB: replace targetcli with target-restore on RHEL/CentOS 8" 2020-01-21 17:51:21 +00:00
Dmitry Tantsur
07cdd87bed DIB: replace targetcli with target-restore on RHEL/CentOS 8
These systems use LIO via python-rtslib, and targetcli depends
on libX11 and other GUI packages. The target-restore package
(coming from python-rtslib) is enough to create the necessary
directories (e.g. /etc/target).

Change-Id: Ide0d23d3834c52edcbc569c05ce95ba78e1bf73d
2020-01-10 17:25:39 +01:00
Iury Gregory Melo Ferreira
15ec23f7e2 Add efivar
The efivar package is required when doing uefi boot.

Change-Id: Id736787bb3d6f971a9f0f26732af1c2d66151f0d
2020-01-07 15:46:33 +01: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
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
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
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
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
Riccardo Pittau
e97643d636 Use pip install-option to specify ipa install location
Change-Id: I7d054442fa2e1595a8d44fa797f078ecf42e31ce
2019-09-25 16:22:16 +02:00
Dmitry Tantsur
6c6fc65cd6 DIB: do not use /tmp for a virtualenv in the source build
We don't (and shouldn't) copy /tmp to the final image.

Also fix the service file permissions - it is not executable.

Change-Id: I75e09662a63768627f8123a7fe7f5d9ca2d942c5
2019-09-23 17:12:28 +02:00
Zuul
9992b1ff3b Merge "DIB: rename files and paths to match the element name" 2019-09-23 14:48:39 +00:00
Dmitry Tantsur
944c8525a3 DIB: rename files and paths to match the element name
Apparently, DIB is sensitive to file names, at least the package-install
feature. Let us make sure we use ironic-python-agent-ramdisk, not ironic-agent.

Change-Id: I929c0652c320734ff82dd257180c4b7bd156c478
2019-09-19 07:47:56 +00:00
Dmitry Tantsur
5e189fca97 DIB: remove deprecated extension and output image size for convenience
Change-Id: Ifbb242e4846a233c685ba3dba6d2ecdae101f4b2
2019-09-19 07:25:53 +00:00
Dmitry Tantsur
98d6d62c3a Import ansible version of the image building job
This patch starts "ansiblization" of the image building script, while
also cleaning it up. More importantly, it adds check and gate jobs
that verify the same playbooks as used in the post job.

Also correct source-repository for ironic-python-agent to use the
project name, not the old element name.

Change-Id: I9a404b24f95e47c84b22d4739fcf2b5b800886f9
2019-08-29 14:22:49 +02:00
Dmitry Tantsur
18d161bdc3 DIB: add missing ironic-python-agent-create-rescue-user.sh
And remove gitignore rules that prevented it from being added.

Change-Id: If2a52d98ffd94eacc7b2166a4fe553850ba084d0
2019-08-27 09:52:30 +02:00
Dmitry Tantsur
f2c9fff6f4 DIB: create the directory for rescue password
Change-Id: I3eebafdfa5f7337a4c9db2a5a1a92c9598a6d5d5
2019-08-26 14:09:33 +02:00
Nisha Brahmankar
b29326a499 Copies the "ironic-agent" element from DIB
Copies "ironic-agent" element from DIB and addition
of a new bash script to build the image using DIB.

Change-Id: If392f793ed1b5d902b541fe89299648fae16e427
Task: 30072
Story: 2005114
2019-08-01 23:23:37 +05:30