9311 Commits

Author SHA1 Message Date
Kaifeng Wang
bffb075d20 Adds bandit template and exclude some of tests
Adds bandit configuration template and exclude some of
tests that we don't want to fix for the moment.

Keeping job unvoted so that we can keep an eye on possible
issues while not breaking gate.

Change-Id: Ic577cad3b61421c04023ea887236992acb19f77c
Story: 2005791
Task: 33518
2019-06-20 15:08:43 +08:00
Zuul
f52b386b4c Merge "Refactoring: flatten the glance service module" 2019-06-19 12:15:57 +00:00
Zuul
0a186cd8e4 Merge "Remove the deprecated glance authentication options" 2019-06-19 12:15:54 +00:00
Zuul
eb79fc1b8d Merge "Replace deprecated with_lockmode with with_for_update" 2019-06-19 12:15:52 +00:00
Zuul
adecc670f7 Merge "Incorporate bandit support in CI" 2019-06-19 05:45:10 +00:00
Zuul
7a718ee4de Merge "Spruce up release notes for 12.2.0 release" 12.2.0 2019-06-18 16:35:10 +00:00
Riccardo Pittau
06dd82bd30 Replace deprecated with_lockmode with with_for_update
The Query.with_lockmode() method is deprecated since version 0.9.0
and will be removed in a future release. [1]
This patch replaces it with Query.with_for_update().

[1] https://docs.sqlalchemy.org/en/13/orm/query.html#sqlalchemy.orm.query.Query.with_lockmode

Change-Id: I2d4c6a108eb0fee0bd5b0a20f2f508727b44e887
2019-06-18 17:39:09 +02:00
Mark Goddard
0cf907bd00 Spruce up release notes for 12.2.0 release
Change-Id: I8b82a7caf64f5e56e4dcf9b4c2007f55d929863b
2019-06-18 13:23:39 +01:00
Mark Goddard
dcab7df395 Update API history and release mapping for 12.2.0
12.2.0 will be the first release in the Train cycle.

Change-Id: Ide12cb4f83f3216af82e0d1139dc2f4468f1e5cb
2019-06-18 11:33:28 +01:00
Dmitry Tantsur
12e45f314a Refactoring: flatten the glance service module
The current structure is designed to support several major versions.
However, we only support V2 and in the future will use openstacksdk
to abstract away major version differences.

Change-Id: I99bcb0650ac609ae9f0a8bcff70429eb4a3b7274
2019-06-18 12:23:11 +02:00
Dmitry Tantsur
dcfb4f10f3 Remove the deprecated glance authentication options
Also rename glance_num_retries -> num_retries with deprecation to
avoid redundant "glance".

Change-Id: I054ed79bfd3c908b3c3841f97b0d381a50280859
2019-06-18 12:00:47 +02:00
Zuul
88f26ae6fe Merge "DRAC: Adding reset_idrac and known_good_state cleaning steps" 2019-06-18 08:26:29 +00:00
Zuul
190dfead9c Merge "devstack: add missing variables for ironic-python-agent-builder" 2019-06-17 20:18:23 +00:00
Pradip Kadam
d02acfb3b2 DRAC: Adding reset_idrac and known_good_state cleaning steps
Added reset_idrac cleaning step in the iDRAC driver that resets
the iDRAC also added unit tests for the same.
Added known_good_state cleaning step in the iDRAC driver that
performs Reset the iDRAC, Clear the job queue to get the iDRAC
into a known-good state also added unit tests for the same.

Change-Id: I4be8b9da394c6957edb0e42040321b39145ab710
Story: 2005818
Task: 33562
2019-06-17 16:18:53 +00:00
Zuul
3f2c04079d Merge "redfish: handle missing Bios attribute" 2019-06-17 15:53:34 +00:00
Dmitry Tantsur
809653e126 devstack: add missing variables for ironic-python-agent-builder
The ones for ironic-python-agent itself are defined in devstack.
This changes adds similar variables for ironic-python-agent-builder
and migrates the ironic-python-agent ones here to avoid confusion.

Change-Id: Ic7eef9c8741ec2900401556f4053a4749b652d7c
2019-06-17 12:03:58 +02:00
Zuul
21f8bef807 Merge "Updates ironic for using ironic-python-agent-builder" 2019-06-17 05:59:35 +00:00
Zuul
db7bab8af6 Merge "Remove ipxe tags when ipx6 is in use." 2019-06-17 02:56:54 +00:00
Zuul
d68d6dc71d Merge "Update qemu hook to facilitate Multicast" 2019-06-17 02:54:42 +00:00
Julia Kreger
2fde1940b5 Remove ipxe tags when ipx6 is in use.
Turns out the dhcp server doesn't always do the right thing
and our duplicated tags seem to create confusion. So lets
remove them so ipxe6 will work.

Change-Id: I446cb814ae41cfd1e9a4ed45f27dac17e9b5bb61
Story: 2005885
Task: 33734
2019-06-14 21:22:50 +00:00
Julia Kreger
c59dc1386f Update qemu hook to facilitate Multicast
mdns AND IPv6 Neighbour Discovery Protocol use multicast packets
and the macvtap interface drops these packets by default.

Since there is no way to tell libvirt to make this better,
lets at least use the hook to make the macvtap interface
change such that multicast packets will pass.

With this, iPXE should work... and mdns should be testable in CI.

Change-Id: I397d211675fd7668b8fd19e989d740d6bad2c70e
2019-06-14 14:19:40 -07:00
Dmitry Tantsur
46884deba3 redfish: handle missing Bios attribute
Currently we log tracebacks on cleaning if a System doesn't have
a Bios attribute (seems the case for some Seamicro systems). This
patch turns it into a warning and provides correct handling of
such cases in other BIOS calls.

Also cleans up mocking in the BIOS tests since the current approach
can yield surprising results with error inheritance.

Change-Id: I34569806c3d34628b688661a3796e8d9b394135c
2019-06-14 12:23:53 +02:00
Zuul
9a1c552d0a Merge "Fix :param: in docstring" 2019-06-14 10:17:00 +00:00
zhu.fanglei
43f7bf9f0b Fix :param: in docstring
In docstring :param should be used instead of :param:.

Change-Id: Id531e58087b8196b30dda12aa4245a1eefd638ac
2019-06-14 14:23:57 +08:00
Zuul
a3b875ab23 Merge "Change constraints opendev.org to release.openstack.org" 2019-06-13 10:40:41 +00:00
Nisha Brahmankar
df5ac6d5bc Updates ironic for using ironic-python-agent-builder
Change-Id: Ic7a515eeda59b6611049c39978fda3ccbb162a45
Task: 33746
Story: 2005114
2019-06-13 03:54:43 +05:30
Dmitry Tantsur
c2ab34a8c7 Do not log an exception if Allocation is deleted during handling.
This is a normal situation and should not report a traceback.

Change-Id: I497d3aaae91e8aa87649323874121eb6e81c5fd8
2019-06-12 15:14:20 +02:00
Zuul
9a0bd8a774 Merge "Add release note updating status of smartnics" 2019-06-12 07:33:32 +00:00
Zuul
d1e842c4b4 Merge "Switch to use exception from ironic-lib" 2019-06-12 07:33:26 +00:00
Julia Kreger
6ca99d6730 Add release note updating status of smartnics
Smartnic support merged into Neutron a few weeks ago,
and as we downplayed the functionality during the Stein
cycle, we should highlight it during Train since it should
now be available.

Change-Id: I19372a0ede703f62940bbb2cc3a80618560ebc93
2019-06-11 14:14:44 -07:00
Zuul
7d204b6568 Merge "Bump lower mock version to 3.0.0" 2019-06-11 11:59:47 +00:00
Riccardo Pittau
f5dbf8ba0c Switch to use exception from ironic-lib
The exception modules in ironic and ironic-lib contain the same
almost identical class IronicException.
With this patch we directly use the one in ironic-lib.

Updating requirements and lower-constraints to use compatible
version of ironic-lib.

Also deprecating duplicated fatal_exception_format_errors
option.

Change-Id: I1ce0d12d912020346425fd658d3b1807607455a4
Story: 1626578
Task: 10515
2019-06-11 12:03:44 +02:00
tonybrad
87464fbbc3 Change constraints opendev.org to release.openstack.org
Change-Id: If7bd2c12398986874b2ba2e92f3fa37e4b365b93
2019-06-11 11:56:54 +08:00
Kaifeng Wang
caf925349a Incorporate bandit support in CI
Change-Id: I0ffe0c12e9e32f32d2b400b5756fc2148a2993a0
Story: 2005791
Task: 33518
2019-06-10 09:26:04 +08: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