9278 Commits

Author SHA1 Message Date
Zuul
7d204b6568 Merge "Bump lower mock version to 3.0.0" 2019-06-11 11:59:47 +00:00
Zuul
5e4edeab97 Merge "Add api-ref for allocation update" 2019-06-07 14:11:35 +00:00
Zuul
be32b18c29 Merge "Ansible module: fix configdrive partition creation step" 2019-06-07 14:11:29 +00:00
Zuul
c5819a1e53 Merge "Fix regex string in the hacking check" 2019-06-07 11:43:19 +00:00
Zuul
01c332d373 Merge "Add a pxe/uefi/grub2 CI job" 2019-06-06 15:26:32 +00:00
Zuul
2511337702 Merge "Remove deprecated option [DEFAULT]enabled_drivers" 2019-06-06 14:25:12 +00:00
Raphael Glon
a09a34207c Ansible module: fix configdrive partition creation step
Fix node deployment: failed on configdrive partitioning step on some
block types (like NVMe drives)

Change-Id: I10fef7b6c0fa45956a31ddbded907af52e12f336
Story: #2005764
Task: #33476
2019-06-06 16:13:49 +02:00
Kaifeng Wang
a3634840f4 Remove deprecated option [DEFAULT]enabled_drivers
The option was deprecated in Rocky, this patch removes it.

Change-Id: I6c1ef41b0f960fc2843a494dfd002a982e2bef01
2019-06-06 10:28:27 +00:00
Zuul
ed44bfe415 Merge "Remove commit_required in iDRAC hardware type" 2019-06-06 07:41:22 +00:00
Kaifeng Wang
9ffb6054df Fix regex string in the hacking check
I am seeing this warning recently:

ironic/hacking/checks.py:26: DeprecationWarning: invalid escape sequence \(
  "\(\s*_\(\s*('|\")")

It appears that the second line is not a raw string at all.

Change-Id: I39da54d50f069d6bec6c2575b448d7a1e9feea03
2019-06-06 14:42:58 +08:00
Madhuri Kumari
2d4380e323 Add api-ref for allocation update
Change-Id: I3a8cfa3d959c6906968bca7006583f45446758e5
Story: 2005126
Task: 29796
2019-06-06 09:32:39 +05:30
Zuul
91e5a145f2 Merge "Software RAID: Trigger grub installation on the holder disks" 2019-06-06 01:11:06 +00:00
Julia Kreger
55e8d3fde1 Add a pxe/uefi/grub2 CI job
Fixes the grub2 based devstack logic and adds a grub2 CI job
such that the ironic team can safely clean-up some of the PXE
code without fear of breaking the grub2 scenario.

Story: 2003936
Task: 27724
Change-Id: Ieb395bf35e2689741a243c11b56d08a237b200bc
2019-06-05 14:21:13 -07:00
Zuul
856f4bc48f Merge "Remove XML support in parsable_error middleware" 2019-06-05 06:02:03 +00:00
Zuul
d3cc932dd1 Merge "Start using importlib for Python 3.x" 2019-06-04 21:56:42 +00:00
Zuul
d2bac1c2a1 Merge "Allocation API: backfilling allocations" 2019-06-04 18:23:47 +00:00
Ilya Etingof
234dea98bb Bump lower mock version to 3.0.0
Previously used mock 2.0.0 has a nasty bug which prevents mocking
`@staticmethod` callables [1][2].

1. https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst#300
2. https://bugs.python.org/issue23078

Change-Id: I38d78cb8de92e9ecfc3dda5ffafcb4ffe175169e
2019-06-04 17:05:01 +02:00
Riccardo Pittau
77b8898fd1 Start using importlib for Python 3.x
The imp module is deprecated since a while and the load_source
method has been removed from docs because broken [1][2]
Unfortunately we have to use it until Python 2.x dies, but we
can start using importlib for Python 3.3 or higher.

[1] https://bugs.python.org/issue14551
[2] https://mail.python.org/pipermail/python-ideas/2014-December/030265.html

Change-Id: I318d0bea8221023f20ad84a06234cca3fdd31657
2019-06-04 15:45:58 +02:00
Jim Rollenhagen
99137706e4 Remove XML support in parsable_error middleware
Our API no longer supports XML anyway[0], so remove the XML handling in
this middleware.

[0] http://paste.openstack.org/show/752441/

Change-Id: I71abd44458d20f29316114713790cf9b17ef836a
2019-06-03 14:11:29 -07:00
Ilya Etingof
45020712d7 Fix binary file upload to Swift
Fixes binary files upload to Swift. Prior to this
fix, binary file upload to Swift might fail at unicode
characters interpretation.

Story: 2005697
Change-Id: Icbe69bc628af8bdfd48327319f5c6b01607700bf
2019-06-03 19:29:20 +02:00
Zuul
0ed13a5085 Merge "Add a high level vision reflection document" 2019-06-03 15:57:11 +00:00
shenjiatong
5c4efd3b66 fix typo in code comment
continue_node_clean will actually be invoked

Change-Id: Iecd5efac5567979e9f97b6f3c07ddc126e30c2da
2019-06-03 08:23:33 +08:00
Arne Wiebalck
5b0ec703c9 Software RAID: Trigger grub installation on the holder disks
Ironic triggers the bootloader installation only for partition
images (as whole disk images should come with the bootloader).
When a software RAID device is used for deployment, however, the
bootloader needs to be installed on the holder disks by the IPA,
so we need to detect and trigger this.

Change-Id: I6732bfbcabfa1c74aa5ab6fa990e977589a50b92
Story: #2004581
Task: #29105
Depends-on: https://review.opendev.org/639390
2019-05-29 16:59:26 +02:00
Ilya Etingof
73845b3655 Move stray reno file
Change-Id: I389d0c7722252f001134a7b45006d3be2f371a3d
2019-05-29 16:37:55 +02:00
Zuul
0f03a8436c Merge "Add note for alternative checksums" 2019-05-29 10:48:27 +00:00
Dmitry Tantsur
db7d9bb1f0 Trivial: correct configuration option copy-pased from inspector
Change-Id: Iec065e54f0ca50515180fb5f2051380bde329ab0
2019-05-29 08:36:24 +02:00
Christopher Dearborn
cc10323dbb Remove commit_required in iDRAC hardware type
The deprecated commit_required attribute in dictionaries returned
from various python-dracclient calls has been removed from
python-dracclient.  This patch removes the iDRAC hardware type's
dependency on this attribute.

Change-Id: Iaaec6ca325b5ec0a7d9ad80d14a6595ef0bd9a8e
2019-05-28 16:54:57 -04:00
Zuul
47f9b2626c Merge "Make the multinode grenade job voting again" 2019-05-28 12:21:14 +00:00
Zuul
aae98fbedc Merge "Publish baremetal endpoint via mdns" 2019-05-28 12:18:41 +00:00
Zuul
25fed531a6 Merge "Blacklist python-cinderclient 4.0.0" 2019-05-28 10:09:48 +00:00
Zuul
9cfbd64c12 Merge "Add DHCP server part to make the document more detail" 2019-05-27 21:56:10 +00:00
Dmitry Tantsur
75d796e731 Make the multinode grenade job voting again
Change-Id: I483fd8efc642ecb780421a1181c771f6108ad8b4
Depends-On: https://review.opendev.org/#/c/661559/
2019-05-27 13:07:03 +02:00
Dmitry Tantsur
6849a43cf6 devstack: configure rabbit outside of API configuration
If enabled, rabbit is required for all ironic services, so it makes
no sense to only configure it when API is enabled. This seems to
break multinode grenade, since `is_service_enabled ir-api` returns
false on the subnode. Try to configure the RPC backend in all cases
when IRONIC_RPC_TRANSPORT is "oslo" (not JSON RPC).

Also move the automated_clean option to the conductor where it belongs.

Change-Id: I6e046c6b6e1e4c0ca7bfd5fb9ce5892c0298fb78
2019-05-27 13:00:25 +02:00
pengyuesheng
2c42e3cdf3 Blacklist python-cinderclient 4.0.0
This release of the Cinder client broke support for the v3
volume-transfer APIs unless microversion 3.55 or higher was requested.
depend on https://review.opendev.org/#/c/587877/

Change-Id: I12f6d4f540a0a09c6609e14c615dcd11f191660a
2019-05-27 14:54:54 +08:00
Zuul
dc39803eac Merge "Fix GRUB config path when building EFI ISO" 2019-05-24 12:27:11 +00:00
Dmitry Tantsur
c36a01a439 Publish baremetal endpoint via mdns
This change adds an option to publish the endpoint via mDNS on start
up and clean it up on tear down.

Story: #2005393
Task: #30383
Change-Id: I55d2e7718a23cde111eaac4e431588184cb16bda
2019-05-23 17:11:50 +02:00
Zuul
82c853530f Merge "Update sphinx requirements" 2019-05-23 11:28:26 +00:00
zhu.fanglei
4537e2c540 Fix inaccurate url links
This is to fix some inaccurate url links

Change-Id: I8d7f20f3d1b2cdf56fd79cf9388e79ecd2eb0108
2019-05-23 15:30:51 +08:00
Riccardo Pittau
9ed9101394 Update sphinx requirements
Following recent changes to global requirements [1], we need
to update sphinx requirements locally.

[1] If558f184c959e4b63b56dec3ca1571d1034cfe5c

Change-Id: Ia0dd6883b4c15b8a0646ee765689343c116b2bcd
2019-05-22 15:03:52 +02:00
Dmitry Tantsur
a0f0e52b8e Allocation API: correct setting name to None
This is a follow-up to commit aec48ca2752127403c4b6f72706d9897cde10ee4.

Change-Id: Id87c0a6e3232a9cdd98cb5ee1f722815986fb9c5
2019-05-22 13:12:49 +02:00
Zuul
ed5c3d940d Merge "Move devstack emulators configs under /etc/ironic" 2019-05-21 23:25:09 +00:00
Dmitry Tantsur
8f6bf4f9dd Allocation API: backfilling allocations
This feature addresses the case of moving the already deployed nodes
under the allocation API.

Change-Id: I29d0bd3663e0d1b27727a700c0f0e0fb6ceac1d9
Story: #2005014
Task: #29491
2019-05-21 20:09:21 +02:00
Ilya Etingof
306aebad48 Fix GRUB config path when building EFI ISO
Fixes GRUB configuration file generation procedure when building
bootable ISO images that include user EFI boot loader image.
Prior to this fix, no bootable ISO image could be generated
unless EFI boot loader is extracted from deploy ISO image.

Change-Id: I1a761737958662cef45885e54cf7532babae1ee1
Story: 2005738
Task: 33399
2019-05-21 17:36:42 +02:00
Jerry
5d054cac4e Add DHCP server part to make the document more detail
Story: 2003936

Task: 30198

Change-Id: I0cdc9b53acf022dc6828bf99fd6551ebbaf6caff
2019-05-20 22:59:23 +08:00
Zuul
5edf4f3fda Merge "Do not try to return mock as JSON in unit tests" 2019-05-20 14:24:00 +00:00
Zuul
9c8f59a098 Merge "Remove deprecated option [ilo]power_retry" 2019-05-20 11:34:05 +00:00
Zuul
566801418c Merge "Add API to allow update allocation name and extra field" 2019-05-20 09:26:37 +00:00
Dmitry Tantsur
f8e1fbf308 Do not try to return mock as JSON in unit tests
A few of our unit tests make API handlers return Mock objects. This
used to work with older WSME, but the current master has dropped
support for simplejson, which has apparently made validation stricter.
An example of resulting failures can be seen in RDO CI:
71833957b3_156a4cd0/mock.log

This change fixes it, also adding autospec=True to affected tests.

Change-Id: Ide4bc301d53ad81b53e5df8a9358cb65fdd8056c
2019-05-20 11:25:12 +02:00
Zuul
71833957b3 Merge "Fix exception generation errors" 2019-05-18 13:08:50 +00:00
Shivanand Tendulker
5dd64771db Remove deprecated option [ilo]power_retry
The option [ilo]power_retry is deprecated at Stein, now it's time
to remove it from the tree.

Change-Id: I96d8e5141f170b6841250b2041ec775cc144f63f
Story: #2005673
Task: #30984
2019-05-16 02:05:38 -04:00