4566 Commits

Author SHA1 Message Date
Jenkins
f5e43ce1d3 Merge "add wipefs to ironic-lib.filters" 2016-03-02 16:03:00 +00:00
Jenkins
97cd38b450 Merge "[devstack] set ipa-debug=1 for greater debugability" 2016-03-02 10:04:30 +00:00
Jenkins
43c738a196 Merge "Clean up driver loading in init_host" 2016-03-02 09:44:35 +00:00
Jenkins
0fd7a68b07 Merge "Follow up nits of 3429e3824c060071e59a117c19c95659c78e4c8b" 2016-03-02 08:04:15 +00:00
Jenkins
f19e4d6ce2 Merge "Follow up nits of irmc oob inspection" 2016-03-02 02:52:55 +00:00
Jenkins
b9fa1172f5 Merge "API to list nodes using the same driver" 2016-03-02 02:38:11 +00:00
Jim Rollenhagen
22aa8a9eb4 Clean up driver loading in init_host
init_host currently sets self._driver_factory and self.drivers, but
those aren't used elsewhere in the code. Don't set them as instance
attributes, but rather let them be discarded after init_host.

Additionally, BaseConductorManager._get_driver appears to be a copy of
driver_factory.get_driver; just proxy over to the driver_factory method
instead.

As tests appear to enforce ordering of the drivers in init_host, use an
OrderedDict in driver_factory.drivers() to maintain this. I don't
believe this is required for correctness, however I don't intend to
change behavior in this patch.

Change-Id: I861980d4402a7b0744376c274ce15631547368f3
2016-03-01 15:39:55 -08:00
Gonéri Le Bouder
6569cdbe14 add wipefs to ironic-lib.filters
I39637e22c344703ad48fc271f6f866aa018bbdd1 introduces the use of wipefs
to clean a disk, this through the ironic_lib.disk_utils module. wipefs
has been added to ironic_lib's rootwrap filter filter as expected.

We need to keep this one in sync because:
- of the gate: devstack uses it instead of the one from ironic_lib
- to preserve exsisting deployed installation where ironic_lib's filter
  is not properly deployed yet.

This commit also comes with a NOTE message to explain the situation.

Change-Id: Id69706d7a78ff37a360cc23d6a076bc13bbdf14c
2016-03-01 13:07:43 -05:00
OpenStack Proposal Bot
5b37b78bc2 Updated from global requirements
Change-Id: I8f967d085db62f7c7dd653abadde7ece6e6533ec
2016-03-01 16:51:05 +00:00
Béla Vancsics
053584c982 Use assertEqual/Greater/Less/IsNone
Instead of using assertFalse(A * B) / assertTrue(A * B),
developers should use assertEqual/NotEqual/Less//Greater
The * operator: '==', '<', '>'

Change-Id: Ic4952ee034c8c8f6da70403cb767bb027058eeb0
2016-03-01 11:54:52 +01:00
Zhenguo Niu
d8fa64b882 Follow up nits of 3429e3824c060071e59a117c19c95659c78e4c8b
Explicitly point out the 'periodic_interval' option is in seconds,
which will be more clear.

Change-Id: I890752606721071016328bc4b036ada9afd9eac5
2016-03-01 18:09:19 +08:00
Kan
d3859a79ba API to list nodes using the same driver
Add API to list nodes using the same driver.

Change-Id: I998d6a0a6da44487d5ba90dafd417d81d1c7e504
Partial-Bug: #1530626
2016-03-01 09:59:48 +00:00
Dmitry Tantsur
1accb30c2e [devstack] set ipa-debug=1 for greater debugability
Change-Id: I87ba83fbc2b08035f2f58080642bcbda364fc7dd
2016-03-01 10:35:32 +01:00
Jenkins
4ab25b5a04 Merge "Add db api layer for CRUD operations on node tags" 2016-03-01 09:32:22 +00:00
Jenkins
f406899e7e Merge "Set node last_error in TaskManager" 2016-03-01 09:12:07 +00:00
Jenkins
a51a7c2ea0 Merge "[Devstack]Add ability to enable ironic node pty console" 2016-03-01 06:56:54 +00:00
Jenkins
502d8c3011 Merge "Loose python-oneviewclient version requirement" 2016-02-29 20:46:42 +00:00
Jenkins
af46911650 Merge "Enable removing name when updating node" 2016-02-29 16:43:29 +00:00
Gabriel Assis Bezerra
146eaad257 Loose python-oneviewclient version requirement
The previous requirement was restricting any upgrade in the minor
version field of the python-oneviewclient library. According to
semver, only changes in major version field denote backwards
incompatible changes.

This patch changes the current upper limit from <2.1.0 to <3.0.0 --
where backwards incompatible changes are expected.

Change-Id: Id8880ad7cafaee1818a8aef6cbaec98b534b0ab1
2016-02-29 15:28:44 +00:00
Yuriy Zveryanskyy
5b619b7d29 Set node last_error in TaskManager
Exception might be raised as result of async worker thread execution
but thread does not set last_error field. Add a functionality to
write error message to last_error in TaskManager for that case.
Typical use cases: quick debug, help with vendor's methods.

Change-Id: I98e287fa8438c833ee3834409f872304323b0373
2016-02-29 16:20:03 +02:00
Naohiro Tamura
c52dfb2957 Follow up nits of irmc oob inspection
This patch follows up nits of the commit [1], that includes exception
message update and release note typo fix.

[1] 37590a86338e94845c74e1b1f7d8d6f61003d447

Change-Id: I07de363d37dcd2bdd58a492e731c565094a5b5d3
2016-02-29 11:42:06 +09:00
Kan
47e18981b4 Enable removing name when updating node
Name is an optional property and should be removable(set back to None).
Enable removing name when updating node with 'remove name' argument.
Also add test cases for that.

Change-Id: Ie89b6bd80ac773b357861ca8dc77f72fdc137aed
Closes-Bug: #1533248
2016-02-26 09:18:14 +00:00
Zhenguo Niu
c1a8606095 Add db api layer for CRUD operations on node tags
- set/unset node tags
- get node tags
- add/delete single tag
- check whether node tag exists
- Delete all tags attached to the node when it's destroyed

This will not support creating node with tags, just ignore
the specified tags.

Change-Id: Ibe83a726d904fd33b8550c8bec134cf05644560e
Partial-bug: #1526266
2016-02-26 10:27:11 +08:00
Shivanand Tendulker
6af9da97e1 Update proliantutils version required for Mitaka release
This commit updates the proliantutils version required in Ironic
to 2.1.6 for Mitaka release. This version of proliantutils
includes defect fixes and feature enablement related to iLO based
firmware upgrade.

Change-Id: Ic895dcbf70fa0cc02d49e17bc8e9d2de40ab9ec8
2016-02-25 10:51:16 -08:00
Jenkins
36970f97f9 Merge "Add manual cleaning to documentation" 2016-02-25 17:05:50 +00:00
Lucas Alvares Gomes
8e206ff735 Add deprecated_for_removal config info in ironic.conf.sample
Configuration options has a parameter called "deprecated_for_removal" to
indicate that one option is planned to be removed in a future release.
This patch is extending the config generator script to add this
information to the output .sample file.

Change-Id: I3d3a69ea9ca700edf96ede947ff7b074e7978484
Closes-Bug: #1549351
2016-02-25 10:14:58 +00:00
Lucas Alvares Gomes
84b09fef11 Update ironic.conf.sample
Change-Id: I0f82d94ff234cc3b78f0cbcac913dff0edca30c0
2016-02-25 10:14:02 +00:00
Jenkins
33b4bf8542 Merge "Move _from_db_object() into base class" 2016-02-24 23:55:49 +00:00
Davanum Srinivas
b0ae5e9f2d Tolerate roles in context.RequestContext
In Ia575ba803a0fb70f39146bd75d381ed19414bd23, oslo.context
added roles support in the context itself. Once that change
is released in oslo.context and the global requirements has
been updated, we should switch to passing in the roles in
the __init__ parameter. Until then we should set
self.roles *after* the constructor since the constructor
sets the roles to None when the new library gets released.

Closes-Bug: 1549317
Change-Id: Ie28a4144ccac5d6894405ba7f801617376e35c51
2016-02-24 10:27:06 -08:00
Jenkins
59c4960417 Merge "Switch to Futurist library for asynchronous execution and periodic tasks" 2016-02-24 16:22:00 +00:00
Dmitry Tantsur
3429e3824c Switch to Futurist library for asynchronous execution and periodic tasks
This change switches the conductor to using Futurist library executor and
periodic tasks worker instead of oslo.service periodic tasks. This allows
running periodic tasks in parallel and relying on more standard interfaces
(futures, executors) when dealing with asynchronous execution.

A green thread executor is used instead of using an eventlet green pool
directly. The maximum number of workers is taken from the existing
workers_pool_size configuration option, and no tasks are allowed
to be enqueued to mimic the previous behaviour (might be lifted later).

The periodic tasks worker is using the same executor, and its main loop thread
is also running on it. For this reason minimum value for workers_pool_size
is now 3: periodic task main loop, keep alive thread and at least one thread for
other tasks. A special decorator for driver-periodic tasks is now deprecated,
as the generic decorator can be used there as well.

Closes-Bug: #1526277
Change-Id: I57bf7cebfb6db805b6c521bacfef2993b16ce1ee
2016-02-24 15:44:05 +01:00
John L. Villalovos
bbee55df15 Move _from_db_object() into base class
Had five copies of the def _from_db_object() function in various
classes. Move this function into their common base class.

Change-Id: I543386a708d80f7c89455e556e2abc6d532661b0
2016-02-24 06:33:31 -08:00
Jenkins
2db07bab90 Merge "Correct instance parameter description" 2016-02-24 10:09:55 +00:00
Dmitry Tantsur
cc66d0b711 Add ironic_tempest_plugin to the list of packages in setup.cfg
Change-Id: I978caa733b2ad1d38da019307784704e37c49cc8
2016-02-23 16:47:38 +01:00
Jenkins
77b4707798 Merge "DevStack: Add support for deploying nodes with pxe_ipmitool" 2016-02-23 12:16:52 +00:00
Jenkins
126bb8edcd Merge "Fix gate broken by sudden remove of SERVICE_TENANT_NAME variable" 2016-02-23 10:58:45 +00:00
Jenkins
56139fd7e4 Merge "Import host option in base test module" 2016-02-23 09:55:03 +00:00
Dmitry Tantsur
da7aba10c4 Fix gate broken by sudden remove of SERVICE_TENANT_NAME variable
It should be replaced by SERVICE_PROJECT_NAME and was removed
in the review I824b1121842eb5821034071874bf1bb2d7c3631e.

Change-Id: Icd03119788d17de221293bce4c0d628df42fdb9b
2016-02-23 10:35:30 +01:00
Ruby Loo
f2d9886f99 Add manual cleaning to documentation
This updates the documentation to include manual cleaning.

Change-Id: I8f91214911e8916c329c20a140e1d0957b1cc137
Partial-Bug: #1526290
2016-02-22 15:46:46 -05:00
Jenkins
a5eb2e5c9c Merge "Change the libvirt NIC driver to virtio" 2016-02-22 19:33:30 +00:00
Yuriy Zveryanskyy
56d494564e Import host option in base test module
Import of this option fix problems with local unit tests in
Ironic Staging Drivers project.

Change-Id: I4a155ae734939b3917d35575591acecebdd78a6b
2016-02-22 19:34:44 +02:00
Shivanand Tendulker
38201d9f2a Fixes automated cleaning failure in iLO drivers
Automated cleaning fails for iLO driver if iLO is in System POST
state. iLO does not allow setting of boot device when it is in
System POST state. Node needs to be powered off before initiating
boot for cleaning.

Closes-Bug: 1536730
Change-Id: Icd0f39d718aabdcad56636e662dec788c4e1b427
2016-02-22 07:27:17 -08:00
Jenkins
2bce970aee Merge "Updated from global requirements" 2016-02-22 08:35:50 +00:00
Jenkins
7b027f1b79 Merge "Add links to the standalone configdrive documentation" 2016-02-22 08:10:44 +00:00
OpenStack Proposal Bot
b2030923a5 Updated from global requirements
Change-Id: Ib9e18e0818a8881cf12b5455e2c97888cf24f18e
2016-02-20 21:55:37 +00:00
Jenkins
e0d439f14f Merge "Replace ifconfig with ip" 2016-02-20 02:28:43 +00:00
Jenkins
21229b9347 Merge "Use 'node' directly in update_port()" 2016-02-19 02:46:09 +00:00
Lucas Alvares Gomes
7ffa1d58ce DevStack: Add support for deploying nodes with pxe_ipmitool
This patch is adding support for deploying nodes with the pxe_ipmitool
driver and VMs.

The patch adds a dependency on the "virtualbmc" utility which is
responsible for creating a virtual/fake BMC that handles the IPMI
commands (using pyghmi.bmc) and convert it to calls to the
python-libvirt library.

The function "is_ironic_hardware" was converted into a variable called
"IRONIC_IS_HARDWARE" which can be set to True/False to indicate whether
DevStack is being setup for baremetal or VMs.

Partial-Bug: #1544642
Change-Id: I5edc51c7fc8b6f0bb7fe4ca129596709a32eb93e
2016-02-18 19:27:04 +00:00
Lucas Alvares Gomes
ee4f24bbb9 Change the libvirt NIC driver to virtio
Change the libvirt NIC driver from e1000 to virtio for performance
reasons.

Change-Id: Iaa546d60755f4edd77fbcf32b95efce11328e918
2016-02-18 16:43:07 +00:00
Lucas Alvares Gomes
b4bc03f04f DevStack: Support to install diskimage-builder from source
Prior to this patch devstack only supported installing diskimage-builder
directly from pip. This patch adds support to also install it from git.

This is needed so we can run tests on the diskimage-builder gate to test
against Ironic.

Depends-On: I6cefac1eb4ebf0196a6b4d4bfc038c00921f0d70
Change-Id: I894b20fc41c195202d2545f6de2791cd6a1b1a30
2016-02-18 16:21:39 +00:00