1596 Commits

Author SHA1 Message Date
Zuul
c5f31db691 Merge "Attempt to read the partition table after writing an image" 2019-01-04 08:01:22 +00:00
ShangXiao
045063990d Add source code link for the project to README
Change-Id: Ib8e0c9a41b4b73aaba13b794eaf2134b85bbeff9
2018-12-28 03:10:56 +00:00
Zuul
34c7ccc6c2 Merge "Update author email address" 2018-12-26 13:56:54 +00:00
Julia Kreger
f7e90ea777 Update author email address
Change-Id: I7bad0c5799be2cc550efee20507e882ed055cc9a
2018-12-25 17:02:42 +08:00
Zuul
97504b07a6 Merge "Change HTTP links to HTTPS" 2018-12-18 10:01:10 +00:00
zhouxinyong
68ad3661a3 Change HTTP links to HTTPS
Change-Id: I963c32407c109c840d59f4dcf945f2fc78e096f2
2018-12-18 09:41:33 +00:00
chenjiao
27d4e6b2cc Update http link to https
Change-Id: I5cf2627d999d4f3cf7bc2367f4d9cfddf6391146
2018-12-08 18:03:59 +08:00
Zuul
ebd5e7488d Merge "add coverage job" 2018-12-05 21:33:56 +00:00
Zuul
a76567d9e5 Merge "spelling error" 2018-11-28 02:05:23 +00:00
Zuul
d1bb8591dd Merge "Update min tox version to 2.0" 2018-11-28 00:03:47 +00:00
Zuul
0a58f72038 Merge "zuul-ify primary IPA jobs" 2018-11-27 03:38:14 +00:00
Zuul
cfb62c8765 Merge "Allow erasing metadata from disk partitions" 2018-11-26 22:47:02 +00:00
Julia Kreger
86d98666d7 zuul-ify primary IPA jobs
Change-Id: I13312560389f8b1298dd62cedd654fb8f66d3dfe
2018-11-26 17:32:28 +00:00
zhangdebo
391636c289 Update link addresses
Change-Id: I52f275917be720b1e48f17876deb10cd4e6d2501
2018-11-24 14:58:49 +08:00
chenjiao
416859ec6a spelling error
Change-Id: I20e5373e6b906f893adbd4ec609c71203766b3d3
2018-11-24 11:20:34 +08:00
Sam Betts
fc2dfcee60 Attempt to read the partition table after writing an image
This patch adds code that tries to read the partition table after we've
successfully written an image to make sure the image that we wrote has a
valid partition table so we can more easily guarantee that what we've
written is bootable and not just junk. Without a valid partition table
writing a config drive will fail for whole disk images.

Co-Authored-By: Dmitry Tantsur <dtantsur@redhat.com>
Change-Id: I5cfd8c433a4db3e0d2d5086250e629d16234b7a4
Story: 2001760
Task: 12159
2018-11-19 18:57:23 +01:00
Corey Wright
96961070ee Allow erasing metadata from disk partitions
Modify the metadata erasing call chain to retrieve a list of devices
that includes partitions in addition to disks so it can erase metadata
from all of them, otherwise incidentally recreating disk partitions
causes the Linux kernel to discover and automatically recreate some
types of storage entities (eg LVM PVs, VGs, & LVs, RAID members &
devices).

Change-Id: If8f47a083966051856439e3291a6872929b93e3b
Story: #2003673
Task: #26192
2018-11-13 00:36:18 -06:00
Zuul
0655a18bdd Merge "Update min tox version to 2.0" 2018-11-12 14:24:01 +00:00
Zuul
3176ea483c Merge "Fix multi-device behavior" 2018-11-12 13:56:57 +00:00
taoguo
d4919dc068 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.

Change-Id: I4813ed34b22895d59db26d15ee5158de8840628a
2018-11-10 14:27:53 +08:00
Nguyen Hai Truong
b8f0d26d3e Update min tox version to 2.0
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I005b46aebeb7f347b6721790723ea6be41a0d67e
2018-11-08 00:20:16 +07:00
Nguyen Hai Truong
89903be4f0 add coverage job
Insert python coverage job for py-test.

Change-Id: I13b9a0710e442abb06af328aad4e769628a383e1
2018-11-08 00:19:21 +07:00
Zuul
f63099ebb6 Merge "Allow streaming raw partition images" 2018-10-26 14:14:55 +00:00
Kaifeng Wang
6f42768756 Follow up to parallel disk erasure
Improve test to verify apply_async is called twice as expected.

Story: 1546949
Task: 11548

Change-Id: I41736dfb2932dd0036bbc4cbc51929bf61a16569
2018-10-24 10:51:43 +08:00
Zuul
0a275992f2 Merge "Allow using ironic-lib from source when building tinyipa" 2018-10-22 20:31:38 +00:00
Zuul
67a516bdcf Merge "Parallel erase disk devices" 2018-10-22 20:31:34 +00:00
Zhenguo Niu
1ee42cc3ff Parallel erase disk devices
Currently we erase the disks one by one, which takes a long
time to finish, this patch adds support to the IPA so that
it can erase disks in parallel if told so.

Story: 1546949
Task: 11548
Co-Authored-By: yuan liang <leetpy2@gmail.com>
Co-Authored-By: Kaifeng Wang <kaifeng.w@gmail.com>

Change-Id: If5cfb6ec000a654d07103c4b378d4c135249e238
2018-10-22 13:56:51 +08:00
Zuul
5ad766ebcb Merge "Enhanced checksum support" 2018-10-20 11:10:55 +00:00
Pierre Riteau
8eecadb0a8 Fix BMC IP address detection on CoreOS images
On CoreOS images, IPA runs in a Debian Jessie chroot which uses mawk as
its default awk implementation. However, mawk doesn't support POSIX
character classes such as [:space:], which means get_bmc_address() fails
to parse the BMC IP address from the output of ipmitool.

This patch replaces the use of [[:space:]] by [ \t] which is equivalent
for the purpose of parsing the output of ipmitool. Note that matching on
tab characters is not strictly required as the packaged version of
ipmitool only uses space characters, but is left in case tabs are used
in other versions.

Change-Id: I0e3306a4d4584ca28e03608e9f7270b770960a39
Story: #2004121
Task: #27571
2018-10-19 14:22:05 +01:00
Dmitry Tantsur
29136bf68d Allow streaming raw partition images
Currently we support streaming raw whole disk images, but not
partition ones. This change enables it.

Change-Id: Ie95102aa3f2054a6b429f3d3e0926e90923c5faf
Story: #2003809
Task: #26558
2018-10-17 11:16:04 +02:00
Pierre Riteau
c6ea17d413 Add missing dependencies to CoreOS IPA docker image
The iptables and lshw utilities are both required for IPA: iptables is
used when collecting system logs and lshw is used to get the total
physical memory and system details. However, they were not installed in
the docker image embedded in CoreOS IPA images. Since the docker image
is used as a chroot to run IPA, it cannot access binaries available
outside in the main CoreOS file system.

Change-Id: Ic2188b49e717c62315db6c33b74b2e161436b052
Story: #2004092
Task: #27494
2018-10-16 11:51:43 +01:00
Harald Jensås
7e3834be13 Raise udevadm settle timeout from 5 to 20 seconds
To fix for grenade slow discovery of e1000 network devices.

Ironic Inspector grenade job is using e1000 driver since
change: I4ec297281380896ffe9004c4de7117586ded7149

In some cases the e1000 devices has not registered yet,
and thus the dhcp init script does not find any interfaces
to bring up. This causes the grenade job to continue with
no networking, and the job finally fail.

Make the udev settle timout configurable (default 20 sec)
in finalise-tinyipa.sh.

Let's hope 20 seconds is enough. If not we now have more
logs to identify the issue.

Change-Id: I82beecc78afb4b23234d2d5eca4f46f84f20525e
2018-10-15 17:29:28 +02:00
Kaifeng Wang
ec2bf8667d Enhanced checksum support
Adds enhanced checksum support to IPA, when os_hash_algo and os_hash_value
are passed in via image_info, it will be used to calculate image checksum
and verification.

In other cases, the old md5 checksum is used.

Change-Id: I1d2f33e7059910326b4ac3f7786543b333a93a5a
Story: 2003938
Task: 26846
2018-10-15 17:15:38 +08:00
Zuul
855863fdc3 Merge "Change nic driver to e1000 for CoreOS jobs" 2018-10-10 21:48:55 +00:00
Julia Kreger
2f4aa01337 Mark CoreOS check jobs non-voting
Due to a higher failure rate, which is largely due
to nested virtualization failures with CoreOS where
one or more of the CI infrastucture providers do not
support nested virtualization, we are marking the
CoreOS CI check jobs as non-voting. This is in order
to reduce the need to recheck.

Change-Id: Id2a5dc766b79ec1131e33f9a49ceca8095c363ef
Story: #2003985
Task: #26928
2018-10-07 15:10:10 +00:00
Dmitry Tantsur
39d4891cf3 Allow using ironic-lib from source when building tinyipa
This change simplifies development of IPA by allowing to install
ironib-lib from a local checkout with modifications.

Change-Id: I142c6d389d94141db8bc9e3eeaae50a687bcd7b1
2018-10-02 13:42:57 +02:00
Julia Kreger
a637626803 Change nic driver to e1000 for CoreOS jobs
This change was created after observing a number of the CoreOS
IPA build/test jobs were exhibiting a high failure rate with
the virt-nic.

Similar to the issues recently addressed in ironic's grenade
job, lets explicitly set the NIC to e1000 as that seems to be
more reliable for the CoreOS jobs.

Change-Id: I6365fe138d1b1ddc98a49f1a1da0b82d77678599
2018-10-01 13:15:28 -07:00
Dmitry Tantsur
8f700c4cef Correct headings in README.rst
Currently it's titled "Team and repository tags", which is obviously
not the project name. Also the top-level title is duplicated twice.

Also remove the link to wiki that contains no helpful information.

Change-Id: I6c997576f7ffe00fe660ad51213e70369b325e0b
2018-09-27 14:00:53 +02:00
Julia Kreger
c540731aee Fix multi-device behavior
ATARAID is functionally a version of software
RAID where the setup is managed by the controller
and the Operating System takes over managing the
RAID after boot. Most commonly this is found for
mirrored boot devices.

Prior to this patch, we were looking for non-dependent
items (i.e. base block devices), with a type of disk.

Now we will permit the "disk" to be added to the list
if lsblk indicates that it is a type containing "raid".
The lsblk results should not change as we explicitly
look for disk objects.

Change-Id: Ia4a03b33cc06ce42e1bc33026683c28b31901cb7
Story: #2003445
Task: #24647
2018-09-24 19:10:38 -07:00
Zuul
c520f407f9 Merge "add python 3.6 unit test job" 2018-09-24 03:57:16 +00:00
Tao Li
8a70f12435 Replace assertEqual(True/False, expr) with assertTrue/assertFalse in tests
In some cases, If the result of expr is a boolen value, we shoud use
assertTrue/assertFalse to instead. Beacause it is clear and simple.

Change-Id: Ie61369f6335a90b09bb24192282d33da5272c13f
Story: #2003785
Task: #26490
2018-09-18 16:14:20 +08:00
Zuul
677ff17006 Merge "switch documentation job to new PTI" 2018-08-22 21:43:50 +00:00
Zuul
8fc53b29d3 Merge "import zuul job settings from project-config" 2018-08-20 19:30:42 +00:00
Zuul
d40d7d9b84 Merge "Clear GPT and MBR headers with dd to avoid sgdisk CRC errors" 2018-08-20 17:58:56 +00:00
Doug Hellmann
3af110a9bd add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I6cdb80e7be5dfe1362628727160d6186f7bafd27
Story: #2002586
Task: #24302
2018-08-16 09:44:53 -04:00
Doug Hellmann
70293434a4 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I14605e8455a87998f449fed9815b470bb701745a
Story: #2002586
Task: #24302
2018-08-16 09:44:47 -04:00
Doug Hellmann
8fdc766d5a import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Icfa5db2a099cb3acb79a39824c48c3e4505758ce
Story: #2002586
Task: #24302
2018-08-16 09:42:40 -04:00
6897835e05 Update reno for stable/rocky
Change-Id: I7506753ff1829ca5386d67d751c40b5e022b028d
2018-08-09 13:15:37 +00:00
Giulio Fidente
bc21b5b140 Clear GPT and MBR headers with dd to avoid sgdisk CRC errors
This change adds a dd before the existing sgdisk -Z command to
workaround CRC verification errors.

Change-Id: Ia1ac4e1c0faf14ad4bb11c2a1c796c93ca8cb5e3
Closes-Bug: #1737556
Story: 1737556
Task: 11496
2018-08-08 16:40:22 +00:00
Zuul
667589bb00 Merge "fall back to PARTUUID if UUID not found." 2018-08-03 15:40:51 +00:00