9122 Commits

Author SHA1 Message Date
Zuul
35824fbcbc Merge "Advance python-dracclient version requirement" 2019-03-20 11:29:01 +00:00
Zuul
2288990c7b Merge "Optimize: HUAWEI iBMC driver utils" 2019-03-19 17:51:26 +00:00
Zuul
5b4c929c96 Merge "Update doc for UEFI first" 2019-03-19 13:27:39 +00:00
zhu.fanglei
320a61b685 Pass kwargs to exception to get better formatted error message
This is to pass kwargs to NodeNotFound, and to fix kwargs for
MissingParameterValue, to get better formatted error message.

Change-Id: I0efae0ed94741ebf7ca77904cc1e34230e65d5d5
2019-03-19 14:21:32 +08:00
Zuul
ce110c5fb5 Merge "Set boot_mode in node properties during OOB Introspection" 2019-03-19 02:36:57 +00:00
Richard Pioso
ed04e8e4a0 Advance python-dracclient version requirement
python-dracclient versions 1.5.0 and later are required for a bug fix to
the idrac hardware type which assigns ports' pxe_enabled flags during
out-of-band inspection [1].

[1] https://review.openstack.org/#/c/617951

Change-Id: Iead9f0272d5cdd57c8837826ad340e11f5bcae15
2019-03-18 21:10:20 -04:00
Zuul
42f5e15bf2 Merge "Add prelude and update release notes for 12.1.0" 2019-03-18 15:35:36 +00:00
Julia Kreger
c76254776b Add prelude and update release notes for 12.1.0
Some minor clean-up of already merged release notes for
improved clarity/message consistency.

Change-Id: I937ac31f3c939ae2c53cefd65394b7af02485642
2019-03-18 06:26:56 -07:00
Zuul
244a533800 Merge "Deploy Templates: factor out ironic.conductor.steps" 2019-03-18 13:16:41 +00:00
Qianbiao NG
da0de5c301 Optimize: HUAWEI iBMC driver utils
Shorter the validation logic of `ibmc_verify_ca` driver info property.

Change-Id: I779bfe1b535bce57ec437ea044fee00c9f9d9a22
2019-03-18 15:56:48 +08:00
Rachit7194
a79b150ea7 Set boot_mode in node properties during OOB Introspection
During OOB Introspection, it adds boot mode as capability
in node properties so that after preparation of overcloud
nodes it will show which node has uefi or bios boot mode
properties respectively.

Change-Id: Iad8060fa13e37a2fa78d998c56d132b11ff948cf
Story: 2005119
2019-03-16 05:15:22 -04:00
Zuul
f944f60041 Merge "Add Huawei iBMC driver support" 2019-03-15 16:59:23 +00:00
Mark Goddard
c11f45bdda Fix idrac driver unit test backwards compat issue
Since commit 8bd3c531a0ef7282cc8a0daac9f71bb18b6a9532, the idrac driver
unit tests use real named tuple objects from the dracclient library, if
available. This added a coupling to a specific set of versions of that
library, since the correct set of fields for each object must be
specified.

This change uses the namedtuple._fields field to build a list of fields
appropriate to the library version. Missing fields are filled in with
None, and unsupported fields are ignored.

Change-Id: I5b9b64e5aa4fe96e056c8b010bf8a448c72f996f
2019-03-15 10:40:15 +00:00
Mark Goddard
56acabfab4 Deploy Templates: factor out ironic.conductor.steps
There is enough steps code in conductor.utils to warrant a separate
module.

Change-Id: I0126e860210bbc56991876f26e64d81d3d7d5c08
Story: 1722275
Task: 29902
2019-03-15 10:10:45 +00:00
Zuul
f5a983e04e Merge "Deprecates hash_distribution_replicas config option" 2019-03-15 08:38:15 +00:00
Zuul
e607a3e3db Merge "Make metrics usable" 2019-03-15 06:09:59 +00:00
Zuul
d1fdf64313 Merge "Kg key for IPMIv2 authentication" 2019-03-15 05:02:59 +00:00
Julia Kreger
b5d44d3aaf Make metrics usable
Metric notifications were hard coded with a value indicating
"ipmi" for all hardware types and management interfaces which
offer sensor data to be transmitted as a metric notification.

Also adds a node_name field to allow processors to leverage
the node name as opposed to needing ironic API or database access
to construct enough data to make metrics notifications usable.

Change-Id: I1116bd5812f3715bd7d6d1bf34df932f81702147
2019-03-14 15:29:04 -07:00
Zuul
e30a0fc03d Merge "Deploy Templates: documentation" 2019-03-14 21:24:54 +00:00
Zuul
83231aa771 Merge "Deploy Templates: API reference" 2019-03-14 21:24:45 +00:00
Zuul
8bd3c531a0 Merge "Fix idrac Job.state renamed to Job.status" 2019-03-14 21:24:38 +00:00
Nikolay Fedotov
82704e6d8d Kg key for IPMIv2 authentication
Support for the -y option of ipmitool

Quote from docs:
-y <hex key>
Use supplied Kg key for IPMIv2 authentication. The key is expected
in hexadecimal format and can be used to specify keys with non-printable
characters. E.g. '-k PASSWORD' and '-y 50415353574F5244' are equivalent.
The default is not to use any Kg key.

Change-Id: Ie6a9fc1a41d924e30eff526b3eae929ce6e085c6
Story: #2005158
Task: #29876
2019-03-14 19:41:21 +00:00
Julia Kreger
3f734c8728 fast tracked deployment support
Provides a facility to minimize the power state changes of
a baremetal node to save critical time during deployment
operations.

Story: #2004965
Task: #29408
Depends-On: https://review.openstack.org/636778
Change-Id: I7ebbaddb33b38c87246c10165339ac4bac0ac6fc
2019-03-14 10:34:31 -07:00
Zuul
9625b8aa71 Merge "Deploy templates: conductor and API nits" 2019-03-14 16:36:52 +00:00
Zuul
b2a48fab36 Merge "Adding ansible python interpreter as driver_info" 2019-03-14 16:00:20 +00:00
Zuul
89ac1d4ec0 Merge "Fix misuse of assertTrue" 2019-03-14 15:44:34 +00:00
tiendc
3c5307df2a Update doc for UEFI first
This patch moves the doc of PXE UEFI setup prior to PXE BIOS.
The two parts require TFTP server to be set up, so this splits
and separates the doc of that part.

Change-Id: If27c2743cd6b1b2746143c8f7c933d6eab27a99b
Story: 2003936
Task: 27713
2019-03-14 19:46:58 +07:00
Kaifeng Wang
2eceb3c8ab Fix lower-constraints job
lower-constraints job is broken due to fail to install psycopg.

Spotted log:

http://logs.openstack.org/02/642402/6/check/openstack-tox-lower-constraints/ca317fe/job-output.txt.gz#_2019-03-14_01_51_01_006156

Add libpq-dev to the bindep and bump psycopg version to >= 2.7 as evidence
shows it has a bug to support PostgreSQL >= 10.0 [1]

[1] https://github.com/getredash/redash/pull/2111

Change-Id: I1d5f0dab41638be1df9d63ede267f5a6d9f8c566
2019-03-14 17:24:09 +08:00
Mark Goddard
82cd13177c Fix idrac Job.state renamed to Job.status
In python-dracclient 0.1.0, the Job.state field was renamed to
Job.status. The old name was left for backwards compatibility, but was
removed in python-dracclient 2.0.0.

This change uses the new field name, to avoid an AttributeError in
python-dracclient 2.0.0 onwards.

Also modifies the drac unit tests to use the Job, RAIDController,
PhysicalDisk and VirtualDisk objects from the dracclient library when
available.

Change-Id: I074347748e1ce0f749f47ce30d4cb123a70dc2b8
Story: 2005225
Task: 30007
2019-03-14 08:22:35 +00:00
Varsha
9c266df8be Deprecates hash_distribution_replicas config option
The `hash_distribution_replicas` was an experimental feature. It accounted for
the number of hosts to map onto each hash partition and caused a couple of bugs.

Story: #1680160
Task: #10585

Change-Id: I72c19b46f63b139a1a4b1fd0f6c41a1e62e65383
2019-03-14 12:33:01 +05:30
Qianbiao NG
f1f4f892fe Add Huawei iBMC driver support
This patch proposes to adding iBMC driver for deploying the
Huawei 2288H V5, CH121 V5 series servers.
The driver aims to add management and power interfaces using
Huawei iBMC RESTful APIs for those series servers.

Change-Id: Ic5e920e4e58811c6a6dfe927732595950aea64e7
Story: 2004635
Task: 28566
2019-03-14 11:04:29 +08:00
Takashi NATSUME
618b94c717 Fix misuse of assertTrue
Replace assertTrue with assertEqual.

Change-Id: I8bfbd171b3fb0d07b666420592df37392aad405c
Story: 2005228
Task: 30010
2019-03-14 09:39:25 +09:00
Zuul
c9556d8b51 Merge "Return 405 for old versions in allocation and deploy template APIs" 2019-03-13 20:17:38 +00:00
Zuul
c50ee33b3b Merge "Add python3 unit test with drivers installed" 2019-03-13 20:17:36 +00:00
Mark Goddard
cfc4a6f752 Allow methods to be both deploy and clean steps
This means we can add clean_step and deploy_step decorators to a driver
interface method.

Change-Id: Ic964ec706349a74ff371d91b1d7203d942c81fb0
Story: 2005223
Task: 30005
2019-03-13 16:29:09 +00:00
Zuul
601ab180b3 Merge "honor ipmi_port in serial console drivers" 2019-03-13 13:48:14 +00:00
Zuul
312006213e Merge "Fixing a bash test in devstack ironic lib" 2019-03-13 13:07:15 +00:00
Zuul
9359a9cf2e Merge "Follow up to available node protection" 2019-03-13 13:07:09 +00:00
Zuul
6c3a73d325 Merge "[docs] IPv6 support for iLO" 2019-03-13 10:55:43 +00:00
Riccardo Pittau
80e762e18a Adding ansible python interpreter as driver_info
This patch grants the possibility to change the ansible python
interpreter used on remote managed machines as per-node
driver_info option.
Follw-up of https://review.openstack.org/641376

Change-Id: Ic1a994970a5aef5bbbbaaa747818e7ac402912ad
Story: 2005159
Task: 29915
2019-03-13 11:15:16 +01:00
Mark Goddard
7480e581d9 Return 405 for old versions in allocation and deploy template APIs
This is the response given by ironic's API for POST, PATCH or DELETE
against unsupported endpoints. New endpoints with old microversions
should do the same.

Change-Id: Ife4077fd52ff14597c4bee588b914685bdd3d95f
Depends-On: https://review.openstack.org/642759
2019-03-13 10:05:12 +00:00
Lars Kellogg-Stedman
70d7bb369a honor ipmi_port in serial console drivers
teach the ipmitool driver about _get_ipmitool_args and use that in all
cases that we want to build an ipmitool command line.   this solves
the problem that the serial console drivers were failing to honor the
ipmi_port setting in driver_info, while it was being correctly used
for power state, etc.

Change-Id: Ifbf6a92c2305567985cfbc41dbf76a076ecb8a7b
Story: 2005138
Task: 29826
2019-03-13 11:00:12 +01:00
Zuul
237f28f910 Merge "Fix formatting issue in doc" 2019-03-13 04:43:41 +00:00
Zuul
dab77454a9 Merge "Document building configdrive on the server side" 2019-03-13 04:39:06 +00:00
Zuul
fa89028e64 Merge "Fix missing print format error" 2019-03-13 04:39:04 +00:00
Kaifeng Wang
7e9ff1d6bf Follow up to available node protection
Turns [deploy]allow_deleting_available_nodes to a mutable option,
so that it can be changed without service restart.

Change-Id: Ia6d51994441ec7367bc2eba76c47d5f3c425a837
Story: 2005060
Task: 29604
2019-03-13 09:44:21 +08:00
Mark Goddard
e4cce6759a Deploy templates: conductor and API nits
Fixes nits from https://review.openstack.org/#/c/634732 and
https://review.openstack.org/#/c/631845.

Change-Id: I3da177cffca19c024850be675137cbeb4de31758
Story: 1722275
Task: 28675
Task: 28677
2019-03-12 18:22:33 +00:00
Mark Goddard
89c58cbb6a Deploy Templates: documentation
Adds documentation for the deploy templates feature added in ironic API
version 1.55.

Change-Id: I7bedb9598e9b374bc4d2140eac02bb81fe5a18f9
Story: 1722275
Task: 29962
2019-03-12 17:09:15 +00:00
Riccardo Pittau
fac7384b48 Fixing a bash test in devstack ironic lib
This patch corrects the syntax of a test inside the devstack
ironic lib.

Change-Id: Id3e6b005a99235589cea4db4cc96c23fd8fe703a
2019-03-12 17:11:48 +01:00
Mark Goddard
9672cb73d2 Deploy Templates: API reference
Change-Id: I14716e6023dd09096e17e60c7d02230ecb3e7150
Story: 1722275
Task: 28680
2019-03-12 15:43:12 +00:00