651 Commits

Author SHA1 Message Date
Zuul
a37898d704 Merge "devstack: install bindep for diskimage-builder" 2020-01-09 16:44:30 +00:00
Zuul
9669948732 Merge "devstack: switch to using CentOS 8 DIB ramdisks by default" 2020-01-09 12:32:24 +00:00
Dmitry Tantsur
ca355adb70 devstack: install bindep for diskimage-builder
Building images may not work without it, and it's only automatically
installed in the CI if diskimage-builder is in required-projects.

Change-Id: Ic0198bc02b1aa9a960aa08c224598d7e1e809012
2020-01-08 19:18:23 +01:00
Zuul
b39ca69061 Merge "Explicitly use ipxe as boot interface for iPXE testing" 2020-01-07 16:09:04 +00:00
Zuul
38d852d6f4 Merge "Make qemu hook running with python3" 2020-01-07 16:09:02 +00:00
Zuul
7783981e2b Merge "Add logic to determine Ironic node is HW or not into configure_ironic_dirs" 2020-01-07 13:51:45 +00:00
Kaifeng Wang
373f428fc2 Make qemu hook running with python3
This switches the piece of code turns on multicast [1] to run with
python3.

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

Change-Id: I12d3764d087fa19aca5b285cbd63a19b1770bb41
2020-01-07 09:29:59 +08:00
Dmitry Tantsur
f110afc4f9 devstack: switch to using CentOS 8 DIB ramdisks by default
The CentOS 7 ones no longer work because of the Python 3 transition.

Change-Id: I68fc6f87879a53198810ad64f9570c41ccf8ce7f
2020-01-03 16:28:54 +01:00
Kaifeng Wang
697048b47e Explicitly use ipxe as boot interface for iPXE testing
We are about to drop pxe + ipxe_enabled=True combination for iPXE
testing, so let's make it explicit in the jobs.

Change-Id: I0e99e6336aa47857c06ba2f6869e66580159a9be
Story: 2007003
Task: 37779
2020-01-02 14:00:42 +08:00
Zuul
f26b883ed3 Merge "Fixes issue with checking whether ISO is passed" 2019-12-13 10:34:35 +00:00
ankit
2d5a8cf967 Fixes issue with checking whether ISO is passed
This patch fixes the issue if IRONIC_BUILD_DEPLOY_RAMDISK
is set to false and IRONIC_DEPLOY_ISO is passed then it
will not throw the error.

Change-Id: Ic95f6e75d51db5cb60098bb131698cf44e772366
Story: 2007002
Task: 37777
2019-12-09 07:50:52 +00:00
Ilya Etingof
dcd701b4a0 Add a CI job to legacy boot over Redfish virtual media
Adds a job to boot a node over Redfish virtual media in legacy
BIOS boot mode. For sake of unification, similar PXE job has been
renamed.

Apparently, libvirt-based Redfish BMC emulation requires node
power-cycle for libvirt domain configuration changes to take
effect.

Change-Id: I2c7fc26b082db6eeae1abcd67362884a9c72c109
2019-12-04 14:59:08 +01:00
Ilya Etingof
10abf8834c Fix UEFI NVRAM collision in devstack
When configuring VMs in devstack booting in UEFI mode, make sure
that each libvirt domain has its own UEFI NVRAM store. Otherwise
funny things can happen ultimately leading to EFI shell popping
up crying for help.

Change-Id: I03eddde04211ceb6f0bd9438fafab34c515c4fa9
2019-12-02 14:06:32 +01:00
Iury Gregory Melo Ferreira
b869b46c63 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Ironic 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: I3cc36d79ffabf31607d503dada9e7512c639647c
2019-11-22 14:06:45 +01:00
Zuul
516f04caf7 Merge "Don't install syslinux-nonlinux on rhel7" 2019-11-21 19:35:54 +00:00
michaeltchapman
2231a93444 Don't install syslinux-nonlinux on rhel7
the syslinux tools are in the syslinux package on
rhel7 and friends, but in rhel8 have moved to
syslinux-nonlinux

Change-Id: Iea74c2be6fbd738f35f178fa189384dd37579277
2019-11-21 01:22:37 +11:00
Zuul
306aaccca6 Merge "Ensure text-only console in devstack" 2019-11-20 13:22:37 +00:00
Zuul
0ee99def0b Merge "Ensure isolinux.bin is present and configured in devstack" 2019-11-20 05:06:40 +00:00
Ilya Etingof
c7a42bdbff Ensure text-only console in devstack
Apparently, now days system boot chain is tempted to display
fancy things on the console. While enjoyable, in non-text mode
libvirt guest console can't make it to the log file.

This change tries to ensure pure text mode kernel console in
PXE and Redfish booting by disabling any graphics in the VM
and in guest kernel.

Note that it's not only kernel that can control display mode,
but EFI boot loader as well.

For getting on VM's text console in devstack one could use
`virsh console --devname serial1 node-0` or just add `<graphics>`
section to `virsh edit node-0` XML.

Change-Id: I14f78bcef4173eeaf659ee589ca938e2698e3505
2019-11-19 16:36:21 +01:00
Riccardo Pittau
f8c4f7b1e4 Fix variable name in cleanup_baremetal_basic_ops func
Correcting the variable name for virtual bmc instances during
devstack unstack ironic cleanup phase.

Change-Id: Ie35a45e0806f9da07d121900831c6a61e33d23e5
2019-11-13 18:06:01 +01:00
Ilya Etingof
1e25f60fd3 Ensure isolinux.bin is present and configured in devstack
When devstack boots a node over virtual media in BIOS boot mode,
`isolinux.bin` boot loader needs to be present for grilling hybrid
ISO images.

This patch makes devstack pulling necessary packages and configure
ironic accordingly.

Change-Id: I2f4e582aa05fc54610a4c43695124219714368c2
2019-11-11 15:53:49 +01:00
Dmitry Tantsur
a2472c1518 CI: limit rescue testing to only two jobs
This feature is time-consuming and prone to race conditions. This
changes switches it off by default, leaving it on in two jobs:
the one running on Nova and the standalone one.

Change-Id: I7c50cb12065da05dad4ece0918883748ee4617e0
2019-10-22 17:20:51 +02:00
Zuul
6a054eb692 Merge "Fix EFIBOOT image upload in devstack" 2019-10-18 10:20:42 +00:00
Zuul
270efc1443 Merge "Change MTU logic to allow for lower MTUs automatically" 2019-10-18 02:35:07 +00:00
Iury Gregory Melo Ferreira
8dc0a96414 Setup ipa-builder before building ramdisk
Extracted the logic to setup the ironic-python-agent-builder
to a separate function that is called before building ithe ramdisk,
this is to avoid errors when deploying locally see [1]

[1] http://paste.openstack.org/show/783890/

Change-Id: I8ce4ac2f1b59fc682feea3a183c7d0e3d075f30d
2019-10-15 15:39:20 +02:00
Ilya Etingof
e339c30a57 Fix EFIBOOT image upload in devstack
On restacking devstack, if EFIBOOT image file already exists on the
file system, ironic devstack plugin would not re-upload it to Glance
failing further ISO image build for Redfish virtual media boot.

This change makes Glance upload unconditional.

Also in this patch: fixed UEFI firmware configuration in Redfish
emulator configuration file produced by devstack plugin.

Change-Id: Idf1d2ccc54e1bf60a1df249d0e3fb08fbb98a51c
2019-10-14 19:29:10 +02:00
Julia Kreger
cf074202e5 Change MTU logic to allow for lower MTUs automatically
Change-Id: I40d357e716b589585493824cfd963fd5f579bd81
2019-10-11 10:07:50 -07:00
Zuul
069f964f59 Merge "enable_python3_package should not be necessary anymore" 2019-10-10 22:40:19 +00:00
Zuul
7c9bbb61ba Merge "Fix devstack installation failure" 2019-10-04 18:36:13 +00:00
Zuul
b6211b255d Merge "Use correct function to stop service" 2019-10-04 12:41:04 +00:00
Iury Gregory Melo Ferreira
a5297da941 Use correct function to stop service
DevStack provides a function to stop services[1],
the `stop_redfish` function wasn't using this one.

[1] https://opendev.org/openstack/devstack/src/branch/master/functions-common#L2252

Change-Id: I9e7be1d3ade0d2743893de6565e5dc427d5e1f71
2019-10-03 11:15:49 +02:00
Christopher Dearborn
dab47f9ce1 Fix devstack installation failure
This patch fixes an exception that occurs when deploying devstack with
the DIB ramdisk.

Change-Id: Ia4499291b6dff1e8c8b6cd1ac544a1e3787ccf83
Story: #2006645
Task: #36881
2019-10-01 19:29:40 -04:00
Dmitry Tantsur
78e763c61b Add a CI job with a DIB-built ramdisk
Also updates the devstack plugin to support pre-built DIB images
and removes the explicit mention of dhcp-all-interfaces element,
which is already a dependency of ironic-python-agent-ramdisk.

Change-Id: I564016528e80c738d6004c47f8df502a7748b311
2019-09-30 20:14:19 +02:00
Riccardo Pittau
e11285c6b2 enable_python3_package should not be necessary anymore
Removing option enable_python3_package as it should not
be needed anymore.

Change-Id: I103ba68449616ca2a8609d16bee9aa89ab5f3bc7
2019-09-26 16:04:00 +02:00
Dmitry Tantsur
de85baaa95 Run DIB with tracing enabled and increase the DHCP timeout
We seem to be hitting occasional failures to DHCP in time, although
DHCP itself seems working. Try increasing timeout from 30 to 60.

Also enable tracing when building the image, so that this sort of
issues is a bit easier to debug without unpacking the image.

Change-Id: If3f00ba39daf72739802c46c5c6c64cfbb6ab0ae
2019-09-25 16:50:58 +02:00
Zuul
0450c4f2fd Merge "Allow retrying PXE boot if it takes too long" 2019-09-23 12:58:26 +00:00
Zuul
bd835b671b Merge "Devstack: Fix iPXE apache log location bug" 2019-09-21 18:24:58 +00:00
Dmitry Tantsur
3f3508f0d0 devstack: wait for conductor to start and register itself
Change-Id: I5e026754ed5aa6fb0ffaff086cda0bfa0aca2211
2019-09-20 16:15:55 +02:00
Dmitry Tantsur
b2834e6661 Allow retrying PXE boot if it takes too long
PXE is inherently unreliable and sometimes times out without an
obvious reason. It happens particularly often in resource constrained
environments, such as the CI. This change allows an operator to
set a timeout, after which the boot is retried again.

The _add_node_filters call had to be refactored to avoid hitting
the complexity limit.

Change-Id: I34a11f52e8e98e5b64f2d21f7190468a9e4b030d
Story: #2005167
Task: #29901
2019-09-20 15:24:28 +02:00
Zuul
a2b05332f2 Merge "CI: move libvirt images to /opt for standalone and multinode jobs" 2019-09-20 03:06:29 +00:00
Michael Davies
c9349c194a Devstack: Fix iPXE apache log location bug
Make the apache log directory configurable, based upon which
operating system this is running on. This is needed as ironic
devstack is broken on Red Hat-related operating systems as a
result.

Change-Id: I22e04d886219755a38b1e895c2c6f9d756535cab
Story: 2006577
Task: 36689
2019-09-20 06:16:30 +09:30
Zuul
0ea2aa07cb Merge "Remove support for CoreOS images" 2019-09-18 07:59:29 +00:00
Zuul
8af2e2c86b Merge "Remove cisco references and add release note" 2019-09-17 21:19:26 +00:00
Dmitry Tantsur
625c71d48d CI: move libvirt images to /opt for standalone and multinode jobs
Moves the volume pool from / to /opt for the standalone and multinode
jobs, since on smaller nodes /opt is mounted from a larger ephemeral disk.

Change-Id: Idb4e235fd40ecd9829c3ad8a9dd1224f1c29a12e
2019-09-16 18:57:22 +02:00
Ruby Loo
7c5839064f Remove cisco references and add release note
The cisco hardware types and interfaces were removed in
Ie12eaf7572ce4d66f6a68025b7fe2d294185ce28. This removes the
last few references to them, and adds a release note about
their removal.

Change-Id: I6d11dda0132d999b2dbf6bbd47cac55336e1d079
Story: 2005033
Task: 29522
2019-09-13 19:58:36 +00:00
Dmitry Tantsur
cbeb9cc79f Remove support for CoreOS images
Also remove the remaining elilo test template instead of updating it.

Change-Id: I79a49837f4d0dd6a432895e8997158a51feb99c3
2019-09-09 15:59:34 +02:00
Dmitry Tantsur
7a0f8698a1 devstack: save iPXE httpd logs
Change-Id: I3ad5ee77a2e2e8613316b1e935256d5ba0394420
2019-09-04 13:16:12 +02:00
Zuul
3c9f2a834e Merge "Adding file uri support for ipa image location" 2019-08-29 01:14:45 +00:00
Michael Davies
b560bade60 Adding file uri support for ipa image location
Allow ipa kernel/disk images to be specified via file:// designator
so they can be locally hosted in addition to being available over
http.

Change-Id: If3e32f30a7df27113721e15bff9ecaae16bfe8d4
2019-08-27 15:33:29 +09:30
Julia Kreger
dd02a21633 Adjust placement query for reserved nodes
Minor timing changes in an attempt to:
a) Make the logs less noisy
b) Wait a little bit longer for placement
   records to be updated.

Change-Id: I4f64a2f5ab2d1696f244f083d5dc387c75cc1175
2019-08-26 16:56:50 -04:00