Commit Graph

293 Commits

Author SHA1 Message Date
e39185c99c Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: Ieca743ff2d3ccea27b686abeeedf69b03663c491
2021-05-10 13:11:29 +02:00
XinxinShen
9032aad2d3 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I5a121329188ebcdb002ba229156cf529da2bd17e
2021-05-08 09:14:26 +08:00
Xinliang Liu
6c74417da1 Fix build error on aarch64
Fix "error: invalid command 'bdist_wheel'" when building on aarch64.

For aarch64 platform, it seems it always tries to build wheels first for
python packages which have no wheels in PyPi. Although it will install
the source packages successfully at last.

Task: #41701
Story: #2008562
Change-Id: Id3dc4eaad9b698241ad70a69f93b8463bc15de0d
2021-05-07 01:24:02 +00:00
Zuul
1355d790ef Merge "Stop testing the iscsi deploy interface" 2021-05-03 13:24:02 +00:00
Zuul
05ff6a3353 Merge "Create tcedir with correct permissions" 2021-04-30 22:34:51 +00:00
Dmitry Tantsur
9fd4f29e9b Stop testing the iscsi deploy interface
Use a new alias for the direct deploy job.

Change-Id: I8370659702b889077a08f581d002cdc54165ca53
2021-04-30 17:13:59 +02:00
Riccardo Pittau
69107b7d04 Fix python2 compatible ipa creations
Old default versions of setuptools may have issues parsinq requirements.
To keep compatibility with Python 2.x we need to upgrade setuptools in
virtualenvs still using that version.

Change-Id: I61b77ceb6c58b5db451ccbbdfec9d92b4fa5bc89
2021-04-30 12:15:45 +02:00
Riccardo Pittau
43486c21c0 Create tcedir with correct permissions
Condense dir creation and change permissions in a single command.

Change-Id: I2021f6b4ee4992aa72b0d686bab57408c27fd10b
2021-04-12 16:21:33 +02:00
Zuul
93292bfd57 Merge "Fix: IPA image building with OpenSuse." 2021-04-08 11:28:18 +00:00
Zuul
04eb76f307 Merge "Copy resolv.conf handling from diskimage-builder" 2021-03-30 14:29:10 +00:00
smoshiur1237
853e3f73b2 Fix: IPA image building with OpenSuse.
At this moment the IPA image building with OpenSuse is broken and missing compatible packages for installation. Also, setuptools upgrade, svc mapping and package mapping are necessary for openSuse specific task. This PR will solve those issues to build IPA image with OpenSuse base image. There is another PR opened in diskimage-builder, which is adds small change for opensuse specific settings.
Depends-On: https://review.opendev.org/c/openstack/diskimage-builder/+/778723

Change-Id: I0a99d6313a38260973c1f725e2daed8d930da6c1
2021-03-26 09:23:20 +00:00
Julia Kreger
b6fefd65d3 Fix tinyipa virtual media indicator flag
The tinyipa embedded isolinux configuration
lacks the indicator flag to state that the machine
is booting from virtual media.

Change-Id: I48d054d1153be77675f88077fae6f185c934857c
Story: 2008749
Task: 42127
2021-03-25 13:54:00 -07:00
Zuul
7f4553bd37 Merge "Add a job to test tinyipa in ussuri" 2021-03-22 17:22:16 +00:00
Dmitry Tantsur
661158b42d Copy resolv.conf handling from diskimage-builder
The copy in finalise_base runs too late for us, leaving a stale
resolv.conf around (usually copied from the build environment).

Change-Id: I4b89119b8e2eded72973fa12879b1419542ba984
2021-03-19 15:44:49 +01:00
Zuul
0523f992bc Merge "dhcp.sh predictible ifnames" 2021-03-18 16:15:38 +00:00
Riccardo Pittau
2e420cdd30 Add a job to test tinyipa in ussuri
We create a test job for the original check so that we can leave that
untouched.
This is to avoid override-checkout conflicts when the job runs on ipa in
ussuri.

Change-Id: I1d710b252b177c0364e6fa8a1407695feeb46927
2021-03-17 14:52:21 +01:00
Zuul
1fe1d73d60 Merge "Revert "Use ussuri branch for tinyipa check job for ussuri"" 2021-03-17 13:09:10 +00:00
Zuul
18269beefd Merge "Centralize variables" 2021-03-17 13:09:06 +00:00
Riccardo Pittau
abb8e625a3 Revert "Use ussuri branch for tinyipa check job for ussuri"
This reverts commit 166840a3fd.

Reason for revert: ipa-builder needs to be pinned at 2.2.0 but the override-checkout to ussuri blocks that

Change-Id: If74df25d4b568f3a9bc0731490ef136b15c5a7ef
2021-03-17 08:47:10 +00:00
Zuul
8ca25903e5 Merge "Use ussuri branch for tinyipa check job for ussuri" 2021-03-17 00:53:21 +00:00
Zuul
2b27085985 Merge "Add tinyipa ussuri jobs" 2021-03-16 17:34:10 +00:00
Riccardo Pittau
166840a3fd Use ussuri branch for tinyipa check job for ussuri
Change-Id: I909fac883851fa28659ca0a29081d9cf8dbc8a71
2021-03-16 17:38:11 +01:00
Fedor Tarasenko
9f88a024c7 dhcp.sh predictible ifnames
Adds predictible and biosdevnames to dhcp.sh script filter
Useful for tinyipa image builds

Change-Id: I312dabd95de3823051af04fbc5f4c55c544f8b49
Story: #2008701
Task: #42021
2021-03-16 15:46:26 +00:00
Riccardo Pittau
933597744a Add tinyipa ussuri jobs
Add definitions for tinyipa ussuri jobs, we need them to point to
ipa-builder with tinycore 10.x as ussuri CI platform is still based on
ubuntu bionic and the kernel would be too old to use tinycore >= 11.x

Add a non-voting job to keep an eye on it

Change-Id: I0cadc636f7ae29dd289e4455c11c1549a02475df
2021-03-16 15:08:01 +01:00
Riccardo Pittau
0fab7f5298 Use git hash instead of release to build ipmitool
ipmitool has not had a stable release since a while.
To keep it up to date we clone its repo, pin it to a git commit hash and
compile it from there.
This will also help to avoid patching the code before the compilation as
the changes will be included already in the cloned code.

Change-Id: Ic3c1c0ceace1559d04288b12ab52e343abe56392
2021-03-16 09:27:49 +01:00
Riccardo Pittau
98b52e5b95 Centralize variables
Move some common variables to common.sh

Change-Id: Iba3a79bc0990d1339392ee81bf599547235b9429
2021-03-16 09:17:18 +01:00
Zuul
55c3644ad1 Merge "Avoid empty dependencies in tox.ini" 2021-03-15 20:25:44 +00:00
Zuul
ec49373fa9 Merge "Use tinycore 12 to build tinyipa" 2021-03-15 20:25:41 +00:00
Dmitry Tantsur
d7c121ab92 Avoid empty dependencies in tox.ini
Specifying only constraints does not work, there must be some real deps.
Add documentation deps since the documented way to use reno is via
`tox -evenv -- reno`.

Change-Id: I68182adbac4eaadc2fbb2c70b27683c5589103bf
2021-03-09 12:29:50 +01:00
Riccardo Pittau
0a0e9014c6 Do not build iso for ussuri ipa
Since ipa-builder is branchless its code is used directly from master to
test ipa in stable releases.
The iso has been fixed only recently, and since we need to use
ipa-builder version 2.2.0 in stable/ussuri to test, build and publish
the ipa ramdisk, we can't also build an iso in CI or the build job will
break.
As a result we do not buildi an iso for ussuri ironic-python-agent.

Change-Id: I4801e87f5b3c37f113bfc9578c8e2aaa4d4f32f0
2021-03-05 09:23:19 +01:00
Riccardo Pittau
011131ab05 Use tinycore 12 to build tinyipa
Tinycore 12.x is out, let's use it to build tinyipa.

- Adapt packages installation lists.
- Use 5.10.3 instead of 5.4.3 in fakeuname to sync with the new kernel.
- Patch ipmitool to fix issue when compiling with gcc version 10.x or
higher.

Depends-On: https://review.opendev.org/c/openstack/ironic/+/777342
Depends-On: https://review.opendev.org/c/openstack/ironic-python-agent/+/778658

Change-Id: I5a213d8409b1288af282dc3110e6e77c89317f31
2021-03-04 13:52:27 +01:00
Riccardo Pittau
863735c202 Relax requirement of diskimage-builder
Version 3.4.0 breaks bifrost on stable/victoria as the upper constraints
is set to 3.2.1, this version should be enough to work fine with centos
stream even if it doesn't officially supports it.

Change-Id: I6a278b11ed6d14661be87cfeee4bec03c42f0f9d
2021-03-03 14:16:13 +01:00
Riccardo Pittau
2f4f0320a4 Make sure we can create tinyipa isos
Verify we're able to build a tinyipa iso.

- use bash in build-iso script
- account for filenames with branch names in them
- Fix isolinux.bin path
The correct location is now under bios/core
[...]/syslinux-6.03$ find . -name "isolinux.bin"
./bios/core/isolinux.bin

Change-Id: Idce5d81ce83df121e521b7d26fd6523a378a0585
2021-02-22 15:58:34 +01:00
Lon Hohberger
0401dcf5ca Drop ppc64le installs of biosdevname, efibootmgr, efivar
UEFI 2.8 only supports Intel, ARM and RISC-V

    https://review.opendev.org/c/openstack/tripleo-common/+/773010/

... to break ppc64le IPA image builds.

Signed-off-by: Lon Hohberger <lhh@redhat.com>
Change-Id: Ia74d6aa659f5d705eeea931a4332f08b8bdcb2a3
2021-02-18 10:20:12 -05:00
Julia Kreger
f2cb793945 Fix Makefile from accidential change
Accidently removed the dependency installation when
putting in another fix as it was not needed on my
local machine, and was failing, even though later steps
were fine.

Change-Id: I34ed98c4add1f65fc4ce352c191e1cdff3d23d58
2021-02-17 09:23:15 -08: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
Dmitry Tantsur
7e2ba37e4a Upgrade pip to at least 19.1.1
Change-Id: Ifcf9e165e750fd07b11e7bbc18cf9f912b211e23
2021-02-08 17:57:14 +01:00
Zuul
e3d53ba35d Merge "Update version of tgt to 1.0.80" 2021-02-08 02:38:39 +00:00
Zuul
6ae0957eb3 Merge "Add nvme-cli package to IPA image" 2021-02-04 10:20:01 +00:00
Zuul
74f6b6ca71 Merge "Update requirements for diskimage-builder" 2021-02-03 04:26:30 +00:00
Jacob Anders
1a5a89610c Add nvme-cli package to IPA image
This change adds nvme-cli utility to the IPA image, which is required to
enable IPA to perform NVMe specific cleaning on supported devices.

Story: 2008290
Task: 41168
Change-Id: I2f63db9b739e53699bd5f164b79640927bf757d7
2021-02-03 09:43:53 +10:00
Riccardo Pittau
1bb81e130d Update version of tgt to 1.0.80
Change-Id: Ic24cd265db05acd23675a453632d4488fa83507c
2021-02-02 09:30:28 +01:00
Riccardo Pittau
55972ab6fb Reconfigure tox.ini
Update minversion of tox to 3.9.0 to support inline comments [1]

Remove test-requirements and move pep8 requirements to tox.ini

[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-9-0-2019-04-17

Change-Id: I5875b1ab383fef4bc49432e678e38941a7f5763e
2021-01-23 18:52:04 +01:00
Dmitry Tantsur
5537564121 Removes unnecessary requirement of sdparm
Change-Id: I1fafbf31b8fb2fc411b722cec11b94b4b765c995
2021-01-22 12:40:39 +01:00
Riccardo Pittau
5b24b07faf Update requirements for diskimage-builder
Support for Centos8 Stream was added in diskimage-builder version
3.4.0 [1]

[1] cbeca0babd

Change-Id: I439edec502657567ce12624efa942927be721c8e
2021-01-21 15:29:36 +01:00
Zuul
00b8cbbf04 Merge "Add doc/requirements" 2021-01-06 16:50:37 +00: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