Commit Graph

43 Commits

Author SHA1 Message Date
Sharpz7 a48825d260 [codespell] Fixing Spelling Mistakes
This is the first in a series of commits to add support for codespell. This is continuning the process completed in ironic-python-agent.

Future Commits will add a Tox Target, CI support and potentially a git-blame-ignore-revs file if their are lots of spelling mistakes that could clutter git blame.

Change-Id: I6ce80cc993cdd4c8d38266f3ff3f8f134f0fc5a9
2024-01-26 04:11:31 +00:00
Dmitry Tantsur 2a1c289cc5
Switch IPA building to Debian Bookworm
Bullseye has a broken lshw [1] so it will not work.
Fixes an issue with the firmware repo renaming in Bookworm.

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002025

Closes-Bug: #2043112
Change-Id: Ib0cb156b72e6fa90e1530796e81a9a41ffa9e54f
2023-12-08 15:43:55 +01:00
Dmitry Tantsur 9da0cf41d4
Fix building images for Bullseye and Bookworm
Bullseye requires installing lshw from backports because the default one
has broken JSON output:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002025

Bookworm requires installing firmware from a different repository.

Change-Id: I1bfecfcaff1547f99fcb48cc54b8f7ff77f0b0d9
2023-12-08 15:38:23 +01:00
niuke ddbd6594d5 remove unicode prefix from code
Change-Id: Ie5d6e0f2c5435dc66bd81e58e27a706e1e1c75ac
2022-08-27 16:14:06 +08:00
Zuul a63bb7081c Merge "Document building an image with patches" 2022-07-18 17:26:01 +00:00
Dmitry Tantsur 3272b5478b Document building an image with patches
Change-Id: Ice5ffaa0b8eea9afacc58c64dcfdaa58d3147a26
2022-06-20 14:08:49 +02:00
Dmitry Tantsur cd3408613a Remove support for openSUSE since Python 3.6 is no longer supported
The conditions are left in the code in case someone somehow make it
work. We can clean them up later.

Change-Id: I65f6da0e90560c00eb82e8e4366fdaf3bbde8da1
2022-05-18 09:48:49 +02:00
Dmitry Tantsur d543aa8bf4 Remove support for distributions with Python 3.6
IPA can no longer be installed on them, other projects will follow.
Leave the jobs in place for projects that consume them.
Publish Stream 9 images (we'll need to clean up tarballs.o.o later).

Also force using Python 3.9 for tinyipa.

Change-Id: I350c563c1c4ab60ac10d7c9e4bb0715bfde1b1db
2022-05-13 12:25:25 +02:00
Riccardo Pittau 462dced261 Update documentation on supported CentOS version
We don't support CentOS 8 anymore, only CentOS Stream 8

Change-Id: Ie63a6865f7609385f5710cc9fcc8bfda1fa46976
2022-02-03 09:58:17 +01:00
Riccardo Pittau 8315c5d91f Use debian current stable for dib
The current stable release for debian is bullseye, this patch switches
dib-based images to that version.

Change-Id: Id607d7697c0aa8464b533047a4e5938648a0e25b
2022-02-01 15:31:26 +01:00
Bernd Mueller 4d474c7471 more details where to find the iso-image-create script
Signed-off-by: Bernd Mueller <mueller@b1-systems.de>
Change-Id: I4eb6e273c6c19dc9fdde6b0b13d46adc8557e2b6
2021-11-10 14:48:36 +01:00
Julia Kreger 47ca82775c Support non-genisoimage binaries
Updates tinyipa build script so it can use one of the multiple
different ISO filesystem generation tools in the ecosystem.

Also updates the dib docs which states IPA requires genisoimage,
which is... not... true.

Change-Id: I505aed2ec98674a0495174219609694042d59070
2021-09-15 16:21:14 -07:00
Dmitry Tantsur c3186b9bf6 Use Ubuntu Focal instead of the default Bionic
Change-Id: If64f92f311e314f8c17a74c62e4f5d8c70fe58f9
2021-09-10 12:45:21 +02:00
Dmitry Tantsur f21e6dddfc Stop explicitly supported Fedora
It's a moving target that keeps breaking. Right now it's broken because
removing openssl-devel causes removal of dkms, which DIB insists on
installing.

Document the supported distributions based on what the CI runs
(yes, it's Ubuntu Bionic and openSUSE 15.1, there is no mistake).

Change-Id: I08263751ca158db5883d95407ad0f3c9807826eb
2021-09-10 12:15:05 +02:00
Bernd Mueller ee4f3a8ec1 typo in docu, admin, ironic-python-agent-ramdisk, outputs three files -> two
Signed-off-by: Bernd Mueller <mueller@b1-systems.de>
Change-Id: I008d119a6b4487507e4ab6508a22f456962592fb
2021-07-15 09:57:44 +02:00
Zuul 7845b97faa Merge "Support installing ironic-lib from source" 2021-02-17 12:05:29 +00:00
Julia Kreger c66244ff55 Remove PYOPTIMIZE_TINYIPA capability
Oslo.Privsep requries pycparser, which does not support being loaded
into python programs where the source is not available for doc string
references. This is because one of the things that happens with
an optomized python, is the files are "pre-compiled" and doc strings
are removed.

This is unfortunate, but just means the TinyIPA images are slightly
larger, Testing shows this is approximately 5 MB.

Change-Id: I3bdda3a8e595db8e84cd15bf083978c39514b1fa
2021-02-16 19:31:38 +00:00
Dmitry Tantsur fef13dbc76 Support installing ironic-lib from source
Change-Id: I82b275222f0caeb69a605b8b56dc73f38242ff7a
2021-02-11 17:19:20 +01:00
Pierre Riteau 23fe9741d2 Fix list formatting
Change-Id: I6ef5133f064a40398fd9cbeb91126c40dd774208
2021-02-11 12:14:55 +01:00
Iury Gregory Melo Ferreira dc090b273a Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver for the release team.
Removed specific doc requirements from test-requirements.txt

Change-Id: Ibeb6253046787a7a0768879067facaaeb0137cdb
2021-01-06 15:46:09 +01:00
Julia Kreger 6c9c505ca9 Add additional firmware images to be excluded
Removed additional firmware, largely Wi-Fi and embedded
SoC firmware, from the ramdisk as these devices are unlikely
to be needed in the process of the use of a deployment ramdisk.

Change-Id: Ia63c4d5d6c00c7fa64e7c2d570645b8a16aaf0c3
2020-12-17 14:22:53 +00:00
Dmitry Tantsur 2c7f7a55e6 Remove netronome and amdgpu firmware by default
Allow customizing which firmware to remove this way.

Change-Id: I714c0771c565814714881b979daaa4c83a15db1d
2020-11-27 12:03:24 +01:00
Dmitry Tantsur 5eebab3fc1 Force SELinux to be in permissive mode
The Fedora based ramdisk is outright broken with SELinux enforcing.
TripleO actually ships its ramdisks with selinux-permissive, let's
do the same.

Change-Id: Icfec4b8109a0ddefeb0f200c3fd1f1e2de104839
2020-11-02 10:49:24 +01:00
Oluwatosin Farai e8dda18132 Add documentation about the available Elements
Change-Id: I23d1e6dbfa90332f300d2b4656904884999111e3
Story: 2008194
Task: 41110
2020-10-19 23:03:52 +01:00
Dmitry Tantsur 4a415504f3 Add dynamic-login to our published images by default
It's very useful for debugging and does not expose access by default.

Change-Id: I3d34d65b5536a0a06184da44e12b8534c29300e5
2020-07-23 22:35:23 +02:00
Andreas Jaeger 16a734a0ea Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Idbe930500bc7988d7e1d78cff3f39beae775db89
2020-05-21 13:47:58 +00:00
Kaifeng Wang b7000b9623 [Trivial] Doc update on the stable-interface-names
Consistent interface naming is helpful in collecting introspection
data and final instance system.

Change-Id: I8d434f7f8412734a540b797255abb6391325f434
2020-04-20 08:51:39 +08:00
Andreas Jaeger 9fddc46bdc Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update requirements, no need for python_version anymore
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine
- Update hacking to version 3

Change-Id: I7e9e3993aeb05fb623be531160e418572fa9de54
2020-04-16 18:52:41 +02:00
waleed mousa 075cf46faf Add DIB_REPOREF_requirements when building images using a specific branch
When using a specific branch of ironic-python-agent for building
ironic images, we need to specefiy also the openstack/requirements
branch:

Change-Id: I259b5644150fe78018e2e0a6a4d719b973ab462f
2020-03-29 18:35:45 +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
Madhuri Kumari a6c0f2ce63 Fix the binary name in document
Change-Id: Ic64b2129767ae0ef114fddcecbbf574aa1203bf0
2019-12-12 11:35:46 +05:30
Kaifeng Wang 0916598653 Add words on building image for other architecture
Change-Id: I2ca2a574ba84f44dfbfa197d80c14ac0e4c59de2
2019-12-05 10:20:10 +08:00
Zuul 7d975fe286 Merge "DIB: allow disabling rescue mode" 2019-10-16 13:08:19 +00:00
Dmitry Tantsur cecbc860dd DIB: allow disabling rescue mode
Change-Id: Ife73d59b8e5c4454634d0e6c4f23daaf7cc9fb66
2019-10-09 09:32:04 +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
Dmitry Tantsur 6a07f96f2f Recover iso-image-create script
This script was removed from IPA with CoreOS support, but it seems
to be quite generic. Recover and document it.

Change-Id: I014ada4509e60541bf12ef2bce9915afd8858d54
2019-09-27 09:21:53 +00:00
Dmitry Tantsur 1eee1c17a4 Correct usage of BUILD_AND_INSTALL_TINYIPA
This variable must be executable, so using True won't work. Since
true is the default in finalise-tinyipa, remove the explicit setting
from the role.

Also remove this variable from build-tinyipa since it's not used there
and update the documentation accordingly.

Change-Id: Ibe744121b863ef1265e5e3ead7ab13fef0855fc6
2019-09-25 15:53:20 +02:00
Zuul 70ea14fec5 Merge "Add documentation on building images" 2019-09-24 12:07:41 +00:00
Dmitry Tantsur d9bc2b6ccc Add documentation on building images
Mostly copy-pasted with small fixes from ironic-python-agent.

Change-Id: I8333a36f343991a888c6e9276ecae03aaf1941ae
2019-09-18 16:00:24 +02:00
Zuul 7e1581bc06 Merge "Build pdf doc" 2019-09-09 14:42:50 +00:00
Kaifeng Wang cea462b0e4 Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Ic036194e33224be9341dbde901c4ba4717ccbbc8
2019-09-05 14:31:51 +08:00
Dmitry Tantsur c56bffbefe Make ironic-python-agent-builder packaging-friendly
* Install dib files to /usr/share (tinyipa TBD later)
* Add an executable that can be installed into /usr/bin

Since we now have python code, make pep8 operational.

Change-Id: I9235885485833c4011e42da6db01e150821bd8da
2019-08-12 15:28:34 +02:00
Dmitry Tantsur 77c8f45838 Initial structure
Change-Id: If014272a204953da387855e2666f01d4e9229eaa
2017-11-03 14:34:47 +01:00