9150 Commits

Author SHA1 Message Date
Dmitry Tantsur
2039138cfe Do not try to create temporary URLs with zero lifetime
A new option is introduced for that, which defaults to the deploy timeout
if it is set and to 1800 seconds if it is not.

Change-Id: I10e02919e40d25bd4411f2b6f98f9317d1cfb187
Story: #1653112
Task: #9707
2019-04-15 14:27:36 +02:00
Zane Bitter
00342d997c Docs: correct expected host format for drac_address
The iDRAC driver expects a hostname or IP address in the drac_address
field of the driver_info. Passing a URL does not work.

Change-Id: I999f84ef5d7bc4b10cb8cf8dabdeb1f17172e824
2019-03-28 14:10:55 -04:00
suichangyin
17a65c89bb Workaround for sendfile size limit
Fixes an issue when the image source is a local file, the image
will be truncated to 2G and fails deployment due to image corruption.

The issue originates from pysendfile, but local testing shows this
also applies to python3.5 os.sendfile().

Co-Authored-By: Kaifeng Wang <kaifeng.w@gmail.com>
Change-Id: I6263a5221fda0509fbd0b6195c079e5e22800a1b
Story: 2004556
Task: 28316
2019-03-28 14:58:10 +08:00
Zuul
cea5335837 Merge "Fix capabilities passed as string in agent prepare" 2019-03-24 19:02:02 +00:00
Zuul
f1bcaf7b80 Merge "Migrate ironic-grenade-dsvm-multinode-multitenant job to Ubuntu Bionic" 2019-03-23 01:31:15 +00:00
Dmitry Tantsur
ad6c2f7e5a Add versions to release notes series
Change-Id: I5458f0eb9621801cecaea836e0d07204f54fbf06
2019-03-22 15:04:32 +01:00
Zuul
03ef196e37 Merge "Imported Translations from Zanata" 2019-03-22 10:12:30 +00:00
Zuul
9f5ef7f643 Merge "Update master for stable/stein" 2019-03-22 10:12:25 +00:00
OpenStack Proposal Bot
944585151d Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I60972c217d0a41a8b66e4bffff7672af497bc7ae
2019-03-22 07:29:46 +00:00
Zuul
6518705276 Merge "Respect $USE_PYTHON3 settings for gunicorn" 2019-03-21 20:04:36 +00:00
8b86cdd902 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I7a50d8daf818b701603759bfca5265972a8eda93
Sem-Ver: feature
2019-03-21 20:01:53 +00:00
Zuul
d4d1a0132a Merge "Add systemd unit for vbmcd in devstack" 12.1.0 2019-03-21 15:39:12 +00:00
Zuul
971b1ed13e Merge "Add a non-voting metalsmith job for local boot coverage" 2019-03-21 14:14:21 +00:00
Zuul
5298b4ee3a Merge "Set boot_mode in node properties during Redfish introspection" 2019-03-21 14:14:16 +00:00
Riccardo Pittau
93a40e3fc7 Fix capabilities passed as string in agent prepare
The value of capabilities can be either a string or a dict.
There is a function to parse its value and provide a correct
output as expected and it should always be used when reading
node capabilities.

Change-Id: I789fffd5f67eddbe5058581f13d75320ca712897
Story: 2005280
Task: 30133
2019-03-21 15:13:34 +01:00
Zuul
3052d9a14c Merge "Workaround for postgres job with ubuntu bionic" 2019-03-21 13:19:10 +00:00
Zuul
7c0083ba7c Merge "Update dist filter for devstack ubuntu" 2019-03-20 19:58:22 +00:00
Ilya Etingof
f25a83b575 Respect $USE_PYTHON3 settings for gunicorn
When devstack is configured to use Py3, install and run gunicorn3
to make sure sushy-tools emulator is running under Py3.

Change-Id: If38ef523a8616084f8f715fe247d8a3c8142bf62
2019-03-20 18:53:43 +01:00
Ilya Etingof
62d40c17e5 Add systemd unit for vbmcd in devstack
Besides managing vbmcd from systemd, this patch fixes a bug
in vbmcd handling.

The bug was that devstack runs ironic plugin under user `stack`, but
preserving superuser environment by means of `su -p`. That makes
`vbmcd` expanding tilda into `/root`, attempting to write into that
directory and failing miserably.

On top of that, all this happens when `vbmc` tries to invoke `vbmcd`
under the hood to preserve backward compatibility of the `vbmc`
behaviour before `vbmcd` was introduced.

This patch:

* adds systemd unit file for vbmcd
* invokes `vbmcd` explicitly before everything else and
* does that before becoming root and `stack` again

The `vbmc` tool can still run in a broken environment
for as long as it does not depend on the config file.

Change-Id: I6670ea50d126065d0472e558943890d4f9313083
2019-03-20 18:49:17 +01:00
Riccardo Pittau
da966c9873 Workaround for postgres job with ubuntu bionic
Adding a firewall rule as workaround to help TFTP traffic
necessary for Ironic to work with PXE on Ubuntu Bionic.
Inspired by https://review.openstack.org/643570
Thanks Harald!

Depends-On: https://review.openstack.org/642507

Change-Id: I314f7b436827c318c3ccec22eb85cf4d4ac695df
2019-03-20 16:38:35 +01:00
Zuul
1027dbab51 Merge "Add release note on conntrack issue on bionic" 2019-03-20 12:45:53 +00:00
Zuul
dd0f3df29f Merge "Update release-mappings and api version data for Stein release" 2019-03-20 12:32:33 +00:00
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
Riccardo Pittau
e3c606d4ef Add release note on conntrack issue on bionic
Adding a release note explaining the issue with Ironic CI
and conntrack on ubuntu bionic.

Change-Id: Ie25c8d9117072020bb84a5c6e6f63191ff632870
2019-03-19 16:46:06 +01:00
Julia Kreger
b805491c9b Update release-mappings and api version data for Stein release
Also included the object information for 12.0, which was released
during the stein cycle.

Change-Id: I9aec8095a7844f0568b40c7cdf1e07e6dc024770
2019-03-19 13:59:21 +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