1246 Commits

Author SHA1 Message Date
Zuul
1c0d20d6b0 Merge "Ansible module: fix clean error handling" 2019-04-13 01:16:11 +00:00
Zuul
b63adabc34 Merge "Make it possible to send sensor data for all nodes" 2019-04-12 21:25:02 +00:00
Zuul
e2e94e1307 Merge "Ansible module: fix partition_configdrive.sh file" 2019-04-11 16:07:26 +00:00
Raphael Glon
84741e9409 Ansible module: fix partition_configdrive.sh file
Images with GPT partition tables could not be deployed correctly
The if condition could never be met due to an invalid syntax, leading to
partitioning failure

Change-Id: I11202b115f9b80e8c853dca36cc66ab0eb8f7dea
Story: #2005357
Task: #30317
2019-04-11 09:54:33 +00:00
Raphael Glon
df5261bb34 Ansible module: fix clean error handling
It should not be up to the driver to handle the error. The error should
reach the manager. Moreover, handling the error in the driver and
returning nothing caused the manager to consider the step done and go to
the next one instead of interrupting the cleaning workflow

Change-Id: I3825838b5507bc735d983466aa3cac0edd4dfaca
Story: #2005357
Task: #30315
2019-04-08 11:10:19 +02:00
Zuul
46533ebea2 Merge "Add a request_timeout to neutron" 2019-04-05 13:56:16 +00:00
Julia Kreger
56bec518b6 Add a request_timeout to neutron
Neutron's pre-commit processing can take some time
and even exceed 30 seconds in CI. Lets make it 45 and
have an explicit timeout passed for the request handling
to be setup with the python-neutronclient initialization.

Change-Id: I9947656c959af2128e7dbf30ba6b38cc2af35dae
Story: 2005371
Task: 30347
2019-04-04 09:39:07 -07:00
Raphael Glon
732bbd851d Ansible module fix: stream_url
python-requests api misused (invalid kw).
raw images could not be streamed correctly down to the host

Change-Id: I2a2d9bd92899c4d93bf7bceefa9a01d80328b762
Story: #2005357
Task: #30316
2019-04-04 11:17:49 +02:00
Julia Kreger
68ba345520 Make it possible to send sensor data for all nodes
Presently the data collection defaults to only permit
sensor data to be collected and transmitted as notifications
for instances deployed via nova, however standalone operators
or general data center operators may find the sensor data
useful to identify undeployed failing hardware and overall
check the hardware health.

Adds a boolean to control the filter being set for a deployed
node.

Change-Id: I345f6e3a9f47d8d09ea488d64927fd0c5fb7dfc7
2019-04-02 16:00:22 -07:00
Julia Kreger
418a5668a4 ipmi: Ignore sensor debug data
When the conductor has debugging enabled, that command is
passed to ipmitool to enable debugging of other commands.

However, this means tons of extra data is dumped as part of
the sensor data collection for ironic, which breaks string
parsing and ultimately metrics collection.

Since we can identify these lines, lets ignore them.

Change-Id: Ife77707210f8289d8f2e0223fb9ee1909d798546
Story: 2005332
Task: 30267
2019-03-29 17:37:21 +00: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
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
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
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
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
1027dbab51 Merge "Add release note on conntrack issue on bionic" 2019-03-20 12:45:53 +00:00
Zuul
35824fbcbc Merge "Advance python-dracclient version requirement" 2019-03-20 11:29:01 +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
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
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
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
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
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
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
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
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
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
Zuul
68afa6d8e6 Merge "Stop requiring root_gb for whole-disk images" 2019-03-11 16:17:31 +00:00
Dmitry Tantsur
40b55416a8 Stop requiring root_gb for whole-disk images
This parameter makes no sense for them and is actually ignored after
validation. This change makes it optional (still allowed for backward
compatibility). Also cleanly separate validation code for partition and
whole-disk images.

Change-Id: I98da7d54cc6dd158d415e83c61659badc83fbeda
Story: #2005165
Task: #29895
2019-03-08 14:01:27 +01:00
Ilya Etingof
a808735937 Set boot_mode in node properties during Redfish introspection
If Redfish OOB inspection returns current boot mode of the
node, add this boot mode into node properties/capabilities.

The idea behind this change is to align with the in-band
inspection behavior [1].

1. https://docs.openstack.org/ironic-inspector/ocata/usage.html#boot-mode

Story: 1668487
Task: 29855
Change-Id: I11de35fa87512d12eb6a259b26e88cd94e4a803d
2019-03-08 08:18:48 +01:00
Riccardo Pittau
c8ece0c625 Add option to set python interpreter for ansible
This patch adds the option to configure the python interpreter
that is used when deploying machines using the ansible deploy
interface.

Also set the default interpreter for tinyipa image with
ansible deploy interface to /usr/bin/python3 on devstack
and marks ironic-standalone job as voting again.

Change-Id: I8eb58fb00980c9e8946e3b3ef77611a9f5212668
Story: #2005159
Task: #29877
2019-03-07 18:40:06 +01:00
Zuul
faf0bccbb0 Merge "Fix TypeError: __str__ returned non-string (type ImageRefValidationFailed)" 2019-03-07 04:41:20 +00:00
Dmitry Tantsur
3e1e0c9d5e Allow building configdrive from JSON in the API
Extend the API with the ability to build config drives from meta_data,
network_data and user_data, where meta_data and network_data are JSON
objects, and user_data is either a JSON object, a JSON array or
raw contents as a string.

This change uses openstacksdk (which is already an indirect dependency)
for building config drives.

Change-Id: Ie1f399a4cb6d4fe5afec79341d3bccc0f81204b2
Story: #2005083
Task: #29663
2019-03-05 19:14:56 +01:00
Dmitry Tantsur
245af384ff Fix TypeError: __str__ returned non-string (type ImageRefValidationFailed)
This change contains two fixes for the same issue:
* Do not pass an instance of ImageRefValidationFailed as a message
  to an exception constructor.
* Make sure that IronicException.__str__ always returns an str,
  even when a non-string is passed as the first argument to __init__.

Change-Id: I96edb28955e64915e9d6a481634857fd27690555
Story: #2003682
Task: #26206
2019-03-04 13:16:17 +01:00
Mark Goddard
ec2f7f992e Deploy templates: API & notifications
Adds deploy_templates REST API endpoints for retrieving, creating,
updating and deleting deployment templates. Also adds notification
objects for deploy templates.

Bumps the minimum WSME requirement to 0.9.3, since the lower constraints
job was failing with a 500 error when sending data in an unexpected
format to the POST /deploy_templates API.

Change-Id: I0e8c97e600f9b1080c8bdec790e5710e7a92d016
Story: 1722275
Task: 28677
2019-03-04 10:30:16 +00:00
Zuul
b277be27a9 Merge "Deprecate Cisco drivers" 2019-02-28 18:49:36 +00:00