545 Commits

Author SHA1 Message Date
Jenkins
c02404089b Merge "Remove deprecated [ilo]/clean_priority_erase_devices config" 2017-04-05 22:38:19 +00:00
Jenkins
4444a7c456 Merge "Remove deprecated method build_instance_info_for_deploy()" 2017-04-05 16:58:30 +00:00
Jenkins
c074da7cf0 Merge "Node should reflect what was saved" 2017-04-05 16:34:08 +00:00
Ruby Loo
62c6377adf Node should reflect what was saved
After a node is saved to the database, we weren't updating the
Node object to reflect what was saved. This caused a problem
where the node's update_at field was incorrect. It was fixed
in 065326c0f55a73c99706148f7bfbbec87ea863bc by explicitly
setting node.update_at. However, that doesn't address other
node fields that may be out of sync.

The more correct fix would be to do a similar thing that (most
of) the other Objects do, which is for the node to update itself
via ._from_db_object().

Doing this revealed several incorrect tests and code in the conductor
and agent where changes to the node's dictionaries were incorrectly
being set and thus, not being saved. Those are fixed in this patch.

Change-Id: Ia84cd60c1a4eabcc1ad0a756124c338fa9f644c8
Closes-Bug: #1679297
Related-Bug: #1281638
2017-04-04 09:19:31 -04:00
Jenkins
65eaf280a5 Merge "Call clean_up_instance() during node teardown for Agent deploy" 2017-04-04 05:46:32 +00:00
Jim Rollenhagen
9186f7f192 Add release note for messaging alias removal
These were removed in 330ba8c502880a16db4d2673ab36358f559711ec but was
missing a release note. Add one in.

Change-Id: I34521c459805c8d4bce6830c0b31bd252df714fb
2017-04-03 11:05:44 -04:00
Shivanand Tendulker
d6ccfb0e9e Remove deprecated method build_instance_info_for_deploy()
The method build_instance_info_for_deploy in
ironic.drivers.modules.agent was deprecated in the Ocata cycle
(7.0.0). It is no longer supported. The method
build_instance_info_for_deploy() from
ironic.drivers.modules.deploy_utils should be used instead.

Change-Id: I88dfb0b84709ca3545bb4d4384bfad58ec2eb0a0
Closes-Bug: #1678902
2017-04-03 07:50:57 -04:00
Jenkins
73c29a4c66 Merge "Remove deprecated, untested ipminative driver" 2017-04-03 10:25:15 +00:00
Jay Faulkner
96eafdc866 Remove deprecated, untested ipminative driver
The ipminative driver was marked as unsupported on September 28, 2016,
and an email was sent to the list on March 9th, 2017 asking for
volunteers to run third-party CI to save the driver from deprecation.

Additionally, many ironic contributors who also deploy ironic have
reported instability while using this driver. For these reasons it's
being removed from the main ironic tree. If there are any users still
interested in this driver, they are invited to host it elsewhere.

Change-Id: I9bc9f4cbd916f040a636b967ec5556197ad3d8a8
Closes-bug: #1671532
2017-03-30 10:34:21 -07:00
Shivanand Tendulker
603ca46047 Remove deprecated [ilo]/clean_priority_erase_devices config
The configuration option [ilo]/clean_priority_erase_devices was
deprecated in the Newton cycle (6.1.0). It is no longer supported.
The option [deploy]/erase_devices_priority should be used instead.

Closes-Bug: #1677449
Change-Id: Ib9110e9bd395d4a87aeb3981073530fb59949a47
2017-03-30 01:59:24 -04:00
Jenkins
c7f4976d21 Merge "Allow to attach/detach VIFs to active ironic nodes" 2017-03-29 20:28:32 +00:00
Shivanand Tendulker
ef9300cb59 Call clean_up_instance() during node teardown for Agent deploy
Agent based deploy do not call boot.clean_up_instance() during node
teardown. This is required so that instance clean up can happen as
part of node teardown.

Change-Id: I6077b69f17ce462b6aae1b16fdb40158cf111c5e
Closes-Bug: #1676321
2017-03-28 09:18:36 -04:00
Derek Higgins
338651eae5 Copy and append to static lists
core_interfaces and standard_interfaces are both static members of BaseDriver
we need to take a copy of them before appending to them.

Change-Id: Ic6edc5e49a25849c7871dbc9e6e1d5a5eb229e57
Closes-Bug: #1672457
2017-03-27 16:50:28 +00:00
Jenkins
612e2051ed Merge "Validation before perform node deallocation" 2017-03-20 20:05:27 +00:00
Debayan Ray
677b48cb65 Update new proliantutils version to 2.2.1
This commit updates the proliantutils version required in Ironic
to 2.2.1. This version of proliantutils includes HPSUM firmware
update support and updation of requirements to match
global-requirements (required to fix third party CI gate jobs)

Change-Id: Ife96638b6262d22b3aa82155df3d7e4f525bd22b
2017-03-15 11:43:28 -04:00
Jenkins
187866c123 Merge "Cleanup hung iscsi session" 2017-03-14 11:44:59 +00:00
Vasyl Saienko
28ccbf79c4 Cleanup hung iscsi session
This patch ensure that there is no iscsi session left after
failed deployment.

Change-Id: I569933f27746da65b1d22ba9e9279439e2e792cf
Closes-Bug: #1632649
2017-03-13 20:52:55 +00:00
Matt Riedemann
e91f31663c Deprecate support for glance v1
Nova dropped support for glance v1 in Ocata and we're going
to disable glance v1 in CI runs for Pike. The glance v1
API is deprecated so we should start burning it out of the
system in all of the projects.

Closes-Bug: #1670423

Change-Id: I1398f81b28e1b000ee110c159e498b72e3746109
2017-03-13 14:32:51 -04:00
Jenkins
4f8afe8085 Merge "Remove overwriting the default value of db_max_retries." 2017-03-13 10:58:25 +00:00
Joanna Taryma
66b0bcfd08 Remove overwriting the default value of db_max_retries.
Remove overwriting the default value of db_max_retries, instead use
default value defined by oslo.db which is 20.
Adjust the default value of db_max_retries in the release note and sample
configuration file.

Closes-Bug: #1671629
Change-Id: I1e5f632d687c1cebab895cc91958d502b9fce884
2017-03-10 10:41:27 -08:00
Jenkins
4a8a0fd822 Merge "Fix updating node.driver to classic" 2017-03-10 12:42:41 +00:00
Xavier
0b23a041f1 Validation before perform node deallocation
Introduces a new validation to ensure the node deallocation
process will only be performed to nodes that have Server
Profile applied in OneView. When the allocation process
fails, the machine will have no Server Profile applied in
OneView and in ironic it will have no reference to any
Server Profile. Under these conditions if the deallocation
process be performed the driver will try to delete a
nonexistent Server Profile in OneView, leaving the node
in error state in ironic.

Change-Id: I83cef7fafac4e22ebf5eb4fe83f6da26ec132c99
Closes-Bug: #1657892
2017-03-09 14:04:24 -03:00
Vasyl Saienko
3d02084559 Fix updating node.driver to classic
An issue when it was impossible to update ``node.driver``
to classic if the current driver is one of hardware types.

Change-Id: I348a27a13d3025fe7e8ddfa31992b895a3809730
Closes-Bug: #1668579
2017-03-09 12:07:49 +02:00
Jenkins
e2e5340981 Merge "Fixed release note for DBDeadLock handling" 2017-03-07 16:22:30 +00:00
Jenkins
a6796ccae9 Merge "Clean up eventlet monkey patch comment and reno" 2017-03-06 23:37:17 +00:00
Joanna Taryma
a1f1cd8538 Fixed release note for DBDeadLock handling
Follow up patch of 3428cb74f0a6fe05c23cf00dc66da4c1d9766409

Add information about db_max_retries configuration option to the
release note. Add periods at the end of senteces in the release note.

Change-Id: I2811ce6976d020e32928773ecb872fefa05e10b7
2017-03-06 14:08:09 -08:00
Jay Faulkner
bb22ddd056 Delete release note to fix build
This release note was updated in master after the ocata branch was cut.
Doing this caused it to appear in both ocata and current-series release
notes. Removing the file from master will prevent it from showing up in
master anymore.

Change-Id: Ic1c7ec1483e92e15a82392d87874c08a7a03b710
Closes-bug: #1670401
2017-03-06 08:16:16 -08:00
Jenkins
2751ab9b81 Merge "Moved fix-socat-command release note" 2017-03-03 19:56:27 +00:00
Mario Villaplana
2751212eae Clean up eventlet monkey patch comment and reno
This is a follow up to I887a06566dcc2f09875f975f1e12ae4ff75fd348.

The release note tense is fixed, and more information is added about why
the change was necessary.

Change-Id: Ie89e21460a4a7654795830bf4781404ec506a52f
2017-03-03 18:16:57 +00:00
Joanna Taryma
547f23cd54 Moved fix-socat-command release note
Moved fix-socat-command release note to a proper directory
ironic/releasenotes instead of ironic/ironic/releasenotes

Change-Id: If2b2a54ceb00c29ae81c9b7ca672f163b1985cb7
2017-03-03 08:58:11 -08:00
Vasyl Saienko
b9ad3de19f Allow to attach/detach VIFs to active ironic nodes
This patch enhances attach/detach logic and allows to work with
active ironic nodes. Starting with this change when VIF is attach/detach
neutron port is updated appropriately to reflect changes on hardware
(ie: plug port to specific network)

Change-Id: Idc9dc37b11950e3aa2864a0a90d6ec2e307926a3
Related-Bug: #1659282
2017-03-02 18:11:14 +02:00
Yuriy Zveryanskyy
556b1d0871 Move eventlet monkey patch code
Eventlet monkey patching is not recommended on top level __init__ [1],
because Apache WSGI module uses own concurrency model [2] and API
service under Apache should be runned without eventlet. This patch
moves eventlet monkey patching code to ironic.cmd module __init__
(like in nova).

[1] https://specs.openstack.org/openstack/openstack-specs/specs/eventlet-best-practices.html
[2] http://modwsgi.readthedocs.io/en/develop/user-guides/processes-and-threading.html

Closes-Bug: 1608252
Change-Id: I887a06566dcc2f09875f975f1e12ae4ff75fd348
2017-03-02 13:48:18 +02:00
Jenkins
77b86f26c4 Merge "Add ironic port group CRUD notifications" 2017-02-28 22:22:41 +00:00
Jenkins
96683ea61d Merge "Add support for DBDeadlock handling" 2017-02-28 17:14:55 +00:00
Joanna Taryma
3428cb74f0 Add support for DBDeadlock handling
Wrap all DB write operations with oslo_db decorator to retry on
deadlock. DBDeadlock exception can be raised quite often on Galera
clusters under load.
This also fixes an issue which causes conductor's periodic
tasks to stop executing.

Closes-Bug: #1637210
Closes-Bug: #1639338
Co-Authored-By: Vladyslav Drok <vdrok@mirantis.com>
Co-Authored-By: Joanna Taryma <joanna.taryma@intel.com>
Change-Id: I61db83637adfd98a5394d1f570f3de4302c93497
2017-02-27 13:39:37 -08:00
Jenkins
397312efe1 Merge "Use specific end version since liberty is EOL" 2017-02-16 18:05:31 +00:00
Jay Faulkner
6561dc0777 Use specific end version since liberty is EOL
Liberty will never be released again, so I'm changing the 4.2.x to 4.2.5
(the last liberty release of ironic), as a followup to the
previous patch.

Change-Id: If38c01346282e1b9ea4fb2d5abfa010b8c27dba6
2017-02-16 17:36:32 +00:00
Yuriy Zveryanskyy
f9d9b334da Add ironic port group CRUD notifications
This patch adds notifications for create, update or delete
port groups. Event types are:
baremetal.portgroup.{create, update, delete}.{start,end,error}.
Developer documentation updated. "portgroup_uuid" field added to
port payload.

Closes-Bug: #1660292
Change-Id: I9a8ce6c34e9c704b1aeeb526babcb20a5b1261db
2017-02-15 11:42:45 +02:00
Jenkins
82099241cc Merge "Update release nodes for Ocata" 2017-02-14 18:57:53 +00:00
Jay Faulkner
bb3229e72b Update release nodes for Ocata
Updating release notes build to reflect Ocata release.

Change-Id: Idf4b72dcc79baf996eadbfacbe3ff4c1c26fbb13
2017-02-14 10:13:19 -08:00
Ruby Loo
52b38ee672 reno 'upgrades' should be 'upgrade'
This release note is missing from the generated release notes
because the content was put in the 'upgrades' section; which
doesn't exist. This changes it to be in the 'upgrade' section.

Change-Id: I23cf5fa1a6797579c368fb4033e9be46f612ec1e
2017-02-14 15:22:32 +00:00
Jenkins
2b92b53da8 Merge "Clean up release notes for 7.0.0" 2017-02-13 21:03:03 +00:00
Jim Rollenhagen
4dfde43b25 Clean up release notes for 7.0.0
Change-Id: I932157f80f58d17ce66df60fde31bb812f74d05f
2017-02-13 15:44:00 -05:00
Jenkins
16a8050502 Merge "Add a summary release note for ocata" 2017-02-13 16:09:42 +00:00
Jim Rollenhagen
ba980bda7b Add a summary release note for ocata
Change-Id: Ie4b12f1753274d25d1335df77cdc2c8aac5445db
2017-02-13 09:32:24 -05:00
Vasyl Saienko
a951e452e1 Walk over all objects when doing VIF detach
We apply specific rules when doing VIF attach, do not duplicate them
in vif_detach just walk over all port and portgroup objects.
This also fixes an issue when VIF was attached to port manually
(set vif_port_id key in port.extra) and it is impossible to detach
such VIF via v1/nodes/<node_ident>/vifs API.

Closes-Bug: #1663660

Change-Id: I70fe87bb4ae15a506fec705d10beaed572c0b45e
2017-02-13 11:30:13 +00:00
Nisha Agarwal
442849b7a7 Follow up patch for SNMPv3 support
Fixes the minor issues with SNMPv3 inspection

Closes-Bug: 1609622

Change-Id: Ic5c397e57060f4d6d01fa9f16f371408af7aae3e
2017-02-10 09:44:19 -08:00
Jenkins
744303d50a Merge "SNMP agent support for OOB inspection for iLO Drivers" 2017-02-10 12:59:10 +00:00
Jenkins
c1cc08702c Merge "Remove most unsupported drivers" 2017-02-10 09:41:41 +00:00
Jenkins
350dec88f7 Merge "No node interface settings for classic drivers" 2017-02-10 08:13:45 +00:00