1792 Commits

Author SHA1 Message Date
Dmitry Tantsur
82084730cd Remove the configuration sample file
It's horribly outdated and can be easily regenerated locally.
A similar change has been done to ironic long ago.

Change-Id: I5b7a0079bc90320adc2b4710cdee714d278e543c
2019-12-02 12:11:58 +01:00
Zuul
8e246f4482 Merge "RAID 5/6" 2019-11-28 11:18:02 +00:00
Julia Kreger
e4659c94cf RAID 5/6
Looks like adding RAID 5/6 support may be easier than most
could immagine. The code, as written appears to be safe and
logical creating a RAID 5 or RAID 6 volume.

Not that we can really test this in CI, but it seems only
validation code needs to be changed to loosen the constraint.

Change-Id: Ib891b3c97f0bfb02af3b59581a451c4b25e03b85
2019-11-27 20:30:28 +00:00
Madhuri Kumari
cdee7bb6e1 Rename job to mention python3
Follow-up on patch https://review.opendev.org/#/c/695652

Change-Id: I0237c3b73c5e52f1d990f7a3f9d70e24f7d24768
2019-11-25 12:52:15 +05:30
Zuul
61484cc323 Merge "Drop python 2.7 support and testing" 2019-11-23 00:25:45 +00:00
Madhuri Kumari
18862bb5fa Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

ironic-python-agent 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: Ifd0e0b99bb82a7d7e82d6c14309468196f5734fc
2019-11-22 15:36:28 +05:30
Kaifeng Wang
4097847a10 Clean up options deprecated prehistory
Configuration options like api-url had been deprecated long time ago[1],
this patch removes it.

[1] https://review.opendev.org/#/c/131632/

Change-Id: Ie448b35a4423066ef44dca7616e716cb5c118881
2019-11-19 08:46:21 +08:00
Zuul
60637c02c6 Merge "Bump up ipa-ip-lookup-attempts to 6" 2019-11-18 10:53:58 +00:00
Derek Higgins
c4bb694082 Bump up ipa-ip-lookup-attempts to 6
To accommodate network setup that takes longer then
30 seconds increase the number of IP lookup attempts. This
allows for IPv6 setup that occurs after DHCP has time out.

Change-Id: I1351e150a63c6247210ca0cbc8ce0abfe82129cd
2019-11-12 03:38:38 +00:00
Dmitry Tantsur
1d12505fa0 Do not try to read raw disk data as unicode
Fixes regression in commit 9f8fa2853af00045118ccd44180e7053e6d027af:
utils.execute returns unicode by default, but this data is binary.

Change-Id: I5b54c1f6cfac5fff672245c523b9fb647478edbd
2019-11-11 16:03:59 +01:00
Pierre Riteau
11862ccae9 Fix instructions for enabling SSH on recent tinyipa images
We need to use AUTHORIZE_SSH since ENABLE_SSH was fully removed in
change I4256c8e89923c7104cb4191f3381312c1593b535.

Change-Id: I5c643b1ae8819b02b667b2df13241753ddca5743
2019-11-11 15:04:46 +01:00
Julia Kreger
9f8fa2853a Don't try to put a bootloader in place when bootable
Lets not do silly things and if the disk looks bootable,
and we're not trying to do UEFI, then let us assume the
proper thing will occur upon power-up.

Looks at the boot sector data and if an executable is
found in the first 218 bytes, then it bypasses loading
a boot loader.

Also adds a dependency on the "file" linux distribution
package.

Change-Id: I11bc26670a08ee13174a43d7cd0f1ab9c1bd35cf
Story: 2006474
Task: 36410
2019-11-01 13:58:55 +00:00
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