1780 Commits

Author SHA1 Message Date
Julia Kreger
c5956bdada Suppress errors from iscsi session cleanup
In some cases, where the rts library is not installed, IPA
was recently changed to try and tear down the local side of
the iscsi connection by trying to tear down bond and target
being offered. The whole attempt with this is to ensure that
no disk locks are in place which can prevent partition table
updates.

Since we added this logic, in some cases these commands can
fail and cause the deployment process to fail when it would
have otherwise succeeded. As such, suppress the errors.

Change-Id: I0e04936ad337b394dd68e9b0396a9f1203218f9f
2019-11-01 06:57:58 -07:00
Iury Gregory Melo Ferreira
68fb8006e0 Switch jobs to py3
- removed `USE_PYTHON3` from ironic-ipa-base since ironic-base
already has this configuration

- Enabled python3 for ipa-tempest-wholedisk-bios-ipmi-direct-tinyipa-src
and ipa-tempest-partition-bios-ipmi-direct-tinyipa-src

- Renamed ipa-tempest-dsvm-partition-ipmi-iscsi-tinyipa-python3 to
ipa-tempest-dsvm-partition-ipmi-iscsi-tinyipa

Change-Id: Ib955e93c19182dd6f16e00c8e8e92523d7b2e22b
2019-10-30 14:37:17 +01:00
Zuul
358a46c4fe Merge "[Trivial]: Typo in comment for _get_partition" 2019-10-29 15:02:44 +00:00
Zuul
a158b862ea Merge "Set rd.md.uuid kernel parameter when deploying on software raid" 2019-10-28 11:43:04 +00:00
Zuul
945133ee8d Merge "Remove imagebuild/common, it's not longer used by IPA-builder" 2019-10-25 18:09:42 +00:00
Arne Wiebalck
cb96cec794 [Trivial]: Typo in comment for _get_partition
Change-Id: I29a3ea86dd710fc206d9c25cb12b08324538d224
2019-10-25 18:48:16 +02:00
Iury Gregory Melo Ferreira
16f3598da4 Switch to Ussuri job
Change-Id: I4fd830fbafa92a0835e5588747424abf1b75286c
2019-10-21 16:31:15 +02:00
Zuul
20abc992fb Merge "Correct string formatting in logging" 2019-10-18 09:51:54 +00:00
Dmitry Tantsur
d61887e744 Correct string formatting in logging
Change-Id: Ibc3656e32b94004da7e895a27860c1fa3ac0bbb1
2019-10-17 16:14:10 +02:00
Andrei Nistor
1975478097 Set rd.md.uuid kernel parameter when deploying on software raid
When deploying an image to a software raid array, it is currently
required that the deployed image assembles the md arrays automatically
so that the rootfs can be mounted. In order to remove this
requirement/limitation on the deployed image we can add rd.md.uuid to
the kernel command line with the raid array's uuid.

Story: 2006648
Task: 36884
Change-Id: I42cb198753ecd84b7eaef6b5aa7c2064535bfe0e
2019-10-17 11:14:04 +00:00
Dmitry Tantsur
4197e20a7d Remove imagebuild/common, it's not longer used by IPA-builder
Change-Id: Ia21690955b25b233a7b2e861abb5ac02653099f6
Depends-On: https://review.opendev.org/688911
2019-10-16 14:14:13 +02:00
Julia Kreger
3ee17e8624 Last resort fallback to find a partition
Falls back to attempt to use findfs to locate
a UUID or PARTUUID match as opposed to trying to
list and enumerate through lsblk output.

Can confirm that tinycore 8.x's findfs binary works
expected.

Story: 2006724
Task: 37141

Change-Id: I4d488e4a1ab680eb1353b158c3339cb30b056ada
2019-10-15 16:35:17 +00:00
Zuul
5e3153825a Merge "Add versions to release notes series" 2019-09-26 17:07:24 +00:00
Mark Goddard
12209f89b5 Add versions to release notes series
Change-Id: Ia9cf82cc26d1831a523fd122f27d30387be372a7
2019-09-26 15:09:01 +01:00
Dmitry Tantsur
16d15931f6 Refer to ironic-python-agent-builder for image building
To avoid duplication, remove image building information from IPA docs.
Instead, add information about pre-built images.

Change-Id: I63fd3da36ed2acbd91d365465dec10d96c979035
2019-09-26 14:42:47 +02:00
Dmitry Tantsur
fc068f2b0f tox.ini: remove the devenv environment
This is what 'venv' is for.

Change-Id: I0e2190a9bf7b11537d0931c4e1e970836eb11c01
2019-09-26 11:20:48 +02:00
Zuul
0793807860 Merge "Fix tox.ini to correctly test lower-constraints" 2019-09-25 15:11:53 +00:00
Zuul
d009b2e4f3 Merge "Fix compatibility with Pint 0.5" 2019-09-25 15:11:52 +00:00
Dmitry Tantsur
91ed55678e Fix tox.ini to correctly test lower-constraints
Due to the way we currently define install_command, all test targets
are using upper-constraints, including the lower-constraints one.
This patch fixes it and adds standard things like passing proxy settings.

Change-Id: I61c3b45ae591ea44688f29598cb8b802bb094423
2019-09-25 11:53:27 +02:00
Dmitry Tantsur
386654f602 Fix compatibility with Pint 0.5
Conversion from Quantity to int/long was added only in 0.5.2.

Change-Id: I23f93d29a0624b77f4624c6af530971eb6a4c01b
2019-09-25 11:53:11 +02:00
246dddf43b Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

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

Change-Id: I6fa419b95fadf45c59fad8c076702da762c946de
Sem-Ver: feature
2019-09-25 09:02:04 +00:00
Zuul
74c8cd581b Merge "Attempt tgtd session detach" 2019-09-24 12:00:00 +00:00
Zuul
3968ec9d5a Merge "Delete_configuration, consider removed raid members as well" 2019-09-24 11:51:06 +00:00
Riccardo Pittau
3e139ecd45 Clean up release notes
Change-Id: If32e9b4fe131c0fc6990d5d9a61ba4fc57fc8f0a
2019-09-24 09:55:10 +02:00
Zuul
af1e32ba41 Merge "Revert "Software raid: mbr/gpt partition table alternative"" 2019-09-23 15:08:27 +00:00
raphael.glon
316dd3f952 Revert "Software raid: mbr/gpt partition table alternative"
This reverts commit 258d963e406c512bb90295c700ee22e4609abcd0.

Remove the mbr/gpt choice from softraid features for now, as it cannot be
directly used without additional commits, to be pushed soon. Furthermore, it
could even lead to instance spawn misconfiguration, if the disk label
specified in instance_info cannot fit with the boot mode + partitioning layout
(example: you build softraid over gpt, then you lose the mbr gap. Thus you need
an additional bios boot partition, in BIOS boot mode, or an esp, in UEFI boot
mode, outside the raid, for grub to install itself inthere, to be able to
assemble raid and find root device correctly).

Change-Id: I3a0a704ea99a40eb3fc8e879270dfbd356951488
2019-09-23 12:26:37 +02:00
Julia Kreger
8be4cb689c Attempt tgtd session detach
With raid, we were able to observe a condition where
the file is still open for non-exlcusive access which
blocks the software raid from being shutdown... which
is realistically needed to force a rescan in that case.

Change-Id: I8dbfae091267f8af5340ff5ebeebcba375d05542
2019-09-19 15:44:42 -07:00
Dmitry Tantsur
924528f7de Try increasing memory in the DIB job
We seem to be running out of it now (after CentOS 7.7?).

Also remove the unneccesary USE_PYTHON3: False.

Change-Id: Ibbc5538473b17c58d84f1cb764edec0c6747b263
2019-09-19 09:48:59 +02:00
Zuul
381d7ba349 Merge "Switch to image building jobs from ironic-python-agent-builder" 2019-09-17 21:19:32 +00:00
Raphael Glon
37385dd9dd Delete_configuration, consider removed raid members as well
Change-Id: Ie4f62d8855d3f30a55f7032918dfed1f1d8b5b31
Story: #2006535
Task: #36591
2019-09-16 11:27:27 +02:00
Zuul
70895d2189 Merge "Adds CI job that uses DIB build images" 2019-09-13 17:41:46 +00:00
Zuul
b9a2ac8914 Merge "Release notes cleanup for the next release" 2019-09-11 13:58:06 +00:00
nishagbkar
5b19cee48e Adds CI job that uses DIB build images
Change-Id: I333627a8fb9e5a5d4e53f19e8b2e15d80938d90a
Task: 36272
Story: 2005114
2019-09-10 10:17:41 +02:00
Zuul
03713c5644 Merge "Remove support for CoreOS images" 2019-09-09 08:32:59 +00:00
Kaifeng Wang
cef3bac3dc 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: If5446ce4ceee7e38a0052503aa8fc2b6c5d7de66
2019-09-06 10:48:58 +08:00
Dmitry Tantsur
57cc267449 Release notes cleanup for the next release
Change-Id: Ic44fe5d175a72906b38d7f22fa1739e09a7f16eb
2019-09-04 15:24:56 +02:00
Dmitry Tantsur
e73786af90 Switch to image building jobs from ironic-python-agent-builder
Depends-On: https://review.opendev.org/678884
Change-Id: I50a9f9dc15f3a782aaf4b8c4096a418136f4ebd4
2019-08-28 19:47:22 +02:00
Dmitry Tantsur
e446a5e6c4 Remove support for CoreOS images
Change-Id: Id9737067c678d4d01b20eae0b4a681c6cf9171a8
2019-08-28 19:46:37 +02:00
Zuul
5271064c76 Merge "Run a standalone job in the gate" 2019-08-28 08:59:52 +00:00
Dmitry Tantsur
236c800609 Run a standalone job in the gate
Now that this job has software RAID coverage, we should use it
to avoid regressions in this code.

Change-Id: I7452fb783f72dec589a074e4e46d246dc4ba6aa0
2019-08-27 14:53:05 +02:00
Dmitry Tantsur
0f07bfcac6 Fix the post job for tinyipa/coreos
The image_distro variable has to be initialized even when not actually
used, because run.yaml is one big bash script.

Change-Id: Id73931b29feaa73550d3cb4924f63e303a2fa145
2019-08-27 14:13:44 +02:00
Zuul
c94d3d69cc Merge "Release note follow-up to floppy fix" 2019-08-27 08:01:25 +00:00
Zuul
6d3d1367a9 Merge "Handle floppy disk controllers" 2019-08-27 07:53:00 +00:00
Julia Kreger
321299b573 Release note follow-up to floppy fix
Just adding some additional text to the release note
based upon reviewer feedback[0].

[0]: https://review.opendev.org/#/c/677281

Change-Id: Ib4f0930ef49b6a2745535cc76a2c5e1899662743
2019-08-26 15:01:56 -04:00
Dmitry Tantsur
b4f391da53 CI: do not install IPA-builder as editable
We need to be able to find the DIB element in /usr/share, using editable
installation will prevent it.

Change-Id: I99e4b874e8429fc559a3fbfa22a6c5359e0ea081
2019-08-26 13:57:34 +02:00
Dmitry Tantsur
9226263ccb Correct building DIB images in the CI
* Install bindep from diskimage-builder in the DIB image job
* Switch to using ironic-python-agent-builder script
* Include distribution and branch name into target file names
* Place resulting files into correct directories
* Switch the distribution to centos7 since ubuntu seems to require
  additional configuration
* Add dhcp-all-interfaces, otherwise the image won't DHCP

Change-Id: I3f95323fa59bde4d4be6ff356e5e9f20b7cd453c
2019-08-23 10:20:02 +02:00
Julia Kreger
b98bc678b9 Handle floppy disk controllers
Cleaning presently fails on floopy disk controllers.

While they may be uncommon in server hardware, they
can exist in virtual machines, and even as virtual
devices on some hardware chassises.

Change-Id: I8ba07bfd5ca1e503f46c1bac4fffb5f509186939
Story: 2006419
Task: 36309
2019-08-22 08:58:24 -04:00
nishagbkar
f0a6b2005c Updates the dib element of ironic-python-agent-buildimage file
Updates the run command for building ironic-python-agent-ramdisk
using dib element in ironic-python-agent-builder

Change-Id: I1ec11effc5a232b7f0f4851527b0cc7d00a11a4e
Task: 36324
Story: 2005114
2019-08-22 02:05:53 +05:30
Zuul
0eff77ac8d Merge "Softraid: partitioning fixes" 2019-08-21 11:58:22 +00:00
Zuul
95e5468ab0 Merge "Installs diskimage-builder to pass the DIB image building test" 2019-08-19 13:36:43 +00:00