6245 Commits

Author SHA1 Message Date
Yolanda Robla Mota
79c0c8ec58 Add lsblk to ironic-lib filters
This is needed to check the config-drive labels properly,
as the current way using blkid was failing under some use
cases. So we switched to lsblk instead.

Change-Id: I3676cd8e5c5e61fe4e3f67ab9e121c4cd0cd599b
2017-01-11 11:13:08 +01:00
Mario Villaplana
bbd0e96c4b Add docs about creating release note when metrics change
This adds a note to the metrics documentation that changing a metric
name or removing a metric will need a release note in the future. There
was consensus about this at the most recent ironic IRC meeting. [0]

[0] http://eavesdrop.openstack.org/irclogs/%23openstack-meeting-3/%23openstack-meeting-3.2017-01-09.log.html#t2017-01-09T17:26:33

Change-Id: Ibdb4fd39a654ea06a526f346358f88b291c4e7a4
2017-01-10 21:46:05 +00:00
Jenkins
f2d4d76b7d Merge "Update regenerate-samples.sh api-ref script" 2017-01-10 15:35:23 +00:00
Jenkins
8704d47eb9 Merge "Revert "Disable placement-api by default"" 2017-01-10 10:48:59 +00:00
Jenkins
aef6b85cf4 Merge "Remove greenlet useless requirement" 2017-01-10 02:36:35 +00:00
Jenkins
6e2e7a157c Merge "Add a NodePayload test" 2017-01-09 18:25:57 +00:00
Jenkins
d18ebbc3e2 Merge "Change object parameter of swift functions" 2017-01-09 16:32:33 +00:00
Jenkins
e20266131d Merge "Fixes grammar in the hash_partition_exponent description" 2017-01-09 00:26:39 +00:00
jiang wei
18acfae571 Change object parameter of swift functions
"object" is a built-in class name in python,
using it as a function argument name should
be avoided as it shadows the built-in.

Change-Id: Ic775eee07bba6aa919d9911a4e2d0f6b393b9ffc
2017-01-08 17:42:07 +08:00
Bertrand Lallau
710254d8b0 Remove greenlet useless requirement
This patch cleans up the requirements.txt list to remove greenlet
module not used anymore.

Change-Id: I879b0669b63d0ef34973f5993e1d77d15c5a6e10
2017-01-07 08:36:37 +01:00
Peter Kendall
4b4a44fe0f Fixes grammar in the hash_partition_exponent description
The description for the hash_partition_exponent configuration had dubious
grammar.  A sentance has been reworded.

Change-Id: I161183f5974686e7c92f92697b61c58fb6f77a26
Closes-Bug: 1490406
2017-01-06 17:04:47 -07:00
Jenkins
cb7ec631f0 Merge "Generic power interface for soft reboot and soft power off" 2017-01-06 20:36:43 +00:00
Jenkins
e64a0391cf Merge "Remove netaddr useless requirement" 2017-01-06 19:24:22 +00:00
Matt Riedemann
dc673e34b4 Revert "Disable placement-api by default"
This reverts commit be6f34c3388365f93c84671f07af7a1cffb6efd8

Now that the openstack/nova commit
3c217acb9c55d647ca362320d697e80d7cfa5ceb has landed. The issue is now
fixed and we can revert this change.

Change-Id: I6729706b13d49a277a2f037ea7ef00211d4a4ca9
Related-Bug: #1651678
2017-01-06 06:28:05 -08:00
Jenkins
1d37294b11 Merge "Remove service argument from tempest plugin client manager" 2017-01-06 06:35:02 +00:00
Vladyslav Drok
36bd9235a2 Remove service argument from tempest plugin client manager
It was removed as part of commit
e4be907e34e043888bb10b29655018dd2d4eb06e to tempest.

Also, fix python3 compatibility for API boolean type

This was throwing errors in the latest WSME on python 3.5, make it the
right string type instead. It must be squashed into this change because
each fixes a different CI job, and they can't land without each other.

Closes-Bug: #1654202
Change-Id: I5cefad7d9d8f6db51fd891ecce9879979c83baee
2017-01-06 03:29:00 +00:00
ericxiett
f8e1bc2f8b Fix the comma's wrong locations.
The locations of commas in JSON in docs/source/deploy/raid.rst
are not correct. This patch fixs it.

Change-Id: Ibda01aae45827d1e913bc76b1ee3aec99f97ccc9
Closes-Bug: #1654243
2017-01-05 20:09:50 +08:00
Bertrand Lallau
a4b2954233 Remove netaddr useless requirement
This patch cleans up the requirements.txt list to remove netaddr
module actually replaced by oslo_utils.

Change-Id: Ib454286350256b6141bc4a5c178b1ade73bd0223
2017-01-04 22:58:30 +01:00
Jenkins
9842f40187 Merge "Create a table to track loaded interfaces" 2017-01-04 12:18:27 +00:00
Jenkins
1cb779eff8 Merge "Clean up object code" 2017-01-04 02:56:50 +00:00
Jenkins
f969ff9c6b Merge "'updated_at' field value after node is updated" 2017-01-04 02:56:41 +00:00
Naohiro Tamura
f15d5b9a37 Generic power interface for soft reboot and soft power off
This patch updates the generic power interface to support SOFT_REBOOT
and SOFT_POWER_OFF. And also it introduces "timeout" optional
parameter for all power operations.

Partial-Bug: #1526226
Change-Id: I1c9bbd1f11f6a8565607c874b3c99aa10eeb62a5
2017-01-04 11:38:01 +09:00
Dmitry Tantsur
4fa2412d74 Create a table to track loaded interfaces
A helper table conductor_hardware_interfaces was created to track which
hardware types have which interfaces loaded on which conductors.

Partial-Bug: #1524745
Change-Id: Iae2f3fddb2441b6069c011cf8bf646943d34d0a4
2017-01-03 15:39:19 +01:00
licanwei
480d5be023 Remove trailing backtick
This patch is removing a trailing backtick (`) from the
baremetal-api-v1-node-management.inc document.

Change-Id: Ie1a8c0d15f169287d5b5d6b7cd5b190e87345869
2017-01-03 13:38:03 +00:00
OpenStack Proposal Bot
40870e44dd Updated from global requirements
Change-Id: Idc82d73a4bccdf24279f5591ddcb19907f97be5e
2017-01-01 12:08:50 +00:00
Jenkins
2c2fbab480 Merge "Remove 'fork' option from socat command" 2016-12-30 18:29:28 +00:00
Jenkins
89fa548671 Merge "Set access_policy for messaging's dispatcher" 2016-12-30 11:28:52 +00:00
Jenkins
4ba3429343 Merge "Wrap iscsi portal in []'s if IPv6" 2016-12-30 01:15:48 +00:00
Andrey Shestakov
cc88ce14db Remove 'fork' option from socat command
socat should not forks for each new connection.
After this change socat console will be available only for single user
connection and will be closed after user connection close.
To connect again, user should re-activate console.
This already covered in nova virt driver.

Also added timeout check for 600 sec for user's connection.

Change-Id: If92b3a9cff2d0fc1280f8e9dfc4bc8fa100c91ec
Closes-bug: #1611279
2016-12-29 19:13:31 +00:00
Jenkins
a5a1a31761 Merge "Catch unknown exceptions in validate driver ifaces" 2016-12-29 18:06:25 +00:00
Jenkins
e5fbfcfac2 Merge "Add Virtual Network Interface RPC APIs" 2016-12-29 17:28:19 +00:00
Jenkins
831f86d8b9 Merge "Fix wrong exception message when deploy failed" 2016-12-29 16:44:01 +00:00
Sam Betts
01374adc2f Add Virtual Network Interface RPC APIs
This patch adds the RPC API interfaces for the virtual network
interface API in order to abstract the task of assigning logical network
interfaces to physical network interfaces.

Since the OpenStack Newton release, Ironic provides an interface for
pluggable network implementations. Different network implementations may
want to handle how logical to physical network interface assignment
happens. To do this the new API calls into new functions on the network
implementation loaded for the specified node.

This is part 2 of 3, and adds vif_attach, vif_detach and vif_list
functions to the conductor manager and RPC API classes.

Co-Authored-By: Vasyl Saienko (vsaienko@mirantis.com)
Change-Id: I6c5a50016d12ad88b3c8175bc9b665e325e8df66
Partial-Bug: #1582188
2016-12-29 16:33:26 +02:00
Galyna Zholtkevych
3467da690f Catch unknown exceptions in validate driver ifaces
The method validate_driver_interfaces in conductor manager
catches only known exceptions. But some third-party can
break this method.

Adding catch of general Exception to this method to avoid
not desirable failure and write detailed information about
exception to result and logs.

Change-Id: Ia3105b21cd42396568317bb26ff4be22cf5c5649
Closes-Bug: 1646854
2016-12-29 16:26:07 +02:00
Jenkins
6de29dffbf Merge "Add Virtual Network Interface Driver APIs" 2016-12-28 22:16:43 +00:00
Jenkins
fcd0849df3 Merge "Add node console notifications" 2016-12-28 21:28:40 +00:00
Jenkins
d0450c1f5f Merge "Add node maintenance notifications" 2016-12-28 21:28:31 +00:00
Jenkins
13944b589d Merge "Add ironic resources CRUD notifications" 2016-12-28 18:47:06 +00:00
Jenkins
74a052858e Merge "Auto-set nullable notification payload fields when needed" 2016-12-28 18:37:39 +00:00
Jenkins
d6c6383369 Merge "Add storage_interface to base driver class" 2016-12-28 17:03:50 +00:00
Jenkins
59e327c4ad Merge "Add storage_interface to node DB table" 2016-12-28 17:03:41 +00:00
Vasyl Saienko
be6f34c338 Disable placement-api by default
With placement-api enablement Ironic jobs got into regression due to
[0]. The fix in Nova stuck at the decision phase [1]. Until Nova fix
issue permanently disable it in ironic to unblock CI.

[0] https://bugs.launchpad.net/ironic/+bug/1651678
[1] https://review.openstack.org/#/c/414214/

Change-Id: I658ec963761dd4c5111a98e77298a8974553e857
Related-Bug: #1651678
2016-12-28 09:48:58 +00:00
Jenkins
afaebfdb24 Merge "Updated from global requirements" 2016-12-27 15:58:25 +00:00
Vasyl Saienko
e7eb1e63c6 Update regenerate-samples.sh api-ref script
When regenerate-samples.sh called values like uuid, created_at,
updated_at, provision_state, power_state are updated automatically.
This patch ensures that they restored to original values to minimize
commit diff, as they are not related to change itself.

Add a waiter to wait for node state after update request to make sure
it was applied.

Removed unused anywhere files:
 * node-set-power-state.json
 * node-states-show-response.json

Change-Id: Iccff575990c9c06b6cc2cb60e93dd962bde46347
2016-12-26 14:21:18 +00:00
Jenkins
8dcaf82100 Merge "Configure tempest for multitenancy/flat network" 2016-12-24 19:23:29 +00:00
OpenStack Proposal Bot
557469b5b7 Updated from global requirements
Change-Id: I8eaceec4a9e54529d336d4f8c322e1867dd41bfd
2016-12-23 12:58:42 +00:00
Jenkins
93d895b4b4 Merge "Update dev-quickstart: interval value cannot be -1" 2016-12-23 12:20:00 +00:00
Sam Betts
9088891ce7 Add Virtual Network Interface Driver APIs
This patch adds the driver API interfaces for the virtual network
interface API in order to abstract the task of assigning logical network
interfaces to physical network interfaces.

Since the OpenStack Newton release, Ironic provides an interface for
pluggable network implementations. Different network implementations may
want to handle how logical to physical network interface assignment
happens. To do this the new API calls into new functions on the network
implementation loaded for the specified node.

This is part 1 of 3, and adds four new functions vif_attach, vif_detach,
vif_list, port_changed, portgroup_changed, get_current_vif to the base
network interface class, which should be overridden by network interface
implementations.

DHCP provider update_mac_address method was deprecated, network
interface port_changed() and portgroup_changed() should be used instead.

Co-Authored-By: Vasyl Saienko (vsaienko@mirantis.com)
Change-Id: I0b84cfd85557d18254697f2e539c583ea0f8e88c
Partial-Bug: #1582188
Closes-Bug: #1158684
2016-12-23 11:58:02 +00:00
Kyrylo Romanenko
065326c0f5 'updated_at' field value after node is updated
node.save() doesn't update object from db because 'updated_at'
field for the node is not up-to-date after a save().

Change-Id: I58076d71e5977dded3f5485f295b3235d467872d
Partial-Bug: #1281638
Co-Authored-By: Galyna Zholtkevych <gzholtkevych@mirantis.com>
2016-12-23 12:22:46 +02:00
Yuriy Zveryanskyy
294f974fe7 Add node console notifications
This patch adds node console notifications, event types are:
"baremetal.node.console_{set, restore}.{start, end, error}".
Developer documentation updated.

Change-Id: I3b3ac74607fd6e218fdf0ea3ff30964e527db399
Partial-Bug: #1606520
2016-12-23 08:51:54 +00:00